:root {
  --ink: #1f1f1f;
  --sand: #e7dcc6;
  --paper: #f8f5ee;
  --line: #1f1f1f40;
  --serif: "Minion Variable Concept", "Baskerville", Georgia, serif;
  --sans: Avenir, "Avenir Next", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.6 var(--sans); }
a { color: inherit; text-underline-offset: .23em; }
a:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
p + p { margin-top: 1em; }
.wrap { width: min(86%, 1216px); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: .5rem; transform: translateY(-150%); background: var(--paper); padding: .5rem 1rem; z-index: 1; }
.skip:focus { transform: none; }
.top, .footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.top { min-height: 5rem; }
.brand { flex: 0 0 4.5rem; }
.brand img, .signature img { mix-blend-mode: multiply; }
nav { display: flex; gap: clamp(.75rem, 3.5vw, 3rem); flex-wrap: wrap; }
nav a { text-decoration: none; font-size: .875rem; }
nav a:hover { text-decoration: underline; }
.hero, .contact { color: var(--sand); background: var(--ink); }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: clamp(2rem, 7vw, 7rem); padding-block: clamp(4rem, 9vw, 9rem); }
.label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .19em; margin-bottom: 1.35rem; }
h1, h2, h3, blockquote { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(3.4rem, 7.1vw, 7.6rem); line-height: .88; letter-spacing: -.06em; }
h2 { font-size: clamp(2.6rem, 5.6vw, 5.6rem); line-height: .96; letter-spacing: -.045em; }
h3 { font-size: clamp(1.45rem, 2.4vw, 2.1rem); line-height: 1.1; margin-bottom: .8rem; }
.intro { max-width: 34ch; margin-top: 1.75rem; }
.button { display: inline-flex; align-items: center; gap: 1.3rem; padding: .75rem 1.15rem; margin-top: 1.5rem; border: 1px solid currentColor; text-decoration: none; }
.button:hover { background: var(--sand); color: var(--ink); }
.signature { background: var(--sand); padding: 6%; }
.section { padding-block: clamp(3.8rem, 8vw, 8rem); }
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: clamp(2rem, 5vw, 4.5rem); }
.areas article { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.areas p, .project p, .atelier p { max-width: 49ch; }
.project { background: var(--sand); }
.project-inner, .atelier { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 8vw, 9rem); align-items: center; }
.project figure { background: var(--ink); padding: clamp(1rem, 3vw, 2.75rem); }
.project img { width: 100%; height: auto; max-height: 30rem; object-fit: contain; }
.project h2 + p, .contact h2 + p { margin-top: 1.25rem; }
.text-link { display: inline-block; margin-top: 1.4rem; }
.atelier { align-items: start; }
blockquote { border-left: 1px solid var(--line); padding-left: 1.25rem; font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.15; margin-bottom: 1.35rem; }
details { margin-top: 1.5rem; padding-block: 1rem; border-block: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; }
.manifesto { padding-top: 1.3rem; }
.email { display: block; margin-top: 1rem; overflow-wrap: anywhere; }
.section-top { padding-bottom: 1.5rem; text-align: right; font-size: .85rem; }
.section.wrap { position: relative; }
.section.wrap > .section-top { position: absolute; right: 0; bottom: 0; width: auto; }
.footer { padding-block: 1.4rem; font-size: .85rem; }
@media (max-width: 820px) {
  .areas { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .wrap { width: 88%; }
  .top { gap: .5rem; }
  .brand { flex-basis: 3.35rem; }
  nav { gap: .35rem .75rem; justify-content: flex-end; }
  nav a { font-size: .8rem; }
  .hero-inner, .project-inner, .atelier { grid-template-columns: 1fr; }
  .signature { width: min(100%, 27rem); }
  .project figure { max-width: 26rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.areas article { display: flex; flex-direction: column; align-items: flex-start; }
.areas article p { margin-bottom: 1rem; }
.areas .text-link { margin-top: auto; }
.detail-back { display: inline-block; margin-bottom: 2rem; }
.detail-hero .intro { max-width: 50ch; }
.detail-content h2 { max-width: 18ch; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-block: 2.5rem 1rem; }
.detail-grid article { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.detail-grid p { max-width: 55ch; }
@media (max-width: 620px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-hero h1 { font-size: clamp(2.7rem, 11vw, 4rem); }
}

/* Portefólio editorial e páginas individuais de projeto */
.portfolio-intro { max-width: 54ch; margin-top: 1.5rem; }
.project-feature { margin-top: clamp(2.5rem, 6vw, 5rem); }
.project-image-link { display: block; text-decoration: none; }
.project-image-link:focus-visible { outline-offset: 6px; }
.feature-title { font-size: clamp(2.6rem, 5vw, 5.3rem); line-height: .96; letter-spacing: -.045em; margin-bottom: 1.1rem; }
.project-hero .intro { max-width: 54ch; }
.project-story { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(2rem, 7vw, 8rem); }
.story-heading h2 { max-width: 12ch; }
.story-copy { max-width: 57ch; font-size: clamp(1rem, 1.45vw, 1.15rem); }
.story-copy p + p { margin-top: 1.35rem; }
.project-photo-block { background: var(--sand); }
.project-photo-inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 8vw, 8rem); align-items: center; padding-block: clamp(3.8rem, 8vw, 7rem); }
.project-photo-inner figure { width: min(100%, 34rem); background: var(--ink); padding: clamp(1rem, 3vw, 2.5rem); color: var(--sand); }
.project-photo-inner img { width: 100%; max-height: 42rem; object-fit: contain; }
.project-photo-inner figcaption { margin-top: 1rem; font-size: .78rem; }
.photo-aside p:not(.label) { font: 400 clamp(1.7rem, 3vw, 3rem)/1.15 var(--serif); max-width: 18ch; }
.collection-section { background: var(--sand); }
.collection-intro { max-width: 55ch; margin-top: 1.5rem; }
.character-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1.5rem; margin-top: clamp(2.5rem,5vw,4.5rem); }
.character-grid article { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.character-number { display: block; font-size: .75rem; margin-bottom: 1.6rem; }
.character-grid h3 { margin-bottom: 1rem; }
.character-grid p { font-size: .9rem; }
.editorial-note { margin-top: 2.5rem; font-size: .8rem; max-width: 68ch; }
.project-ending p:not(.label) { max-width: 60ch; margin-top: 1.4rem; }
@media (max-width: 820px) { .character-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 620px) {
  .project-story, .project-photo-inner { grid-template-columns: 1fr; }
  .character-grid { gap: 2rem 1rem; }
  .photo-aside p:not(.label) { max-width: 25ch; }
}

/* Winter Collection — galeria fotográfica real */
.collection-gallery-note { max-width: 57ch; margin-top: 1rem; font-size: .92rem; }
.collection-gallery { margin-top: clamp(2.8rem, 6vw, 5.5rem); }
.collection-character { border-top: 1px solid var(--line); padding-block: clamp(2rem, 5vw, 4.5rem); }
.character-heading { display: grid; grid-template-columns: minmax(5.2rem,.22fr) 1fr; gap: 1.4rem; margin-bottom: 1.8rem; }
.character-heading h3 { font-size: clamp(2.2rem, 4vw, 4.5rem); letter-spacing: -.035em; margin-bottom: .4rem; }
.character-heading p { max-width: 55ch; }
.character-number { font-size: .73rem; margin-top: .45rem; letter-spacing: .07em; }
.character-photos { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.character-photos figure { min-width: 0; }
.character-photos figure.character-main { grid-column: 1 / -1; }
.character-photos img { width: 100%; height: clamp(270px,39vw,580px); object-fit: contain; padding: clamp(.6rem,2.5vw,2rem); background: var(--paper); }
.character-photos .character-main img { height: clamp(340px,56vw,760px); }
.character-photos figcaption { margin-top: .65rem; font-size: .78rem; letter-spacing: .02em; }
@media (max-width: 620px) {
 .character-heading { grid-template-columns: 1fr; gap: .4rem; }
 .character-photos { gap: .8rem; }
 .character-photos img { height: 255px; padding: .4rem; }
 .character-photos .character-main img { height: 390px; }
 .character-photos figcaption { font-size: .72rem; }
}

/* V4 — navegação estável e layout fluido */
html { scroll-padding-top: 6.25rem; }
[id] { scroll-margin-top: 6.25rem; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(248,245,238,.97); border-bottom: 1px solid rgba(31,31,31,.13); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.site-header .top { min-height: 4.65rem; }
.site-header .brand { display: block; width: 4.5rem; }
.site-header nav a { padding-block: .55rem; white-space: nowrap; }
.site-header nav a[aria-current="page"], .site-header nav a[aria-current="location"] { text-decoration: underline; text-underline-offset: .45rem; }
.menu-toggle { display: none; }
.skip { position: fixed; z-index: 300; }
img { height: auto; }
.hero-inner > *, .project-inner > *, .atelier > *, .project-story > *, .detail-grid > *, .character-photos > * { min-width: 0; }
@media (max-width: 740px) {
 html { scroll-padding-top: 5rem; }
 [id] { scroll-margin-top: 5rem; }
 .site-header .top { min-height: 4.3rem; flex-wrap: nowrap; }
 .site-header .brand { flex: 0 0 3.4rem; }
 .menu-toggle { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; margin-left: auto; padding: 8px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
 .menu-toggle span { width: 20px; height: 1.5px; background: currentColor; }
 .site-header nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); box-shadow: 0 12px 24px rgba(31,31,31,.08); border-bottom: 1px solid var(--line); padding: .7rem 6% 1.2rem; flex-direction: column; gap: .2rem; }
 .site-header.nav-open nav { display: flex; }
 .site-header nav a { display: block; padding: .8rem .3rem; font-size: 1rem; }
 .hero-inner, .project-inner, .atelier { grid-template-columns: 1fr; }
 .project-story, .project-photo-inner { grid-template-columns: 1fr; }
 .hero h1 { overflow-wrap: normal; }
}
@media (max-width: 430px) {
 .wrap { width: 90%; }
 h1 { font-size: clamp(3rem, 14vw, 4.2rem); }
 h2 { font-size: clamp(2.35rem, 11vw, 3.4rem); }
 .character-photos { grid-template-columns: 1fr; }
 .character-photos .character-main { grid-column: auto; }
 .character-photos img, .character-photos .character-main img { height: auto; max-height: 520px; aspect-ratio: 4 / 5; object-fit: contain; }
 .footer { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
