@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,900&family=Instrument+Sans:wght@400;500;600&display=swap');

/* ==========================================================================
   EDITORIAL — "MAGAZINE": a dark hero BAND at the top (contained, not
   full-bleed) with a big Fraunces name + a stat strip on the left and a
   framed azzurro-offset portrait on the right, over a warm-paper magazine
   feature body with a drop-cap standfirst. Fraunces (display) + Instrument
   Sans (body); warm paper + dark band + azzurro accent + gold kicker.
   ========================================================================== */

:root {
  --paper: #f2eee4;
  --card: #fbf9f3;
  --ink: #17151c;
  --ink-2: #403c46;
  --muted: #7a7580;
  --line: #e0d9c8;
  --band: #141319;          /* dark hero band */
  --band-ink: #f4f0e6;
  --band-muted: #b8b1a6;
  --accent: #1436c9;        /* azzurro */
  --accent-ink: #0f2ea8;
  --gold: #c8951f;
  --maxw: 1120px;
  --measure: 66ch;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Instrument Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 1.06rem; line-height: 1.68;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-underline-offset: 2px; }
a:hover { color: var(--ink); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.6rem); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.kicker { margin: 0 0 0.9rem; font: 600 0.72rem/1 var(--font-body); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }

/* ---------- Header ---------------------------------------------------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 70px; }
.site-brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.site-brand__mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--accent); color: #fff; font: 900 1.02rem/1 var(--font-display); }
.site-brand__name { font: 600 1.02rem/1 var(--font-body); letter-spacing: -0.01em; }
.site-nav ul { display: flex; gap: 0.2rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a { display: inline-block; padding: 0.45rem 0.75rem; border-radius: 8px; text-decoration: none; color: var(--ink-2); font: 500 0.92rem/1 var(--font-body); transition: background-color 0.18s, color 0.18s; }
.site-nav a:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent-ink); }
.site-nav a[aria-current="page"] { color: var(--accent-ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 2px; }

/* ---------- Hero band (contained, dark) ------------------------------- */
.hero-band { background: var(--band); color: var(--band-ink); }
.hero-band__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.58fr); gap: clamp(1.4rem, 4vw, 3rem); align-items: end; padding-block: clamp(2.2rem, 6vw, 4rem); }
.hero-band--page .wrap { padding-block: clamp(1.8rem, 4vw, 2.8rem); }
.hero-band__lede { min-width: 0; }
.hero-band__title { margin: 0; font-family: var(--font-display); font-weight: 900; color: #fff; font-size: clamp(2.3rem, 6vw, 4.4rem); line-height: 0.98; letter-spacing: -0.025em; font-optical-sizing: auto; text-wrap: balance; }
.hero-band__title--page { font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.02; max-width: 24ch; }
.hero-band__subtitle { margin: 1.1rem 0 0; color: var(--band-muted); font: 500 1.1rem/1.4 var(--font-body); }
.hero-band__rule { border: 0; height: 3px; width: 88px; background: var(--accent); margin: 1.3rem 0 0; }

/* Stat strip pinned along the bottom of the band (semantic <table>). */
/* Full-width stat bar spanning both hero columns (a clean even row of 5). */
.hero-facts { grid-column: 1 / -1; width: 100%; border-collapse: collapse; margin-top: clamp(1.4rem, 3vw, 2rem); }
.hero-facts tbody { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid rgba(255,255,255,0.2); }
.hero-facts tr { flex: 1 1 90px; display: flex; flex-direction: column; gap: 0.3rem; padding: 0.95rem 1.1rem 0.1rem 0; border-right: 1px solid rgba(255,255,255,0.14); }
.hero-facts tr:last-child { border-right: 0; }
.hero-facts th { text-align: left; font: 600 0.58rem/1.1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--band-muted); }
.hero-facts td { font: 500 1.42rem/1 var(--font-display); color: #fff; font-optical-sizing: auto; font-variant-numeric: tabular-nums; }

/* Framed portrait with an azzurro offset frame. */
.hero-band__figure { position: relative; margin: 0; align-self: end; justify-self: end; width: 100%; max-width: 300px; }
.hero-band__figure::before { content: ""; position: absolute; inset: 12px -12px -12px 12px; border: 2px solid var(--accent); border-radius: 4px; z-index: 0; }
.hero-band__photo { position: relative; z-index: 1; display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 12%; border-radius: 4px; }
.credit { margin: 0.5rem 0 0; color: var(--muted); font: 500 0.78rem/1.35 var(--font-body); }
.credit--light { position: relative; z-index: 1; color: var(--band-muted); }

/* ---------- Article --------------------------------------------------- */
.article { padding-block: clamp(2.4rem, 6vw, 4rem); }
.standfirst {
  max-width: var(--measure); margin: 0 0 2.4rem; color: var(--ink);
  font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  line-height: 1.42; letter-spacing: -0.01em; font-optical-sizing: auto;
}
.standfirst::first-letter { float: left; font-weight: 900; font-size: 4.2em; line-height: 0.72; margin: 0.04em 0.1em 0 0; color: var(--accent); }

.prose { max-width: var(--measure); margin: 0 auto 2.4rem; }
.prose h2 { position: relative; margin: 2.4rem 0 1rem; padding-top: 1rem; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.45rem, 3.2vw, 2rem); line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); font-optical-sizing: auto; }
.prose h2::before { content: ""; position: absolute; top: 0; left: 0; width: 46px; height: 3px; background: var(--accent); }
.prose p { margin: 0 0 1.15rem; color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose ul { margin: 0 0 1.15rem; padding-left: 1.2rem; color: var(--ink-2); }
.prose li { margin: 0.3rem 0; }

/* ---------- Inline figures (floated in prose) ------------------------- */
.inline-figure { margin: 0.4rem 0 1rem; }
.inline-figure img { display: block; width: 100%; border-radius: 4px; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; }
.inline-figure figcaption { margin-top: 0.4rem; }
@media (min-width: 620px) {
  .inline-figure { width: 42%; max-width: 320px; }
  .inline-figure--right { float: right; margin: 0.3rem 0 0.9rem 1.8rem; }
  .inline-figure--left { float: left; margin: 0.3rem 1.8rem 0.9rem 0; }
  .prose::after { content: ""; display: block; clear: both; }
}

/* ---------- Career table + trophies ----------------------------------- */
.data-figure { max-width: var(--measure); margin: 0 auto 2.4rem; }
.data-figure__caption { font: 600 0.72rem/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 0.75rem; }
.data-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); font-size: 0.98rem; }
.data-table thead th { text-align: left; background: var(--band); color: var(--band-ink); font: 600 0.72rem/1 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; padding: 0.7rem 1rem; }
.data-table td { padding: 0.72rem 1rem; border-top: 1px solid var(--line); color: var(--ink-2); }
.data-table td:first-child { font-weight: 600; color: var(--ink); }
.data-table__num { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }

