/* ==========================================================================
   type.css — the typography system. Load after site.css / staff.css.

   Direction A, "contemporary editorial":
     Instrument Serif (display)  — slim, tall, cinematic; a warm italic for emphasis
     Manrope (body + interface)  — clear, modern, highly readable on phones
   Both self-hosted from assets/fonts (SIL Open Font License, licences included there).
   Latin + Latin Extended subsets, so Yoruba and other accented names render correctly.
   ========================================================================== */

@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/instrument-serif-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/instrument-serif-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/instrument-serif-latin-400-italic.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/instrument-serif-latin-ext-400-italic.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(../fonts/manrope-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(../fonts/manrope-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Brand wordmark only (the cover's LEAP lockup): Archivo, self-hosted, SIL OFL */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(../fonts/archivo-latin-wdth-normal.woff2) format('woff2'); }

/* Metric-matched fallbacks keep the layout steady while the web fonts load */
@font-face { font-family: 'Instrument Serif Fallback'; src: local('Times New Roman'), local('Georgia'); size-adjust: 88%; ascent-override: 98%; }
@font-face { font-family: 'Manrope Fallback'; src: local('Arial'), local('Helvetica'); size-adjust: 104%; ascent-override: 98%; }

:root {
  --font-display: 'Instrument Serif', 'Instrument Serif Fallback', 'Times New Roman', serif;
  --font-brand: 'Archivo', 'Arial Black', Arial, sans-serif; /* LEAP lockup only — never for text */
  --font-body: 'Manrope', 'Manrope Fallback', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  --tracking-hero: -0.035em;
  --tracking-display: -0.02em;
  --tracking-body: 0;
  --tracking-ui: 0.01em;
  --tracking-meta: 0.12em;

  /* Fluid scale (≈ 1.25 on phones, ≈ 1.333 on desktop) */
  --step-hero: clamp(4.2rem, 13vw, 11rem);
  --step-h2: clamp(2.5rem, 5.4vw, 4.75rem);
  --step-h3: clamp(1.5rem, 2.3vw, 1.95rem);
  --step-lead: clamp(1.35rem, 2.4vw, 2rem);
  --step-body: 1.0625rem;
  --step-ui: 0.95rem;
  --step-small: 0.875rem;
  --step-meta: 0.72rem;

  --leading-tight: 0.95;
  --leading-heading: 1.05;
  --leading-body: 1.72;
}

/* ---------- 4. body copy ---------- */
body { font-family: var(--font-body); font-size: var(--step-body); line-height: var(--leading-body); font-weight: var(--weight-regular); letter-spacing: var(--tracking-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: 'kern'; }
.prose p, .faq-item p, .launch-sub, .register-intro p, .hero-headline { font-family: var(--font-body); font-weight: var(--weight-regular); }
.prose p { font-size: 1.0625rem; line-height: var(--leading-body); max-width: 62ch; }
em, i { font-style: italic; }
.prose em { font-family: var(--font-display); font-size: 1.12em; letter-spacing: 0; }

/* ---------- wordmark (brand lockup, as on the cover) ---------- */
.wordmark, .footer-mark { font-family: var(--font-brand); }
.wm-small { font-family: var(--font-brand); font-weight: 700; font-stretch: 85%; }
.wm-big { font-family: var(--font-brand); font-weight: 900; font-stretch: 115%; }

/* ---------- 5. navigation ---------- */
.topbar nav, .st-links a { font: var(--weight-medium) var(--step-ui) var(--font-body); letter-spacing: var(--tracking-ui); }

/* ---------- 6. buttons ---------- */
.btn { font: var(--weight-semibold) 0.98rem/1.1 var(--font-body); letter-spacing: var(--tracking-ui); }
.btn-lg { font-size: 1.05rem; }
.linkish { font-family: var(--font-body); }

/* ---------- 1. hero: the cover's LEAP lockup, with editorial type around it ---------- */
.tag { font-family: var(--font-brand); font-weight: 800; font-stretch: 100%; }
.leap { font-family: var(--font-brand); font-weight: 900; font-stretch: 112%; }
.hero-sub { font: italic 400 var(--step-lead)/1.2 var(--font-display); letter-spacing: -0.005em; }
.hero-author { font: var(--weight-medium) 0.95rem/1.5 var(--font-body); letter-spacing: .02em; }
.hero-author strong { font: italic 400 1.35rem var(--font-display); color: var(--mustard); text-transform: none; letter-spacing: 0; }
.hero-headline { font-size: 1.05rem; line-height: 1.65; }
.hero-when { font: var(--weight-medium) var(--step-small)/1.5 var(--font-body); letter-spacing: var(--tracking-ui); }

/* ---------- 2. section headings ---------- */
.h-display { font-family: var(--font-display); font-weight: 400; font-size: var(--step-h2); line-height: var(--leading-heading); letter-spacing: var(--tracking-display); font-stretch: normal; text-wrap: balance; }
.h-display em { color: var(--burgundy); }
.h-light em { color: var(--mustard); }

/* ---------- 3. subheadings ---------- */
.programme h3, .milestones h3, .gemcard h3, .know h3, .ticketcard h3, .updates-title, .update h4, .reg-state h3, .done-title, .faq-item summary {
  font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; font-stretch: normal; }
.programme h3 { font-size: 1.7rem; line-height: 1.3; }
.milestones h3 { font-size: 1.65rem; line-height: 1.15; }
.gemcard h3, .ticketcard h3, .know h3 { font-size: 1.75rem; line-height: 1.15; }
.updates-title { font-size: 1.9rem; }
.update h4 { font-size: 1.45rem; line-height: 1.15; }
.reg-state h3 { font-size: 2rem; line-height: 1.1; }
.done-title { font-size: clamp(2rem, 4vw, 2.7rem); line-height: 1.05; }
.faq-item summary { font-size: clamp(1.35rem, 2vw, 1.6rem); line-height: 1.25; }

/* ---------- 7. captions and metadata ---------- */
.band-facts dt, .done-ids dt, .roles dt, .milestones time, .update-meta, .credit, .chapters, .hint, .fine, .countdown small, .veil-note {
  font-family: var(--font-body); font-stretch: normal; }
.band-facts dt, .done-ids dt { font-size: var(--step-meta); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-meta); text-transform: uppercase; opacity: .8; }
.roles dt { font-size: var(--step-small); font-weight: var(--weight-medium); }
.milestones time { font-size: var(--step-meta); font-weight: var(--weight-bold); letter-spacing: var(--tracking-meta); text-transform: uppercase; }
.update-meta { font-size: 0.78rem; font-weight: var(--weight-semibold); letter-spacing: .04em; }
.credit, .fine, .hint { font-size: 0.82rem; font-weight: var(--weight-medium); }
.countdown small { font-size: var(--step-meta); font-weight: var(--weight-semibold); letter-spacing: .08em; text-transform: uppercase; }
.veil-note { font-size: var(--step-small); font-weight: var(--weight-semibold); }
.chapters { font-size: var(--step-small); font-weight: var(--weight-medium); }
.chapters strong { font: 400 3rem/1 var(--font-display); vertical-align: -.2em; }

/* ---------- 8. dates and event details ---------- */
.band-facts dd, .countdown span, .programme time, .done-ids dd, .roles dd {
  font-family: var(--font-display); font-weight: 400; font-stretch: normal; font-variant-numeric: lining-nums tabular-nums; }
.band-facts dd { font-size: clamp(1.5rem, 2.2vw, 1.85rem); line-height: 1.1; letter-spacing: -0.01em; }
.band-facts dd small.band-addr { font-family: var(--font-body); }
.countdown span { font-size: 2.4rem; line-height: 1; }
.programme time { font-size: 1.6rem; line-height: 1.4; }
.done-ids dd { font-size: 1.6rem; letter-spacing: .01em; }
.roles dd { font-size: 1.45rem; line-height: 1.15; }
.roles dd em { font-style: italic; }

/* ---------- interface elements ---------- */
.sign { font: var(--weight-semibold) 0.92rem/1.2 var(--font-body); letter-spacing: var(--tracking-ui); font-stretch: normal; }
.path-note { font: italic 400 1.2rem/1.3 var(--font-display); }
.gems li { font: var(--weight-semibold) 0.9rem var(--font-body); letter-spacing: var(--tracking-ui); font-stretch: normal; }
.field label, .field legend { font: var(--weight-semibold) 0.95rem var(--font-body); }
.field input, .manual-row input, .g-tools input, .g-tools select { font-family: var(--font-body) !important; }
.err, .form-msg { font-family: var(--font-body); font-weight: var(--weight-semibold); }
.reg-points li, .reg-state, .footer-cols, .hero-when { font-family: var(--font-body); }
.reg-points li { font-size: 0.98rem; font-weight: var(--weight-medium); }
.done-kicker { font: var(--weight-semibold) var(--step-meta) var(--font-body); letter-spacing: var(--tracking-meta); text-transform: uppercase; }
.author-full { font: italic 400 1.5rem var(--font-display); }

/* pull quote and tagline: the cinematic moments */
.pull p { font: 400 clamp(2.6rem, 7vw, 6.4rem)/1 var(--font-display); letter-spacing: var(--tracking-display); text-transform: none; color: var(--bone); font-stretch: normal; }
.pull p span { font-style: italic; color: var(--mustard); }
.g-text p { font: 400 clamp(2.2rem, 4vw, 3.4rem)/1.02 var(--font-display); text-transform: none; letter-spacing: -0.015em; font-stretch: normal; color: var(--bone); }
.g-text p em { color: var(--mustard); }

/* ---------- staff pages ---------- */
body.staff { font-family: var(--font-body); }
.login-card h1, .ov-head h1, .dlg h2, .result h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.015em; font-stretch: normal; }
.login-card h1 { font-size: 2.8rem; }
.ov-head h1 { font-size: 2.6rem; }
.dlg h2 { font-size: 2.2rem; }
.result h2 { font-size: clamp(2.6rem, 7vw, 3.6rem); line-height: 1; }
.result dd.r-name { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 6vw, 2.8rem); }
.result dd { font-family: var(--font-body); font-weight: var(--weight-bold); font-variant-numeric: lining-nums tabular-nums; }
.tile b { font-family: var(--font-display); font-weight: 400; font-size: 3rem; font-stretch: normal; }
.st-brand { font: 400 1.45rem var(--font-display); font-stretch: normal; }
.panel-card h2, .manual h2, .recent-title { font-family: var(--font-body); font-weight: var(--weight-bold); }
.ci-count strong { font: 400 2rem var(--font-display); }
.tk-wrap h1 { font-family: var(--font-display) !important; font-weight: 400 !important; letter-spacing: -0.02em; font-stretch: normal !important; }
.tk-panel h2 { font-family: var(--font-display); font-weight: 400; font-size: 2rem; }
.pill { font-family: var(--font-body); }

/* minimum readable sizes on phones */
@media (max-width: 480px) {
  :root { --step-body: 1rem; }
  .band-facts dt, .done-ids dt, .milestones time, .countdown small { font-size: 0.7rem; }
}

/* programme: wider time column for the serif figures */
.programme li { grid-template-columns: 4.4rem 1fr; }
.programme::before { left: 5.2rem; }
.programme li::after { left: calc(5.2rem - 5px); top: 1.2rem; }
.programme li.key::after { left: calc(5.2rem - 7px); top: 1.1rem; }
.programme .no-time { display: block; }
