/* 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 ground and hairline, around the recorded screens */
  --a-ground: #F3F3F3;
  --a-line: rgba(17, 17, 17, 0.08);

  /* 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-line: rgba(255, 255, 255, 0.11);
    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-line: rgba(255, 255, 255, 0.11);
  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; }
/* above the hero meadow, which reaches up behind it */
.site-header { position: relative; z-index: 2; }
.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 {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  min-height: min(860px, calc(100vh - 88px));
  padding-block: clamp(28px, 6vh, 72px) clamp(36px, 6vh, 64px);
}
@supports (height: 100svh) {
  .hero { min-height: min(860px, calc(100svh - 88px)); }
}
/* Narrower two-column windows: the hand's column gets half the width, so
   the hand keeps some meadow around it. */
@media (min-width: 760px) and (max-width: 1023px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.hero-copy { position: relative; z-index: 1; }
.hero h1 {
  margin-top: 22px;
  font: 800 clamp(min(2.5rem, 12vw), 1rem + 3.8vw, 5rem)/0.95 var(--sans);
  letter-spacing: -0.045em;
  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; }

/* The meadow (assets/js/meadow.js) spans the hero edge to edge behind the
   copy and thins into the paper before it reaches the text. The hand sits
   in the empty right column, .hero-spot. The canvas fades in once the
   meadow is ready. Without WebGL 2, with Save-Data, or without JS, a still
   of the meadow shows instead (.no-meadow). */
html { overflow-x: clip; }
.hero-spot { position: relative; align-self: stretch; min-height: 420px; }
.meadow { position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; margin-left: -50vw; z-index: 0; }
.meadow canvas { position: relative; display: block; width: 100%; height: 100%; touch-action: pan-y; }
.js .meadow canvas { opacity: 0; transition: opacity 600ms ease-out; }
.js .meadow.is-live canvas { opacity: 1; }
.no-meadow .meadow canvas { display: none; }
.meadow-fallback { display: none; }
html:not(.js) .meadow-fallback, .no-meadow .meadow-fallback { display: block; }
.meadow-fallback img { position: absolute; max-width: none; pointer-events: none; }
/* placed by the hand: its centre 56% across the column, scaled with the
   column's height, as the live hand is */
.meadow-fallback-wide img { top: -7.18%; height: 114.36%; width: auto; left: 56%; transform: translateX(-63.39%); }
.meadow-fallback-tall img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 760px) {
  .meadow-fallback-tall { display: none !important; }
}
/* ?capture=1: the meadow alone on a transparent page, for rendering stills
   and the footer tufts (see the README) */
html.capture, html.capture body { background: transparent !important; }
html.capture .hero-copy, html.capture .site-header { visibility: hidden; }
html.capture .meadow canvas { opacity: 1; transition: none; }

.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; }

/* 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 var(--t-label)/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 {
  /* Tall enough that each recorded clip gets a few seconds of scrolling. */
  min-height: 125vh;
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
  padding-block: 48px;
}
.step:first-child { min-height: 110vh; justify-content: flex-start; padding-top: 8vh; }
/* The last step's heading sits high in it, so its clip can finish while
   the stage is still held beside it (site.js, LAST_RUN). */
.step:last-child { min-height: 125vh; justify-content: flex-start; padding-top: 30vh; }
.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;
    border-radius: 4px;
    background: var(--paper-2);
    overflow: hidden;
  }
  /* The top of the screen, where each step's point is, running off the
     bottom of its panel so a step and its screen sit in one phone window.
     The lock screen's notification is at the bottom, so that one runs off
     the top instead. */
  .step-screen { padding-bottom: 0; }
  .step-screen .screen { width: min(100%, 300px); aspect-ratio: 402 / 560; border-radius: 11.5% 11.5% 0 0 / 8.3% 8.3% 0 0; }
  .step[data-step="3"] .step-screen { padding-block: 0 clamp(24px, 6vw, 48px); }
  .step[data-step="3"] .step-screen .screen { border-radius: 0 0 11.5% 11.5% / 0 0 8.3% 8.3%; }
  .step[data-step="3"] .step-screen .shot { object-position: bottom; }
}

