/* Nítido · shared system. Builds on tokens.css (link tokens.css first, then this file).
   One breakpoint: 960px. Mobile first. */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body), system-ui, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
@media (min-width: 960px) { body { font-size: 20px; } }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3, h4, .display, .t-display {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  -webkit-hyphens: none;
}

.sr, .lr-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: -80px; z-index: 200;
  background: var(--ink); color: var(--night-ink); padding: 12px 16px;
  font-family: var(--font-label); font-size: 13px; text-transform: uppercase; letter-spacing: .06em;
}
.skip:focus { top: 12px; }

/* ---------- layout ---------- */
:root {
  --pad: clamp(20px, 4vw, 56px);
  --gut: clamp(12px, 1.6vw, 24px);
  --sec: clamp(96px, 13vw, 200px);
  --header-h: 64px;
}
.wrap { padding-inline: var(--pad); }
.g12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gut);
}
.g12 > * { grid-column: 1 / -1; min-width: 0; }
@media (min-width: 960px) {
  /* Place children with style="--col: 1 / 9" (grid-column syntax). */
  .g12 > * { grid-column: var(--col, 1 / -1); }
}
.sec { padding-block: var(--sec); position: relative; }

/* Grounds. Proof Sheet carries the fine printer's grid; night never does. */
.proof {
  background-color: var(--bg);
  color: var(--ink);
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 12.5vw 12.5vw;
  background-position: -1px -1px;
}
.paper { background: var(--bg); color: var(--ink); }
.night { background: var(--night); color: var(--night-ink); }
.night .muted, .night .cap__line { color: #BDB8B1; }

/* ---------- type ---------- */
.display, .t-display {
  font-family: var(--font-display), system-ui, sans-serif;
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.035em;
}
.t-giant { font-size: clamp(56px, 11vw, 184px); }
.t-ask   { font-size: clamp(44px, 7.5vw, 128px); }
.t-132   { font-size: clamp(48px, 8vw, 132px); }
.t-56    { font-size: clamp(38px, 4.2vw, 56px); }
.t-40    { font-size: clamp(28px, 2.9vw, 40px); line-height: 1.08; letter-spacing: -.025em; font-weight: 500; }
.t-32    { font-size: clamp(25px, 2.3vw, 32px); line-height: 1.1;  letter-spacing: -.02em;  font-weight: 500; }
.t-28    { font-size: clamp(23px, 2vw, 28px);   line-height: 1.15; letter-spacing: -.015em; font-weight: 500; }
.t-body  { font-size: 18px; line-height: 1.45; }
@media (min-width: 960px) { .t-body { font-size: 20px; } }
.t-small { font-size: 17px; line-height: 1.45; }
@media (min-width: 960px) { .t-small { font-size: 18px; } }
.measure { max-width: 62ch; }
.muted { color: var(--muted); }

.mono, .kicker {
  font-family: var(--font-label), ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 400;
}
.kicker { font-weight: 700; }
@media (min-width: 960px) { .mono, .kicker { font-size: 14px; } }

/* A justified statement, Signal-A's mixed-weight paragraph: stress phrases in <strong>. */
.statement {
  font-size: clamp(22px, 2.25vw, 30px);
  line-height: 1.32;
  letter-spacing: -.012em;
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
}
.statement strong { font-weight: 500; color: var(--ink); }
.statement { color: var(--muted); }
@media (max-width: 959px) { .statement { text-align: left; } }

/* The one key word: Deadline, with a hand-drawn underline ending in a dot.
   Drawn by default; site.js sets it undrawn only when it is about to draw it. */
.key {
  --ul: 100; --dot: 1;
  position: relative;
  display: inline-block;
  color: var(--accent);
  white-space: nowrap;
}
.key::after {
  content: "";
  position: absolute;
  left: -.02em; right: .16em; bottom: -.12em;
  height: .2em; min-height: 4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M2 9.5C30 5.5 58 11 92 7.4S158 3.4 198 6.2' fill='none' stroke='%23B63C0F' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
  clip-path: inset(0 calc(100% - var(--ul) * 1%) 0 0);
  pointer-events: none;
}
.key::before {
  content: "";
  position: absolute;
  right: -.06em; bottom: -.1em;
  width: .15em; height: .15em; min-width: 5px; min-height: 5px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(var(--dot));
  pointer-events: none;
}

/* Line masks from data-rise keep room for descenders and the key underline. */
.rise-line-mask, .sp-ln-mask { overflow: visible !important; padding-top: .08em; margin-top: -.08em; padding-bottom: .16em; margin-bottom: -.16em; overflow-wrap: normal; hyphens: none; }

/* ---------- controls ---------- */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 2px;
  border: 1px solid transparent;
  font-family: var(--font-label), ui-monospace, monospace;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.1;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: color var(--dur-standard) var(--ease-pull);
}
@media (min-width: 960px) { .btn { font-size: 14px; } }
.btn::before {
  content: "";
  position: absolute; inset: -1px;
  z-index: -1;
  background: var(--btn-fill, var(--ink));
  clip-path: polygon(0 0, 0 0, -24% 100%, -24% 100%);
  transition: clip-path var(--dur-standard) var(--ease-pull);
}
.btn:hover::before, .btn:focus-visible::before { clip-path: polygon(0 0, 124% 0, 100% 100%, -24% 100%); }
.btn--book { background: var(--accent); color: var(--accent-ink); }
.btn--book:hover, .btn--book:focus-visible { color: var(--btn-fill-ink, var(--night-ink)); }
.night .btn--book, .btn--book.on-night { --btn-fill: var(--night-ink); --btn-fill-ink: var(--ink); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--night-ink); }
.night .btn--ghost { --btn-fill: var(--night-ink); }
.night .btn--ghost:hover, .night .btn--ghost:focus-visible { color: var(--ink); }
.btn--tall { min-height: 64px; padding-inline: 28px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Mono arrow link; label rolls on hover (act.label-roll, mounted by site.js). */
.link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--font-label), ui-monospace, monospace;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
@media (min-width: 960px) { .link { font-size: 14px; } }
.link::after { content: "→"; font-weight: 400; transition: transform var(--dur-quick) var(--ease-stop); }
.link:hover::after { transform: translateX(8px); }

