/* Hallmark · theme: custom · idea: "Um portfólio editorial com a marca pixelada como assinatura" · vibe: "tipografia ampla, acento vermelho, capturas reais" · hero: masthead com logo Curupixel · posture: restrained · axes: light/pixel/chromatic-red */
/* Critique: a grade e os degraus do banner enquadram a abertura e deixam o centro livre para o texto. */
@font-face {
  font-family: "VT323";
  src: url("/media/vt323-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Pixelify Sans";
  src: url("/media/pixelify-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #fbf5ec;
  --ink: #1c1c1b;
  --brand-red: #e23615;
  --brand-amber: #fcab20;
  --muted: #5e4f47;
  --line: #d6c6b5;
  --soft: #f3e8db;
  --grid-line: color-mix(in srgb, var(--line) 58%, transparent);
  --accent: #a8240e;
  --strong: #7b210f;
  --sans: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  --display: "VT323", var(--sans);
  --hero-display: "Pixelify Sans", var(--display);
  --measure: 76rem;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 var(--sans);
  text-transform: lowercase;
}
a { color: inherit; text-underline-offset: .28em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
img { display: block; max-width: 100%; }
.wrap { width: min(var(--measure), calc(100% - 6rem)); margin-inline: auto; }
.skip { position: absolute; inset: .7rem auto auto .8rem; padding: .55rem 1rem; transform: translateY(-180%); z-index: 1; background: var(--paper); }
.skip:focus { transform: none; }
.top { min-height: 5rem; border-bottom: 1px solid var(--line); }
.top .wrap, .footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.top .wrap { min-height: inherit; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font: 400 1.75rem/1 var(--display); }
.brand-mark { height: auto; }
.brand .brand-mark { width: 1.3rem; flex: none; }
nav { display: flex; flex-wrap: wrap; gap: .45rem 1.65rem; }
.top a, .footer a { text-decoration: none; }
.top a:hover, .footer a:hover, a[aria-current] { text-decoration: underline; }
.pixel-grid {
  --pixel-cell: 2rem;
  position: relative;
  isolation: isolate;
}
.pixel-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: var(--pixel-cell) var(--pixel-cell);
  mask-image: linear-gradient(to right, var(--ink), transparent 25% 68%, var(--ink));
}
.hero-surface {
  --pixel-step: clamp(1rem, 2.8vw, 2.5rem);
  background:
    linear-gradient(var(--soft) 0 0) top left / calc(6 * var(--pixel-step)) var(--pixel-step) no-repeat,
    linear-gradient(var(--soft) 0 0) left top var(--pixel-step) / calc(4 * var(--pixel-step)) var(--pixel-step) no-repeat,
    linear-gradient(var(--soft) 0 0) left top calc(2 * var(--pixel-step)) / calc(2 * var(--pixel-step)) var(--pixel-step) no-repeat,
    linear-gradient(115deg, var(--soft), var(--paper) 38% 62%, var(--soft));
}
.hero-surface::after {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  z-index: -1;
  width: calc(5 * var(--pixel-step));
  aspect-ratio: 1;
  pointer-events: none;
  clip-path: polygon(80% 0, 100% 0, 100% 100%, 0 100%, 0 80%, 20% 80%, 20% 60%, 40% 60%, 40% 40%, 60% 40%, 60% 20%, 80% 20%);
  background:
    linear-gradient(var(--brand-amber) 0 0) 25% 75% / 20% 20% no-repeat,
    linear-gradient(var(--brand-amber) 0 0) 75% 25% / 20% 20% no-repeat,
    linear-gradient(var(--brand-red) 0 0) right bottom / 60% 20% no-repeat,
    linear-gradient(var(--brand-red) 0 0) right bottom 25% / 40% 20% no-repeat,
    linear-gradient(var(--brand-red) 0 0) right bottom 50% / 20% 20% no-repeat,
    var(--soft);
}
.hero { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); align-items: center; gap: 2rem; padding-block: clamp(3.6rem, 8vw, 7.6rem); }
.hero h1 {
  font: 600 clamp(3.8rem, 9.4vw, 8.5rem)/.95 var(--hero-display);
  letter-spacing: .012em;
}
.hero p { font-size: clamp(1.15rem, 2vw, 1.6rem); max-width: 30ch; line-height: 1.4; margin-top: 1.65rem; }
.button { display: inline-flex; align-items: center; gap: .75rem; padding: .7rem 1rem; background: var(--accent); color: var(--paper); text-decoration: none; font-weight: 700; }
.button:hover, .button:active { background: var(--strong); color: var(--paper); }
.hero .button { margin-top: 1.65rem; }
.hero-mark { justify-self: center; width: min(68%, 17rem); }
.band { border-top: 1px solid var(--line); padding-block: 2.4rem 4.2rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.section-head h2, .about h2 { font-size: clamp(2.75rem, 5.8vw, 4.75rem); }
.section-head a, .text-link { font-weight: 700; }
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; padding: 0; margin: 0; list-style: none; }
.project { display: grid; grid-template-rows: auto 1fr; border-bottom: 1px solid var(--line); padding-bottom: 1.35rem; }
.frame { display: block; overflow: clip; background: var(--soft); border: 1px solid var(--line); }
.frame img { width: 100%; height: auto; }
.frame:hover { border-color: var(--brand-red); }
.project .label { margin-top: .4rem; font-size: .9rem; color: var(--muted); }
.project h2, .project h3 { font-size: clamp(2rem, 3.5vw, 2.65rem); margin-top: 1rem; }
.project h2 a, .project h3 a { text-decoration: none; }
.project h2 a:hover, .project h3 a:hover { text-decoration: underline; }
.project-visit { display: inline-block; margin-top: .85rem; font-size: .92rem; font-weight: 700; }
.project .description { margin-top: .6rem; max-width: 38ch; }
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1rem 2rem; padding-block: 3.3rem 4rem; }
.about p { font-size: 1.17rem; max-width: 47ch; margin-bottom: 1rem; }
.footer {
  border-top: 1px solid var(--line);
  padding-block: 1.7rem 2.15rem;
  background: linear-gradient(to right, var(--soft), var(--paper) 25% 75%, var(--soft));
}
.footer::before { opacity: .38; }
.footer nav { font-size: .93rem; gap: .45rem 1.25rem; }
.page { padding-block: 3.8rem 5rem; min-height: 62vh; }
.page-head { margin-bottom: 2.1rem; }
.page-head::before {
  inset-block: -.75rem;
  background-color: var(--soft);
  mask-image: linear-gradient(to right, transparent 62%, var(--ink) 100%);
  opacity: .64;
}
.page-head h1 { font-size: clamp(2.8rem, 7vw, 6.5rem); }
.page-head p { margin-top: .9rem; max-width: 58ch; font-size: 1.15rem; }
.back { display: inline-block; margin-bottom: 1.2rem; color: var(--muted); }
.prose { max-width: 65ch; }
.prose h2 { margin-top: 1.9rem; margin-bottom: .65rem; font-size: 1.75rem; }
.prose p + p { margin-top: .75rem; }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: .45rem; }
.detail { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; gap: 1.4rem 2rem; }
.detail .button { margin-top: 1.25rem; }
@media (max-width: 56rem) {
  .wrap { width: calc(100% - 3.5rem); }
  .projects { gap: 1rem; }
}
@media (max-width: 42rem) {
  .wrap { width: calc(100% - 2.25rem); }
  .top .wrap, .footer .wrap { align-items: flex-start; flex-direction: column; justify-content: center; gap: .55rem; }
  .top .wrap { padding-block: .75rem; }
  .top nav { column-gap: 1.35rem; }
  .hero, .about, .detail { grid-template-columns: minmax(0, 1fr); }
  .pixel-grid { --pixel-cell: 1.5rem; }
  .hero-surface { --pixel-step: 1rem; }
  .hero-surface::before { mask-image: linear-gradient(to right, transparent 38%, var(--ink)); }
  .page-head::before { opacity: .32; }
  .hero { gap: 1.55rem; padding-block: 2.6rem 2.8rem; }
  .hero h1 { font-size: clamp(3.25rem, 13.4vw, 6rem); }
  .hero-mark { grid-row: 1; justify-self: start; width: clamp(4.3rem, 19vw, 6.75rem); }
  .hero p { margin-top: 1.1rem; }
  .projects { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .band { padding-bottom: 2.5rem; }
  .about { padding-block: 2.1rem 2.8rem; }
  .page { padding-block: 2.4rem 3rem; }
}
