/* Hallmark · genre: editorial · macrostructure: Long Document · theme: Newsprint
 * tone: serious operator writing to a peer · anchor hue: 70 warm · accent: oxblood 32
 * H1 Marquee knobs: size=xl, alignment=left-bias, underlay=rule-below
 * F3 Tabular knobs: columns=2, rules=every-row · T3 Quote knobs: roman-display, 40ch, left-aligned
 * T1 Marginalia knobs: roman-large, source-stamped, marginalia=1-footnote
 * C1 Chip knobs: rectangular, spacious, arrow · nav: N6 newspaper masthead (company mark) · footer: Ft2 inline rule
 * enrichment: none (typography only) · motion: none (Newsprint is a 0x duration theme)
 * pre-emit critique: P5 H5 E4 S5 R5 V4
 */

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

html,
body {
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-body);
  font-variant-numeric: oldstyle-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

p {
  margin: 0;
}

:where(a, .cta):focus-visible {
  outline: var(--rule-heavy) solid var(--color-focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  inset-block-start: -6rem;
  inset-inline-start: var(--gutter);
  z-index: var(--z-sticky);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-ink);
  color: var(--color-paper);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.skip:focus {
  inset-block-start: var(--space-md);
}

/* —— The sheet ——————————————————————————————————
   Every block sits on one 68rem sheet. Prose holds a 34rem measure and stays
   left-flush inside it, so the right margin is permanent negative space.
   That asymmetry is the page's primary axis. */

.foot > p {
  max-width: var(--sheet);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left))
    max(var(--gutter), env(safe-area-inset-right));
}

/* —— Pages —————————————————————————————————————
   Each major block is one screen. Pale / shade / pale / shade. */

.page {
  box-sizing: border-box;
  max-width: none;
  min-height: 100svh;
  margin: 0;
  padding-inline: max(
      var(--gutter),
      env(safe-area-inset-left),
      calc((100% - var(--sheet)) / 2 + var(--gutter))
    )
    max(
      var(--gutter),
      env(safe-area-inset-right),
      calc((100% - var(--sheet)) / 2 + var(--gutter))
    );
  padding-block: var(--space-3xl);
}

.page--pale {
  background: var(--color-paper);
}

.page--shade {
  background: var(--color-paper-3);
}

/* —— N6 · Newspaper masthead ———————————————————
   Company mark as the mast. No product name, no CTA, no invented nav.
   Double rule closes the header. */

.mast {
  display: grid;
  justify-items: center;
  gap: var(--space-sm);
  padding-inline: max(var(--gutter), env(safe-area-inset-left))
    max(var(--gutter), env(safe-area-inset-right));
  padding-block: var(--space-lg) 0;
  background: var(--color-paper);
  text-align: center;
}

.mast__mark img {
  width: auto;
  height: clamp(2.75rem, 5.5vw, 3.75rem);
}

.mast__rule {
  width: 100%;
  height: 4px;
  margin: var(--space-sm) 0 0;
  border: 0;
  border-block-start: var(--rule-hair) solid var(--color-ink);
  border-block-end: var(--rule-hair) solid var(--color-ink);
}

/* —— C1 · Outlined chip ————————————————————————
   One CTA, repeated verbatim. The brief allows no second action, so the
   chip is deliberately the same object in the hero and the close. */

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  min-height: 44px;
  padding: var(--space-sm) var(--space-lg);
  border: var(--rule-hair) solid var(--color-ink);
  background: transparent;
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.cta:hover {
  background: var(--color-ink);
  color: var(--color-paper);
  border-color: var(--color-ink);
}

@media (pointer: coarse) {
  .cta {
    min-height: 48px;
  }
}

.cta:active {
  background: var(--color-ink-deep);
  border-color: var(--color-ink-deep);
}

.cta[aria-disabled="true"],
.cta:disabled {
  border-color: var(--color-rule);
  background: transparent;
  color: var(--color-neutral);
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* —— 1 · Hero · H1 Marquee ————————————————————— */

.hero {
  display: grid;
  align-content: end;
  min-height: calc(100svh - var(--nav-h));
  padding-block: var(--space-2xl) var(--space-3xl);
}

.hero__line {
  max-width: 21ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-display-s);
  font-style: normal;
  font-weight: 700;
  line-height: var(--leading-display);
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
  min-width: 0;
}

