/* sienna.art
   Daylight: warm paper, ink, and the hand's sienna as the one accent.
   Design rules live in .superdesign/design-system.md. */

@font-face { font-family: "Karla"; src: url("../fonts/karla-variable.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("../fonts/spectral-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("../fonts/spectral-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

/* ---------- tokens ---------- */

:root {
  /* Site */
  --paper: #F3F1EA;
  --paper-2: #E9E6DC;
  --ink: #151311;
  --muted: #5E5952;
  --rule: rgba(21, 19, 17, 0.14);
  --rule-2: rgba(21, 19, 17, 0.26);
  --hand: #CA5A39;          /* the mark, and large type on paper */
  --hand-text: #A6462A;     /* small sienna text on paper (5:1) */
  --scene: #CA5A39;         /* the full-bleed artists section */
  --on-scene: #FFF6F0;      /* large type only on --scene (3.9:1) */
  --on-scene-ink: #0E0C0B;  /* small type on --scene (4.7:1) */
  --lift: 0 1px 2px rgba(21, 19, 17, 0.06), 0 30px 70px -28px rgba(21, 19, 17, 0.34);

  /* The app's own Monochrome tokens, for the screens */
  --a-ground: #F3F3F3;
  --a-surface: #FFFFFF;
  --a-surface-2: #EAEAEA;
  --a-ink: #111111;
  --a-soft: #565656;
  --a-quiet: #6E6E6E;
  --a-rule: #DADADA;
  --a-rule-soft: #E9E9E9;
  --a-glass: rgba(255, 255, 255, 0.74);
  --a-line: rgba(17, 17, 17, 0.08);
  --a-note: rgba(246, 246, 246, 0.78);
  --a-note-ink: #111111;
  --a-note-soft: #4A4A4A;

  /* Type */
  --sans: "Karla", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: "Spectral", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --t-display: clamp(min(3.4rem, 17vw), 1rem + 6.4vw, 7.6rem);
  --t-h2: clamp(min(2.6rem, 13vw), 1.1rem + 4.4vw, 5.6rem);
  --t-h3: clamp(min(1.75rem, 9vw), 1.15rem + 1.6vw, 2.6rem);
  --t-lede: clamp(1.1rem, 1rem + 0.4vw, 1.35rem);
  --t-body: 1.125rem;
  --t-ui: 0.9375rem;
  --t-small: 0.8125rem;
  --t-label: 0.75rem;

  /* Space */
  --gutter: clamp(20px, 4vw, 56px);
  --wrap: min(1600px, max(1320px, 70vw));
  --section: clamp(96px, 12vw, 168px);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 120ms;
  --t-base: 240ms;
  --t-slow: 520ms;
  --t-hero: 800ms;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121110;
    --paper-2: #1C1A18;
    --ink: #EFEBE3;
    --muted: #A39C91;
    --rule: rgba(239, 235, 227, 0.14);
    --rule-2: rgba(239, 235, 227, 0.28);
    --hand: #E06B47;
    --hand-text: #E8805F;
    --scene: #B04C2C;
    --on-scene: #FFF3EC;
    --on-scene-ink: #FFF3EC;
    --lift: 0 1px 2px rgba(0, 0, 0, 0.3), 0 30px 70px -28px rgba(0, 0, 0, 0.7);
    --a-ground: #141414;
    --a-surface: #1E1E1E;
    --a-surface-2: #272727;
    --a-ink: #F4F4F4;
    --a-soft: #ABABAB;
    --a-quiet: #8D8D8D;
    --a-rule: #343434;
    --a-rule-soft: #292929;
    --a-glass: rgba(38, 38, 38, 0.72);
    --a-line: rgba(255, 255, 255, 0.11);
    --a-note: rgba(36, 36, 36, 0.74);
    --a-note-ink: #F4F4F4;
    --a-note-soft: #B5B5B5;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121110;
  --paper-2: #1C1A18;
  --ink: #EFEBE3;
  --muted: #A39C91;
  --rule: rgba(239, 235, 227, 0.14);
  --rule-2: rgba(239, 235, 227, 0.28);
  --hand: #E06B47;
  --hand-text: #E8805F;
  --scene: #B04C2C;
  --on-scene: #FFF3EC;
  --on-scene-ink: #FFF3EC;
  --lift: 0 1px 2px rgba(0, 0, 0, 0.3), 0 30px 70px -28px rgba(0, 0, 0, 0.7);
  --a-ground: #141414;
  --a-surface: #1E1E1E;
  --a-surface-2: #272727;
  --a-ink: #F4F4F4;
  --a-soft: #ABABAB;
  --a-quiet: #8D8D8D;
  --a-rule: #343434;
  --a-rule-soft: #292929;
  --a-glass: rgba(38, 38, 38, 0.72);
  --a-line: rgba(255, 255, 255, 0.11);
  --a-note: rgba(36, 36, 36, 0.74);
  --a-note-ink: #F4F4F4;
  --a-note-soft: #B5B5B5;
  color-scheme: dark;
}

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

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--t-body)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
}
img, svg, video, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, figure, ol, ul, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
cite { font-style: italic; }
button { font: inherit; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; z-index: 10; left: 12px; top: -64px;
  padding: 10px 14px; border-radius: 4px;
  background: var(--ink); color: var(--paper);
  font: 700 var(--t-ui)/1 var(--sans); text-decoration: none;
}
.skip:focus { top: 12px; }

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

.kicker {
  display: flex; align-items: center; gap: 14px;
  font: 700 var(--t-label)/1.2 var(--sans);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.kicker i { flex: none; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }

h1, h2, h3 { overflow-wrap: break-word; }
h1 em, h2 em, h3 em {
  font-family: var(--serif); font-weight: 400; font-style: italic;
  letter-spacing: -0.035em;
}

/* ---------- header ---------- */

.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 26px; }
.brand { display: inline-flex; align-items: flex-end; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-hand { width: 20px; height: auto; fill: var(--hand); }
.brand-word { width: 88px; height: auto; fill: currentColor; margin-bottom: 2px; }
.header-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 32px); font: 700 var(--t-ui)/1 var(--sans); }
.header-nav a { color: var(--muted); text-decoration: none; padding-block: 12px; transition: color var(--t-fast) ease; }
.header-nav a[aria-current="page"] { color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .header-nav a:hover, .footer-links a:hover, .toc a:hover { color: var(--ink); }
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: end;
  padding-block: clamp(28px, 6vh, 72px) clamp(36px, 6vh, 64px);
}
.hero h1 {
  margin-top: 22px;
  font: 800 var(--t-display)/0.9 var(--sans);
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.hero-sub { margin-top: 28px; font-size: var(--t-lede); line-height: 1.5; color: var(--muted); max-width: 30em; text-wrap: pretty; }
.badge { display: inline-block; margin-top: 34px; border-radius: 9px; }
.badge img { height: 52px; width: auto; }

/* On short screens the print gives up width, so the copy and the badge
   stay in the first screen. */
@media (min-width: 760px) {
  .hero-figure { justify-self: end; width: min(100%, max(280px, calc((100vh - 200px) * 0.8))); }
  @supports (height: 100svh) {
    .hero-figure { width: min(100%, max(280px, calc((100svh - 200px) * 0.8))); }
  }
}

.print {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 100%;
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper-2);
}
.print img, .print canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.print img { object-fit: cover; }
.print canvas { opacity: 0; transition: opacity var(--t-slow) var(--ease); }
.print.is-live canvas { opacity: 1; }
.print.can-orbit canvas { cursor: grab; }
.print.can-orbit canvas:active { cursor: grabbing; }

