/* ── Archivo, self-hosted: no external requests, no cookies, no consent question ── */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/archivo-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/archivo-500.woff2') format('woff2');
}
/* the real italic — without it the browser fakes one by slanting the
   upright, which is visibly wrong in a geometric sans */
@font-face {
  font-family: 'Archivo';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/archivo-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/archivo-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/archivo-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/archivo-800.woff2') format('woff2');
}

/* Subversive Films — one stylesheet, two pages.
   Colours are the logo's own, plus grounds derived from them. */

:root {
  /* The mark is two colours. The site uses the same two and nothing else. */
  --blue:      #2E6BD6;   /* logo · outer rule */
  --gold:      #D8C48C;   /* logo · inner rule and serpent */

  /* Grounds stay cool — #0D111A is the logo's own ground colour. */
  --ground:    #0D111A;
  --panel:     #141B28;

  /* Rules and the text ramp carry the gold's hue (92°) at low chroma,
     so they read as warm greys rather than as colour. Each one holds
     the L* of the cool value it replaced, so every contrast ratio on
     the page is unchanged to within 0.02. */
  --line:      #2D2A23;
  --line-2:    #48443B;

  --text:      #F2EFE7;   /* already at hue 95° — unchanged */
  --body:      #D0CCC3;   /* L* 82.3 */
  --muted:     #99958C;   /* L* 61.9 */
  --dim:       #837F76;   /* L* 53.2 */

  --pad:       clamp(24px, 5vw, 64px);
  /* Past 1450 the page stops widening: the padding takes the surplus
     so the content column settles at 1320 with equal margins. Every
     band on every page -- masthead, each section, the join panel, the
     footer -- is padded by this one value, so they all share a left
     and a right edge. 100% not 100vw: 100vw counts the scrollbar and
     would push the right edge off by its width. */
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: Archivo, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); }
a:hover { color: var(--text); }

/* Links inside body copy. NOT the global blue: #2E6BD6 on the ground
   measures 3.77:1, below the 4.5:1 AA floor at this size. The link
   text stays at --text (16.43:1) and the blue rides in the underline,
   where legibility does not depend on it. */
.lnk {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.lnk:hover { text-decoration-color: var(--text); }

a:focus-visible,
button:focus-visible,
input:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

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

/* ── type ───────────────────────────────────────────── */
.display {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 0.98;
  margin: 0;
}
.kicker {
  margin: 0 0 32px;
  /* section labels sit at 19px — below the 23px card headings so they
     read as labels, not as competing headings. The sub-label inside the
     "What this is not" box keeps its own inline 12px. */
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  /* NOT the mark's #2E6BD6. At 19px/600 that measures 3.77:1 on the
     ground, under the 4.5:1 AA floor, and 600 is not bold enough to
     qualify as large text. #4A84E8 is 5.18:1 — the same lighter tint
     the email signature uses, for the same reason. */
  color: #4A84E8;
}
.kicker--quiet { color: var(--muted); }
.lede { max-width: 620px; font-size: 19px; line-height: 1.62; color: var(--body); }
h2 { font-weight: 600; line-height: 1.22; margin: 0; }
h3 { font-weight: 600; font-size: 20px; margin: 0 0 10px; }
p  { margin: 0; }

/* ── layout ─────────────────────────────────────────── */
@media (min-width: 1450px) { :root { --pad: calc((100% - 1320px) / 2); } }

section { padding: 8vh var(--pad); border-top: 1px solid var(--line); }
section:first-of-type { border-top: 0; }

/* ── hero ───────────────────────────────────────────── */
.hero { padding-top: 11vh; padding-bottom: 9vh; }
/* one line now, so it can carry more size than the old two-sentence block */
.hero .display { font-size: clamp(30px, 4.3vw, 58px); line-height: 1.04; text-wrap: balance; }

/* the deck — the second sentence, subordinate to the headline but still
   in the display register. Sized off the headline so the two scale together. */
.deck {
  margin-top: 18px;
  /* 28ch is the threshold where this breaks at the comma instead of
     orphaning "you" — 30 leaves margin for font-metric drift */
  max-width: 30ch;
  font-weight: 600;
  font-size: clamp(17px, 2.1vw, 28px);
  line-height: 1.18;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  /* same value as the headline — the two are one unit. Text steps DOWN
     the ramp for halation, which is a function of small size and long
     runs, not of importance. Two lines of 28px display type is neither. */
  color: var(--text);
  text-wrap: balance;
}
.lede--1 { margin-top: 34px; }

/* ── header ─────────────────────────────────────────── */
.masthead {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 20px;
  padding: 22px var(--pad);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand img { width: 36px; height: 34px; }
/* Type set WITH the mark is gold — it is part of a lockup, not page
   copy. Page copy uses the neutral ramp. See the footer tagline. */
.brand span {
  font-weight: 800; font-size: 19px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold);
}
.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-size: 14px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--text); text-decoration: none;
}
.nav a[aria-current] {
  color: var(--text); font-weight: 600;
  border-bottom: 2px solid var(--blue); padding-bottom: 2px;
}

