/* A Runway To · Issue 001
   One stylesheet. Semantic tokens first (brief §31); the landscape colours are
   the app's own (RunwayKit LandscapePalette, day). System font stacks only:
   swap --display / --editorial / --mono for licensed faces later. */

:root {
  color-scheme: light dark;

  /* editorial */
  --paper: #fbfaf7;
  --ink: #0a0a0a;
  --muted: #55534d;
  --rule: #0a0a0a;
  --hairline: #cfcbc0;
  --link: #0b3fd6;
  --accent: #e3ff3d;      /* the issue's fluorescent, from the app */
  --print-red: #d4241b;

  /* the runway world */
  --sky: #1a75fa;
  --sky-top: #053dc2;
  --sky-open: #0a57eb;
  --sky-middle: #4da1ff;
  --sky-horizon: #9ed1ff;
  --sky-haze: #d6edff;
  --field: #33b80d;
  --field-far: #52b357;
  --field-swell: #66db1a;
  --field-near: #33b80d;
  --field-deep: #127a0a;
  --field-highlight: #a3f538;
  --cloud: #fafcff;
  --on-sky: #ffffff;
  --halo: rgba(0, 20, 64, 0.32);

  /* type */
  --display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --editorial: "Times New Roman", Times, "Liberation Serif", serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  --caption: 0.75rem;

  /* space */
  --gutter: 16px;
  --gap-xl: clamp(96px, 16vw, 200px);
  --gap-l: clamp(48px, 8vw, 96px);
  --measure: 34rem;
  --measure-narrow: 24rem;
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}
@media (min-width: 1200px) {
  :root { --gutter: 56px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0c0c0b;
    --ink: #f4f2ec;
    --muted: #b4b0a6;
    --rule: #f4f2ec;
    --hairline: #3a3934;
    --link: #8fb0ff;
  }
}

/* ------------------------------------------------------------ base */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.0625rem;
  line-height: 1.5;
  overflow-x: clip;
}

/* House typography (root contract §3). */
h1, h2, h3, h4 {
  text-wrap: balance;
  margin: 0;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

p, li, dd, dt, figcaption, blockquote {
  text-wrap: pretty;
}

/* A heading of more than one sentence breaks only between sentences. */
.s { display: inline-block; text-wrap: balance; }

/* Display lines: one per line, sized by the longest so none wraps (--chars
   is that line’s length; 0.74em covers the stack’s widest capitals). */
.line { display: block; }
.mega, .mega-tight, .inner-title, .object-title, .commerce-title { container-type: inline-size; }
.fit { display: block; font-size: min(var(--max, 1em), calc(100cqi / (var(--chars) * 0.74))); }
.mega { --max: 19rem; }
.mega-tight { --max: 11.5rem; }
.inner-title { --max: 10rem; }
.object-title { --max: 6rem; }
.commerce-title { --max: 4.5rem; }

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

a { color: inherit; text-decoration-thickness: 0.07em; text-underline-offset: 0.16em; }

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -200px;
  z-index: 20;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 14px;
  font-weight: 700;
}
.skip:focus { top: 10px; }

.label, .furniture, .file-label, .page-label, .formula {
  font-family: var(--mono);
  font-size: var(--caption);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
}
.muted { color: var(--muted); }

.serif { font-family: var(--editorial); font-size: 1.25rem; line-height: 1.35; max-width: var(--measure); }
.serif-lg { font-family: var(--editorial); font-size: clamp(1.625rem, 5.4vw, 2.75rem); line-height: 1.08; letter-spacing: -0.01em; max-width: 18em; }

.mega {
  font-size: clamp(4rem, 23vw, 19rem);
  line-height: 0.82;
  letter-spacing: -0.06em;
  font-weight: 700;
  margin-left: -0.05em;
}
.mega-tight { font-size: clamp(3rem, 13.5vw, 11.5rem); line-height: 0.86; letter-spacing: -0.05em; }