.hero__deck {
  max-width: var(--measure-wide);
  margin-block-start: var(--space-xl);
  color: var(--color-muted);
}

.hero__deck strong {
  font-weight: 600;
  color: var(--color-ink);
}

.hero__act {
  margin-block-start: var(--space-xl);
}

.cta-mail {
  margin-block-start: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.cta-mail a {
  color: var(--color-accent);
  text-decoration-thickness: var(--rule-hair);
  text-underline-offset: 0.25em;
  overflow-wrap: anywhere;
}

.cta-mail a:hover {
  color: var(--color-ink);
  text-decoration-thickness: var(--rule-heavy);
}

/* —— Section heads · stacked single column, no eyebrows —— */

.head {
  max-width: 24ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: normal;
  font-weight: 700;
  line-height: var(--leading-deck);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  min-width: 0;
}

/* —— 2 · Recognition · F3 tabular spec sheet ——————
   The two columns are the point: left is the reader's current week (quieter,
   set as speech), right is the answer (full ink). Hairline on every row. */

.ledger {
  width: 100%;
  margin-block-start: var(--space-xl);
  border-collapse: collapse;
  text-align: start;
}

.ledger th,
.ledger td {
  padding-block: var(--space-lg);
  padding-inline: 0 var(--space-xl);
  text-align: start;
  vertical-align: baseline;
  border-block-end: var(--rule-hair) solid var(--color-rule);
}

.ledger thead th {
  padding-block: 0 var(--space-sm);
  border-block-end: var(--rule-hair) solid var(--color-rule-strong);
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

.ledger tbody td:first-child {
  width: 44%;
  color: var(--color-muted);
}

.ledger tbody td:last-child {
  padding-inline-end: 0;
  color: var(--color-ink);
}

.ledger tbody tr:last-child td {
  border-block-end: 0;
}

.after-ledger {
  max-width: var(--measure-wide);
  margin-block-start: var(--space-xl);
  padding-block-start: var(--space-lg);
  border-block-start: var(--rule-heavy) solid var(--color-ink);
}

/* Below the typography breakpoint the table is the wrong shape — each row
   becomes a stacked question / answer pair carrying its own label. */
@media (max-width: 40rem) {
  .ledger,
  .ledger tbody,
  .ledger tr,
  .ledger td {
    display: block;
    width: auto;
  }

  .ledger thead {
    display: none;
  }

  .ledger tr {
    padding-block: var(--space-lg);
    border-block-end: var(--rule-hair) solid var(--color-rule);
  }

  .ledger tbody tr:last-child {
    border-block-end: 0;
  }

  .ledger td {
    padding: 0;
    border: 0;
  }

  .ledger tbody td:first-child {
    width: auto;
  }

  .ledger td + td {
    margin-block-start: var(--space-xs);
  }

  .ledger td::before {
    content: attr(data-label);
    display: block;
    margin-block-end: var(--space-2xs);
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-style: normal;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-ink);
  }
}

/* —— 3 · Who built it ——————————————————————————
   Name and portrait share one header row. Copy sits underneath. */

.founder {
  display: flex;
  flex-direction: column;
}

.founder__id {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  max-width: var(--measure);
  margin-block-end: var(--space-md);
}

.founder__byline {
  min-width: 0;
  flex: 1;
}

.founder__copy {
  max-width: var(--measure);
}

.founder__copy p + p {
  margin-block-start: var(--space-md);
}

.founder strong {
  font-weight: 600;
  color: var(--color-ink-deep);
}

.founder__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: normal;
  font-weight: 700;
  line-height: var(--leading-deck);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  min-width: 0;
}

.founder__role {
  margin-block: var(--space-2xs) 0;
  font-size: var(--text-sm);
  font-variant-caps: all-small-caps;
  letter-spacing: 0.1em;
  color: var(--color-muted);
}

.founder__figure {
  flex: 0 0 7.125rem;
  width: 7.125rem;
  max-width: 7.125rem;
  margin: 0;
}

.founder__figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 20%;
  filter: grayscale(1) contrast(1.04);
}

@media (min-width: 60rem) {
  .founder__figure {
    flex: 0 0 15rem;
    width: 15rem;
    max-width: 15rem;
  }

  .founder__id {
    margin-block-end: var(--space-lg);
  }
}

/* —— 4 · One order · six beats, then the anchor quote ———— */