/* ── buttons ────────────────────────────────────────── */
/* The label is WHITE, not --ground. Dark on #2E6BD6 measures 3.77:1,
   under the 4.5:1 AA floor at 15px; white measures 5.01:1. This is the
   most important control on the site, so it does not get to fail. */
.btn {
  display: inline-block; background: var(--blue); color: #FFFFFF;
  font-size: 15px; font-weight: 600; letter-spacing: 0.04em;
  text-decoration: none; padding: 17px 34px; border: 0; cursor: pointer;
  min-height: 44px; font-family: inherit;
}
.btn:hover { background: #4A84E4; color: #FFFFFF; }
/* .nav a sets colour at higher specificity than .btn, so restate it here */
.nav a.btn { color: #FFFFFF; font-weight: 600; }
.nav a.btn:hover { color: var(--ground); }

/* The section-level 1200px cap was removed so the page uses the screen;
   every text column is therefore capped individually instead. Measured
   at 1600 without this: 111 characters a line. */

/* Wide viewports: the signup moves beside the headline instead of
   below it, which is what fills the right side of the page. Below
   1200 it stacks as before. */
@media (min-width: 1200px) {
  .hero {
    display: grid;
    /* 440 + 80 leaves ~800 for the headline at the 1320 cap, which is
       what keeps the display type to three lines. The old 480/90 left
       750 and pushed it to five. */
    grid-template-columns: minmax(0, 1fr) 440px;
    column-gap: 80px;
    align-items: start;
  }
  .hero > h1, .hero > .deck, .hero > .lede { grid-column: 1; }
  .hero > .hero-join {
    grid-column: 2; grid-row: 1 / span 3;
    align-self: center; max-width: 440px;
  }
  .hero-join .signup--hero { margin-top: 0; }
  .hero-join .signup-note { margin-top: 16px; }
  .hero-join .signup--hero div { flex: 1 1 100%; }
}

/* About: the essay holds a 600px measure and the rail takes whatever
   is left, so the page reaches the right edge instead of trailing off.
   Stacks below 1100 where there is no room for two columns. */
.bio { display: grid; grid-template-columns: minmax(0, 620px); }
.bio-text p { margin: 0 0 26px; font-size: 17px; line-height: 1.75; color: var(--body); }
@media (min-width: 1250px) { .bio-text p { font-size: 19px; line-height: 1.72; } }
.bio-text p.last { margin-bottom: 30px; }
/* 440 max: the source is a 400px broadcast capture and upscaling it
   past about 1.1x shows. */
.bio-portrait { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 0 34px; }

.rail-risk { margin-top: 34px; border: 1px solid var(--line); padding: 28px 30px; }
.rail-risk p { margin: 0; font-size: 16px; line-height: 1.68; color: var(--body); }

.rail-note { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
/* Held to 350 so each note wraps to three lines instead of two. That
   lengthens the rail, which is what keeps the right-hand column alive
   further down the page. */


@media (min-width: 1250px) {
  /* Three fixed quantities, so the block cannot sprawl:
       rail  560px — how far the 400px portrait enlarges before the face
                     goes soft (1.4x; 1.8x smears the eyes and the chyron)
       gutter 80px — PHJ rejected anything near an inch between columns
       total 1320px — set by the page padding above; 680 of essay
                     keeps the measure at 76 characters
     Past 1380 of usable width the block stops growing and the surplus
     becomes equal margins, which reads as a margin rather than as a
     ragged right edge. Below 1250 the columns stack: the essay would
     otherwise fall under 500px and the measure collapses. */
  /* Two rows so the portrait can sit at the head of the right column
     while the essay spans both. On a phone .bio is a plain block and
     the portrait's DOM position puts it directly under the name --
     which is the whole reason it is a child of .bio and not of the
     rail. Before this it came after all eight essay paragraphs. */
  .bio { grid-template-columns: minmax(0, 1fr) 560px;
         grid-template-rows: auto 1fr;
         column-gap: 80px; align-items: stretch; }
  .bio-portrait { grid-column: 2; grid-row: 1; margin-bottom: 30px; }
  .bio-text { grid-column: 1; grid-row: 1 / span 2; }
  .bio-rail { grid-column: 2; grid-row: 2; }
  /* Capped so that pulling the rail outward widens the GUTTER and not
     the measure: without it the line runs to 87 characters at 1600 and
     past 100 at 1920. */
  .bio-text { max-width: 700px; }
  /* Flex column so the risk box can sit at the foot of the rail: the
     auto margin drops it level with the essay's last line. */
  .bio-rail { max-width: none; display: flex; flex-direction: column;
               /* cancels the trailing margin on the essay's last
                  paragraph, so the risk box sits level with it */
               padding-bottom: 26px; }
  .rail-risk { margin-top: auto; }
}
/* Large screens: the type grows rather than the line getting longer.
   19px over a 740px column measures about 75 characters, the same
   reading line as 17px over 620 — just bigger, which is what a 1600px
   monitor should give you. */
@media (max-width: 1249px) {
  .bio-rail { margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line); }
}

/* ── grids ──────────────────────────────────────────── */
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px; }
/* Measured: three columns hold up to about 960px. Below that they
   squeeze hard — 221px and 27 characters a line at 900, 183px and 22
   at 768, which is unreadable. Collapse to one column there instead
   of waiting for the 760px phone breakpoint.
   Once stacked, the column must be capped or it swings the other way:
   full width at 700px measured 80 characters a line. */
@media (max-width: 960px) {
  .cols-3 { grid-template-columns: 1fr; gap: 44px; }
  /* 530px, not 600: at 600 the 16px copy measured 80 characters a
     line. This lands it near 70. */
  .cols-3 > div { max-width: 530px; }
  .numeral, .point-mark { margin-bottom: 20px; }
}
/* the serpent, cropped out of the triangle, marks each principle.
   58px clears the ~30px floor below which the segments stop resolving. */
.numeral { display: block; width: 35px; height: 58px; margin: 0 0 14px; }

/* How it works uses the mark's broken triangle in blue, where
   Principles uses the gold serpent -- in the logo the triangle is blue
   and the serpent gold. Set in a 58px box so the headings in the two
   sections sit on the same rhythm. */
.point-mark {
  display: block; width: 35px; height: 58px; margin: 0 0 14px;
  background: url('subversive-triangle-blue.svg') no-repeat left center / 35px auto;
}

/* the caution, now full width beneath the three columns */
.risk-band { margin-top: 64px;
             border: 1px solid var(--line); padding: clamp(20px, 3vw, 32px) clamp(20px, 3vw, 36px); }
/* the border runs the full measure so the row does not end short of the
   three columns above it; the text is capped at 560, measured -- 680
   put the longest rendered line at 93 characters, counted per line
   rather than by dividing, which understates a short last line */
.risk-band p { margin: 0; max-width: 560px; font-size: 16px; line-height: 1.68; color: var(--body); }

/* ── join ───────────────────────────────────────────── */
.join { background: var(--panel); padding: 10vh var(--pad); }
.join img.mark { width: 86px; height: 82px; margin-bottom: 30px; }

.signup { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.signup div { flex: 999 1 320px; min-width: 0; }
.signup label {
  display: block; margin-bottom: 10px; font-size: 13px; font-weight: 600;
  /* --text, the same white as the Building Culture headline (PHJ, 24 Nov).
     16.43:1 on the ground, so it clears AA at this size with room spare. */
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text);
}
.signup input {
  width: 100%; background: var(--ground); border: 1px solid var(--line-2);
  color: var(--text); font-family: inherit; font-size: 16px; padding: 16px 18px;
}
/* Lifted from --dim, but NOT to --text. The typed value is --text, so a
   white placeholder would be indistinguishable from a filled field and
   people cannot tell whether they have entered anything. --body is a
   clear lift that keeps the two apart. 11.78:1 on the ground. */
.signup input::placeholder { color: var(--body); }

/* hero copy of the form — constrained so it does not span the full page width */
.signup--hero { margin-top: 44px; max-width: 640px; }
.signup-note {
  /* 520px: at 640 this ran 80 characters a line once the privacy link
     was added to the end of it. */
  margin-top: 16px; max-width: 520px;
  /* --text, matching the label and the headline: PHJ wants the whole
     signup to carry weight rather than recede (24 Nov). */
  font-size: 14px; line-height: 1.6; color: var(--text);
}
.signup-note a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--blue); }
.signup-note a:hover { border-bottom-color: var(--text); }

