/* Miami NY Dubai — the visual system is explained in DESIGN.md. */
:root {
  --paper: #faf7f1;
  --card: #f3eee5;
  --ink: #1d1b18;
  --mut: #6b645a;
  --hair: #e2dbcf;
  --rule: #1d1b18;
  --brass: #8a6a37;
  --band: #1d1b18;
  --band-fg: #f3eee5;
  --serif-d: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --serif: "Crimson Pro", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --consent-bg: #faf7f1; --consent-fg: #1d1b18; --consent-line: #e2dbcf; --consent-accent: #1d1b18;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141311; --card: #1c1a17; --ink: #f1ece3; --mut: #a69e91; --hair: #2f2c27; --rule: #f1ece3;
    --brass: #c9a66b; --band: #0c0b0a; --band-fg: #f1ece3;
    --consent-bg: #1c1a17; --consent-fg: #f1ece3; --consent-line: #3a362f; --consent-accent: #c9a66b;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.25rem/1.45 var(--serif); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 40px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; font: 500 .8rem var(--sans); z-index: 10; }
.skip:focus { left: 8px; }

/* Small capitals in the sans: rubrics, nav, labels, buttons, captions. */
.rubric, .nav a, .util, .label, .btn, .byline, .meta, figcaption, .foot { font-family: var(--sans); }
.rubric { display: block; font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin: 0 0 12px; }

/* Utility bar, masthead, nav: a centered wordmark between rules. */
.util { border-bottom: 1px solid var(--hair); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; }
.util .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 16px; }
.util a { border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.mast { text-align: center; padding: 24px 0 18px; }
.wordmark { margin: 0; font: 500 clamp(1.75rem, 6.4vw, 3.6rem)/1 var(--serif-d); letter-spacing: .08em; text-transform: uppercase; }
.wordmark a { display: inline-flex; align-items: center; gap: .3em; }
.wordmark i { display: inline-block; width: .16em; height: .16em; border-radius: 50%; background: var(--brass); }
.mast .tag { margin: 10px 0 0; font: italic 400 clamp(.95rem, 2.2vw, 1.1rem)/1.3 var(--serif); color: var(--mut); }
.navbar { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--hair); }
.nav { list-style: none; margin: 0; padding: 0 16px; display: flex; justify-content: center; flex-wrap: wrap; gap: 0 clamp(16px, 3vw, 36px); }
.nav a { display: block; padding: 12px 0; font-size: .7rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.nav a:hover { color: var(--brass); }

/* Headlines: Garamond display at a regular weight. */
h1, h2, h3 { font-family: var(--serif-d); font-weight: 500; line-height: 1.08; margin: 0; text-wrap: balance; }
.dek { font: 400 .95rem/1.6 var(--sans); color: var(--mut); margin: 14px 0 0; text-wrap: pretty; }
.byline { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin: 18px 0 0; }
.byline span + span::before { content: "·"; margin: 0 .6em; color: var(--brass); }

.section { padding-top: clamp(44px, 7vw, 84px); }
.sec-head { display: flex; align-items: baseline; gap: 18px; border-top: 1px solid var(--rule); padding-top: 14px; margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.sec-head p { margin: 0 0 0 auto; font: italic 400 1rem var(--serif); color: var(--mut); display: none; }
@media (min-width: 720px) { .sec-head p { display: block; } }

/* Home: the lead story. */
.lead { padding-top: clamp(24px, 4vw, 48px); }
.lead-link { display: grid; gap: 24px; }
.lead figure { margin: 0; }
.lead img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; }
@media (min-width: 900px) { .lead-link { grid-template-columns: 5fr 6fr; gap: 56px; align-items: center; } }
.lead .copy { text-align: center; max-width: 780px; margin: 0 auto; }
.lead h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
.lead-link:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }

/* Home: the cover, shown until the first story is out. */
.cover { padding-top: clamp(24px, 4vw, 48px); display: grid; gap: 28px; align-items: center; }
.cover figure { margin: 0; }
.cover img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cover .copy { text-align: center; }
.cover h1 { font-size: clamp(2.3rem, 5.6vw, 4.1rem); }
.cover h1 em { font-style: italic; color: var(--brass); }
.cover .dek { max-width: 44ch; margin-inline: auto; }
.cover .btn { margin-top: 26px; }
@media (min-width: 900px) { .cover { grid-template-columns: 7fr 5fr; gap: 56px; } .cover img { aspect-ratio: 1118 / 970; } }

