/* Decadent — email signup page
   Intentionally light-only: this is an art-directed landing page for a
   documentary channel, not a general-purpose UI. Warm paper rather than
   white, ink rather than black. There is no dark variant and no toggle —
   see CLAUDE.md.

   The typeface is Founders Grotesk (Klim Type Foundry), Light and Regular,
   converted from the licensed desktop files to woff2 and self-hosted in
   fonts/. Self-hosted, not linked from anyone else's domain: the page makes
   zero third-party requests, so no one but your own host learns who opened
   it. READ fonts/LICENCE.md BEFORE PUBLISHING THIS REPO — the font is
   commercial and must not be redistributed. */

@font-face {
  font-family: "Founders Grotesk";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/founders-grotesk-light.woff2") format("woff2");
}

@font-face {
  font-family: "Founders Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/founders-grotesk-regular.woff2") format("woff2");
}

/* Real Bold, not the browser's synthetic smear of Regular. */
@font-face {
  font-family: "Founders Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/founders-grotesk-bold.woff2") format("woff2");
}

:root {
  color-scheme: light;

  --bg: #f2efe9;
  --text: #16151a;
  --muted: #6a6459;
  --accent: #8a5a14;
  --line: rgba(22, 21, 26, 0.2);
  --box: #16151a;
  --box-hover: #33313b;
  /* 5.8:1 on paper. Chosen after trying quieter, browner reds — at the
     smaller wordmark size this one carries without shouting, which the muted
     versions didn't. Not #f04438: that was picked against a black block and
     only measures 3.3:1 here. */
  --red: #b3241a;

  /* Form labels. Near ink — they are the only reading on the page. */
  --label: #332f29;

  --face: "Founders Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
          "Helvetica Neue", "Hiragino Sans", "Yu Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

/* An explicit `display` on a type selector outranks the `hidden` attribute's
   own rule, which quietly leaves hidden elements on screen. This wins. */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--face);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;

  /* The page is short enough to sit in the middle of the screen. `safe`
     keeps the top reachable if the content ever outgrows the viewport. */
  display: grid;
  align-content: center;
  align-content: safe center;
}

/* Bottom padding deliberately exceeds the top: a block centred by measurement
   reads as sitting slightly low, so this lifts it to the optical centre. */
.wrap {
  width: 100%;
  max-width: 23rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 3.5rem) 16px clamp(4rem, 12vw, 6.5rem);
}

/* Present to assistive tech and search engines, absent from the design. */
/* Inherit the body's weight: as an h1 this would otherwise ask for Light,
   fetching a whole font file to render text that is never drawn. */
.sr-only {
  font: inherit;
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---- wordmark ---- */

/* Red word, nothing else: the one loud thing on a quiet page, and the only
   red on it. It has been a black block and a red word over an ink rule; both
   added weight the page didn't need. Small bold caps carry it on their own.

   Not a link, and not clickable — there is nowhere on this page to go. */
.wordmark {
  margin: 0 0 clamp(2.5rem, 9vw, 3.5rem);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--red);
}

/* ---- form ---- */

.field { margin-bottom: 1.9rem; }

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--label);
  margin-bottom: 0.5rem;
}

/* Darkened with the question, but kept a step behind it so it still reads as
   an aside rather than part of the sentence. */
label .opt { color: #5f5950; }

input[type="email"],
input[type="text"] {
  width: 100%;
  padding: 0.2rem 0 0.6rem;
  font-family: var(--face);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--text);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  appearance: none;
  transition: border-color 140ms ease;
}

input[type="email"]:focus,
input[type="text"]:focus { outline: none; border-bottom-color: var(--accent); }

/* A small block of ink on paper, sitting where the text link used to sit:
   left edge, one line below the email field. Square corners, because the
   underlines above it are straight rules. */
button[type="submit"] {
  position: relative;
  display: inline-block;
  width: auto;
  margin-top: 2.1rem;
  padding: 0.72rem 1.35rem;
  font-family: var(--face);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  /* Tracking adds space after the last letter too, which throws the label
     left of centre in a tight box. This pays it back. */
  text-indent: 0.16em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--box);
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: background 140ms ease, transform 140ms ease;
}

/* The visible box is smaller than a thumb. This extends the hit area to about
   50px without drawing anything, so the design stays small and the target
   stays tappable. */
button[type="submit"]::after {
  content: "";
  position: absolute;
  inset: -8px -6px;
}

button[type="submit"]:hover { background: var(--box-hover); }
button[type="submit"]:active { transform: translateY(1px); }
button[type="submit"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---- inline confirmation ---- */

/* Takes the place of the form, roughly where the button was, so the block
   doesn't jump when it appears. Red rather than the usual success green: the
   brushmark beside it is red, and a green tick next to a red mark would be
   the only place on the page where two colours argue. */
.thanks {
  margin: 2.1rem 0 0;
  font-size: 1rem;
  color: var(--red);
  /* Centred, message and mark together. Left-aligned, the mark floated off to
     the right of a short sentence and read as a stray graphic. */
  text-align: center;
  outline: none;
}

/* Locked, not disabled: what they typed keeps its normal contrast instead of
   greying out, and the caret stops blinking in a field that no longer does
   anything. */
input:read-only {
  border-bottom-color: rgba(22, 21, 26, 0.08);
  cursor: default;
}

/* The brushmark closes the page like a seal: centred in the column under the
   message, not inline beside it. Big enough to read as the mark it is —
   at 20px the brush texture was just a red smudge. `margin: auto` does the
   centring, so the sentence above it stays left-aligned with everything
   else. */
.thanks::after {
  content: "";
  display: block;
  width: clamp(4.5rem, 20vw, 6rem);
  height: clamp(4.5rem, 20vw, 6rem);
  margin: 1.75rem auto 0;
  background: url("mark.png") center / contain no-repeat;
}

/* The response from Kit lands in here, out of sight. */
.sink {
  position: absolute;
  width: 0;
  height: 0;
  border: 0;
  visibility: hidden;
}

