/* ═══════════════════════════════════════════════════════════════════════════
   AUTEUR STUDIO — DESIGN SYSTEM
   Codified from the homepage, 2026-08-24. The homepage keeps its own inline
   sheet (3,000 lines of accumulated overrides, approved as it stands); this
   file is the same system written cleanly, and every other page builds on it.

   THE RULES, in the order they were decided:

   1. LIGHT THROUGHOUT. White ground, not paper, not cream.
   2. BLUE NEVER BLACK. The darkest value in the system is #0C1A2E. Text may go
      almost black — so far into the dark blue that it is nearly indistinguish-
      able — but it stays blue. No neutral greys: every grey leans blue.
   3. NO GOLD. It was the accent in 49 places and is now gone entirely,
      including from pseudo-elements, where colour sweeps cannot see it.
   4. SHARP EDGES. border-radius: 0 everywhere. The one exception is the Ask
      Auteur orb, which is a round mark.
   5. ALTERNATING BANDS. Sections alternate #0C1A2E and #FFFFFF down the page.
      Never two of the same in a row; never a thin strip of one trapped between
      two of the other.
   6. COLOUR MEANS SOMETHING. Accent marks structure — labels, rules, emphasis.
      It is never applied for texture, and never per-item as a palette.
   7. LEGIBILITY IS MEASURED, NOT EYEBALLED. Body text clears 4.5:1 against the
      ground actually painted behind it; large display type clears 3:1. Check
      gradients by eye — reading through them to the colour underneath is how
      an unreadable section once passed a sweep.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── TOKENS ──────────────────────────────────────────────────────────────── */
:root {
  /* ground */
  --bg:        #F7F9FC;  /* paper, not pure white: a ~2% blue cast so the
                            ground sits in the same family as the blue-leaning
                            ink, rules and greys above it */
  --band:      #0C1A2E;   /* the dark band, and the darkest value in the system */

  /* ink on white */
  --ink:       #0C1A2E;   /* headings and primary text — near-black, still blue */
  --ink-2:     #33455E;   /* body and secondary text                    9.0:1   */
  --ink-3:     #58697F;   /* captions, meta, small labels               5.6:1   */
  --rule:      #D3DAE4;   /* hairlines                                          */

  /* ink on the band */
  --band-head: #EAF2FC;   /* headings and <strong>                     15.5:1   */
  --band-ink:  #A9C6EA;   /* labels, marks, emphasis                    9.9:1   */
  --band-dim:  #8FB0D4;   /* body copy                                  7.8:1   */
  --band-rule: rgba(159,192,230,0.28);

  /* the one accent */
  --accent:    #2E4A7D;
  --accent-lit:#3C5F9C;   /* hover only */

  /* measure */
  --gutter:    7.5rem;
  --measure:   65ch;
}

@media (max-width: 900px) { :root { --gutter: 2rem; } }

/* ── RESET & BASE ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 116px; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink-2);
  font-family: 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }

/* Rule 4: sharp edges. Stated once, at the top, so no component has to
   remember it — and so the single exception has to be declared out loud. */
* { border-radius: 0; }
.is-round { border-radius: 50% !important; }

::selection { background: var(--accent); color: #FFFFFF; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.band :focus-visible { outline-color: var(--band-ink); }

/* ── TYPE ────────────────────────────────────────────────────────────────── */
/* Cormorant Garamond carries the display voice; Syne does the work. The pair
   is the studio's, not a default — keep both, and keep the roles separate. */
h1, h2, h3, .display {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
h1, .h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); }
h2, .h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.1; }
h3, .h3 { font-size: clamp(1.3rem, 1.9vw, 1.7rem); line-height: 1.2; }

h1 em, h2 em, h3 em, .display em { font-style: italic; color: var(--accent); }

p { max-width: var(--measure); }
p + p { margin-top: 1.15rem; }

strong, b { font-weight: 700; color: var(--ink); }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-lit); }

