/* CHITpass — the pass is the design system.
   Every decision on this page is sampled from the product artifact:
   - type grammar: PassKit's letterspaced small-caps LABEL over a large
     regular-weight value (STATUS/TONIGHT, GATES/7:00 PM)
   - ink: the Upcoming pass's slate (#39424d family)
   - working blue: the Tonight pass's background (#0b5c93)
   - amber: used only where the pass uses it (labels), darkened for AA
   - the only rounded rectangle on the page is the pass render itself;
     the one pill button mirrors the Add button in Apple's add sheet
   - typeface: the system face the pass renders in
   No cards, no gradients, no icons, no motion, no dark theme, no serif
   costume. If a decision can't be traced to the pass, it doesn't ship. */

:root {
  --ground: #f4f4f2;
  --ground-deep: #ebebe8;
  --ink: #2c3640;          /* slate, from the Upcoming pass */
  --dim: #5b6772;
  --faint: #8e979f;
  --rule: #d9dad6;
  --blue: #0b5c93;         /* the Tonight pass background */
  --blue-ink: #0a4d7b;
  --label: #9a6b17;        /* the pass's amber label, darkened for paper */
}

* { margin: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
  background: var(--ground);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 28px; }

/* The pass's label register — the load-bearing typographic move. */
.label {
  display: block;
  font-size: 12.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--label);
}

/* ── nav ─────────────────────────────────────────────────────────── */
header.nav { border-bottom: 1px solid var(--rule); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.wordmark {
  display: flex; align-items: center; gap: 11px;
  font-size: 17px; font-weight: 700; letter-spacing: .01em; color: var(--ink);
  white-space: nowrap;
}
.wordmark:hover { text-decoration: none; }
.wordmark .mark { width: 28px; height: 28px; }
.wm-stack { display: flex; align-items: baseline; gap: 10px; }
.wm-tail { font-size: 13.5px; font-weight: 500; color: var(--dim); letter-spacing: 0; }
.wm-tail .wm-sep { color: var(--rule); padding-right: 8px; }
nav.links { display: flex; gap: 30px; align-items: center; }
nav.links a { color: var(--dim); font-size: 15px; }
nav.links a:hover { color: var(--ink); text-decoration: none; }
/* The one pill on the page, after the Add button in Apple's sheet. */
nav.links a.cta {
  color: #fff; background: var(--blue); padding: 8px 20px;
  border-radius: 999px; font-weight: 600; white-space: nowrap;
}
nav.links a.cta:hover { background: var(--blue-ink); text-decoration: none; }

/* ── hero: a pass field, blown up ────────────────────────────────── */
.hero { padding: 96px 0 34px; }
.hero .label { margin-bottom: 18px; }
h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  font-weight: 450; line-height: 1.06; letter-spacing: -0.022em;
  max-width: 17ch;
}
.hero .sub {
  margin-top: 26px; font-size: 19px; color: var(--dim); max-width: 56ch;
}
.hero-ctas { margin-top: 36px; display: flex; align-items: center; gap: 20px 28px; flex-wrap: wrap; }
.btn {
  display: inline-block; background: var(--blue); color: #fff;
  padding: 12px 28px; border-radius: 999px; font-size: 16px; font-weight: 600;
  white-space: nowrap;
}
.btn:hover { background: var(--blue-ink); text-decoration: none; }
.quiet-link { color: var(--dim); font-size: 15.5px; }

/* ── the exhibit: the artifact itself ────────────────────────────── */
.exhibit { padding: 70px 0 90px; }
.exhibit-grid {
  display: grid; grid-template-columns: 290px auto 290px; gap: 44px;
  align-items: center; justify-content: center;
}
.exhibit figure { margin: 0; }
.exhibit .passimg {
  border-radius: 14px;
  box-shadow: 0 2px 4px rgba(44, 54, 64, .12), 0 22px 48px rgba(44, 54, 64, .18);
}
.exhibit figcaption { margin-top: 20px; text-align: center; }
.exhibit figcaption .label { color: var(--faint); }
.exhibit .turns {
  color: var(--faint); font-size: 24px; text-align: center; user-select: none;
}
.exhibit-note {
  text-align: center; margin-top: 38px; color: var(--dim); font-size: 16px;
}
.exhibit-note .true { color: var(--faint); font-size: 13.5px; display: block; margin-top: 6px; }