/* ── footnotes ──────────────────────────────────────── */
/* The marker is kept out of the fold's way: the note itself lives at the
   bottom of the page, so nothing is pushed below the signup field. */
.fn {
  font-size: 0.62em; font-weight: 700; line-height: 0;
  vertical-align: super; margin-left: 2px;
  color: var(--gold); text-decoration: none;
}
.fn:hover { color: var(--text); }
.notes { padding-top: 6vh; padding-bottom: 6vh; }
.notes ol { margin: 0; padding-left: 1.3em; max-width: 470px; }
.notes li {
  font-size: 14px; line-height: 1.7; color: var(--dim);
}
.notes li::marker { color: var(--gold); font-weight: 700; }
.fn-back { margin-left: 6px; color: var(--muted); text-decoration: none; }
.fn-back:hover { color: var(--text); }

/* ── skip link ──────────────────────────────────────── */
/* Off-screen until focused by the keyboard, then it drops into the
   top-left so a keyboard or screen-reader user can jump the masthead. */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--blue); color: #FFFFFF;
  padding: 12px 20px; font-size: 15px; font-weight: 600;
  text-decoration: none;
}
.skip:focus { left: 0; color: #FFFFFF; }

/* ── long-form text pages (privacy) ─────────────────── */
/* 680px holds 17px body copy to about 70 characters a line, inside the
   45-75 band. The rest of the site runs wider because it is short
   blocks; a page people actually read straight through cannot. */
/* 600px, not 680: measured at 680 the 17px copy ran 87-93 characters a
   line, well past the 45-75 band. 600 brings it to about 72. */
.prose { max-width: 600px; }
.prose h2 {
  margin: 44px 0 14px;
  font-size: 20px; font-weight: 600; color: var(--text);
}
.prose h2:first-of-type { margin-top: 36px; }
.prose p { margin: 0 0 16px; font-size: 17px; line-height: 1.68; color: var(--body); }
.prose p:last-child { margin-bottom: 0; }

/* ── contact ────────────────────────────────────────── */
/* The address is page copy, so it takes the neutral ramp, not gold.
   Blue appears only as the underline: #2E6BD6 is 3.77:1 on the ground
   and cannot carry text at any size. Same construction as .lnk,
   scaled up because this one is meant to be found. */
/* 22px, just above the 20px card headings and below the 19px kicker's
   tracked weight. At 32px it was nearly double the section label and
   the hierarchy read upside down. */
.contact-mail {
  display: inline-block;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.008em;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.contact-mail:hover { text-decoration-color: var(--text); }

/* ── footer ─────────────────────────────────────────── */
.foot {
  border-top: 1px solid var(--line);
  padding: 44px var(--pad) 56px;
  display: flex; flex-wrap: wrap; gap: 28px;
  justify-content: space-between; align-items: center;
}
.foot .lockup { display: flex; align-items: center; gap: 14px; }
.foot .lockup img { width: 30px; height: 29px; }
/* mark + tagline + URL is the lockup, so all three are gold —
   same as lockups/final in the brand folder */
.foot .tagline { font-size: 13px; font-weight: 600; color: var(--gold); }
.foot .url {
  margin-top: 6px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.11em; text-transform: uppercase; color: var(--gold);
  text-decoration: none;
}
.foot .meta { font-size: 14px; color: var(--dim); }
.foot .meta a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line-2); }