/* the small uppercase label that opens a section, with its rule above */
.label {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2.75rem;
}
.label::before {
  content: ''; display: block; width: 34px; height: 2px;
  background: var(--accent); margin-bottom: 0.95rem;
}

.eyebrow {
  font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-3);
}

.lede { font-size: 1.15rem; line-height: 1.6; color: var(--ink-2); }
.caption { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }

/* Rule 6. The plate is a device, not decoration: where a headline IS the claim
   of its section it sits in a rectangle, reversed out. Applied deliberately —
   never by default, and never more than once or twice on a page. */
.plated {
  display: inline-block;
  background: var(--band); color: #FFFFFF;
  padding: 0.34em 0.62em 0.4em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
  line-height: 1.28;
}
.plated em { color: #9FC0E6; font-style: italic; }

/* ── LAYOUT ──────────────────────────────────────────────────────────────── */
section, .section {
  padding: 5.5rem var(--gutter);
  position: relative;
}
.section-tight { padding-top: 3.25rem; padding-bottom: 3.25rem; }

.wrap { max-width: 1440px; margin: 0 auto; }

.grid-2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 4rem; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; }
@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 2.4rem; }
}

/* Wide content scrolls inside itself; the page body never scrolls sideways. */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── RULE 5: THE BANDS ───────────────────────────────────────────────────── */
.band { background: var(--band); color: var(--band-dim); }