.beats .head {
  margin-block-end: var(--space-xl);
}

.beats > p {
  max-width: var(--measure);
}

.beats > p + p {
  margin-block-start: var(--space-lg);
}

.beats strong {
  font-weight: 600;
  color: var(--color-ink-deep);
}

/* T3 · Single huge quote — left-aligned rather than centred; centred display
   is the editorial tell this genre bans. */
.anchor {
  max-width: 40ch;
  margin: var(--space-2xl) 0 0;
  padding-block: var(--space-xl);
  border-block: var(--rule-heavy) solid var(--color-ink);
}

.anchor p {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: normal;
  font-weight: 700;
  line-height: var(--leading-deck);
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
  min-width: 0;
}

/* —— 5 · Evidence · T1 pull-quote with marginalia ————————
   Marked as evidence rather than assertion: hairline box, accent rule,
   source stamped in the margin in the outlier face. */

.evidence {
  display: grid;
  align-content: center;
}

.evidence__lead {
  grid-column: 1 / -1;
  max-width: var(--measure-wide);
  margin: 0 0 var(--space-xl);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: normal;
  font-weight: 700;
  line-height: var(--leading-deck);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  min-width: 0;
}

.evidence__body,
.evidence__source {
  border: var(--rule-hair) solid var(--color-rule-strong);
}

.evidence__body {
  max-width: var(--measure-wide);
  padding: var(--space-xl);
  border-block-start: var(--rule-heavy) solid var(--color-accent);
  background: var(--color-paper);
  font-size: var(--text-md);
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.evidence__body p + p {
  margin-block-start: var(--space-md);
}

.evidence__source {
  max-width: var(--measure-wide);
  padding: var(--space-md) var(--space-xl) var(--space-lg);
  border-block-start: 0;
  background: var(--color-paper);
  font-family: var(--font-outlier);
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
}

.evidence__source cite {
  font-style: italic;
}

/* The source becomes true marginalia once there is a margin to put it in.
   The body drops its inline-end rule; the source's inline-start rule is the
   shared division, so the two boxes read as one ruled block. */
@media (min-width: 60rem) {
  .evidence {
    display: grid;
    grid-template-columns: minmax(0, var(--measure)) minmax(0, 18rem);
    align-content: center;
    align-items: stretch;
  }

  .evidence__body {
    max-width: none;
    border-inline-end: 0;
  }

  .evidence__source {
    max-width: none;
    padding-block: var(--space-xl);
    border-block-start: var(--rule-heavy) solid var(--color-accent);
  }
}

/* —— 6 · Close —————————————————————————————————— */

.close {
  padding-block-start: var(--space-xl);
  border-block-start: var(--rule-hair) solid var(--color-rule);
}

.close .head {
  max-width: 18ch;
  font-size: var(--text-2xl);
}

.close__line {
  max-width: var(--measure);
  margin-block-start: var(--space-lg);
  color: var(--color-muted);
}

.close__act {
  margin-block-start: var(--space-xl);
}

.close-page {
  min-height: 50svh;
  padding-block: var(--space-2xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.close-page .close {
  padding-block-start: 0;
  border-block-start: 0;
}

/* Founder + close share one pale screen. CTA sits after the story. */
.meet {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-2xl);
}

@media (max-width: 40rem) {
  .page {
    padding-block: var(--space-2xl);
  }

  .hero {
    min-height: 0;
    padding-block: var(--space-xl) var(--space-2xl);
  }

  .close-page {
    min-height: 0;
    padding-block: var(--space-2xl);
  }
}

/* —— Ft2 · Inline rule, single line ——————————————— */

.foot {
  background: var(--color-paper);
  border-block-start: var(--rule-hair) solid var(--color-rule);
  padding-block: var(--space-lg);
  padding-bottom: max(var(--space-lg), env(safe-area-inset-bottom));
}

.foot p {
  font-family: var(--font-outlier);
  font-size: var(--text-sm);
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.foot__dot {
  padding-inline: var(--space-2xs);
  color: var(--color-rule);
}

.foot__link {
  color: var(--color-accent);
  text-decoration-thickness: var(--rule-hair);
  text-underline-offset: 0.25em;
  white-space: nowrap;
}

.foot__link:hover {
  color: var(--color-ink);
  text-decoration-thickness: var(--rule-heavy);
}