/* ── phone ──────────────────────────────────────────── */
@media (max-width: 760px) {
  :root { --pad: 24px; }
  /* .cols-3 already collapsed at 960px; the serpent spacing comes
     with it there too */
  .lede { font-size: 17px; }
  /* keep the masthead on ONE row — wrapping cost ~270px of the fold */
  .masthead { padding: 14px var(--pad); flex-wrap: nowrap; gap: 12px; }
  .brand { gap: 9px; min-width: 0; }
  .brand img { width: 29px; height: 28px; }
  .brand span { font-size: 15px; letter-spacing: 0.1em; }
  .nav { gap: 18px; flex: 0 0 auto; }
  .foot { flex-direction: column; align-items: flex-start; }

  /* "Subvert the mainstream culture" needs 284px at 13px/0.1em and a
     320px phone only offers 272. Tightened just below 360px so the
     label never wraps to two lines above the field. */
  @media (max-width: 359px) {
    .signup--hero label { font-size: 12px; letter-spacing: 0.08em; }
  }

  /* pull the hero field up toward the fold — phones are most of the traffic */
  .hero { padding-top: 4vh; padding-bottom: 7vh; }
  .hero .display { font-size: clamp(21px, 5.6vw, 28px); line-height: 1.08; }
  .lede--1 { margin-top: 22px; }
  .signup--hero { margin-top: 26px; }
  .signup--hero button { width: 100%; }
}