/* ---------- app screens ----------
   Recordings of the app (tools/clips.py) in the shape of its screen, with
   no phone drawn around them. */

.screen {
  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;
  -webkit-user-select: none; user-select: none;
}
.layer { position: absolute; inset: 0; }
/* Real Simulator captures (tools/clips.py) fill the screen, top-aligned. A clip can also carry a
   dark recording; the one matching the page's appearance shows. */
.layer .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.clip { position: absolute; inset: 0; background: var(--a-ground); }
.clip .shot-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .clip.has-dark .shot-light { display: none; }
  :root:not([data-theme="light"]) .clip.has-dark .shot-dark { display: block; }
}
:root[data-theme="dark"] .clip.has-dark .shot-light { display: none; }
:root[data-theme="dark"] .clip.has-dark .shot-dark { display: block; }

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

.artists {
  margin-top: var(--section);
  padding-block: clamp(104px, 13vw, 192px);
  background: var(--scene);
  color: var(--on-scene);
}
.label { font: 700 var(--t-ui)/1.3 var(--sans); }
.section-head > h2:first-child, .page-head > h1:first-child { margin-top: 0; }
/* The headline keeps the room the label above it used to take, as padding,
   so the copy sits where it did and the meadow still keeps clear of it. */
.hero-copy > h1:first-child { margin-top: 0; padding-top: calc(var(--t-label) * 1.2 + 22px); }
/* On wide screens the canvas runs on below the hero, and the next section
   starts that much lower, so a tuft's shadow near the bottom has room to
   finish. meadow.js lays the grass out as if the canvas ended with the hero. */