.band h1, .band h2, .band h3, .band .display { color: var(--band-head); }
.band h1 em, .band h2 em, .band h3 em, .band .display em { color: var(--band-ink); }
.band p, .band li, .band .lede { color: var(--band-dim); }
.band strong, .band b { color: var(--band-head); }
.band a { color: var(--band-ink); }
.band a:hover { color: #FFFFFF; }
.band .label, .band .eyebrow, .band .caption { color: var(--band-ink); }
.band .label::before { background: var(--band-ink); }
.band hr, .band .rule { border-color: var(--band-rule); }
.band .plated { background: #FFFFFF; color: var(--band); }
.band .plated em { color: var(--accent); }

hr, .rule { border: 0; border-top: 1px solid var(--rule); margin: 2.4rem 0; }

/* ── CONTROLS ────────────────────────────────────────────────────────────── */
.btn, .btn-quiet {
  display: inline-block;
  font-family: 'Syne', sans-serif; font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.19em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; border: 0;
}
.btn {
  color: #FFFFFF; background: var(--accent);
  padding: 0.9rem 1.7rem; transition: background 0.25s ease;
}
.btn:hover { background: var(--accent-lit); color: #FFFFFF; }
.btn-quiet {
  color: var(--ink); background: none;
  border-bottom: 1px solid rgba(12,26,46,0.3); padding-bottom: 0.28rem;
  transition: border-color 0.25s ease;
}
.btn-quiet:hover { border-color: var(--ink); color: var(--ink); }

.band .btn { background: var(--band-ink); color: var(--band); }
.band .btn:hover { background: #FFFFFF; color: var(--band); }
.band .btn-quiet { color: var(--band-head); border-bottom-color: rgba(169,198,234,0.45); }
.band .btn-quiet:hover { border-color: var(--band-ink); color: #FFFFFF; }

.actions { display: flex; flex-wrap: wrap; gap: 1.6rem; align-items: center; }

/* ── NAV ─────────────────────────────────────────────────────────────────── */
/* Permanently the band blue. It was adaptive and kept getting lost against
   whatever it happened to be over; a fixed ground is one less thing to fight. */
nav.site {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  gap: 2rem;
  padding: 1.4rem var(--gutter);
  background: var(--band);
}
nav.site a { color: var(--band-ink); }
nav.site a:hover { color: #FFFFFF; }
nav.site .nav-logo img { height: 30px; width: auto; display: block; filter: none; }
nav.site .nav-links { display: flex; gap: 2.2rem; align-items: center; list-style: none; }
/* Matched to the homepage's own nav typography 2026-08-27 — the two were
   drifting independently (0.72rem/500/0.14em here vs 0.85rem/400/0.12em
   there), which is what made the homepage nav and the subpage nav read as
   two different designs. */
nav.site .nav-links a {
  font-size: 0.85rem; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase;
}
body { padding-top: 76px; }   /* clears the fixed bar */

@media (max-width: 900px) {
  nav.site { padding: 1rem var(--gutter); }
  nav.site .nav-links { gap: 1.1rem; }
  nav.site .nav-links a { font-size: 0.62rem; letter-spacing: 0.1em; }
}

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
footer.site {
  padding: 2.4rem var(--gutter);
  border-top: 1px solid var(--rule);
  font-size: 0.78rem; color: var(--ink-3);
  display: flex; flex-wrap: wrap; gap: 1.4rem; justify-content: space-between;
}
footer.site a { color: var(--ink-3); border-bottom: 1px solid transparent; }
footer.site a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ── CARDS ───────────────────────────────────────────────────────────────── */
/* Seamless by default: no gaps, no borders. A 1px gap over a light ground
   reads as a white bar between the pictures, which is what it was doing. */
.cards { display: flex; gap: 0; }
.cards.scroll-x { scroll-snap-type: x mandatory; scrollbar-width: none; }
.cards.scroll-x::-webkit-scrollbar { display: none; }

.card {
  position: relative; overflow: hidden;
  flex: 0 0 30%; aspect-ratio: 9 / 16;
  background: #10233D; border: 0;
  padding: 2rem 1.6rem;
  display: flex; flex-direction: column;
  text-decoration: none; scroll-snap-align: start;
}
@media (max-width: 1200px) { .card { flex: 0 0 46%; } }
@media (max-width: 720px)  { .card { flex: 0 0 84%; aspect-ratio: 3 / 4; } }

/* Rest: a real dark-blue duotone, not a neutral grey under a blue tint —
   saturate(0) makes grey, and a translucent blue over grey stays grey. */
.card-media {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-size: cover; background-position: center;
  filter: grayscale(1) sepia(0.92) hue-rotate(178deg) saturate(2.4)
          brightness(0.60) contrast(1.10);
  transition: filter 0.45s ease, transform 0.75s ease;
}
.card-media::after { content: ''; position: absolute; inset: 0; background: rgba(12,26,46,0.34); }
.card > * { position: relative; z-index: 1; }

@media (hover: hover) {
  .card:hover .card-media { filter: none; transform: scale(1.02); }
  .card:hover .card-copy { opacity: 0; }
}
.card-copy { transition: opacity 0.35s ease; }
.card-cat   { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--band-ink); }
.card-title { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 300;
              font-size: 1.6rem; line-height: 1.16; color: var(--band-head); margin: 0.5rem 0 0.55rem; }
.card-desc  { font-size: 0.95rem; line-height: 1.5; color: #E4EDF8;
              display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot  { margin-top: auto; }
/* the whole card is the target, not just the button */
.card-foot::after { content: ''; position: absolute; inset: 0; z-index: 2; }
.card-tag {
  font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--band-ink); border: 1px solid rgba(159,192,230,0.22);
  background: rgba(159,192,230,0.04); padding: 0.5rem 0.9rem; display: inline-block;
}
.card:hover .card-tag { color: #FFFFFF; border-color: rgba(159,192,230,0.6); }

/* ── MEDIA PLATES ────────────────────────────────────────────────────────── */
/* Desaturated at rest, full colour on hover — the same treatment everywhere.
   Nothing is inverted in the colour state. */
.plate { position: relative; overflow: hidden; }
.plate video, .plate img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0) contrast(1.06);
  transition: filter 0.45s ease;
}
.plate:hover video, .plate:hover img { filter: none; }

/* ── MOTION ──────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
}

/* ── PRINT ───────────────────────────────────────────────────────────────── */
@media print {
  nav.site, .plate video { display: none; }
  .band { background: #FFFFFF; color: #000000; }
  .band h1, .band h2, .band h3, .band p { color: #000000; }
}

/* a trailing clause set by typography.js breaks as a unit, never mid-phrase */
.cap-tail { white-space: nowrap; }

/* ── THE ASK AUTEUR MARK ─────────────────────────────────────────────────── */
/* The one round object in a system of sharp edges — declared out loud, per
   Rule 4. A body of light with a hairline corona. Both live on pseudo-elements,
   which is where an earlier gold survived every sweep: getComputedStyle on an
   element never reports its ::before or ::after. */
/* Measured 2026-08-27: .nav-ask centers its content at the true geometric
   centre (it's its own flex container), while sibling text links sit lower
   within their box, since their line-height (1.65, inherited from body) is
   taller than their glyph and a font's leading isn't split evenly above and
   below the baseline.
   margin-top nudges it down rather than changing every nav link's
   line-height globally — but under align-items:center a one-sided margin
   only shows up as HALF its value (the flex line's free-space distribution
   absorbs the other half), so this is roughly 2x the measured gap, not the
   gap itself, and the exact value is font-size-dependent: 11px closed a
   5.5px gap at 0.72rem; once the nav font was matched to the homepage's
   0.85rem (below), the same 11px overshot to +1.4px and 8px is what
   actually measures flush (-0.1px). Verified against the rendered text
   position each time, not assumed — re-measure if the font size changes
   again. */
nav.site .nav-ask { display: inline-flex; align-items: center; gap: 0.7rem; margin-top: 8px; }
nav.site .nav-ask-orb {
  position: relative; width: 20px; height: 20px; flex: 0 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 37%, #FFFFFF 0%, #C9DDF5 42%, #9FC0E6 100%);
  box-shadow: 0 0 10px rgba(159,192,230,0.5);
}
nav.site .nav-ask-orb::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(201,221,245,0.55);
  box-shadow: 0 0 11px rgba(159,192,230,0.40);
}
nav.site .nav-ask:hover .nav-ask-orb { box-shadow: 0 0 18px rgba(159,192,230,0.8); }
nav.site .nav-lang { display: flex; gap: 0.45rem; align-items: center;
  font-size: 0.66rem; letter-spacing: 0.12em; color: var(--band-ink); }
nav.site .nav-lang .current { color: #FFFFFF; }
nav.site .nav-lang .sep { color: rgba(169,198,234,0.5); }

/* ── MOBILE NAVIGATION ──────────────────────────────────────────────────────
   The system had a nav but no way to open it on a phone: the links simply
   stayed in a row and ran off the right edge — 404px of them on a 375px
   screen, with "Ask Auteur" cut in half and "The Brief" wrapping under itself.
   The homepage and the language mirrors each carried their own toggle; the
   pages that take their nav from here had none, so it belongs here.

   A full-screen panel rather than a dropdown: at this size the menu IS the
   screen, and a panel that covers the page cannot be misread as part of it.
   The ground is the band blue at full strength — the 54% wash the homepage
   uses works there because a video sits behind it, but on a white page it
   leaves body copy legible through the menu. */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 120;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--band-head);
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.nav-toggle span:nth-child(1) { top: 2px; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 18px; }
/* Open, the three bars become a cross — the control says what it will do next. */
nav.open .nav-toggle span:nth-child(1) { top: 10px; transform: rotate(45deg); }
nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
nav.open .nav-toggle span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  nav.site { padding: 1.2rem var(--gutter); }
  nav.site .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: var(--band);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
    z-index: 110;
  }
  nav.site.open .nav-links { transform: translateY(0); opacity: 1; pointer-events: auto; }
  /* Tap targets, not desktop micro-caps: 0.62rem is 10px, which is a link you
     aim at rather than press. */
  nav.site .nav-links a { font-size: 1.15rem; letter-spacing: 0.12em; padding: 0.4rem 1rem; }
  nav.site .nav-lang { font-size: 0.9rem; gap: 0.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  nav.site .nav-links, .nav-toggle span { transition: none; }
}