.label {
  margin-top: 12px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px;
  font-size: var(--t-small); line-height: 1.4; color: var(--muted);
}
.label b { color: var(--ink); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.6875rem; }
.label cite { font-family: var(--serif); }

/* One entrance for the whole page: the hero copy rises in once. */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.js .hero-copy > * { animation: rise var(--t-hero) var(--ease) both; }
.js .hero-copy > :nth-child(2) { animation-delay: 60ms; }
.js .hero-copy > :nth-child(3) { animation-delay: 140ms; }
.js .hero-copy > :nth-child(4) { animation-delay: 200ms; }

/* ---------- facts ---------- */

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.facts li { display: grid; gap: 8px; align-content: start; padding: 22px 24px 30px 0; }
.facts li + li { padding-left: 24px; border-left: 1px solid var(--rule); }
.facts .num { font: 700 0.6875rem/1 var(--sans); letter-spacing: 0.14em; color: var(--muted); font-variant-numeric: tabular-nums; }
.facts p { font: 700 1.1875rem/1.25 var(--sans); letter-spacing: -0.01em; }

/* ---------- section heads ---------- */

.section-head h2, .close h2 {
  margin-top: 22px;
  font: 800 var(--t-h2)/0.94 var(--sans);
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.section-sub { margin-top: 22px; font-size: var(--t-lede); line-height: 1.5; color: var(--muted); max-width: 30em; text-wrap: pretty; }

/* A section's head fades up once as it comes into view (assets/js/site.js). */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--t-hero) var(--ease), transform var(--t-hero) var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- how a post travels ---------- */