/* Buttons: a hairline box in small capitals. */
.btn { display: inline-block; padding: 13px 24px; border: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.btn:hover { background: var(--ink); color: var(--paper); }

/* Three cities: round portraits with small-caps labels. */
.cities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: center; }
.cities figure { margin: 0; }
.cities img { width: min(100%, 220px); aspect-ratio: 1; object-fit: cover; border-radius: 50%; margin: 0 auto; padding: 4px; border: 1px solid var(--rule); background: var(--paper); }
.cities figcaption { margin-top: 14px; color: var(--ink); }
.cities .label { display: block; font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.cities .note { display: none; margin: 8px auto 0; max-width: 30ch; font: italic 400 1.05rem/1.4 var(--serif); color: var(--mut); }
@media (min-width: 720px) { .cities { gap: 40px; } .cities .note { display: block; } }

/* Story grid: the home archive and "More stories". */
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px 28px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card a { display: block; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 16px; }
.card h3 { font-size: 1.6rem; }
.card a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }
.card .dek { font-size: .88rem; margin-top: 10px; }
.card .meta { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mut); margin: 12px 0 0; }

/* What we look for: numbered principles beside a square picture. */
.edit { display: grid; gap: 32px; align-items: center; }
.edit figure { margin: 0; }
.edit img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.edit ol { list-style: none; margin: 0; padding: 0; counter-reset: e; }
.edit li { counter-increment: e; padding: 20px 0; border-top: 1px solid var(--hair); display: grid; grid-template-columns: 52px 1fr; }
.edit li:first-child { border-top-color: var(--rule); }
.edit li::before { content: counter(e, upper-roman); font: italic 500 1.4rem/1 var(--serif-d); color: var(--brass); padding-top: 5px; }
.edit h3 { font-size: 1.6rem; }
.edit p { margin: 6px 0 0; font-size: 1.1rem; line-height: 1.45; color: var(--mut); }
@media (min-width: 900px) { .edit { grid-template-columns: 5fr 6fr; gap: 64px; } }

figcaption { font-size: .72rem; line-height: 1.55; color: var(--mut); margin-top: 10px; }