/* act.label-roll (structure only; the motion is here so it uses this brand's eases). */
.lr-on { display: inline-flex; }
.lr-mask { position: relative; display: inline-block; overflow: hidden; vertical-align: top; line-height: inherit; }
.lr-a, .lr-b { display: block; transition: transform var(--dur-standard) var(--ease-stop); white-space: nowrap; }
.lr-b { position: absolute; left: 0; top: 0; transform: translateY(105%); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .lr-on:hover .lr-a, a:hover > .lr-on .lr-a { transform: translateY(-105%); }
  .lr-on:hover .lr-b, a:hover > .lr-on .lr-b { transform: translateY(0); }
}

/* The speed fan (logo-submark.svg). */
.fan { display: inline-block; width: clamp(40px, 5vw, 76px); height: auto; aspect-ratio: 1; }

/* ---------- the recurring caption ---------- */
.cap figcaption, .cap__text { display: grid; gap: 8px; margin-top: 12px; }
.cap__name {
  font-family: var(--font-label), ui-monospace, monospace;
  font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
}
.cap__rule { display: block; height: 1px; background: var(--rule); }
.cap__line { color: var(--muted); font-size: 17px; line-height: 1.4; }
.cap img, .cap video { width: 100%; object-fit: cover; }

/* ---------- the ledger (hairline rows) ---------- */
.ledger { display: grid; }
.ledger__row { position: relative; padding-block: clamp(20px, 2.6vw, 32px); }
.ledger__rule, .ledger [data-fx="guide.chalk-line"] {
  position: absolute; left: 0; right: 0; top: 0;
  height: 1px; background: var(--rule);
}
.night .ledger__rule, .night .ledger [data-fx="guide.chalk-line"] { background: #4A4650; }
.ledger__row:last-child::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--rule);
}
.ledger__grid { display: grid; gap: 8px 24px; }
@media (min-width: 960px) {
  .ledger__grid { grid-template-columns: 4.5rem minmax(0, 1fr); align-items: baseline; }
  .ledger__grid > :nth-child(n+3) { grid-column: 2; }
}
.ledger__n { font-family: var(--font-label), ui-monospace, monospace; font-size: 14px; letter-spacing: .06em; }