.travel { padding-top: var(--section); }
.travel .section-head h2 { max-width: 13ch; }
.travel-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 112px);
  margin-top: clamp(40px, 5vw, 72px);
}

/* The stage: one screen that changes as the steps beside it go by. */
.stage-panel {
  position: sticky;
  top: max(24px, calc(50vh - 410px));
  height: min(820px, calc(100vh - 48px));
  container-type: size;
  display: grid; place-items: center;
  border-radius: 4px;
  background: var(--paper-2);
}
.stage .screen { height: min(88cqh, 740px); width: auto; }
.stage .layer { opacity: 0; visibility: hidden; transition: opacity var(--t-slow) var(--ease), visibility 0s linear var(--t-slow); }
.stage .layer.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }

.step {
  min-height: 74vh;
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
  padding-block: 48px;
}
.step:first-child { min-height: 60vh; justify-content: flex-start; padding-top: 8vh; }
.step:last-child { min-height: 80vh; }
.stamp { font: 700 var(--t-ui)/1.2 var(--sans); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; color: var(--hand-text); }
.step h3 { font: 800 var(--t-h3)/1.02 var(--sans); letter-spacing: -0.035em; text-wrap: balance; max-width: 15ch; }
.step-line { font-size: var(--t-lede); line-height: 1.5; color: var(--muted); max-width: 26em; text-wrap: pretty; }
/* The step beside the stage's screen is in ink; the others step back to the
   muted tone, which still reads at full contrast. */
.js .step h3, .js .stamp { transition: color var(--t-slow) var(--ease); }
@media (min-width: 960px) {
  .js .step:not(.is-active) h3, .js .step:not(.is-active) .stamp { color: var(--muted); }
  .step-screen { display: none; }
}

/* Phones and narrow windows: each step carries its own screen. */
@media (max-width: 959px) {
  .travel-body { grid-template-columns: minmax(0, 1fr); }
  .stage { display: none; }
  .step, .step:first-child, .step:last-child { min-height: 0; padding-block: 36px 8px; justify-content: flex-start; }
  .step + .step { border-top: 1px solid var(--rule); margin-top: 28px; }
  .step-screen {
    display: grid; place-items: center;
    margin-top: 12px;
    padding: clamp(24px, 6vw, 48px) 16px 0;
    border-radius: 4px;
    background: var(--paper-2);
    overflow: hidden;
  }
  .step-screen .screen {
    width: min(100%, 320px);
    aspect-ratio: 402 / 700;
    border-bottom-left-radius: 0; border-bottom-right-radius: 0;
  }
}

/* ---------- app screens ----------
   The app's own UI, set in HTML at 402 x 874 points and drawn without a
   phone around it. --pt is one point at the screen's current width. */

.screen {
  --pt: calc(100cqw / 402);
  container-type: inline-size;
  position: relative;
  aspect-ratio: 402 / 874;
  max-width: 100%;
  overflow: hidden;
  border-radius: 11.5% / 5.3%;
  background: var(--a-ground);
  box-shadow: var(--lift);
  outline: 1px solid var(--a-line);
  outline-offset: -1px;
  isolation: isolate;
  font-family: var(--sans);
  line-height: 1.3;
  color: var(--a-ink);
  -webkit-user-select: none; user-select: none;
}
.layer { position: absolute; inset: 0; }
.app { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; padding-top: calc(26 * var(--pt)); }
.app > * { flex-shrink: 0; }
.app img { max-width: none; }

.a-dot { display: inline-block; flex: none; width: calc(7 * var(--pt)); height: calc(7 * var(--pt)); border-radius: 50%; background: var(--a-ink); }
.a-label { font-size: calc(9.5 * var(--pt)); font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--a-soft); }