/* The Letter: a dark band with the salon picture. */
.letter { background: var(--band); color: var(--band-fg); margin-top: clamp(56px, 9vw, 104px); }
.letter .wrap { display: grid; gap: 32px; align-items: center; padding-top: clamp(40px, 7vw, 72px); padding-bottom: clamp(40px, 7vw, 72px); }
.letter figure { margin: 0; }
.letter img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.letter .rubric { color: #c9a66b; }
.letter h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.letter p { font-size: 1.15rem; color: color-mix(in srgb, var(--band-fg) 78%, transparent); }
.letter form { margin-top: 22px; }
.letter label { display: block; font: 500 .7rem var(--sans); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px; }
.letter .row { display: flex; flex-wrap: wrap; gap: 10px; }
.letter input[type=email] { flex: 1 1 220px; min-width: 0; padding: 13px 14px; border: 1px solid color-mix(in srgb, var(--band-fg) 40%, transparent); border-radius: 0; background: transparent; color: var(--band-fg); font: 400 1rem var(--sans); }
.letter input::placeholder { color: color-mix(in srgb, var(--band-fg) 50%, transparent); }
.letter .btn { border-color: #c9a66b; color: var(--band-fg); }
.letter .btn:hover { background: #c9a66b; color: #1d1b18; }
@media (min-width: 900px) { .letter .wrap { grid-template-columns: 5fr 6fr; gap: 64px; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Article. */
.story-head { text-align: center; max-width: 880px; margin: 0 auto; padding: clamp(32px, 6vw, 64px) 16px clamp(24px, 4vw, 40px); }
.story-head h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); }
.story-head .dek { max-width: 60ch; margin-inline: auto; font-size: 1rem; }
.story-hero { margin: 0 auto; max-width: 1280px; }
.story-hero img { width: auto; max-width: 100%; max-height: 88vh; margin: 0 auto; object-fit: contain; }
.story-hero figcaption { padding: 0 16px; text-align: center; }
.story { max-width: 680px; margin: 0 auto; padding: clamp(28px, 5vw, 48px) 16px 0; }
.story p, .story li { font-size: 1.25rem; line-height: 1.5; }
.story > p:first-of-type::first-letter { float: left; font: 500 4.3em/.8 var(--serif-d); margin: .07em .1em 0 0; color: var(--brass); }
.story a { text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: .16em; }
.story a:hover { color: var(--brass); }
.story h2 { font-size: 2rem; margin: 1.6em 0 .5em; scroll-margin-top: 16px; }
.story h2::before { content: ""; display: block; width: 36px; height: 1px; background: var(--brass); margin-bottom: 18px; }
.story h3 { font-size: 1.45rem; margin: 1.4em 0 .3em; }
.story blockquote { margin: 1.6em 0; padding: 0; font: italic 500 1.75rem/1.25 var(--serif-d); text-align: center; }
.story img { margin: 1.4em 0; }
.story hr { border: 0; border-top: 1px solid var(--hair); margin: 2em 0; }
.sources { max-width: 680px; margin: 40px auto 0; padding: 18px 16px 0; }
.sources h2 { font: 500 .7rem var(--sans); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px; padding-top: 16px; border-top: 1px solid var(--rule); }
.sources ol { margin: 0; padding-left: 1.2em; font: 400 .88rem/1.6 var(--sans); color: var(--mut); }
.sources a { text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: .16em; }
.sources a:hover { color: var(--brass); }
.related { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 28px; }
@media (min-width: 720px) { .related { grid-template-columns: repeat(2, 1fr); } }
.related li { border-top: 1px solid var(--hair); padding: 16px 0; }
.related a { font: 500 1.4rem/1.2 var(--serif-d); }
.related a:hover { color: var(--brass); }
.related span { display: block; margin-top: 6px; font: 400 .68rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }

/* About. */
.about-head { text-align: center; max-width: 840px; margin: 0 auto; padding: clamp(32px, 6vw, 64px) 16px clamp(24px, 4vw, 40px); }
.about-head h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.about-head .dek { font-size: 1rem; max-width: 56ch; margin-inline: auto; }
.triptych { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; max-width: 1000px; margin: 0 auto; justify-content: center; }
.triptych img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.about-body > p:first-of-type::first-letter { float: left; font: 500 4.3em/.8 var(--serif-d); margin: .07em .1em 0 0; color: var(--brass); }

/* Footer: Cara's lines and the BUZZZ link, centered under a rule. */
.foot { border-top: 1px solid var(--rule); margin-top: clamp(48px, 8vw, 96px); padding: 36px 0 44px; text-align: center; font-size: .78rem; color: var(--mut); }
.letter + .foot { margin-top: 0; }
.foot .wordmark { display: inline-flex; align-items: center; gap: .3em; font-size: 1.4rem; color: var(--ink); margin-bottom: 14px; }
.foot p, .foot nav { margin: 8px 0 0; }
.foot a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: .2em; }
.foot a:hover { color: var(--brass); }

/* Photos inside a story (src/md.js "photo" figures) and portrait heroes on spotlights. */
.story figure.photo { margin: 1.8em 0; }
.story figure.photo img { width: 100%; margin: 0; }

/* Search in the top bar, beside The Letter (public/search.js). */
.util-end { display: flex; align-items: center; gap: 18px; }
.search { position: relative; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--hair); }
.search svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; flex: none; }
.search input[type=search] { width: 120px; padding: 4px 0; border: 0; background: transparent; color: var(--ink); font: 400 .78rem var(--sans); letter-spacing: .04em; outline: none; -webkit-appearance: none; appearance: none; }
.search input[type=search]::placeholder { color: var(--mut); text-transform: uppercase; letter-spacing: .16em; font-size: .68rem; }
.search:focus-within { border-bottom-color: var(--brass); }
.search-results { position: absolute; top: calc(100% + 8px); right: 0; z-index: 20; width: min(320px, calc(100vw - 32px)); margin: 0; padding: 6px 0; list-style: none; background: var(--paper); border: 1px solid var(--rule); text-transform: none; letter-spacing: 0; }
.search-results a, .search-results .none { display: block; padding: 9px 14px; font: 500 1.05rem/1.25 var(--serif-d); border: 0; color: var(--ink); }
.search-results a:hover, .search-results a:focus { background: var(--card); color: var(--brass); }
.search-results .none { font: italic 400 .95rem var(--serif); color: var(--mut); }
.util .vh, .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 480px) { .search input[type=search] { width: 84px; } .util-end { gap: 12px; } }
.hero-quote { max-width: 680px; margin: 22px auto 0; padding: 0 16px; text-align: center; font: italic 500 clamp(1.35rem, 2.6vw, 1.75rem)/1.3 var(--serif-d); color: var(--ink); }
.hero-quote + figcaption { margin-top: 12px; }