.money { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

.more { margin-top: 28px; }
.more a {
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  display: inline-block;
  padding: 10px 0;
}
.more a::after { content: " →"; }

section { position: relative; }

/* ------------------------------------------------------------ masthead */

.masthead {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 24px;
  padding: 16px var(--gutter);
}
.wordmark {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}
.masthead nav ul { display: flex; flex-wrap: wrap; gap: 0 18px; list-style: none; }
.masthead nav a {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  display: inline-block;
  padding: 10px 0;
}
.masthead nav a:hover, .masthead nav a[aria-current="page"] { text-decoration: underline; }
.masthead-cta { display: none; }
@media (min-width: 900px) {
  .masthead-cta { display: block; }
}
body:not(.home) .masthead { border-bottom: 1px solid var(--rule); }

/* ------------------------------------------------------------ app CTA */

.app-cta {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 10px 12px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  white-space: nowrap;
}
a.app-cta:hover { background: var(--link); color: #fff; }
.app-cta-soon { cursor: default; }

/* ------------------------------------------------------------ landscape */

.landscape {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background: linear-gradient(180deg,
    var(--sky-top) 0%, var(--sky-open) 18%, var(--sky) 56%,
    var(--sky-middle) 74%, var(--sky-horizon) 86%, var(--sky-haze) 100%);
}
.landscape-img { width: 100%; height: 100%; object-fit: cover; }
.sky-layer {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 60% at 70% 100%, rgba(255, 255, 255, 0.35), transparent 60%);
  opacity: calc(0.4 + var(--open, 0) * 0.6);
  transition: opacity 1.4s ease;
}
.cloud {
  position: absolute;
  background: var(--cloud);
  border-radius: 50%;
  filter: blur(16px);
  opacity: 0.85;
  animation: drift 140s linear infinite alternate;
}
.cloud::before {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
  width: 55%;
  height: 130%;
  left: 20%;
  top: -55%;
}
.c1 { width: 44%; height: 9%; top: 9%; left: -8%; }
.c2 { width: 50%; height: 10%; top: 22%; right: -12%; animation-duration: 180s; animation-direction: alternate-reverse; }
.c3 { width: 26%; height: 6%; top: 47%; left: 60%; opacity: 0.6; animation-duration: 110s; }
@keyframes drift {
  from { transform: translateX(-3%); }
  to { transform: translateX(9%); }
}
.field-svg {
  position: absolute;
  left: -2%;
  bottom: 0;
  width: 104%;
  height: 40%;
  transform-origin: 50% 100%;
  transform: translateY(calc(var(--open, 0) * 12%)) scaleY(calc(1 - var(--open, 0) * 0.18));
  transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  animation: breathe 16s ease-in-out infinite alternate;
}
.field-svg .far { fill: var(--field-far); }
.field-svg .near { fill: var(--field-near); }
.field-svg .deep { fill: var(--field-deep); }
@keyframes breathe {
  from { scale: 1 1; }
  to { scale: 1 1.015; }
}
/* Slight low-resolution, compressed quality: a fine grain over the scene. */
.grain {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  .cloud, .field-svg { animation: none; }
  .field-svg, .sky-layer, .readout-value { transition: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------ readout */

.readout { margin: 0; line-height: 1; }
.readout-value {
  display: block;
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.8;
  font-variant-numeric: tabular-nums;
  margin-left: -0.05em;
}
.readout-unit {
  display: block;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* ------------------------------------------------------------ 01 cover */

.cover {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--on-sky);
}
.cover .landscape .field-svg { height: 34%; }
.cover .masthead a, .cover .masthead { color: var(--on-sky); }
.cover .masthead { text-shadow: 0 1px 10px var(--halo); }
.cover-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 4px var(--gutter) 20px;
}
.furniture { margin: 0; text-shadow: 0 1px 8px var(--halo); }
.readout-cover {
  margin-top: clamp(20px, 7vh, 96px);
  align-self: flex-end;
  text-align: right;
  margin-right: -0.04em;
  text-shadow: 0 4px 40px var(--halo);
}
.readout-cover .readout-value { font-size: clamp(9rem, 50vw, 32rem); }
.readout-cover .readout-unit { font-size: clamp(1.5rem, 7vw, 4rem); margin-top: 0.1em; }
.cover-title {
  margin-top: clamp(18px, 4vh, 48px);
  font-size: clamp(1.75rem, 7.4vw, 4.5rem);
  max-width: 11em;
  letter-spacing: -0.035em;
  text-shadow: 0 2px 22px var(--halo);
}
.cover-foot {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.cover-category {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: #fbfaf7;
  color: #0a0a0a;
  padding: 10px 12px;
}
.cover-category a { color: inherit; }
.cover .app-cta { background: #0a0a0a; color: #fbfaf7; }
.file-label {
  position: absolute;
  right: var(--gutter);
  bottom: 24px;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  display: none;
}
@media (min-width: 720px) {
  .file-label { display: block; }
}
/* Wide covers: the number and the question share the sky, side by side,
   so the question never lands on the field. */
@media (min-width: 900px) {
  .cover .landscape .field-svg { height: 26%; }
  .cover-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    column-gap: clamp(24px, 4vw, 64px);
  }
  .furniture { grid-column: 1 / -1; }
  .readout-cover { grid-column: 1; align-self: center; text-align: left; margin-top: 12px; }
  .readout-cover .readout-value { font-size: min(32rem, 34vw, 52svh); }
  .cover-title { grid-column: 2; align-self: center; margin-top: 0; }
  .cover-foot { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------ 02 premise */

.premise {
  padding: var(--gap-l) var(--gutter) var(--gap-xl);
  display: grid;
  gap: 40px;
}
.page-label { margin: 0; color: var(--muted); }
.premise .serif-lg { margin-bottom: 0.8em; }
.formula {
  display: inline-block;
  font-size: 0.9375rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 8px 0;
  margin-top: 12px;
}
@media (min-width: 900px) {
  .premise { grid-template-columns: 1.5fr 1fr; align-items: end; }
  .premise .page-label { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------ 03 ledger */

.ledger-section {
  padding: var(--gap-l) var(--gutter);
  border-top: 2px solid var(--rule);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.ledger-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.label-heading {
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  line-height: 1.4;
}
.ledger-head .label { margin: 0; color: var(--muted); }
.ledger-cols { display: grid; gap: 36px; margin-top: 32px; }
@media (min-width: 900px) {
  .ledger-cols { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}
.ledger-group h3 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 12vw, 4.5rem);
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}
.ledger-group ul { list-style: none; }
.ledger-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 6px;
  padding: 7px 0;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--hairline);
}
.ledger-name { font-family: var(--display); font-size: 1rem; }
.leader { flex: 1; min-width: 16px; border-bottom: 2px dotted currentColor; transform: translateY(-4px); opacity: 0.7; }
.ledger-amt { white-space: nowrap; }
.ledger-tag { flex-basis: 100%; font-size: var(--caption); letter-spacing: 0.06em; color: var(--muted); }
.ledger-total { margin-top: 48px; border-top: 2px solid var(--rule); padding-top: 16px; }
.ledger-equals {
  font-family: var(--display);
  font-size: clamp(3.25rem, 15vw, 11rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.9;
  margin: 0 0 18px -0.04em;
}
.ledger-total .label { margin: 0 0 4px; }

/* ------------------------------------------------------------ 04 irregular */

.irregular {
  padding: var(--gap-xl) var(--gutter);
  border-top: 2px solid var(--rule);
  overflow: hidden;
}
.irregular .page-label { margin-bottom: 24px; }
.irregular-sub { margin-top: 28px; font-style: italic; }
.fragments {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 12px;
  margin: 40px 0;
}
.fragment {
  display: flex;
  flex-direction: column;
  padding: 10px 12px 12px;
  border: 1px solid var(--rule);
  background: var(--paper);
  font-family: var(--mono);
  font-size: var(--caption);
  letter-spacing: 0.06em;
  line-height: 1.4;
  min-width: 8.5rem;
}
.fragment-amt { font-family: var(--display); font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin-bottom: 6px; }
.fragment-amt .money { font-family: inherit; }
.fragment-note.late { color: var(--print-red); font-weight: 700; }
.f1 { transform: rotate(-2deg); }
.f2 { transform: rotate(1.5deg) translateY(14px); background: var(--accent); color: #0a0a0a; border-color: #0a0a0a; }
.f3 { transform: rotate(-0.5deg); }
.f4 { transform: rotate(2.5deg) translateY(-6px); }
.f5 { transform: rotate(-1.5deg) translateY(10px); }
.f2 .fragment-note.late { color: #b01810; }
@media (min-width: 900px) {
  .fragments { position: relative; height: 420px; display: block; margin: 24px 0 48px; }
  .fragment { position: absolute; }
  .f1 { left: 2%; top: 10%; }
  .f2 { left: 26%; top: 48%; }
  .f3 { left: 47%; top: 4%; }
  .f4 { left: 66%; top: 40%; }
  .f5 { left: 84%; top: 8%; }
  .fragment-amt { font-size: 3rem; }
}
.irregular-copy { display: grid; gap: 4px; max-width: var(--measure); margin-left: auto; }

/* ------------------------------------------------------------ 05 field */

.field {
  min-height: 92svh;
  display: flex;
  color: var(--on-sky);
  overflow: hidden;
}
.field .landscape .field-svg { height: 44%; }
.field-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: var(--gap-l) var(--gutter) 28px;
}
.field-title {
  font-size: clamp(1.75rem, 6.6vw, 4rem);
  letter-spacing: -0.035em;
  max-width: 12em;
  text-shadow: 0 2px 20px var(--halo);
}
.field-readout { margin: 24px 0 0; text-shadow: 0 4px 36px var(--halo); }
.readout-field .readout-value { font-size: clamp(7.5rem, 40vw, 24rem); }
.readout-field .readout-unit { font-size: clamp(1.25rem, 5.6vw, 3rem); margin-top: 0.12em; }
.slip {
  margin-top: auto;
  align-self: flex-start;
  background: #fbfaf7;
  color: #0a0a0a;
  font-family: var(--mono);
  padding: 14px 14px 14px;
  min-width: 15rem;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.25);
  transform: rotate(-1deg);
}
.slip p { margin: 0; letter-spacing: 0.06em; font-size: 0.8125rem; }
.slip .slip-amt { font-family: var(--display); font-size: 2.25rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.slip .slip-amt .money { font-family: inherit; }
.slip-button {
  margin-top: 12px;
  width: 100%;
  min-height: 48px;
  font: 600 0.875rem/1 var(--mono);
  letter-spacing: 0.06em;
  border: 2px solid #0a0a0a;
  background: #0a0a0a;
  color: #fbfaf7;
  cursor: pointer;
  padding: 12px;
}
.slip-button[aria-pressed="true"] { background: var(--accent); color: #0a0a0a; }
.slip-button[aria-pressed="true"]::after { content: " ✓"; }
.slip-button:focus-visible { outline-color: #0a0a0a; }
@media (min-width: 900px) {
  .field .landscape .field-svg { height: 30%; }
  .readout-field .readout-value { font-size: min(24rem, 30vw, 44svh); }
  .slip { position: absolute; right: var(--gutter); bottom: 64px; margin: 0; }
}
.field-caption {
  margin: 14px 0 0;
  align-self: flex-start;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 4px 8px;
}

/* ------------------------------------------------------------ 06 confirmed */

.confirmed {
  padding: var(--gap-xl) var(--gutter);
  display: grid;
  gap: 48px;
}
@media (min-width: 900px) {
  .confirmed { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
}
.confirmed-main, .confirmed-second { display: flex; align-items: flex-end; gap: 14px; margin: 0; }
.confirmed-main .readout-value { font-size: clamp(7rem, 34vw, 16rem); }
.confirmed-second { margin: 14px 0 36px; padding-top: 14px; border-top: 1px solid var(--rule); color: var(--muted); }
.confirmed-second .readout-value { font-size: clamp(3.5rem, 15vw, 6.5rem); }
.confirmed .label { padding-bottom: 0.6em; }

/* ------------------------------------------------------------ 07 what if */

.what-if {
  padding: var(--gap-l) var(--gutter) var(--gap-xl);
  border-top: 2px solid var(--rule);
}
.what-if-grid { display: grid; gap: 24px; margin: 40px 0 16px; }
@media (min-width: 900px) {
  .what-if-grid { grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: stretch; }
}
.what-if-grid .label { margin-bottom: 10px; }
.scenarios { list-style: none; border-top: 1px solid var(--rule); }
.scenario {
  display: block;
  width: 100%;
  min-height: 48px;
  text-align: left;
  font: 700 clamp(1.125rem, 4.6vw, 1.625rem)/1.1 var(--display);
  letter-spacing: -0.015em;
  padding: 12px 0;
  background: none;
  color: inherit;
  border: 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
}
.scenario::before {
  content: "○ ";
  font-family: var(--mono);
  font-weight: 400;
}
.scenario[aria-pressed="true"]::before { content: "● "; }
.scenario[aria-pressed="true"] { background: var(--accent); color: #0a0a0a; padding-left: 8px; }
.scenario:hover { text-decoration: underline; }
.what-if-result {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  color: var(--on-sky);
}
.what-if-result .field-svg { height: 38%; }
.what-if-readout {
  position: relative;
  z-index: 2;
  padding: 18px 16px;
  text-shadow: 0 2px 24px var(--halo);
}
.what-if-readout .label { margin: 0; }
.readout-what-if { margin: 18px 0 10px; }
.readout-what-if .readout-value { font-size: clamp(6rem, 30vw, 12rem); }
.readout-what-if .readout-unit { font-size: clamp(1.125rem, 5vw, 2rem); margin-top: 0.12em; }
.what-if-detail { display: inline-block; background: rgba(0, 0, 0, 0.55); padding: 4px 8px; }
.what-if-detail .money { font-family: inherit; letter-spacing: inherit; }
.noscript-results { list-style: none; font-family: var(--mono); margin-top: 16px; }

/* ------------------------------------------------------------ 08 people */

.people { padding: var(--gap-l) var(--gutter); border-top: 2px solid var(--rule); }
.profile { margin-top: 40px; border-top: 1px solid var(--rule); padding-top: 14px; }
.sample-flag {
  display: inline-block;
  font-family: var(--mono);
  font-size: var(--caption);
  letter-spacing: 0.06em;
  border: 1px solid var(--print-red);
  color: var(--print-red);
  padding: 4px 8px;
  margin-bottom: 20px;
}
@media (prefers-color-scheme: dark) {
  .sample-flag { color: #ff6b5f; border-color: #ff6b5f; }
}
.profile-grid { display: grid; gap: 24px; }
@media (min-width: 760px) {
  .profile-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; }
}
.profile-portrait { margin: 0; }
.portrait-empty {
  aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, var(--sky-open), var(--sky-middle) 60%, var(--field-near) 60%, var(--field-deep));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  font-family: var(--mono);
  font-size: var(--caption);
  letter-spacing: 0.06em;
  color: #fff;
  max-width: 28rem;
}
.profile-name { font-size: clamp(2.5rem, 11vw, 5rem); letter-spacing: -0.045em; }
.profile-body .label { margin-top: 12px; }
.readout-profile { margin: 20px 0; }
.readout-profile .readout-value { font-size: clamp(4.5rem, 20vw, 8rem); }
.readout-profile .readout-unit { font-size: 1.125rem; }
.profile-intro { font-family: var(--editorial); font-style: italic; color: var(--muted); max-width: var(--measure); }
.qa { margin: 24px 0 0; max-width: var(--measure); }
.qa dt { font-family: var(--mono); font-size: var(--caption); letter-spacing: 0.06em; margin-top: 18px; }
.qa dd { margin: 6px 0 0; font-family: var(--editorial); font-size: clamp(1.375rem, 4.6vw, 1.875rem); line-height: 1.2; }

/* ------------------------------------------------------------ 09 notes */

.notes { padding: var(--gap-l) var(--gutter); border-top: 2px solid var(--rule); }
.contents { list-style: none; margin-top: 40px; border-top: 2px solid var(--rule); }
.contents-row {
  display: grid;
  gap: 4px 24px;
  padding: 18px 0 20px;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 900px) {
  .contents-row { grid-template-columns: 11rem 1fr 8rem; align-items: baseline; }
  .contents-deck { grid-column: 2; }
  .contents-status { grid-column: 3; grid-row: 1; text-align: right; }
}
.contents-meta, .contents-status { margin: 0; font-family: var(--mono); font-size: var(--caption); letter-spacing: 0.06em; color: var(--muted); }
.contents-title { font-size: clamp(1.375rem, 5.6vw, 2.75rem); letter-spacing: -0.035em; line-height: 1; }
.contents-title a { text-decoration: none; }
.contents-title a:hover { text-decoration: underline; }
.contents-deck { margin: 4px 0 0; font-family: var(--editorial); font-style: italic; font-size: 1.1875rem; line-height: 1.3; max-width: var(--measure); }

/* ------------------------------------------------------------ 10 object */

.object {
  padding: var(--gap-xl) var(--gutter) var(--gap-l);
  border-top: 2px solid var(--rule);
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) {
  .object { grid-template-columns: 1fr 2fr; align-items: end; }
}
.object-title { font-size: clamp(2.75rem, 12vw, 6rem); letter-spacing: -0.03em; margin-bottom: 18px; }
.contact-sheet {
  list-style: none;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  margin-right: calc(-1 * var(--gutter));
  padding-right: var(--gutter);
}
.contact-sheet li { flex: 0 0 min(62%, 16rem); scroll-snap-align: start; }
@media (min-width: 900px) {
  .contact-sheet { overflow: visible; margin-right: 0; padding-right: 0; }
  .contact-sheet li { flex: 1 1 0; }
}
.contact-sheet figure { margin: 0; }
.contact-sheet img { border: 1px solid var(--rule); width: 100%; }
.contact-sheet figcaption { font-family: var(--mono); font-size: var(--caption); letter-spacing: 0.06em; margin-top: 6px; }

/* ------------------------------------------------------------ 11 commerce */

.commerce { padding: var(--gap-l) var(--gutter); }
.commerce-ad {
  background: var(--ink);
  color: var(--paper);
  padding: 28px 18px 32px;
  border: 6px double var(--paper);
  outline: 2px solid var(--ink);
  max-width: 44rem;
  margin: 0 auto;
  font-family: var(--mono);
}
.commerce-title { font-family: var(--display); font-size: clamp(2.5rem, 11vw, 4.5rem); letter-spacing: -0.045em; margin-bottom: 20px; }
.classified { list-style: none; border-top: 1px solid currentColor; }
.classified li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid currentColor;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}
.classified li span:last-child { font-weight: 700; white-space: nowrap; }
.commerce-line { font-family: var(--display); font-weight: 700; font-size: clamp(1.375rem, 5vw, 2rem); line-height: 1.05; letter-spacing: -0.02em; margin: 28px 0; }
.commerce-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.commerce-lists ul { list-style: none; font-size: 0.8125rem; letter-spacing: 0.04em; line-height: 1.7; }
.commerce-lists .label { border-bottom: 1px solid currentColor; padding-bottom: 4px; margin-bottom: 6px; font-weight: 700; }
.commerce .app-cta { background: var(--accent); color: #0a0a0a; margin-top: 8px; }

/* ------------------------------------------------------------ inner pages */

.inner { padding: 0 var(--gutter); }
.inner-head { padding: var(--gap-l) 0 32px; border-bottom: 2px solid var(--rule); }
.inner-head .label { color: var(--muted); }
.inner-title { font-size: clamp(3.25rem, 15vw, 10rem); letter-spacing: -0.055em; line-height: 0.86; margin-left: -0.04em; }
.inner-lede { margin-top: 32px; }
.inner-note { color: var(--muted); }
.prose { max-width: var(--measure); padding-top: 32px; font-family: var(--editorial); font-size: 1.1875rem; line-height: 1.45; }
.prose h2 {
  font-family: var(--display);
  font-size: clamp(1.375rem, 5vw, 1.875rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 44px 0 12px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}
.prose a { color: var(--link); }
.prose .core { font-family: var(--display); font-weight: 700; font-size: clamp(1.375rem, 5vw, 2rem); line-height: 1.15; letter-spacing: -0.02em; }
.prose .effective { color: var(--muted); }
.plain-links { list-style: none; }
.plain-links li { padding: 6px 0; }

/* ------------------------------------------------------------ a note (brief §18) */

.note-page { padding: 0 var(--gutter); }
.note-head { padding: var(--gap-l) 0 28px; container-type: inline-size; }
.note-kicker { margin: 0; color: var(--muted); }
.note-kicker a { text-decoration: none; }
.note-kicker a:hover { text-decoration: underline; }
/* Sized so the bound last two words (--tail characters) always fit the column;
   0.66em covers the stack's average capital at this tracking. */
.note-title {
  margin: 16px 0 0 -0.03em;
  font-size: min(clamp(2.5rem, 10.5vw, 7rem), calc(100cqi / (var(--tail, 12) * 0.66)));
  letter-spacing: -0.05em;
  line-height: 0.88;
}
.note-deck {
  margin: 24px 0 0;
  max-width: 24em;
  font-family: var(--editorial);
  font-style: italic;
  font-size: clamp(1.375rem, 4.6vw, 2.125rem);
  line-height: 1.18;
}
.note-meta > * { white-space: nowrap; }
.note-meta { margin: 28px 0 0; padding-top: 10px; border-top: 1px solid var(--rule); max-width: 34rem; }
.note-hero { margin: 0 calc(-1 * var(--gutter)); }
.note-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.note-body {
  max-width: 34rem;
  padding-top: 40px;
  font-family: var(--editorial);
  font-size: 1.25rem;
  line-height: 1.58;
}
.note-body p { margin: 0 0 1.05em; }
.note-body h2, .note-body h3 {
  margin: 1.9em 0 0.6em;
  font-family: var(--display);
  font-size: clamp(1.5rem, 5vw, 2rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.note-body h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
.note-body ul, .note-body ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.note-body li { margin-bottom: 0.35em; }
.note-body a { color: var(--link); }
.note-body code { font-family: var(--mono); font-size: 0.85em; }
.note-body .money { font-family: inherit; letter-spacing: inherit; }
.pull { margin: 1.8em 0; padding-top: 18px; border-top: 2px solid var(--rule); }
.pull blockquote {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.625rem, 6.2vw, 2.5rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.pull blockquote p { margin: 0 0 0.4em; text-wrap: balance; }
.pull figcaption, .diagram figcaption {
  font-family: var(--mono);
  font-size: var(--caption);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.45;
}
.diagram { margin: 1.8em calc(-1 * var(--gutter)); }
.diagram figcaption { padding: 0 var(--gutter); }
.diagram pre {
  max-width: 100%;
  overflow-x: auto;
  margin: 0 0 8px;
  padding: 16px var(--gutter);
  border-block: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.5;
}
.related { margin-top: var(--gap-l); padding-top: 20px; border-top: 2px solid var(--rule); }
.related-title { font-size: clamp(1.75rem, 7vw, 3.5rem); letter-spacing: -0.04em; }
.related .contents { margin-top: 20px; }

@media (min-width: 900px) {
  .note-hero { margin: 0; }
  .note-body, .note-meta { margin-left: clamp(0px, 16vw, 18rem); }
  .note-body { font-size: 1.375rem; }
  .pull { margin-left: -4rem; max-width: 40rem; }
  .diagram { margin-inline: 0; }
  .diagram figcaption { padding: 0; }
  .diagram pre { padding: 16px; border: 1px solid var(--hairline); font-size: 0.8125rem; }
}

/* ------------------------------------------------------------ 12 colophon */

.colophon {
  margin-top: var(--gap-l);
  border-top: 2px solid var(--rule);
  padding: 24px var(--gutter) 40px;
  display: grid;
  gap: 24px;
}
@media (min-width: 900px) {
  .colophon { grid-template-columns: 1fr 1fr 1fr; }
}
.colophon p { margin: 0 0 6px; }
.colophon-name { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }
.colophon-links { list-style: none; font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.06em; }
.colophon-links a { display: inline-block; padding: 6px 0; }
.colophon-small { font-size: 0.875rem; color: var(--muted); }
.colophon-small a { color: var(--ink); }
.home .colophon { margin-top: 0; }