/* Inbox */
.a-top { position: relative; display: flex; align-items: center; justify-content: center; height: calc(44 * var(--pt)); margin-bottom: calc(10 * var(--pt)); }
.a-mark { width: calc(18 * var(--pt)); height: auto; fill: var(--a-ink); }
.a-round-btn {
  position: absolute; right: calc(16 * var(--pt));
  display: grid; place-items: center;
  width: calc(38 * var(--pt)); height: calc(38 * var(--pt)); border-radius: 50%;
  background: var(--a-glass); border: 1px solid var(--a-line);
}
.a-round-btn svg { width: calc(18 * var(--pt)); height: calc(18 * var(--pt)); fill: none; stroke: var(--a-ink); stroke-width: 1.6; }
.a-round-btn .a-dot { position: absolute; top: calc(7 * var(--pt)); right: calc(8 * var(--pt)); }
.a-rail { display: flex; gap: calc(12 * var(--pt)); padding-inline: calc(16 * var(--pt)); margin-bottom: calc(14 * var(--pt)); overflow: hidden; }
.a-tile { position: relative; display: grid; justify-items: center; gap: calc(6 * var(--pt)); flex: none; }
.a-tile img, .a-tile-all { width: calc(48 * var(--pt)); height: calc(48 * var(--pt)); border-radius: calc(11 * var(--pt)); object-fit: cover; }
.a-tile-all {
  display: grid; place-items: center;
  background: var(--a-surface); border: 1px solid var(--a-rule);
  font-size: calc(10 * var(--pt)); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.a-tile-name { font-size: calc(10.5 * var(--pt)); color: var(--a-quiet); line-height: 1; }
.a-tile.is-on .a-tile-name { color: var(--a-ink); text-decoration: underline; text-underline-offset: 0.25em; }
.a-tile.has-new::after {
  content: ""; position: absolute; top: calc(-2 * var(--pt)); right: calc(-2 * var(--pt));
  width: calc(9 * var(--pt)); height: calc(9 * var(--pt)); border-radius: 50%;
  background: var(--a-ink); border: calc(2 * var(--pt)) solid var(--a-ground);
}
.a-today {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  gap: calc(4 * var(--pt)) calc(12 * var(--pt));
  margin-inline: calc(16 * var(--pt)); padding-block: calc(12 * var(--pt));
  border-block: 1px solid var(--a-rule);
}
.a-today .a-label { grid-column: 1 / -1; }
.a-today-line { display: flex; align-items: baseline; gap: calc(8 * var(--pt)); font-family: var(--serif); font-size: calc(15 * var(--pt)); line-height: 1.3; }
.a-today-line .a-dot { transform: translateY(calc(-2 * var(--pt))); }
.a-arrow { font-size: calc(15 * var(--pt)); color: var(--a-soft); }
.a-feed { display: grid; gap: calc(26 * var(--pt)); padding: calc(18 * var(--pt)) calc(16 * var(--pt)) 0; }
.a-post { display: grid; gap: calc(10 * var(--pt)); }
.a-post-head { display: flex; align-items: center; gap: calc(8 * var(--pt)); }
.a-av { width: calc(20 * var(--pt)); height: calc(20 * var(--pt)); border-radius: 50%; object-fit: cover; }
.a-who { font-size: calc(9.5 * var(--pt)); font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.a-meta { margin-left: auto; display: flex; align-items: baseline; gap: calc(8 * var(--pt)); color: var(--a-quiet); }
.a-kind { font-size: calc(8.5 * var(--pt)); font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.a-ago { font-family: var(--serif); font-size: calc(13 * var(--pt)); }
.a-media { border-radius: calc(3 * var(--pt)); overflow: hidden; background: var(--a-surface-2); }
.a-media img { width: 100%; height: auto; }
.a-title { font-family: var(--serif); font-style: italic; font-size: calc(19 * var(--pt)); line-height: 1.2; }
.a-excerpt {
  font-family: var(--serif); font-size: calc(15.5 * var(--pt)); line-height: 1.45; color: var(--a-soft);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.a-tabbar {
  position: absolute; left: calc(16 * var(--pt)); right: calc(16 * var(--pt)); bottom: calc(26 * var(--pt));
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: calc(5 * var(--pt));
  border-radius: 999px;
  background: var(--a-glass); border: 1px solid var(--a-line);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 calc(6 * var(--pt)) calc(24 * var(--pt)) rgba(0, 0, 0, 0.12);
}
.a-tab {
  display: grid; justify-items: center; gap: calc(3 * var(--pt));
  padding-block: calc(7 * var(--pt)); border-radius: 999px;
  font-size: calc(10 * var(--pt)); font-weight: 700; color: var(--a-soft);
}
.a-tab svg { width: calc(22 * var(--pt)); height: calc(22 * var(--pt)); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.a-tab.is-on { background: var(--a-surface-2); color: var(--a-ink); }

/* Composer */
.a-bar { display: flex; align-items: center; gap: calc(8 * var(--pt)); padding-inline: calc(14 * var(--pt)); }
.a-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: calc(2 * var(--pt));
  height: calc(40 * var(--pt)); padding: 0 calc(15 * var(--pt)) 0 calc(10 * var(--pt));
  border-radius: 999px;
  background: var(--a-glass); border: 1px solid var(--a-line);
  font-size: calc(15 * var(--pt)); font-weight: 500;
}
.a-pill svg { width: calc(18 * var(--pt)); height: calc(18 * var(--pt)); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.a-round { width: calc(40 * var(--pt)); padding: 0; }
.a-send { margin-left: auto; padding: 0 calc(17 * var(--pt)); background: var(--a-ink); color: var(--a-ground); font-weight: 600; border-color: transparent; }
.a-tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  margin-top: calc(16 * var(--pt));
  border-bottom: 1px solid var(--a-rule);
  font-size: calc(13 * var(--pt)); font-weight: 600; text-align: center;
}
.a-tabs span { padding-block: calc(10 * var(--pt)); color: var(--a-quiet); }
.a-tabs .is-on { color: var(--a-ink); box-shadow: inset 0 -2px 0 var(--a-ink); }
.app-compose .a-post { padding: calc(22 * var(--pt)) calc(16 * var(--pt)) 0; }

/* Lock screen */
.app-lock { padding-top: 0; background: #0E1A24; }
.a-wall { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.a-wake { position: absolute; inset: 0; background: #000000; opacity: 0; }
.a-notes { position: absolute; left: calc(12 * var(--pt)); right: calc(12 * var(--pt)); top: 30%; display: grid; gap: calc(8 * var(--pt)); }
.a-note {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  gap: calc(2 * var(--pt)) calc(12 * var(--pt));
  padding: calc(12 * var(--pt)) calc(14 * var(--pt));
  border-radius: calc(22 * var(--pt));
  background: var(--a-note); color: var(--a-note-ink);
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  font-size: calc(15 * var(--pt)); line-height: 1.3;
}
.a-note img { grid-row: span 2; width: calc(38 * var(--pt)); height: calc(38 * var(--pt)); border-radius: calc(9 * var(--pt)); }
.a-note b { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-note span { grid-column: 2 / 4; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-note time { grid-column: 3; grid-row: 1; font-size: calc(13 * var(--pt)); color: var(--a-note-soft); }

/* Brief */
.app-brief .a-bar { height: calc(48 * var(--pt)); }
.a-sheet { padding: calc(8 * var(--pt)) calc(22 * var(--pt)) 0; }
.a-sheet .a-label { color: var(--a-quiet); }
.a-date { margin-top: calc(10 * var(--pt)); font-family: var(--serif); font-size: calc(30 * var(--pt)); line-height: 1.15; letter-spacing: -0.01em; }
.a-sub { margin-top: calc(10 * var(--pt)); font-size: calc(14 * var(--pt)); font-weight: 600; line-height: 1.4; color: var(--a-soft); }
.a-strip { display: grid; grid-template-columns: repeat(5, calc(52 * var(--pt))); gap: calc(8 * var(--pt)); padding-block: calc(14 * var(--pt)) calc(20 * var(--pt)); border-bottom: 1px solid var(--a-rule); }
.a-strip img { width: 100%; height: auto; aspect-ratio: 1; border-radius: calc(2 * var(--pt)); object-fit: cover; }
.a-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: calc(4 * var(--pt)) calc(12 * var(--pt));
  padding-block: calc(15 * var(--pt));
  border-bottom: 1px solid var(--a-rule-soft);
}
.a-row .a-dot { width: calc(6 * var(--pt)); height: calc(6 * var(--pt)); margin-top: 0.62em; }
.a-row p { font-family: var(--serif); font-size: calc(18 * var(--pt)); line-height: 1.3; color: var(--a-soft); }
.a-row b, .a-row cite { font-weight: 400; color: var(--a-ink); }
.a-gist { grid-column: 2; font-size: calc(13.5 * var(--pt)); line-height: 1.45; color: var(--a-soft); }

/* What moves inside the screens, when a step comes up (assets/js/site.js) */
@keyframes arrive { from { opacity: 0; transform: translateY(calc(-14 * var(--pt))); } }
@keyframes wake { from { opacity: 0.45; } }
@keyframes pop { from { opacity: 0; transform: scale(0.4); } }
.js .layer.is-on .a-post.a-new,
.js .layer.is-on .a-note.a-new,
.js .layer.is-on .a-row.a-new { animation: arrive 700ms var(--ease) 260ms both; }
.js .layer.is-on .a-tile.a-new::after { animation: pop 420ms var(--ease) 520ms both; }
.js .layer.is-on .a-wake { animation: wake 900ms ease-out both; }

/* ---------- for artists ---------- */

.artists {
  margin-top: var(--section);
  padding-block: clamp(104px, 13vw, 192px);
  background: var(--scene);
  color: var(--on-scene);
}
.artists .kicker { color: var(--on-scene-ink); }
.artists h2 {
  margin-top: 26px;
  font: 800 clamp(min(3rem, 15vw), 1rem + 6vw, 7.4rem)/0.9 var(--sans);
  letter-spacing: -0.05em;
  max-width: 11ch;
  text-wrap: balance;
}
.artists-foot {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 48px;
  margin-top: clamp(48px, 6vw, 96px);
  padding-top: 24px;
  border-top: 1px solid color-mix(in srgb, var(--on-scene) 40%, transparent);
}
/* 19px bold or larger, so the cream on sienna counts as large text */
.artists-foot p { font: 700 clamp(1.1875rem, 1.05rem + 0.4vw, 1.375rem)/1.4 var(--sans); max-width: 24em; text-wrap: pretty; }
.artists a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
.artists :focus-visible { outline-color: var(--on-scene); }

/* ---------- works ---------- */

.works { padding-block: var(--section); }
.works-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.works-head h2 { max-width: 12ch; }
.works-nav { display: none; gap: 10px; }
.js .works-nav { display: flex; }
.round {
  display: grid; place-items: center;
  width: 52px; height: 52px; padding: 0;
  border-radius: 50%;
  border: 1px solid var(--rule-2); background: transparent; color: var(--ink);
  cursor: pointer;
  transition: border-color var(--t-fast) ease, opacity var(--t-fast) ease, transform var(--t-fast) ease;
}
.round svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.round:active:not(:disabled) { transform: scale(0.96); }
.round:disabled { opacity: 0.32; cursor: default; }
@media (hover: hover) and (pointer: fine) { .round:hover:not(:disabled) { border-color: var(--ink); } }

.works-track {
  --card-h: clamp(280px, 34vw, 460px);
  --edge: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  display: flex; gap: clamp(18px, 2.2vw, 32px);
  margin-top: clamp(40px, 5vw, 64px);
  padding: 0 var(--edge) 8px;
  scroll-padding-inline: var(--edge);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.works-track::-webkit-scrollbar { display: none; }
.works-track:focus-visible { outline-offset: 6px; }
.work { flex: none; width: min-content; display: grid; gap: 14px; align-content: end; scroll-snap-align: start; }
.work picture { display: contents; }
.work-frame { position: relative; }
.work-play {
  position: absolute; right: 12px; bottom: 12px;
  display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%;
  background: rgba(14, 12, 11, 0.62); color: #FFFFFF;
  cursor: pointer;
  transition: transform var(--t-fast) ease, background-color var(--t-fast) ease;
}
.work-play svg { width: 18px; height: 18px; fill: currentColor; }
.work-play .i-pause, .work-play.is-playing .i-play { display: none; }
.work-play.is-playing .i-pause { display: block; }
.work-play:active { transform: scale(0.94); }
.work-play:focus-visible { outline-color: #FFFFFF; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .work-play:hover { background: rgba(14, 12, 11, 0.8); } }
.work-media { height: var(--card-h); width: auto; max-width: none; border-radius: 2px; background: var(--paper-2); object-fit: cover; }
.work-label { display: grid; gap: 3px; }
.work-label b { font-weight: 700; font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; }
.work-label cite { font-family: var(--serif); font-size: 1.0625rem; line-height: 1.3; }
.work-label span { font-size: var(--t-small); line-height: 1.4; color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .js .works-track { cursor: grab; }
  .js .works-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
  .works-track.is-dragging .work { pointer-events: none; }
}

/* ---------- close ---------- */

.close {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 6vw, 112px);
  align-items: end;
  padding-bottom: var(--section);
}
.close h2 { margin-top: 0; max-width: 11ch; }
.text-cta {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 36px; padding-block: 8px;
  font: 700 1.25rem/1.2 var(--sans); letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--hand); text-decoration-thickness: 2px; text-underline-offset: 0.35em;
}
.text-cta svg { width: 22px; height: 22px; fill: none; stroke: var(--hand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t-base) var(--ease); }
@media (hover: hover) and (pointer: fine) { .text-cta:hover svg { transform: translateX(4px); } }
.text-cta:active { opacity: 0.8; }

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

.site-footer { border-top: 1px solid var(--rule); padding-block: 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; font: 700 var(--t-ui)/1.5 var(--sans); }
.footer-help { color: var(--muted); }
.footer-help a { color: var(--ink); text-underline-offset: 0.2em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-links a { color: var(--muted); text-decoration: none; transition: color var(--t-fast) ease; }
.footer-mark { display: flex; align-items: flex-end; gap: 1.7%; width: min(100%, 640px); margin-top: clamp(56px, 9vw, 128px); color: var(--ink); text-decoration: none; }
.footer-mark .brand-hand { width: 15.6%; margin: 0; }
.footer-mark .brand-word { width: 68.6%; margin: 0 0 1.4%; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 36px; font-size: var(--t-small); line-height: 1.5; color: var(--muted); }

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

.page-head { display: grid; gap: 20px; padding-block: clamp(32px, 6vw, 80px) clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--rule); }
.page-head h1 { margin-top: 4px; font: 800 clamp(min(3rem, 15vw), 1.2rem + 5vw, 6.2rem)/0.92 var(--sans); letter-spacing: -0.05em; text-wrap: balance; }
.page-head > p { font-size: var(--t-lede); line-height: 1.5; color: var(--muted); max-width: 32em; text-wrap: pretty; }

.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 112px);
  padding-block: clamp(40px, 6vw, 72px) var(--section);
}
.toc { position: sticky; top: 24px; align-self: start; font-size: var(--t-small); line-height: 1.4; }
.toc p { margin-bottom: 14px; font-weight: 700; font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.toc ol { display: grid; gap: 9px; }
.toc a { color: var(--muted); text-decoration: none; }

.doc { max-width: 42rem; min-width: 0; }
.doc section { padding-bottom: 44px; scroll-margin-top: 24px; }
.doc h2 { margin-bottom: 18px; font: 800 clamp(1.5rem, 1.15rem + 1vw, 2rem)/1.12 var(--sans); letter-spacing: -0.03em; text-wrap: balance; }
.doc h3 { margin: 26px 0 8px; font: 700 1.0625rem/1.3 var(--sans); }
.doc p + p, .doc p + ul, .doc ul + p, .doc ol + p, .doc p + ol { margin-top: 14px; }
.doc ul, .doc ol { display: grid; gap: 8px; padding-left: 1.2em; list-style: disc; }
.doc ol { list-style: decimal; }
.doc li::marker { color: var(--muted); }
.doc strong { font-weight: 700; }
.doc a { text-underline-offset: 0.18em; }
.doc mark[data-confirm] {
  background: transparent; color: var(--ink);
  font-size: 0.875em; font-weight: 700;
  border-bottom: 2px solid var(--hand);
}

.contact-card { display: grid; gap: 12px; align-self: start; padding: 24px 0; border-block: 1px solid var(--rule); }
@media (min-width: 900px) { .contact-card { position: sticky; top: 24px; } }
.contact-card h2 { font: 700 0.6875rem/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contact-card .address { font: 800 1.375rem/1.2 var(--sans); letter-spacing: -0.02em; color: var(--ink); overflow-wrap: anywhere; }
.contact-card p { font-size: 1rem; line-height: 1.5; color: var(--muted); }
.copy-btn {
  justify-self: start;
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--rule-2); background: transparent; color: var(--ink);
  font: 700 var(--t-small)/1 var(--sans); cursor: pointer;
  transition: border-color var(--t-fast) ease, transform var(--t-fast) ease;
}
.copy-btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .copy-btn:hover { border-color: var(--ink); } }

.help-group { padding-bottom: 52px; scroll-margin-top: 24px; }
.help-group > h2 { margin-bottom: 6px; }
.help-item { padding-block: 20px; border-bottom: 1px solid var(--rule); }
.help-item:last-child { border-bottom: 0; }
.help-item h3 { margin: 0 0 6px; font: 700 1.1875rem/1.3 var(--sans); letter-spacing: -0.01em; }
.help-item p { color: var(--muted); }
.help-item p + p { margin-top: 10px; }
.help-item a { color: var(--ink); }
.path { font-weight: 700; color: var(--ink); white-space: nowrap; }

.lost { display: grid; gap: 24px; justify-items: start; padding-block: clamp(48px, 10vw, 140px) var(--section); }
.lost .brand-hand { width: 44px; }
.lost h1 { font: 800 clamp(min(3rem, 15vw), 1.2rem + 5vw, 6.2rem)/0.92 var(--sans); letter-spacing: -0.05em; }
.lost p { font-size: var(--t-lede); color: var(--muted); }
.lost .text-cta { margin-top: 8px; }

/* ---------- narrow screens ---------- */

@media (max-width: 899px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
}
@media (max-width: 759px) {
  .header-nav .nav-artists { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 20px; }
  .hero-figure { margin-top: 8px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .facts li { padding-block: 18px 22px; }
  .artists-foot { grid-template-columns: minmax(0, 1fr); }
  .close { grid-template-columns: minmax(0, 1fr); }
  .close-copy { order: -1; }
  .works-head { align-items: flex-start; }
}
@media (max-width: 380px) {
  .facts p { font-size: 1.0625rem; }
}

/* ---------- preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  .js .hero-copy > *, .js .layer.is-on * , .js .layer.is-on *::after { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .stage .layer, .js .step h3, .js .stamp, .print canvas { transition: none; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .a-note, .a-tabbar, .a-round-btn, .a-pill:not(.a-send) {
    background: var(--a-surface);
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
}
@media print {
  .site-header nav, .stage, .step-screen, .works-nav, .skip, .print canvas { display: none !important; }
  body { background: #FFFFFF; color: #000000; }
  .artists { background: none; color: #000000; }
}

/* Counsel's documents: lettered lists, the opening notice, the California table */
.doc .doc-date { color: var(--muted); }
.doc .doc-notice { margin-bottom: 44px; padding: 18px 20px; border-left: 3px solid var(--ink); background: var(--paper-2); font-size: 0.9375rem; line-height: 1.55; }
.doc h3[id] { scroll-margin-top: 24px; }
.doc ol.alpha { list-style: none; padding-left: 0; }
.doc ol.alpha li { display: grid; grid-template-columns: 2.1em minmax(0, 1fr); }
.doc ol.alpha .marker { color: var(--muted); font-variant-numeric: tabular-nums; }
.doc-table { margin-block: 18px; overflow-x: auto; border-top: 1px solid var(--rule-2); }
.doc-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.45; }
.doc-table th, .doc-table td { padding: 12px 14px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.doc-table th { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.doc a { overflow-wrap: anywhere; }
.doc .doc-date { margin-bottom: 36px; }
.doc .doc-notice { margin-top: -16px; }

/* ---------- takedown form ---------- */

.takedown { max-width: 40rem; padding-block: clamp(32px, 5vw, 56px) var(--section); }
.tk-block { margin-top: 44px; }
.tk-block:first-child { margin-top: 0; }
.takedown h2 { margin-bottom: 10px; font: 800 clamp(1.4rem, 1.1rem + 0.9vw, 1.85rem)/1.15 var(--sans); letter-spacing: -0.03em; }
.takedown p + p { margin-top: 12px; }
.takedown ul { display: grid; gap: 8px; padding-left: 1.2em; list-style: disc; }
.takedown li::marker { color: var(--muted); }
.takedown a { text-underline-offset: 0.18em; }
.tk-card { margin-top: 28px; padding: clamp(20px, 4vw, 32px); border: 1px solid var(--rule-2); border-radius: 4px; background: var(--paper-2); }
.tk-done h2 { margin-top: 0; }
.tk-field { margin-bottom: 22px; }
.takedown label, .takedown legend { display: block; margin-bottom: 6px; font-weight: 700; }
.tk-hint { display: block; margin-top: 2px; font-size: 0.9375rem; font-weight: 400; color: var(--muted); }
.tk-optional { font-weight: 400; color: var(--muted); }
.takedown input[type=text], .takedown input[type=email], .takedown input[type=tel], .takedown textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--rule-2); border-radius: 4px;
  background: var(--paper); color: var(--ink);
  font: inherit; font-size: max(16px, 1rem);
}
.takedown textarea { min-height: 110px; resize: vertical; }
.takedown input:focus-visible, .takedown textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.takedown fieldset { margin: 0 0 22px; padding: 0; border: 0; }
.tk-choice { display: flex !important; align-items: flex-start; gap: 10px; margin: 8px 0; font-weight: 400 !important; }
.tk-choice input { flex: none; width: 18px; height: 18px; margin-top: 4px; accent-color: var(--ink); }
.tk-shown { margin-top: 12px; }
.tk-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 560px) { .tk-row { grid-template-columns: minmax(0, 1fr); } }
.tk-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.tk-submit {
  width: 100%; padding: 16px 28px;
  border: 0; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font: 700 1.0625rem/1 var(--sans); cursor: pointer;
  transition: transform var(--t-fast) ease, opacity var(--t-fast) ease;
}
.tk-submit:active:not([disabled]) { transform: scale(0.98); }
.tk-submit[disabled] { opacity: 0.6; cursor: default; }
.tk-submit:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.tk-note { margin-top: 14px; font-size: 0.9375rem; color: var(--muted); }
.tk-error { margin-bottom: 16px; padding: 12px 14px; border-left: 3px solid var(--hand); background: var(--paper); font-weight: 700; }