/* ---------- paper labels in a pile ---------- */
.pile { display: grid; gap: 16px; }
.pile__card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 24px 22px 28px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.pile__card .mono { color: var(--muted); }
@media (min-width: 960px) {
  .pile { gap: 0; }
  .pile__card {
    width: min(34vw, 100%);
    padding: 28px 30px 52px;
    rotate: var(--r, 0deg);
    translate: var(--x, 0) 0;
    margin-top: -24px;
    box-shadow: 0 1px 0 rgba(18, 19, 23, .04), 0 18px 40px -28px rgba(18, 19, 23, .35);
    transition: rotate var(--dur-quick) var(--ease-stop), translate var(--dur-quick) var(--ease-stop);
  }
  .pile__card:first-child { margin-top: 0; }
  .pile__card:nth-child(1) { z-index: 1; } .pile__card:nth-child(2) { z-index: 2; }
  .pile__card:nth-child(3) { z-index: 3; } .pile__card:nth-child(4) { z-index: 4; }
}
@media (min-width: 960px) and (hover: hover) {
  .pile__card:hover { z-index: 10; rotate: 0deg; }
}

/* ---------- the giant ask (say-hello) ---------- */
.ask { padding-block: clamp(112px, 16vw, 220px) clamp(80px, 10vw, 140px); }
.ask__title { max-width: 16ch; }
.ask__body { margin-top: clamp(28px, 3vw, 44px); max-width: 52ch; }
.ask__cta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }

/* ---------- media helpers ---------- */
.frame { position: relative; overflow: hidden; background: #D3CFC9; }
.frame > img, .frame > video { width: 100%; height: 100%; object-fit: cover; }
.r-34 { aspect-ratio: 3 / 4; } .r-45 { aspect-ratio: 4 / 5; } .r-43 { aspect-ratio: 4 / 3; }
.r-169 { aspect-ratio: 16 / 9; } .r-219 { aspect-ratio: 21 / 9; }

/* ---------- header ---------- */
.site-header {
  --hbg: var(--bg); --hfg: var(--ink); --hrule: var(--rule);
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center; gap: 12px;
  padding-inline: 14px;
  background: var(--hbg); color: var(--hfg);
  border-bottom: 1px solid var(--hrule);
}
.site-header.is-night { --hbg: var(--night); --hfg: var(--night-ink); --hrule: #2B2C33; }
.site-header__logo { display: flex; align-items: center; min-height: 44px; flex: none; margin-right: auto; }
.site-header__logo img { width: 76px; height: auto; }
.site-header .logo-light { display: none; }
.site-header.is-night .logo-light { display: block; }
.site-header.is-night .logo-ink { display: none; }
.site-header__book { min-height: 44px; padding-inline: 10px; font-size: 12px; letter-spacing: 0; white-space: nowrap; }
.site-nav { display: none; }
.site-header__menu {
  display: grid; place-content: center; gap: 6px;
  width: 44px; height: 44px; flex: none;
  border: 1px solid currentColor; border-radius: 2px;
}
.site-header__menu i { display: block; width: 18px; height: 1.5px; background: currentColor; }
@media (min-width: 960px) {
  :root { --header-h: 72px; }
  .site-header { padding-inline: var(--pad); gap: 0; }
  .site-header__logo { margin-right: 0; width: 18%; }
  .site-header__logo img { width: 104px; }
  .site-nav {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 var(--gut);
    flex: 1; margin-right: var(--gut); align-self: stretch; align-items: center;
  }
  .site-nav a {
    display: flex; align-items: center; min-height: 44px;
    border-bottom: 1px solid var(--hrule);
    font-family: var(--font-label), ui-monospace, monospace;
    font-size: 13px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  }
  .site-nav a[aria-current="page"] { border-bottom-color: currentColor; font-weight: 700; }
  .site-header__book { padding-inline: 18px; font-size: 13px; letter-spacing: .06em; }
  .site-header__menu { display: none; }
}
/* Narrow desktops: the five nav labels and the book button share less room, so they set smaller. */
@media (min-width: 960px) and (max-width: 1279px) {
  .site-header__logo { width: auto; margin-right: var(--gut); }
  .site-nav a { font-size: 11px; letter-spacing: .03em; white-space: nowrap; }
  .site-header__book { padding-inline: 12px; font-size: 12px; letter-spacing: .02em; }
}
main { display: block; }
.site-header + .menu + main, main { padding-top: 0; }
/* Pages that open on Proof Sheet (not a night move) add class "after-header" to their first section. */
.after-header { padding-top: calc(var(--header-h) + clamp(56px, 9vw, 140px)); }

/* ---------- menu (phones) ---------- */
.menu {
  position: fixed; inset: 0; z-index: 150;
  background: var(--night); color: var(--night-ink);
  padding: calc(var(--header-h) + 24px) var(--pad) 32px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  visibility: hidden; opacity: 0;
  transition: opacity var(--dur-quick) var(--ease-stop), visibility 0s linear var(--dur-quick);
  overflow-y: auto;
}
.menu:target, html.menu-open .menu { visibility: visible; opacity: 1; transition: opacity var(--dur-quick) var(--ease-stop); }
.menu__close {
  position: absolute; top: 10px; right: 14px;
  display: grid; place-content: center; width: 44px; height: 44px;
  border: 1px solid currentColor; border-radius: 2px; text-decoration: none;
  font-family: var(--font-label), monospace; font-size: 20px; line-height: 1;
}
.menu__nav a {
  display: flex; align-items: baseline; justify-content: space-between;
  min-height: 56px; padding-block: 10px;
  border-bottom: 1px solid #2B2C33;
  font-family: var(--font-display), sans-serif; font-weight: 700;
  font-size: clamp(36px, 10vw, 56px); line-height: 1; letter-spacing: -.035em;
  text-decoration: none;
}
.menu__nav a::after { content: "→"; font-family: var(--font-label), monospace; font-size: 18px; font-weight: 400; letter-spacing: 0; }
.menu__foot { display: grid; gap: 12px; }
.menu__foot .btn { width: 100%; }
@media (min-width: 960px) { .menu { display: none; } }
html.menu-open { overflow: hidden; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--bg); color: var(--ink);
  padding: clamp(48px, 5vw, 72px) var(--pad) 24px;
  border-top: 1px solid var(--rule);
}
.site-footer__grid { row-gap: 48px; }
.site-footer__lead { display: grid; gap: 20px; align-content: start; }
.site-footer__lead p { max-width: 30ch; }
.site-footer__list { display: grid; }
.site-footer__list > * {
  display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 4px 16px; align-items: baseline;
  padding-block: 12px; border-top: 1px solid var(--rule);
  min-height: 44px;
}
.site-footer__list > *:last-child { border-bottom: 1px solid var(--rule); }
.site-footer__list .mono { color: var(--muted); }
.site-footer__list a { text-decoration: none; }
.site-footer__list > li.is-link { display: block; padding: 0; }
.site-footer__list > li.is-link > a {
  display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 4px 16px; align-items: baseline;
  padding-block: 12px; min-height: 48px;
}
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0 18px; }
.site-footer__links a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer__list a:hover .v { text-decoration: underline; text-underline-offset: 4px; }
.site-footer__list .v { font-size: 17px; line-height: 1.4; overflow-wrap: anywhere; }
.site-footer__pages a { font-family: var(--font-label), monospace; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; font-weight: 700; }
.site-footer__mark { margin-top: clamp(32px, 4vw, 56px); }
.site-footer__mark img { width: 18vw; height: auto; display: block; }
.site-footer__base {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: 4px 20px; justify-content: space-between; align-items: center;
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 0 20px; }
.site-footer__legal a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-footer__legal a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* The header's ask is shorter on a phone. */
.sm-only { display: none; }
@media (max-width: 959px) { .lg-only { display: none; } .sm-only { display: inline; } }