/* ── sections speak label-then-value, like the pass back ─────────── */
section.sheet { padding: 56px 0 30px; }
.sheet-head { border-top: 1px solid var(--ink); padding-top: 14px; margin-bottom: 8px; }
.sheet-lede {
  font-size: clamp(24px, 3vw, 32px); font-weight: 450; letter-spacing: -0.015em;
  line-height: 1.25; max-width: 34ch; margin-top: 6px;
}
.field-rows { margin-top: 40px; }
.field-row {
  display: grid; grid-template-columns: 240px 1fr; gap: 40px;
  padding: 26px 0; border-top: 1px solid var(--rule);
  align-items: baseline;
}
.field-row dt { padding-top: 3px; }
.field-row dd {
  margin: 0; font-size: 18.5px; line-height: 1.55; letter-spacing: -0.005em;
  max-width: 30em;
}
.field-row dd .aside { color: var(--dim); font-size: 16px; display: block; margin-top: 6px; }

/* ── engagement ──────────────────────────────────────────────────── */
.engage { padding: 50px 0 30px; }
.engage .body {
  font-size: 18.5px; max-width: 33em; margin-top: 14px;
}
.engage .body b { font-weight: 650; }

/* ── contact ─────────────────────────────────────────────────────── */
.contact { padding: 64px 0 96px; }
.contact .mailline { margin-top: 14px; }
.contact .mailline a {
  font-size: clamp(24px, 3.4vw, 34px); font-weight: 500;
  letter-spacing: -0.015em; color: var(--blue-ink);
}

/* ── footer ──────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--rule); background: var(--ground-deep);
  padding: 42px 0 52px; text-align: center;
}
.foot-links { display: flex; gap: 12px 28px; justify-content: center; margin-bottom: 26px; flex-wrap: wrap; }
.foot-links a { color: var(--dim); font-size: 14.5px; }
.powerline {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: var(--dim); font-size: 14.5px; flex-wrap: wrap;
}
.powerline span { white-space: nowrap; }
.powerline img { height: 17px; width: 17px; }
.powerline b { color: var(--ink); }
.powerline .sep { color: var(--faint); padding: 0 6px; }
.copyright { margin-top: 12px; font-size: 12.5px; color: var(--faint); }

/* ── legal pages ─────────────────────────────────────────────────── */
main.legal { max-width: 680px; margin: 0 auto; padding: 70px 28px 96px; }
main.legal h1 {
  font-size: 34px; font-weight: 500; letter-spacing: -0.02em; max-width: none;
}
main.legal .updated { color: var(--faint); font-size: 14px; margin: 6px 0 40px; }
main.legal h2 {
  font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--label); margin: 40px 0 10px;
}
main.legal p, main.legal li { color: var(--ink); font-size: 16.5px; }
main.legal ul { padding-left: 22px; margin: 10px 0; }
main.legal li { margin-bottom: 6px; }

@media (max-width: 780px) {
  .wordmark .mark { width: 34px; height: 34px; }
  .wm-stack { flex-direction: column; align-items: flex-start; gap: 1px; }
  .wm-name { line-height: 1.1; }
  .wm-tail {
    font-size: 8.5px; font-weight: 600; letter-spacing: .14em;
    text-transform: uppercase; color: var(--faint);
  }
  .wm-tail .wm-sep { display: none; }
  .hero { padding-top: 60px; }
  .exhibit-grid { grid-template-columns: minmax(0, 290px); }
  .exhibit .turns { transform: rotate(90deg); }
  .field-row { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; }
  nav.links a:not(.cta) { display: none; }
}