@media (min-width: 760px) {
  .hero { margin-bottom: 96px; }
  .meadow { bottom: -96px; }
  /* that room is already most of a section's gap, so the next one adds less */
  .hero + .travel { padding-top: max(24px, calc(var(--section) - 96px)); }
}
.artists .label { 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, .artists-points li { font: 700 clamp(1.1875rem, 1.05rem + 0.4vw, 1.375rem)/1.4 var(--sans); max-width: 24em; text-wrap: pretty; }
.artists-points { display: grid; gap: 14px; align-content: start; }
.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([aria-disabled="true"]) { transform: scale(0.96); }
.round[aria-disabled="true"] { opacity: 0.32; cursor: default; }
@media (hover: hover) and (pointer: fine) { .round:hover:not([aria-disabled="true"]) { 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: start; scroll-snap-align: start; }
.work picture { display: contents; }
.work picture source { display: none; }
.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: var(--t-ui); }
.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 ----------
   A photograph by Briscoe Park, edge to edge, with the line on its dark
   hillside. Its field fades back into the paper, so the footer's grass grows
   from the same ground. */

/* The hillside's own tone, so the cream copy reads before the lazy photo arrives. */
.close { position: relative; display: grid; align-content: space-between; min-height: clamp(560px, 66.7vw, 1000px); color: #FFF6F0; background-color: #441306; isolation: isolate; }
.close-photo, .close-photo img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.close-photo img { object-fit: cover; object-position: 60% 40%; }
.close::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(transparent, var(--paper)); pointer-events: none; }
.close-copy { position: relative; padding-top: clamp(96px, 12vw, 200px); }
.close h2 { margin-top: 0; max-width: 11ch; color: inherit; }
.close .text-cta { color: inherit; text-decoration-color: currentColor; }
.close .text-cta svg { stroke: currentColor; }
.close-credit { margin-bottom: 22px; color: rgba(255, 246, 240, 0.85); }
.close-credit a { color: inherit; text-decoration: none; padding-block: 8px; transition: color var(--t-fast) ease; }
@media (hover: hover) and (pointer: fine) { .close-credit a:hover { color: #FFF6F0; } }
.close :focus-visible { outline-color: #FFF6F0; }
/* On phones the hill is shallow: the copy sits higher, the link closer under
   the headline, and a soft shadow holds it off the bright field. */
@media (max-width: 759px) {
  .close-copy { padding-top: 64px; text-shadow: 0 1px 14px rgba(36, 14, 4, 0.75); }
  .close .text-cta { margin-top: 20px; }
}
.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; }
/* Grass tufts along the footer's top edge and beside the mark, rendered
   from the hero's meadow (?capture=1&tufts=1). Decorative, lazy, and they
   never reach the links. */
.site-footer { position: relative; }
.footer-tufts { position: absolute; inset: 0; pointer-events: none; }
/* On the home page the tufts are live (meadow.js?footer), drawn on a canvas
   that reaches above the footer and lets every click through; the images
   stay for other pages and as the fallback. */
.meadow-footer { position: absolute; top: -160px; bottom: 0; left: 50%; width: 100vw; margin-left: -50vw; z-index: 0; pointer-events: none; display: none; }
.live-tufts .meadow-footer { display: block; }
.live-tufts .footer-tufts { display: none; }
.meadow-footer canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 600ms ease-out; }
.meadow-footer.is-live canvas { opacity: 1; }
.site-footer > .wrap { position: relative; z-index: 1; }
.footer-tufts picture { display: contents; }
.tuft { position: absolute; max-width: none; height: auto; }
.tuft-a { left: -28px; top: 0; width: 220px; transform: translateY(-74%); }
.tuft-b { left: 37%; top: 0; width: 64px; transform: translateY(-70%); }
.tuft-c { left: 66%; top: 0; width: 100px; transform: translateY(-72%); }
.tuft-d { right: -20px; top: 0; width: 88px; transform: translateY(-66%); }
.tuft-e { right: 9%; top: 52%; width: 92px; }
@media (max-width: 759px) {
  .tuft-b, .tuft-c, .tuft-e { display: none; }
  .tuft-a { width: 168px; }
}
.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) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 20px; padding-bottom: 0; min-height: 0; }
  .hero-spot { display: none; }
  .meadow { position: relative; top: auto; bottom: auto; left: auto; margin-left: calc(50% - 50vw); aspect-ratio: 4 / 5; }
  .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 { min-height: 640px; }
  .close-photo img { object-position: 62% 50%; }
  .works-head { align-items: flex-start; }
  /* Tap targets near 44px on phones. Padding, offset by negative margin where
     the layout shouldn't move. */
  .brand { padding-block: 7px; margin-block: -7px; }
  .header-nav a { padding-block: 15px; margin-block: -3px; }
  .footer-links { display: grid; grid-template-columns: repeat(3, max-content); gap: 0 28px; }
  .footer-links a { display: inline-block; padding: 11px 12px; margin-inline: -12px; }
  .toc ol { gap: 0; }
  .toc a { display: block; padding-block: 12px; }
  .copy-btn { min-height: 44px; }
}
@media (max-width: 380px) {
  .facts p { font-size: 1.0625rem; }
  .header-row { gap: 12px; }
  .header-nav { gap: 16px; }
}
@media (max-width: 349px) {
  .header-nav { gap: 12px; font-size: 0.875rem; }
  .brand-word { width: 76px; }
}

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

@media (prefers-reduced-motion: reduce) {
  .js .hero-copy > * { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .stage .layer, .js .step h3, .js .stamp, .print canvas, .meadow canvas { transition: none; }
}
@media print {
  .site-header nav, .stage, .step-screen, .works-nav, .skip, .print canvas, .meadow 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); }
/* The form needs JavaScript to send; without it, the noscript card asks for an email instead. */
html:not(.js) #form-card { display: none; }
.tk-field-error { margin-top: 6px; font-size: 0.9375rem; font-weight: 700; color: var(--hand-text); }
.takedown [aria-invalid="true"]:not([type=radio]):not([type=checkbox]) { border-color: var(--hand-text); }
.tk-error { margin-bottom: 16px; padding: 12px 14px; border-left: 3px solid var(--hand); background: var(--paper); font-weight: 700; }
