/* Boldface Works. One idea: in an inbox, unread email is set in bold.
   Thin and gray = ignored. Heavy and wide = worth opening.
   Type: Anybody (wght 100-900, wdth 50-150) for display, Literata for reading. */

@font-face {
  font-family: "Anybody";
  src: url("../fonts/anybody.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("../fonts/literata.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("../fonts/literata-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

@layer reset, tokens, base, layout, components, sections, utilities;

/* ---------- reset ---------- */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
  ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
  img, svg { display: block; max-width: 100%; }
  input, button, textarea, select { font: inherit; color: inherit; }
  button { cursor: pointer; }
  a { color: inherit; }
}

/* ---------- tokens ---------- */
@layer tokens {
  :root {
    /* palette */
    --ultramarine: #2a2cf5;
    --ultramarine-deep: #1c1dc4;
    --signal: #ffe24a;
    --ink: #191b5c;
    --paper: #ffffff;
    --periwinkle: #c6c9ff;   /* ignored lines on ultramarine (large text, 4.6:1) */
    --periwinkle-hi: #dcddff; /* small text on ultramarine (5.3:1) */
    --slate: #5c6088;         /* secondary text on paper (5.9:1) */

    /* roles on paper (default surface) */
    --bg: var(--paper);
    --fg: var(--ink);
    --muted: var(--slate);
    --mark: var(--ultramarine);
    --rule: color-mix(in oklab, var(--ink) 16%, transparent);
    --field: #f3f3ff;
    --focus: var(--ultramarine);
    --btn-bg: var(--ink);
    --btn-fg: var(--paper);

    /* type */
    --display: "Anybody", "Arial Black", "Helvetica Neue", Arial, sans-serif;
    --text: "Literata", Georgia, "Times New Roman", serif;
    --step--1: clamp(0.9rem, 0.86rem + 0.2vw, 1rem);
    --step-0: clamp(1.125rem, 1.07rem + 0.27vw, 1.3125rem);
    --step-1: clamp(1.3rem, 1.17rem + 0.62vw, 1.75rem);
    --step-2: clamp(1.55rem, 1.24rem + 1.45vw, 2.75rem);
    --step-3: clamp(2.15rem, 1.45rem + 3.3vw, 4.75rem);
    --step-4: clamp(2.6rem, 1.55rem + 5.2vw, 7rem);
    --step-5: clamp(3rem, 1.2rem + 8.6vw, 10.5rem);

    /* space */
    --gutter: max(16px, 4.2vw);
    --max: 84rem;
    --section-y: clamp(4rem, 2.5rem + 5.5vw, 8rem);
    --radius: 12px;       /* buttons */
    --radius-card: 20px;  /* inbox window, emails */
    --radius-chip: 8px;   /* small tags */
    --split: minmax(0, 5fr) minmax(0, 7fr);
    --split-gap: clamp(2rem, 5vw, 6rem);

    color-scheme: light;
  }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #0d0e33;
      --fg: #ecedff;
      --muted: #a9acd9;
      --mark: #a7aaff;
      --rule: color-mix(in oklab, #ecedff 18%, transparent);
      --field: #17184a;
      --focus: #a7aaff;
      --btn-bg: #ecedff;
      --btn-fg: #0d0e33;
      color-scheme: dark;
    }
  }
  :root[data-theme="dark"] {
    --bg: #0d0e33;
    --fg: #ecedff;
    --muted: #a9acd9;
    --mark: #a7aaff;
    --rule: color-mix(in oklab, #ecedff 18%, transparent);
    --field: #17184a;
    --focus: #a7aaff;
    --btn-bg: #ecedff;
    --btn-fg: #0d0e33;
    color-scheme: dark;
  }

  /* colored fields carry their own roles in both schemes */
  .field-blue {
    --bg: var(--ultramarine);
    --fg: #ffffff;
    --muted: var(--periwinkle-hi);
    --mark: var(--signal);
    --rule: color-mix(in oklab, #ffffff 26%, transparent);
    --field: #ffffff;
    --focus: var(--signal);
    --btn-bg: var(--signal);
    --btn-fg: var(--ink);
  }
  .field-yellow {
    --bg: var(--signal);
    --fg: var(--ink);
    --muted: #4b4524;
    --mark: var(--ultramarine);
    --rule: color-mix(in oklab, var(--ink) 30%, transparent);
    --focus: var(--ink);
    --btn-bg: var(--ink);
    --btn-fg: #ffffff;
  }
  .field-ink {
    --bg: var(--ink);
    --fg: #ffffff;
    --muted: #c9cbf2;
    --mark: var(--signal);
    --rule: color-mix(in oklab, #ffffff 22%, transparent);
    --focus: var(--signal);
    --btn-bg: var(--signal);
    --btn-fg: var(--ink);
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .field-ink { --bg: #07082a; }
  }
  :root[data-theme="dark"] .field-ink { --bg: #07082a; }
}

/* ---------- base ---------- */
@layer base {
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

  body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--text);
    font-size: var(--step-0);
    line-height: 1.6;
    font-size-adjust: 0.507;
    font-optical-sizing: auto;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
  }

  h1, h2, h3, h4 {
    font-family: var(--display);
    font-size-adjust: none;
    font-weight: 850;
    font-stretch: 108%;
    line-height: 1;
    letter-spacing: -0.015em;
    text-wrap: balance;
  }
  p, li, dd { text-wrap: pretty; }

  a { text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
  a:hover { text-decoration-thickness: 0.16em; }

  :focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
    border-radius: 4px;
  }

  ::selection { background: var(--signal); color: var(--ink); }

  [hidden] { display: none !important; }

  .field-blue, .field-yellow, .field-ink { background: var(--bg); color: var(--fg); }
}

/* ---------- layout ---------- */
@layer layout {
  .wrap {
    width: 100%;
    max-width: calc(var(--max) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
  }
  .section { padding-block: var(--section-y); background: var(--bg); color: var(--fg); }
  section[id] { scroll-margin-top: 1rem; }
}

/* ---------- components ---------- */
@layer components {
  .skip {
    position: absolute;
    left: 1rem;
    top: -10rem;
    z-index: 10;
    padding: 0.75rem 1rem;
    background: var(--signal);
    color: var(--ink);
    font-family: var(--display);
    font-weight: 750;
    border-radius: 8px;
  }
  .skip:focus { top: 1rem; }

  /* unread dot */
  .dot {
    display: inline-block;
    width: 0.62em;
    height: 0.62em;
    border-radius: 50%;
    background: var(--signal);
    flex: none;
  }

  /* buttons: hover makes the label heavier, like the brand does to words.
     The label is drawn twice in one grid cell; the invisible heavy copy holds the width. */
  .btn {
    --pad-x: 1.35em;
    display: inline-grid;
    place-items: center;
    min-height: 3.25rem;
    padding: 0.7em var(--pad-x);
    border: 0;
    border-radius: var(--radius);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: var(--display);
    font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
    font-size-adjust: none;
    font-weight: 700;
    font-stretch: 104%;
    line-height: 1.1;
    text-decoration: none;
    text-align: center;
    transition: transform 160ms ease-out, background-color 160ms ease-out;
  }
  .btn > span, .btn::after { grid-area: 1 / 1; }
  .btn::after {
    content: attr(data-label);
    font-weight: 900;
    visibility: hidden;
    pointer-events: none;
  }
  .btn > span { transition: font-weight 220ms ease-out; }
  .btn:hover > span, .btn:focus-visible > span { font-weight: 900; }
  .btn:active { transform: scale(0.97); }
  .btn-light { --btn-bg: #ffffff; --btn-fg: var(--ink); }

  .text-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    font-family: var(--display);
    font-size-adjust: none;
    font-weight: 650;
    font-stretch: 104%;
    color: var(--fg);
  }

  .visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  /* site header */
  .site-header {
    background: var(--bg);
    color: var(--fg);
  }
  .site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: clamp(1rem, 0.7rem + 1.2vw, 1.75rem);
  }
  .wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--display);
    font-size: clamp(1.1rem, 1rem + 0.45vw, 1.4rem);
    font-size-adjust: none;
    font-weight: 850;
    font-stretch: 112%;
    letter-spacing: -0.01em;
    text-decoration: none;
    color: var(--fg);
    white-space: nowrap;
  }
  .wordmark .dot { width: 0.6em; height: 0.6em; }
  .site-nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.25rem); }
  .site-nav a:not(.btn) {
    font-family: var(--display);
    font-size-adjust: none;
    font-weight: 600;
    font-stretch: 100%;
    font-size: 1.02rem;
    text-decoration: none;
    color: var(--fg);
    transition: font-weight 200ms ease-out;
  }
  .site-nav a:not(.btn):hover { font-weight: 850; }
  .site-nav .btn { min-height: 2.75rem; border-radius: 10px; font-size: 1rem; --pad-x: 1.1em; white-space: nowrap; transition: background-color 160ms ease-out, transform 160ms ease-out; }
  .site-nav .btn::after { content: none; }
  .site-nav .btn > span { font-weight: 750; transition: none; }
  .site-nav .btn:hover { --btn-bg: var(--signal); }
  .site-nav .btn .short { display: none; }
  @media (max-width: 30rem) {
    .site-nav .btn .long { display: none; }
    .site-nav .btn .short { display: inline; }
  }
  @media (max-width: 52rem) {
    .site-nav a:not(.btn) { display: none; }
  }
  @media (max-width: 23rem) {
    .site-nav .btn { --pad-x: 0.85em; font-size: 0.92rem; }
    .wordmark { font-size: 1rem; }
  }
  @media (max-width: 21.5rem) {
    .site-nav .btn { --pad-x: 0.7em; font-size: 0.85rem; }
    .wordmark { font-size: 0.92rem; font-stretch: 100%; gap: 0.4rem; }
  }

  /* site footer */
  .site-footer {
    padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem) clamp(2.5rem, 2rem + 2vw, 3.5rem);
    font-size: var(--step--1);
    line-height: 1.6;
  }
  .site-footer .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 2.5rem clamp(2rem, 5vw, 6rem);
    align-items: start;
  }
  .footer-legal p + p { margin-top: 0.6rem; }
  .footer-legal { color: var(--muted); }
  .footer-legal a { color: var(--fg); }
  .footer-links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin-top: 1rem; padding: 0; list-style: none; }
  .footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    font-family: var(--display);
    font-size-adjust: none;
    font-weight: 650;
    color: var(--fg);
  }
  @media (max-width: 48rem) {
    .site-footer .wrap { grid-template-columns: 1fr; }
  }

  /* notice used on draft legal pages in preview builds */
  .draft-note {
    background: var(--signal);
    color: var(--ink);
    font-family: var(--display);
    font-size-adjust: none;
    font-weight: 650;
    font-size: 1rem;
    padding: 0.75rem var(--gutter);
    text-align: center;
  }

  /* forms */
  .form { display: grid; gap: 1.35rem; }
  .form-field { display: grid; gap: 0.4rem; }
  .form-field label, .form-legend {
    font-family: var(--display);
    font-size-adjust: none;
    font-weight: 700;
    font-stretch: 102%;
    font-size: 1.05rem;
    line-height: 1.25;
  }
  .form-field .opt { font-weight: 400; color: var(--muted); }
  .form-hint { font-size: var(--step--1); color: var(--muted); line-height: 1.45; }
  .form input[type="text"],
  .form input[type="email"],
  .form input[type="url"],
  .form textarea {
    width: 100%;
    min-height: 3.25rem;
    padding: 0.8rem 1rem;
    border: 2px solid transparent;
    border-radius: 12px;
    background: var(--field);
    color: var(--ink);
    font-family: var(--text);
    font-size: 1.0625rem;
    line-height: 1.4;
    transition: border-color 160ms ease-out;
  }
  .form textarea { min-height: 6.5rem; resize: vertical; }
  .form input::placeholder, .form textarea::placeholder { color: #6a6e93; opacity: 1; }
  .form input:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--ink); }
  .form [aria-invalid="true"] { border-color: #b3123c; }
  .field-error {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    font-family: var(--display);
    font-size-adjust: none;
    font-weight: 650;
    font-size: 0.98rem;
    color: var(--fg);
  }
  .field-error::before { content: "!"; display: inline-grid; place-items: center; width: 1.3em; height: 1.3em; border-radius: 50%; background: var(--signal); color: var(--ink); font-weight: 900; flex: none; }

  .choice-group { border: 0; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
  .choice-group .form-legend { padding: 0; margin-bottom: 0.4rem; }
  .choice {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    align-items: center;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 2px solid var(--rule);
    cursor: pointer;
    line-height: 1.3;
    transition: border-color 160ms ease-out, background-color 160ms ease-out;
  }
  .choice input {
    appearance: none;
    width: 1.35rem;
    height: 1.35rem;
    margin: 0;
    border-radius: 50%;
    border: 2px solid currentColor;
    background: transparent;
    display: grid;
    place-items: center;
    cursor: pointer;
  }
  .choice input::after {
    content: "";
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: var(--mark);
    transform: scale(0);
    transition: transform 160ms ease-out;
  }
  .choice input:checked::after { transform: scale(1); }
  .choice input:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
  .choice:has(input:checked) { border-color: var(--fg); background: color-mix(in oklab, var(--fg) 8%, transparent); }
  .choice-text { font-family: var(--display); font-size-adjust: none; font-weight: 600; font-size: 1.05rem; }
  .choice:has(input:checked) .choice-text { font-weight: 850; }
  .choice-text small { display: block; font-family: var(--text); font-size: 0.92rem; font-weight: 400; color: var(--muted); margin-top: 0.15rem; }

  .check {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    align-items: start;
    font-size: var(--step--1);
    line-height: 1.5;
    cursor: pointer;
  }
  .check input {
    appearance: none;
    width: 1.4rem;
    height: 1.4rem;
    margin: 0.1rem 0 0;
    border: 2px solid currentColor;
    border-radius: 6px;
    display: grid;
    place-items: center;
    cursor: pointer;
  }
  .check input::after {
    content: "";
    width: 0.75rem;
    height: 0.42rem;
    border-left: 3px solid var(--mark);
    border-bottom: 3px solid var(--mark);
    transform: translateY(-2px) rotate(-45deg) scale(0);
    transition: transform 160ms ease-out;
  }
  .check input:checked::after { transform: translateY(-2px) rotate(-45deg) scale(1); }

  .form-fine { font-size: var(--step--1); color: var(--muted); line-height: 1.5; }
  .form-fine a { color: var(--fg); }
  .form .btn { justify-self: start; }
  .form-status {
    font-family: var(--display);
    font-size-adjust: none;
    font-weight: 650;
    font-size: 1.05rem;
  }
  .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

  .form-done {
    display: grid;
    gap: 1rem;
    padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    border-radius: 20px;
    background: color-mix(in oklab, var(--fg) 9%, transparent);
  }
  .form-done h3 { font-size: var(--step-2); font-weight: 900; font-stretch: 112%; }
  .form-done .preview-note { font-size: var(--step--1); color: var(--muted); }
}

/* ---------- sections ---------- */
@layer sections {

  /* ===== hero: big headline + a live inbox ===== */
  .hero { padding-block: clamp(1rem, 2.5vw, 2.5rem) clamp(3rem, 2rem + 4vw, 6rem); overflow-x: clip; }
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(2.5rem, 5vw, 6rem);
    align-items: center;
  }
  .hero-title {
    font-size: clamp(3rem, 1.4rem + 6.4vw, 6.4rem);
    font-weight: 900;
    font-stretch: 104%;
    line-height: 0.9;
    letter-spacing: -0.025em;
    color: #ffffff;
    text-wrap: balance;
  }
  .hero-title .w, .subj-text .w, .weigh-line .w, .mail-subject .w { display: inline-block; white-space: nowrap; }
  .hero-title .l, .subj-text .l, .weigh-line .l, .mail-subject .l { display: inline-block; text-align: center; }
  .hero-sub {
    margin-top: clamp(1.1rem, 0.8rem + 1vw, 1.75rem);
    max-width: 30ch;
    font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.5rem);
    line-height: 1.4;
    color: var(--periwinkle-hi);
  }
  .hero-actions { margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); }
  .hero-via { margin-top: 1rem; max-width: 34ch; font-size: var(--step--1); line-height: 1.45; color: var(--periwinkle-hi); }
  .hero-via a { color: #ffffff; font-weight: 650; }
  .hero-actions .btn { min-height: 3.6rem; font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); }
  @media (prefers-reduced-motion: no-preference) {
    .js .hero-title.is-waiting { opacity: 0; animation: safety-show 0s linear 2.2s forwards; }
  }
  @media (max-width: 63.99rem) {
    .hero-grid { grid-template-columns: minmax(0, 1fr); }
  }

  /* the inbox window: faded lines turn bold on tap */
  .inbox-window {
    padding: clamp(0.9rem, 0.6rem + 1vw, 1.4rem) clamp(1rem, 0.7rem + 1vw, 1.6rem) clamp(0.8rem, 0.6rem + 0.6vw, 1.1rem);
    border-radius: var(--radius-card);
    background: var(--ink);
  }
  .inbox-bar {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgb(255 255 255 / 0.14);
    font-family: var(--display);
    font-size-adjust: none;
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
  }
  .inbox-bar small { font-family: var(--text); font-size: 0.9rem; font-weight: 400; color: var(--periwinkle-hi); }
  .inbox-list { list-style: none; margin: 0; padding: 0; }
  .inbox-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 1rem;
    row-gap: 0.2rem;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0.95rem 0.1rem;
    border: 0;
    border-bottom: 1px solid rgb(255 255 255 / 0.08);
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
  }
  .inbox-list li:last-child .inbox-row { border-bottom: 0; }
  .inbox-row .from {
    grid-column: 1;
    grid-row: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--text);
    font-size: 0.92rem;
    line-height: 1.3;
    color: var(--periwinkle-hi);
  }
  .inbox-row .from .dot { display: none; width: 0.55rem; height: 0.55rem; }
  .inbox-row .chip {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    display: inline-grid;
    place-items: center;
    min-height: 2rem;
    padding: 0.1rem 0.8rem;
    border: 2px solid var(--signal);
    border-radius: var(--radius-chip);
    font-family: var(--display);
    font-size-adjust: none;
    font-size: 0.85rem;
    font-weight: 750;
    color: var(--signal);
    white-space: nowrap;
    transition: background-color 160ms ease-out, color 160ms ease-out;
  }
  .inbox-row .c-un, .inbox-row.is-bold .c-rw { display: none; }
  .inbox-row.is-bold .c-un { display: inline; }
  .inbox-row.is-bold .chip { border-color: rgb(255 226 74 / 0.5); }
  .inbox-row .subj {
    grid-column: 1 / -1;
    grid-row: 2;
    font-family: var(--display);
    font-size-adjust: none;
    font-size: clamp(1.45rem, 1.15rem + 1vw, 2.05rem);
    font-weight: 240;
    font-stretch: 70%;
    line-height: 1.05;
    color: var(--periwinkle);
    text-wrap: balance;
    transition: color 220ms ease-out, font-weight 220ms ease-out;
  }
  .inbox-row .why {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: start;
    margin-top: 0.6rem;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    background: var(--signal);
    color: var(--ink);
    font-family: var(--display);
    font-size-adjust: none;
    font-size: 0.88rem;
    font-weight: 800;
  }
  @media (hover: hover) {
    .inbox-row:not(.is-bold):hover .subj { font-weight: 330; color: #e6e7ff; }
    .inbox-row:hover .chip { background: var(--signal); color: var(--ink); }
  }
  .inbox-row:focus-visible { outline-offset: 4px; border-radius: 12px; }
  .inbox-row:focus-visible .chip { background: var(--signal); color: var(--ink); }
  .inbox-row.is-bold .subj { font-weight: 900; font-stretch: 108%; color: #ffffff; letter-spacing: -0.015em; }
  .inbox-row.is-bold .from { color: #ffffff; font-weight: 700; }
  .inbox-row.is-bold .from .dot { display: inline-block; animation: dot-pop 420ms cubic-bezier(.2, 1.6, .4, 1) both; }
  .subj-text { position: relative; }
  .inbox-row.is-striking .subj-text::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 52%;
    height: 0.09em;
    min-height: 3px;
    background: var(--signal);
    transform-origin: left center;
    animation: strike 260ms cubic-bezier(.4, 0, .2, 1) both;
  }
  .inbox-hint { margin-top: 0.7rem; font-size: 0.88rem; color: var(--periwinkle-hi); }

  /* ===== the one line: thin while it is far off, bold by the time it reaches you ===== */
  .weigh-line {
    margin-bottom: clamp(2.5rem, 1.75rem + 3vw, 5rem);
    font-family: var(--display);
    font-size-adjust: none;
    font-size: clamp(2.5rem, 1.2rem + 5.2vw, 3.75rem);
    font-weight: 900;
    font-stretch: 112%;
    line-height: 0.95;
    letter-spacing: -0.02em;
    text-wrap: balance;
  }
  /* on wide screens the sentence about one line is set in one line:
     it measures 22.07em wide, the column is 91.6vw up to 84rem, with 3% to spare */
  @media (min-width: 64rem) {
    .weigh-line { font-size: min(4.02vw, 3.6875rem); }
  }
  .weigh-line .l {
    font-weight: calc(200 + 700 * var(--t, 1));
    font-stretch: calc(70% + 42% * var(--t, 1));
    color: color-mix(in oklab, var(--fg) calc(100% * var(--t, 1)), var(--muted));
  }

  /* ===== flip: the same sale, written two ways ===== */
  .flip-head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem 3rem;
  }
  .flip-intro {
    font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem);
    font-weight: 800;
    font-stretch: 104%;
    line-height: 1.05;
    max-width: 14ch;
  }
  .flip-switch {
    display: inline-flex;
    gap: 0.3rem;
    margin: 0;
    padding: 0.35rem;
    border: 0;
    border-radius: 14px;
    background: var(--field);
  }
  .flip-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
  .flip-switch label {
    display: inline-grid;
    place-items: center;
    min-height: 3rem;
    padding: 0.5rem 1.35rem;
    border-radius: 10px;
    font-family: var(--display);
    font-size-adjust: none;
    font-size: 1.05rem;
    font-weight: 650;
    cursor: pointer;
    transition: background-color 180ms ease-out, color 180ms ease-out, font-weight 180ms ease-out;
  }
  .flip-switch input:checked + label { background: var(--btn-bg); color: var(--btn-fg); font-weight: 850; }
  .flip-switch input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
  .flip-stage { display: grid; margin-top: clamp(1.75rem, 1.25rem + 2vw, 3rem); }
  .mail {
    grid-area: 1 / 1;
    display: grid;
    align-content: start;
    gap: 0.9rem;
    padding: clamp(1.4rem, 1rem + 2vw, 2.75rem);
    border-radius: var(--radius-card);
    transition: opacity 380ms ease-out, scale 420ms cubic-bezier(.2, 1.4, .4, 1), visibility 0s linear 0s;
  }
  .mail-from { font-size: 0.95rem; }
  .mail-subject {
    font-family: var(--display);
    font-size-adjust: none;
    font-size: clamp(1.75rem, 1.2rem + 2.5vw, 3.5rem);
    line-height: 1.02;
    letter-spacing: -0.015em;
    text-wrap: balance;
  }
  .mail-body { max-width: 46ch; font-size: var(--step-0); line-height: 1.55; }
  .mail-btn {
    justify-self: start;
    margin-top: 0.35rem;
    padding: 0.65em 1.2em;
    border-radius: 8px;
    background: var(--signal);
    color: var(--ink);
    font-family: var(--display);
    font-size-adjust: none;
    font-size: 1rem;
    font-weight: 750;
    cursor: default;
    user-select: none;
  }
  /* both versions get the same card and the same type, so only the words differ */
  .mail { background: var(--ultramarine); color: #ffffff; }
  .mail-from { color: var(--periwinkle-hi); }
  .mail-subject { font-weight: 900; font-stretch: 106%; color: #ffffff; }
  .flip .mail.is-tailored,
  .flip.show-tailored .mail.is-generic,
  .flip:has(#flip-tailored:checked) .mail.is-generic {
    opacity: 0;
    scale: 0.96;
    visibility: hidden;
    transition: opacity 240ms ease-in, scale 240ms ease-in, visibility 0s linear 240ms;
  }
  .flip.show-tailored .mail.is-tailored,
  .flip:has(#flip-tailored:checked) .mail.is-tailored { opacity: 1; scale: 1; visibility: visible; transition: opacity 380ms ease-out 120ms, scale 460ms cubic-bezier(.2, 1.5, .4, 1) 120ms, visibility 0s linear 0s; }
  .flip-note { width: 100%; max-width: 32ch; font-size: var(--step-0); line-height: 1.45; color: var(--muted); }
  @media (min-width: 64rem) {
    .flip { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; column-gap: var(--split-gap); align-items: start; }
    .flip-head { grid-column: 1; grid-row: 1; flex-direction: column; align-items: start; justify-content: start; }
    .flip-stage { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
  }

  /* ===== how it works: three steps ===== */
  .how h2 { font-size: clamp(2.2rem, 1.4rem + 3.5vw, 4.5rem); font-weight: 900; font-stretch: 106%; line-height: 0.95; }
  .steps3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 3.5rem);
    margin: clamp(2rem, 1.5rem + 2vw, 3.5rem) 0 0;
    padding: 0;
    list-style: none;
  }
  .steps3 li { display: grid; align-content: start; gap: 0.75rem; }
  .steps3 .n {
    font-family: var(--display);
    font-size-adjust: none;
    font-size: clamp(6rem, 3rem + 9vw, 12rem);
    font-weight: 900;
    font-stretch: 112%;
    line-height: 0.8;
    letter-spacing: -0.04em;
    color: var(--signal);
  }
  .steps3 .step {
    max-width: 17ch;
    font-family: var(--display);
    font-size-adjust: none;
    font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.8rem);
    font-weight: 750;
    line-height: 1.15;
    color: #ffffff;
  }
  .steps3 .step-more {
    max-width: 30ch;
    margin-top: 0.6rem;
    font-size: var(--step--1);
    line-height: 1.5;
    color: var(--muted);
  }
  @media (max-width: 48rem) {
    .steps3 { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
    .steps3 li { grid-template-columns: 5.25rem minmax(0, 1fr); align-items: start; column-gap: 1rem; }
    .steps3 .n { font-size: 6.25rem; }
  }

  /* ===== prices: the yellow poster ===== */
  .poster-title {
    font-size: clamp(2.75rem, 1.2rem + 5.6vw, 6.2rem);
    font-weight: 900;
    font-stretch: 106%;
    line-height: 0.9;
    letter-spacing: -0.03em;
    max-width: 14ch;
  }
  .poster-sub {
    margin-top: 1rem;
    font-family: var(--display);
    font-size-adjust: none;
    font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.6rem);
    font-weight: 650;
    line-height: 1.25;
  }
  .offers2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 5vw, 6rem);
    margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  }
  .offer2 { display: grid; align-content: start; gap: 0.45rem; padding-top: 1.5rem; border-top: 4px solid var(--ink); }
  .offer2 .amount {
    font-family: var(--display);
    font-size-adjust: none;
    font-size: clamp(4.75rem, 2.5rem + 7.5vw, 10rem);
    font-weight: 900;
    font-stretch: 116%;
    line-height: 0.85;
    letter-spacing: -0.04em;
    color: var(--ultramarine);
  }
  .offer2 .amount small { font-size: 0.22em; font-weight: 800; font-stretch: 100%; letter-spacing: 0; color: var(--ink); }
  .offer2 h3 { margin-top: 0.75rem; font-size: var(--step-1); font-weight: 850; font-stretch: 104%; }
  .offer2 .what { font-size: var(--step-0); }
  /* the pack's five emails, in sending order */
  .pack-list { display: grid; gap: 0.3rem; margin: 0.4rem 0 0.2rem; padding: 0; list-style: none; counter-reset: pk; }
  .pack-list li {
    counter-increment: pk;
    display: grid;
    grid-template-columns: 1.7rem minmax(0, 1fr);
    align-items: baseline;
    font-family: var(--display);
    font-size-adjust: none;
    font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
    font-weight: 750;
    font-stretch: 102%;
    line-height: 1.2;
  }
  .pack-list li::before { content: counter(pk); font-weight: 900; font-stretch: 112%; color: var(--ultramarine); }
  .offer2 .what-more { margin-top: 0.35rem; max-width: 40ch; font-size: var(--step--1); line-height: 1.5; color: var(--muted); }
  .offer2 .btn { justify-self: start; margin-top: 0.9rem; }
  .poster-early {
    margin-top: 0.6rem;
    font-size: var(--step-0);
    line-height: 1.4;
    color: var(--muted);
  }
  .offers-foot { margin-top: clamp(2.25rem, 1.75rem + 2vw, 3.25rem); max-width: 60ch; font-size: var(--step--1); line-height: 1.55; color: var(--muted); }
  .offers-foot a { color: var(--fg); font-weight: 600; }
  @media (max-width: 48rem) {
    .offers2 { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  }

  /* ===== fair questions ===== */
  .faq-grid {
    display: grid;
    grid-template-columns: var(--split);
    gap: 2rem var(--split-gap);
    align-items: start;
  }
  .faq h2 {
    font-size: clamp(2.4rem, 1.4rem + 4vw, 4.75rem);
    font-weight: 900;
    font-stretch: 106%;
    line-height: 0.92;
    letter-spacing: -0.025em;
    max-width: 8ch;
  }
  .faq-list { margin: 0; display: grid; gap: 0; }
  .faq-list > div { padding-block: 1.25rem; border-top: 2px solid var(--rule); }
  .faq-list > div:first-child { padding-top: 0; border-top: 0; }
  .faq-list dt {
    font-family: var(--display);
    font-size-adjust: none;
    font-size: var(--step-1);
    font-weight: 800;
    font-stretch: 104%;
    line-height: 1.15;
  }
  .faq-list dd { margin: 0.5rem 0 0; max-width: 46ch; line-height: 1.55; }
  .faq-list a { color: var(--fg); font-weight: 600; }
  @media (max-width: 56rem) {
    .faq-grid { grid-template-columns: minmax(0, 1fr); }
  }

  /* ===== start: the form ===== */
  .start-grid {
    display: grid;
    grid-template-columns: var(--split);
    gap: 2.5rem var(--split-gap);
    align-items: start;
  }
  .start h2 {
    font-size: clamp(2.6rem, 1.5rem + 4.6vw, 5.5rem);
    font-weight: 900;
    font-stretch: 106%;
    line-height: 0.92;
    letter-spacing: -0.025em;
    max-width: 11ch;
  }
  .start-intro p { margin-top: 1.25rem; max-width: 30ch; font-size: var(--step-1); line-height: 1.4; color: var(--muted); }
  .start-aside { margin-top: 1.25rem; color: var(--muted); }
  .start-aside a { color: var(--fg); font-weight: 600; }
  .plan-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; border: 0; }
  .plan-chips legend { width: 100%; margin-bottom: 0.5rem; padding: 0; }
  .plan-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
  .plan-chip span {
    display: inline-grid;
    place-items: center;
    min-height: 2.9rem;
    padding: 0.5rem 1.05rem;
    border: 2px solid var(--rule);
    border-radius: 10px;
    font-family: var(--display);
    font-size-adjust: none;
    font-size: 1rem;
    font-weight: 650;
    cursor: pointer;
    transition: background-color 160ms ease-out, color 160ms ease-out, border-color 160ms ease-out;
  }
  .plan-chip input:checked + span { background: #ffffff; border-color: #ffffff; color: var(--ink); font-weight: 850; }
  .plan-chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
  @media (max-width: 56rem) {
    .start-grid { grid-template-columns: minmax(0, 1fr); }
  }

  /* ===== calendar pages ===== */
  .cal-hero { padding-block: clamp(1rem, 2vw, 2rem) clamp(3.5rem, 2.5rem + 5vw, 7rem); }
  .cal-hero-grid {
    display: grid;
    grid-template-columns: var(--split);
    gap: 3rem var(--split-gap);
    align-items: start;
  }
  .cal-year {
    font-family: var(--display);
    font-size-adjust: none;
    font-size: clamp(5.5rem, 2rem + 16vw, 17rem);
    font-weight: 900;
    font-stretch: 125%;
    line-height: 0.8;
    letter-spacing: -0.04em;
    color: #ffffff;
  }
  .cal-hero h1 { font-size: var(--step-3); font-weight: 900; font-stretch: 110%; line-height: 0.98; margin-top: 1.5rem; max-width: 18ch; }
  .cal-hero-grid .form { margin-top: 1.75rem; }
  .cal-hero .lede { margin-top: 1.25rem; font-size: var(--step-1); line-height: 1.45; color: var(--muted); max-width: 36ch; }
  .cal-points { margin-top: 1.75rem; padding: 0; list-style: none; display: grid; gap: 0.55rem; }
  .cal-points li { display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; align-items: baseline; }
  .cal-points li::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--signal); transform: translateY(-0.1rem); }
  @media (max-width: 56rem) {
    .cal-hero-grid { grid-template-columns: minmax(0, 1fr); }
  }

  .month-index { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin-top: 2rem; padding: 0; list-style: none; }
  .month-index a {
    font-family: var(--display);
    font-size-adjust: none;
    font-size: var(--step-1);
    font-weight: 250;
    font-stretch: 80%;
    text-decoration: none;
    color: var(--fg);
    transition: font-weight 200ms ease-out, font-stretch 200ms ease-out;
  }
  .month-index a:hover, .month-index a:focus-visible { font-weight: 900; font-stretch: 112%; }

  .month { padding-block: clamp(2.5rem, 2rem + 3vw, 5rem); border-top: 1px solid var(--rule); scroll-margin-top: 1rem; }
  .month-grid {
    display: grid;
    grid-template-columns: var(--split);
    gap: 1.5rem var(--split-gap);
    align-items: start;
  }
  .month h2 { font-size: var(--step-3); font-weight: 900; font-stretch: 112%; }
  .month h3 {
    font-size: 1.05rem;
    font-weight: 700;
    font-stretch: 100%;
    color: var(--muted);
    margin: 1.75rem 0 0.6rem;
  }
  .month h3:first-child { margin-top: 0; }
  .dates { padding: 0; list-style: none; }
  .dates li {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 1rem;
    align-items: baseline;
    padding-block: 0.45rem;
    border-bottom: 1px solid var(--rule);
  }
  .dates .d { font-family: var(--text); font-size: var(--step--1); color: var(--muted); }
  .dates .e { font-family: var(--display); font-size-adjust: none; font-size: var(--step-1); font-weight: 800; font-stretch: 106%; line-height: 1.15; }
  .dates .e.quiet { font-weight: 300; font-stretch: 80%; color: var(--muted); }
  .ideas { padding-left: 1.4rem; display: grid; gap: 0.55rem; }
  .ideas li::marker { font-family: var(--display); font-weight: 800; color: var(--mark); }
  .do-ahead {
    margin-top: 1.5rem;
    padding: 1rem 1.15rem;
    border-radius: 14px;
    background: var(--field);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.8rem;
    align-items: baseline;
  }
  .do-ahead::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--mark); transform: translateY(-0.05rem); }
  .do-ahead b { font-family: var(--display); font-size-adjust: none; font-weight: 800; }
  @media (max-width: 56rem) {
    .month-grid { grid-template-columns: minmax(0, 1fr); }
    .dates li { grid-template-columns: 6.25rem minmax(0, 1fr); }
  }

  .cal-print { margin-top: 1.75rem; }
  .cal-body { padding-top: clamp(1rem, 2vw, 2rem); }
  .cal-body .month:first-child { border-top: 0; }
  .cal-cta h2, .peek h2.big { font-size: var(--step-4); font-weight: 900; font-stretch: 112%; line-height: 0.93; letter-spacing: -0.02em; max-width: 12ch; }
  .cal-cta p { margin-top: 1.25rem; max-width: 40ch; font-size: var(--step-1); line-height: 1.45; color: var(--muted); }
  .cal-cta p:last-child { margin-top: 2rem; }
  .peek-intro { font-size: var(--step-1); line-height: 1.45; color: var(--muted); max-width: 40ch; margin-bottom: 1rem; }
  .peek .month { border-top: 0; padding-top: 1.5rem; }
  .peek-foot { margin-top: 1rem; }
  .page-actions { margin-top: 2rem; }
  .lost-line { font-family: var(--display); font-size-adjust: none; font-size: var(--step-2); font-weight: 200; font-stretch: 70%; color: var(--periwinkle); margin-top: clamp(1rem, 2vw, 2.5rem); }
  .lost h1 { margin-top: 0.75rem; }

  .rules h2 { font-size: var(--step-3); font-weight: 900; font-stretch: 110%; }
  .rules ol { margin-top: 2rem; padding: 0; list-style: none; display: grid; gap: 0.25rem; counter-reset: r; }
  .rules li {
    counter-increment: r;
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr);
    gap: 1rem;
    align-items: baseline;
    padding-block: 0.6rem;
    border-bottom: 1px solid var(--rule);
    font-family: var(--display);
    font-size-adjust: none;
    font-size: var(--step-2);
    font-weight: 750;
    font-stretch: 104%;
    line-height: 1.1;
  }
  .rules li::before { content: counter(r); font-weight: 900; font-stretch: 118%; color: var(--mark); }

  /* ===== reading pages (privacy, terms, thanks, 404) ===== */
  .page-hero { padding-block: clamp(1rem, 2vw, 2rem) clamp(3rem, 2rem + 4vw, 6rem); }
  .page-hero h1 { font-size: var(--step-4); font-weight: 900; font-stretch: 112%; line-height: 0.93; letter-spacing: -0.02em; max-width: 14ch; margin-top: clamp(1rem, 2vw, 2.5rem); }
  .page-hero .lede { margin-top: 1.25rem; font-size: var(--step-1); line-height: 1.45; color: var(--muted); max-width: 44ch; }
  .prose > * { max-width: 42rem; }
  .prose h2 { font-size: var(--step-2); font-weight: 850; font-stretch: 106%; margin: 2.75rem 0 0.9rem; }
  .prose h2:first-child { margin-top: 0; }
  .prose p, .prose ul, .prose ol { margin-top: 1rem; }
  .prose ul, .prose ol { padding-left: 1.4rem; }
  .prose li + li { margin-top: 0.4rem; }
  .prose .meta { color: var(--muted); font-size: var(--step--1); }
}

/* ---------- utilities ---------- */
@layer utilities {
  .no-wrap { white-space: nowrap; }
}

/* ---------- keyframes ---------- */
@keyframes strike { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes dot-pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes safety-show { to { opacity: 1; } }

/* ---------- print (calendar) ---------- */
@media print {
  .site-header, .site-footer, .no-print, .skip { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .field-blue, .field-yellow, .field-ink { background: #fff !important; color: #000 !important; --fg: #000; --muted: #333; --mark: #000; --bg: #fff; }
  .cal-year { color: #000; font-size: 64pt; }
  .month { break-inside: avoid; padding-block: 12pt; }
  a { color: #000; text-decoration: none; }
}