/* Small phones: the bordered risk boxes keep 36px of padding on each
   side, which on a 360px screen leaves the text only 238px. */
@media (max-width: 480px) {
  .rail-risk { padding: 22px 20px; }
}

/* About only: the bio pulls its right edge out to a 64px margin, closer
   to the screen edge than the masthead and footer above and below it.
   PHJ chose this over keeping one shared edge (24 Nov). Scoped to the
   section rather than written with 100vw, because 100vw counts the
   scrollbar and would overhang by its width in a real browser. */
@media (min-width: 1450px) {
  .bio-sec { padding-right: 64px; }
}

/* Touch targets. The nav "About" link measured 41x22 on a phone -- it
   is the only navigation on the site, and 22px is under the 24px floor
   and far under the 44px Apple recommends. The negative margins mean
   the hit area grows without the masthead or footer shifting by a
   pixel. Same for the footer URL, which measured 12px tall. */
.nav a { padding: 12px 8px; margin: -12px -8px; }
.foot .url { display: inline-block; padding: 14px 6px; margin: -14px -6px; }
.brand { padding: 6px 0; margin: -6px 0; }

/* Contact: the mail block on the left, a second signup level with it on
   the right, which is what fills the right half of that band. Below
   1200 it stacks, same breakpoint the hero uses. */
.contact-grid { display: grid; gap: 48px; }
.contact-join .signup-note { margin-top: 16px; }
@media (min-width: 1200px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr) 440px;
                  column-gap: 80px; align-items: start; }
  .contact-join { max-width: 440px; }
}
.signup--block div { flex: 1 1 100%; }