.trophies { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.55rem; }
.trophies li { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.42rem 0.85rem; border-radius: 999px; background: color-mix(in srgb, var(--gold) 15%, var(--card)); border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--line)); font: 500 0.92rem/1 var(--font-body); color: var(--ink); }
.trophies li::before { content: "🏆"; }

/* ---------- FAQ ------------------------------------------------------- */
.faq { max-width: var(--measure); margin: 3rem auto 1rem; }
.faq > h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.45rem, 3.2vw, 2rem); letter-spacing: -0.02em; margin: 0 0 1.3rem; color: var(--ink); }
.faq__list { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--line); padding: 1.2rem 0; }
.faq__q { margin: 0 0 0.4rem; font: 600 1.1rem/1.3 var(--font-body); color: var(--ink); }
.faq__a { margin: 0; color: var(--ink-2); }

/* ---------- Footer ---------------------------------------------------- */
.site-footer { margin-top: clamp(3rem, 8vw, 5rem); background: var(--band); color: var(--band-muted); }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: center; justify-content: space-between; padding-block: 2.4rem; }
.site-footer__disclaimer { margin: 0; max-width: 46ch; font-size: 0.9rem; line-height: 1.5; }
.site-footer__disclaimer strong { color: #fff; }
.site-footer__nav ul { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; list-style: none; margin: 0; padding: 0; }
.site-footer__nav a { color: var(--band-muted); text-decoration: none; font-size: 0.9rem; }
.site-footer__nav a:hover { color: #fff; }

/* ---------- Responsive ------------------------------------------------ */
@media (max-width: 820px) {
  .hero-band__grid { grid-template-columns: 1fr; gap: 1.8rem; align-items: start; }
  .hero-band__figure { order: -1; max-width: 300px; }
  .hero-band__figure::before { inset: 10px -10px -10px 10px; }
  .hero-facts tr { flex-basis: 40%; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto; } }

/* Inline cross-links inside prose stand out subtly. */
.prose a, .standfirst a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
