/* landing.css — the page at /, in the look Monty chose ("Straight lines").
   White page, ink type, one blue, hairlines instead of shadows, 2px corners.

   The type does the work: Archivo for everything a person reads, IBM Plex Mono only
   where a number is being tracked (the call record's timecodes, the price tag, the
   clock). Both fonts are served from this site, so there is no third-party request.

   The same token block opens public/styles.css, so this page and the drill cannot drift
   apart. Each page loads only the rules it draws. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 75% 125%;
  font-display: swap;
  src: url("/fonts/archivo-var-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/plex-mono-400-latin.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --ink: #14161a;
  --dim: #565d6b; /* 6.6:1 on white */
  --faint: #6f7684; /* 4.6:1 on white, still readable small */
  --rule: #e4e6ea; /* hairlines between rows and sections */
  --edge: #8f95a0; /* anything a person presses or types into */
  --accent: #3b34e8;
  --accent-down: #2f28d9;
  --accent-ink: #ffffff;
  --radius: 2px;
  --sans: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1080px;
  /* One label column for the whole page. The call record, the ten minute rows and the
     week all put a label on the left, and each was sized to its own content, so the body
     text began at three different places down the page. Headings and the pull quote stay
     on the left edge; everything read after a label starts at the same line. */
  --label-w: 176px;
  --label-gap: 24px;
}

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

html {
  background: var(--bg);
  color-scheme: only light;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 0;
}

h1,
h2,
p,
ol,
dl,
dd {
  margin: 0;
}

ol,
dl {
  padding: 0;
  list-style: none;
}

/* Small labels are read, not timed, so they are set in the reading face. The clock and the
   timecodes stay in the mono face, which is the only place it is used. */
.label {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--dim);
}

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

/* ------------------------------------------------------------------ top bar */

.topbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--dim);
  white-space: nowrap;
}

/* --------------------------------------------------------------------- hero */

.hero {
  display: grid;
  gap: 26px;
  padding: clamp(40px, 7vw, 88px) 0 clamp(34px, 5vw, 58px);
}

/* Two columns from tablet up: the headline is the page's voice, and the words that
   explain it, the button and the price sit beside it rather than queueing under it. */
@media (min-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 0 56px;
    align-items: end;
  }

  .hero-side {
    padding-bottom: 6px;
  }
}

.headline {
  max-width: 17ch;
  font-size: clamp(2.1rem, 5.6vw, 3.7rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lede {
  max-width: 46ch;
  margin-top: 22px;
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  line-height: 1.5;
  color: var(--dim);
  text-wrap: pretty;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 28px;
  padding: 0 26px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-align: center;
  text-decoration: none;
  transition: background-color 120ms ease-out, border-color 120ms ease-out;
}

.cta:hover {
  background: var(--accent-down);
  border-color: var(--accent-down);
}

.fine {
  max-width: 44ch;
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--faint);
}

/* ------------------------------------------------------------ the call record */

.hearing {
  margin-top: clamp(12px, 3vw, 28px);
  border-top: 1.5px solid var(--ink);
}

.record-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

.clock {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

/* The label column holds the timecode, and under it who is speaking. Side by side the two
   ran wider than the column and printed over the line they were labelling. */
.turn {
  display: grid;
  grid-template-columns: var(--label-w) minmax(0, 1fr);
  gap: 0 var(--label-gap);
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

.meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 3px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--faint);
}

.tc {
  font-family: var(--mono);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--faint);
}

.who {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--dim);
}

.said {
  max-width: 62ch;
  font-size: 1.0625rem;
  line-height: 1.45;
  text-wrap: pretty;
}

.push {
  padding-left: 16px;
  box-shadow: inset 2px 0 0 var(--accent);
}

.push .who {
  color: var(--accent);
  font-weight: 600;
}

.record-note {
  max-width: 54ch;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--faint);
  text-wrap: pretty;
}

/* ------------------------------------------------------------------ sections */

.section {
  margin-top: clamp(40px, 6vw, 76px);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.section h2 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.rows {
  margin-top: 8px;
}

.row {
  display: grid;
  grid-template-columns: var(--label-w) minmax(0, 1fr);
  gap: 6px var(--label-gap);
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}

.row:first-child {
  border-top: 0;
  padding-top: 12px;
}

.row dt {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}

.row dd {
  max-width: 58ch;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--dim);
  text-wrap: pretty;
}

/* ------------------------------------------------------------------- debrief */

/* "One question to run again" is a label, not the question. Set at the question's size
   the two read as one sentence, and the question stops looking like something asked. */
.pull-lead {
  margin-top: 16px;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--dim);
}

.pull {
  max-width: 34ch;
  margin-top: 6px;
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.pull-note {
  max-width: 52ch;
  margin-top: 18px;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--dim);
  text-wrap: pretty;
}

/* ---------------------------------------------------------------------- week */

.week {
  display: grid;
  gap: 22px;
  margin-top: clamp(40px, 6vw, 76px);
  padding-top: 26px;
  border-top: 1.5px solid var(--ink);
}

.figure {
  font-size: clamp(3rem, 7vw, 4.25rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.figure-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--faint);
}

.week-line {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
}

.week-refund {
  max-width: 46ch;
  margin-top: 8px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--dim);
  text-wrap: pretty;
}

.week .cta {
  margin-top: 22px;
}

/* -------------------------------------------------------------------- footer */

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: clamp(40px, 6vw, 76px);
  padding: 22px 0 56px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--faint);
}

/* ------------------------------------------------------------------- wider */

@media (min-width: 720px) {
  .week {
    grid-template-columns: var(--label-w) minmax(0, 1fr);
    gap: 0 var(--label-gap);
    align-items: start;
  }
}

/* --------------------------------------------------------------- narrower */

/* Between a phone and a laptop the label column narrows rather than eating the line. */
@media (max-width: 719px) {
  :root {
    --label-w: 132px;
    --label-gap: 18px;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding: 0 20px;
  }

  .headline {
    max-width: 15ch;
  }

  .turn {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  /* On a phone there is a whole line to spare, so the timecode and the speaker sit on one. */
  .meta {
    flex-direction: row;
    gap: 8px;
    padding-top: 0;
  }

  .push {
    padding-left: 14px;
  }

  .row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .record-head {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta {
    transition: none;
  }
}
