/* Dengon: the station board (伝言板). One stylesheet for every page.
   Same-origin only: fonts and drawings are named by placeholders that
   the boot-time loader rewrites to content-hashed /assets/ URLs. */

@font-face { font-family: "Zen Kaku Gothic New"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/zen-kaku-gothic-new-400.5b1bfc34d603aef66d247bd2.woff2") format("woff2"); }
@font-face { font-family: "Zen Kaku Gothic New"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/zen-kaku-gothic-new-500.e4ab8e9dc6984461551cf416.woff2") format("woff2"); }
@font-face { font-family: "Zen Kaku Gothic New"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/zen-kaku-gothic-new-700.3be1f563567099c0b7350440.woff2") format("woff2"); }
@font-face { font-family: "Zen Kaku Gothic New"; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/zen-kaku-gothic-new-900.9b7779306c604c1c05626184.woff2") format("woff2"); }
@font-face { font-family: "Klee One"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/klee-one-400.6d98e2b5545e18ec83437289.woff2") format("woff2"); }
@font-face { font-family: "Klee One"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/klee-one-600.f2e42e92653decae19c811d7.woff2") format("woff2"); }
/* The three glyphs of the footer's 伝言板 only. */
@font-face { font-family: "Klee One Footer"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/klee-one-600-nameplate.91dbe0d054cffe788a48a4f6.woff2") format("woff2"); }

@property --sweep { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
@property --wipe { syntax: "<percentage>"; inherits: false; initial-value: -12%; }

:root {
  color-scheme: dark;
  --board: #274238;
  --panel: #325548;
  --panel-deep: #22392F;
  --chalk: #F2EFE4;
  --yellow: #F4D35E;
  --yellow-soft: #F8DE7A;
  --red-chalk: #F1A79A;
  --dust: #A9BDB2;
  --dust-bright: #C3D3CA;
  --dust-faint: rgba(169, 189, 178, 0.28);
  --chalk-edge: rgba(242, 239, 228, 0.55);
  --chalk-soft: rgba(242, 239, 228, 0.72);
  --board-light: #2F4F43;
  --board-deep: #1F352C;
  --paper: #F6F1E4;
  --paper-ink: #1E1F1B;
  --paper-quiet: #6F6A5C;
  /* one vertical rhythm for the landing */
  --section: 7rem;
  --h2-gap: 1rem;
  --lede-gap: 2.5rem;
  --grid-gap: 3rem;
  --ui: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  --hand: "Klee One", "Hiragino Maru Gothic ProN", "Yu Kyokasho", "Zen Kaku Gothic New", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --measure: 72rem;
  --gutter: clamp(1.1rem, 4vw, 3rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { background: var(--board); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ui);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--chalk);
  background:
    radial-gradient(110% 70% at 14% 6%, var(--board-light) 0%, rgba(47, 79, 67, 0) 58%),
    radial-gradient(80% 60% at 88% 96%, var(--board-deep) 0%, rgba(31, 53, 44, 0) 60%),
    radial-gradient(60% 40% at 60% 40%, #2B4A3E 0%, rgba(43, 74, 62, 0) 70%),
    var(--board);
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}
/* chalk dust over the whole board */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
  background-image: url("/assets/chalk-dust.7d7da936e64f479d69a1833c.svg");
  background-size: 320px 320px;
  mix-blend-mode: soft-light;
}
/* the board's vignette, under everything */
body::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; box-shadow: inset 0 0 220px rgba(10, 20, 15, 0.42); }
body > * { position: relative; z-index: 1; }

a { color: var(--chalk); text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease); }
a:hover { color: var(--yellow); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--yellow); color: var(--panel-deep); }

h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 900; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
dl { margin: 0; }
dd { margin: 0; }
pre { margin: 0; }
strong { font-weight: 700; }

.wrap { width: min(var(--measure), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------------------------------------------------------------- strokes
   Every drawing is a same-origin SVG used as a mask over currentColor, so one
   file serves every chalk colour and the page carries no inline SVG. Draw-on
   motion clips the element; the ring sweeps a conic mask. */
.stroke-h, .stroke-h2, .stroke-v, .ring-stroke {
  display: block;
  background: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  pointer-events: none;
}
.stroke-h { -webkit-mask-image: url("/assets/stroke-h.399e12b60711da8530e95da5.svg"); mask-image: url("/assets/stroke-h.399e12b60711da8530e95da5.svg"); height: 6px; }
.stroke-h2 { -webkit-mask-image: url("/assets/stroke-h2.dd0c6161d56b53a2ce066999.svg"); mask-image: url("/assets/stroke-h2.dd0c6161d56b53a2ce066999.svg"); height: 6px; }
.stroke-v { -webkit-mask-image: url("/assets/stroke-v.a16c62880b931f31fff2e02b.svg"); mask-image: url("/assets/stroke-v.a16c62880b931f31fff2e02b.svg"); width: 6px; }
.ring-stroke {
  --sweep: 100%;
  position: absolute; inset: 0;
  -webkit-mask-image: url("/assets/ring.d2ace620a0e4db14c8f27db0.svg"), conic-gradient(from -80deg, #000 var(--sweep), transparent 0);
  mask-image: url("/assets/ring.d2ace620a0e4db14c8f27db0.svg"), conic-gradient(from -80deg, #000 var(--sweep), transparent 0);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}

/* a chalk frame: four strokes that overshoot at the corners */
.frame { position: absolute; inset: 0; pointer-events: none; z-index: 0; color: var(--chalk); transition: color 0.35s var(--ease); }
.frame > i { position: absolute; display: block; }
.frame > .t { top: -3px; left: -7px; right: -7px; }
.frame > .b { bottom: -3px; left: -7px; right: -7px; }
.frame > .l { left: -3px; top: -7px; bottom: -7px; }
.frame > .r { right: -3px; top: -7px; bottom: -7px; }
.frame.dust { color: var(--dust); }
.frame.red { color: var(--red-chalk); }

/* a hand-drawn ring with a number in it */
.ring {
  width: 3.6rem; height: 3.6rem; display: grid; place-items: center; position: relative;
  font-family: var(--hand); font-size: 1.7rem; font-weight: 600; color: var(--chalk);
  isolation: isolate;
}
.ring .ring-stroke { z-index: -1; }
/* the board shows through a ring, never a line drawn behind the digit */
.ring::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--board); z-index: -2; }
.ring.yellow { color: var(--yellow); }
.ring.zero { color: var(--dust); opacity: 0.8; }

/* draw-on motion: hidden until the section is on screen, then drawn once */
@media (prefers-reduced-motion: no-preference) {
  .js .draw:not(.is-in) .stroke-h, .js .draw:not(.is-in) .stroke-h2 { clip-path: inset(0 100% 0 0); }
  .js .draw:not(.is-in) .stroke-v { clip-path: inset(0 0 100% 0); }
  .js .draw:not(.is-in) .frame > .b { clip-path: inset(0 0 0 100%); }
  .js .draw:not(.is-in) .frame > .l { clip-path: inset(100% 0 0 0); }
  .js .draw:not(.is-in) .ring-stroke { --sweep: 0%; }

  .js .draw.is-in .stroke-h, .js .draw.is-in .stroke-h2 { animation: draw-right 0.75s var(--ease) both; animation-delay: var(--d, 0s); }
  .js .draw.is-in .stroke-v { animation: draw-down 0.6s var(--ease) both; animation-delay: var(--d, 0s); }
  .js .draw.is-in .frame > .t { --d: 0s; }
  .js .draw.is-in .frame > .r { --d: 0.32s; }
  .js .draw.is-in .frame > .b { animation-name: draw-left; --d: 0.62s; }
  .js .draw.is-in .frame > .l { animation-name: draw-up; --d: 0.92s; }
  .js .draw.is-in .ring-stroke { animation: sweep 0.9s var(--ease) both; animation-delay: var(--d, 0s); }
}
@keyframes draw-right { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes draw-left { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes draw-down { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes draw-up { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes sweep { from { --sweep: 0%; } to { --sweep: 100%; } }

/* stagger classes, set in markup, never inline */
.d1 { --d: 0.15s; } .d2 { --d: 0.3s; } .d3 { --d: 0.45s; } .d4 { --d: 0.6s; }
.d5 { --d: 0.75s; } .d6 { --d: 0.9s; } .d7 { --d: 1.05s; } .d8 { --d: 1.2s; }
.d9 { --d: 1.35s; } .d10 { --d: 1.5s; } .d11 { --d: 1.65s; } .d12 { --d: 1.8s; }

/* ------------------------------------------------------------- nameplate */
.nameplate {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 0 0.9rem;
  flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; border-radius: 2px; transition: filter 0.25s var(--ease), transform 0.25s var(--ease); }
.brand .logo { display: block; height: 34px; width: auto; }
/* the lockup is chalk on the board: a soft glow on hover, never an underline */
.brand:hover .logo { filter: drop-shadow(0 0 4px rgba(242, 239, 228, 0.45)); }
.brand:active { transform: translateY(1px); }
.nav { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.nav a { text-decoration: none; font-weight: 500; position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.2em; height: 2px;
  background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .who { color: var(--dust); font-family: var(--hand); max-width: 18rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --------------------------------------------------------------- buttons */
.button {
  display: inline-block;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  padding: 0.85rem 1.35rem;
  border-radius: 3px; border: 2px solid var(--yellow);
  background: var(--yellow); color: var(--panel-deep);
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease);
}
.button:hover { background: var(--yellow-soft); border-color: var(--yellow-soft); color: var(--panel-deep); }
.button:active { transform: translateY(1px); }
.button.quiet { background: transparent; color: var(--chalk); border-color: var(--chalk-edge); }
.button.quiet:hover { color: var(--yellow); border-color: var(--yellow); background: transparent; }
.button.plain {
  background: none; border: 0; padding: 0.3rem 0; color: var(--dust); font-weight: 500;
  text-decoration: underline; text-underline-offset: 0.18em; border-radius: 0;
}
.button.plain:hover { color: var(--yellow); }
.button.danger { background: transparent; color: var(--red-chalk); border-color: var(--red-chalk); }
.button.danger:hover { background: var(--red-chalk); color: var(--panel-deep); }
.actions { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; }
form.inline { display: inline; margin: 0; }

/* ----------------------------------------------------------------- forms */
label { display: block; font-weight: 700; margin: 1.1rem 0 0.35rem; }
.chalk-form .frame + label { margin-top: 0; }
input:not([type]), input[type="text"], input[type="number"], input[type="email"] {
  width: 100%; max-width: 34rem;
  font-family: var(--hand); font-size: 1.25rem; color: var(--chalk);
  background: transparent; border: 0; border-bottom: 2px solid var(--dust);
  border-radius: 0; padding: 0.45rem 0.1rem;
  transition: border-color 0.2s var(--ease);
}
input[type="number"] { max-width: 8rem; }
input:focus { border-bottom-color: var(--yellow); }
input:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; border-radius: 2px; }
.field-help { color: var(--dust); font-size: 0.95rem; margin-top: 0.3rem; }
.chalk-form { position: relative; padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1.4rem, 3vw, 2.2rem); max-width: 44rem; }
.chalk-form > :not(.frame) { position: relative; z-index: 1; }
.chalk-form .actions { margin-top: 1.6rem; }

/* --------------------------------------------------------------- landing
   The station board: a note chalked by hand while two assistants exchange
   paper slips, the room card turns from unread to opened, and the board is
   wiped. The page is complete at rest: every word is in the markup and no
   rule hides it. The script plays one fast pass over it; only the pass's
   own moments (a flashing line, the re-stamped ring, the wipe) carry
   classes, so without the script nothing is ever hidden. The chalk helpers
   are unscoped: the inner pages share them. */
.chalk { text-shadow: 0 0 1px rgba(242, 239, 228, 0.55), 0 0 7px rgba(242, 239, 228, 0.1); }
.grainy { -webkit-mask-image: url("/assets/grain.5fdbff0d83dcfcd1fc60eb81.svg"); mask-image: url("/assets/grain.5fdbff0d83dcfcd1fc60eb81.svg"); }
.landing .ghost { position: absolute; z-index: 0; pointer-events: none; user-select: none; font-family: var(--hand); color: var(--chalk); opacity: 0.02; white-space: nowrap; }
.landing .ghost.g1 { left: 60%; top: 1rem; font-size: 2.3rem; transform: rotate(-3deg); }
.landing .ghost.g2 { left: 58%; top: 0; font-size: 2rem; transform: rotate(-1deg); }

.landing .hero { position: relative; padding: var(--lede-gap) 0 0; overflow: hidden; }
.landing .hero > .wrap { position: relative; z-index: 1; }
/* the headline takes the whole board; under it the lede runs in two columns
   split at a sentence, and the action and its note sit in the same two
   columns, so the hero fills its width the way the board below does */
.landing .hero-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem var(--grid-gap); align-items: start; }
.landing .hero h1 { grid-column: 1 / -1; margin-bottom: var(--h2-gap); font-size: clamp(2.5rem, 5.4vw, 5.2rem); font-weight: 900; line-height: 0.98; letter-spacing: -0.02em; text-wrap: initial; }
.landing .hero h1 br.n { display: none; }
.landing .hero .lede { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; gap: var(--h2-gap) var(--grid-gap); font-size: 1.2rem; line-height: 1.5; margin: 0; }
.landing .hero .lede p { margin: 0; }
.landing .hero-copy { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; gap: var(--h2-gap) var(--grid-gap); align-items: center; }
.landing .hero .actions { margin: 0; }
.landing .hero .aside { color: var(--dust); font-size: 0.92rem; line-height: 1.5; margin: 0; }

/* the stage: three columns of board on one baseline */
.landing .stage { position: relative; margin-top: var(--lede-gap); min-height: 30rem; display: grid; grid-template-columns: minmax(0, 21rem) minmax(0, 1fr) minmax(0, 21rem); grid-template-areas: "d1 d3 d2" "s1 note s2" "s1b card s2" "s1b receipt s2" ". gone s2" ". replay s2"; gap: 0.6rem var(--grid-gap); align-items: start; }
.landing .stage > * { min-width: 0; }
.landing .stage .a-d1 { grid-area: d1; } .landing .stage .a-d2 { grid-area: d2; } .landing .stage .a-d3 { grid-area: d3; }
.landing .stage .a-s1 { grid-area: s1; } .landing .stage .a-s2 { grid-area: s2; } .landing .stage .a-s1b { grid-area: s1b; }
.landing .stage .a-note { grid-area: note; } .landing .stage .a-card { grid-area: card; } .landing .stage .a-receipt { grid-area: receipt; } .landing .stage .a-gone { grid-area: gone; } .landing .stage .a-replay { grid-area: replay; }
.landing .stage .more { display: flex; flex-direction: column; gap: 0.6rem; }
.landing .slip-more { --tilt: -0.6deg; }
.landing .slip-more::before { display: none; }
.landing .date { font-size: 0.95rem; color: var(--dust); margin: 0; min-height: 1.5rem; transition: opacity 0.4s; padding-left: 0.2rem; }
.landing .reveal { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.4s var(--ease); }
.landing .reveal > * { min-height: 0; }

/* paper slips: the assistant exchanges */
.landing .slip { position: relative; background: var(--paper); color: var(--paper-ink); padding: 1.1rem 1.15rem 1.05rem; width: 100%; font-size: 1.05rem; line-height: 1.45; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.18), 0 10px 24px -8px rgba(0, 0, 0, 0.45), 0 24px 40px -18px rgba(0, 0, 0, 0.35); transform: rotate(var(--tilt, -1.3deg)); transition: opacity 0.38s var(--ease), transform 0.5s var(--ease), visibility 0s; }
.landing .slip::before, .landing .mini-slip::before { content: ""; position: absolute; left: 50%; top: -0.6rem; width: 4.4rem; height: 1.2rem; transform: translateX(-50%) rotate(-2deg); background: linear-gradient(180deg, rgba(246, 232, 170, 0.5) 0%, rgba(246, 232, 170, 0.42) 42%, rgba(255, 251, 225, 0.78) 50%, rgba(246, 232, 170, 0.45) 58%, rgba(246, 232, 170, 0.5) 100%); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14); }
.landing .slip::after, .landing .mini-slip::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.12; mix-blend-mode: multiply; background-image: url("/assets/paper-grain.a36610a2ed4833ef2ead92a4.svg"); }
.landing .slip .app, .landing .mini-slip .app { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.01em; color: var(--paper-quiet); margin: 0; display: flex; justify-content: space-between; }
.landing .slip .line { margin: 0.55rem 0 0; display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.38s var(--ease), margin-top 0.38s var(--ease); }
.landing .slip .line > .in { min-height: 0; overflow: hidden; }
.landing .slip .line.rewind { grid-template-rows: 0fr; margin-top: 0; }
.landing .slip .who, .landing .mini-slip .who { font-weight: 700; margin-right: 0.35rem; }
.landing .slip .line.assistant .who, .landing .mini-slip p.assistant .who { color: var(--paper-quiet); }
.landing .stage.passing .slip .u { visibility: hidden; }
.landing .stage.passing .slip .u.v { visibility: visible; }
.landing .slip-writer { --tilt: -1.2deg; }
.landing .slip-reader { --tilt: 1deg; }

/* the chalked note */
.landing .note { position: relative; font-family: var(--hand); font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.4; color: var(--chalk); transform: rotate(-0.6deg); padding: 0.2rem 0.2rem 0 0.4rem; --wipe: -12%; }
.landing .note .ink .body, .landing .note .ink .sig { -webkit-mask-image: url("/assets/grain.5fdbff0d83dcfcd1fc60eb81.svg"); mask-image: url("/assets/grain.5fdbff0d83dcfcd1fc60eb81.svg"); }
.landing .stage.passing .note .c { visibility: hidden; }
.landing .stage.passing .note .c.v { visibility: visible; }
.landing .note .sig { display: block; text-align: right; font-size: 0.78em; color: var(--dust); margin-top: 0.4rem; padding-right: 0.8rem; }
.landing .note.wiping .ink { -webkit-mask-image: linear-gradient(100deg, transparent 0 var(--wipe), #000 calc(var(--wipe) + 9%)); mask-image: linear-gradient(100deg, transparent 0 var(--wipe), #000 calc(var(--wipe) + 9%)); animation: wipe 0.9s cubic-bezier(0.4, 0.05, 0.3, 1) forwards; }
@keyframes wipe { from { --wipe: -12%; } to { --wipe: 112%; } }
.landing .note .trace { position: absolute; inset: 0.2rem 0.2rem 0 0.4rem; opacity: 0; color: var(--chalk); pointer-events: none; transition: opacity 1s 0.5s; }
.landing .note.wiped .trace { opacity: 0.03; }
/* the chalk stub follows the last letter written: it is moved in the document, never positioned */
.landing .cursor { display: inline-block; width: 1.05rem; height: 0.38rem; margin-left: -0.15rem; vertical-align: -0.05em; background: var(--chalk); border-radius: 1px 2px 2px 1px; transform: rotate(-32deg); transform-origin: left center; box-shadow: 0 0 6px rgba(242, 239, 228, 0.5); opacity: 0; pointer-events: none; }
.landing .cursor.on { opacity: 0.95; }
.landing .eraser { position: absolute; z-index: 5; width: 5.8rem; height: 2.6rem; opacity: 0; pointer-events: none; left: -1rem; top: 40%; transform: rotate(-8deg); }
.landing .eraser .felt { position: absolute; inset: 0; border-radius: 3px; background: linear-gradient(#a9b4ad, #7f8d86 60%, #6c7a73); box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.12); }
.landing .eraser .felt::after { content: ""; position: absolute; inset: 0; border-radius: 3px; -webkit-mask-image: url("/assets/grain.5fdbff0d83dcfcd1fc60eb81.svg"); mask-image: url("/assets/grain.5fdbff0d83dcfcd1fc60eb81.svg"); background: rgba(242, 239, 228, 0.35); }
.landing .eraser .wood { position: absolute; left: 0; right: 0; top: 0; height: 38%; background: linear-gradient(#d3be95, #b59c74); border-radius: 3px 3px 0 0; }
.landing .eraser .shadow { position: absolute; left: 6%; right: 6%; bottom: -0.7rem; height: 0.9rem; border-radius: 50%; background: rgba(0, 0, 0, 0.45); filter: blur(4px); }
.landing .note.wiping .eraser { animation: sweep-eraser 0.9s cubic-bezier(0.4, 0.05, 0.3, 1) forwards; }
@keyframes sweep-eraser { 0% { left: -8%; top: 12%; transform: rotate(-10deg); opacity: 1; } 30% { top: 50%; } 60% { top: 18%; } 85% { opacity: 1; } 100% { left: 100%; top: 44%; transform: rotate(6deg); opacity: 0; } }
.landing .stage .motes { position: absolute; inset: 0; pointer-events: none; }
.landing .stage .motes i { position: absolute; border-radius: 50%; background: rgba(242, 239, 228, 0.8); opacity: 0; }
.landing .stage .motes i:nth-child(1) { left: 35.2%; top: 29.1%; --x: 14px; --y: 25px; --d: 0.59s; width: 3.1px; height: 3.1px; }
.landing .stage .motes i:nth-child(2) { left: 12.9%; top: 50.4%; --x: -11px; --y: 50px; --d: 0.08s; width: 2.3px; height: 2.3px; }
.landing .stage .motes i:nth-child(3) { left: 43.7%; top: 69.6%; --x: -7px; --y: 36px; --d: 0.69s; width: 4.8px; height: 4.8px; }
.landing .stage .motes i:nth-child(4) { left: 56.5%; top: 43.8%; --x: 27px; --y: 23px; --d: 0.94s; width: 2.9px; height: 2.9px; }
.landing .stage .motes i:nth-child(5) { left: 20.1%; top: 27.1%; --x: 0px; --y: 77px; --d: 0.2s; width: 3.7px; height: 3.7px; }
.landing .stage .motes i:nth-child(6) { left: 61.7%; top: 42.3%; --x: 10px; --y: 24px; --d: 0.07s; width: 2.6px; height: 2.6px; }
.landing .stage .motes i:nth-child(7) { left: 65.2%; top: 45.7%; --x: 1px; --y: 61px; --d: 0.5s; width: 2.9px; height: 2.9px; }
.landing .stage .motes i:nth-child(8) { left: 74.7%; top: 61.9%; --x: -2px; --y: 60px; --d: 0.58s; width: 4.6px; height: 4.6px; }
.landing .stage .motes i:nth-child(9) { left: 69.3%; top: 37.3%; --x: 27px; --y: 28px; --d: 0.46s; width: 4.3px; height: 4.3px; }
.landing .stage .motes i:nth-child(10) { left: 20.8%; top: 49.3%; --x: -10px; --y: 67px; --d: 0.84s; width: 3.7px; height: 3.7px; }
.landing .stage .motes i:nth-child(11) { left: 81.5%; top: 38.8%; --x: 16px; --y: 62px; --d: 0.64s; width: 3.4px; height: 3.4px; }
.landing .stage .motes i:nth-child(12) { left: 78.6%; top: 76.7%; --x: 7px; --y: 66px; --d: 0.07s; width: 4.1px; height: 4.1px; }
.landing .stage .motes i:nth-child(13) { left: 62.4%; top: 79.6%; --x: 21px; --y: 40px; --d: 0.42s; width: 4.0px; height: 4.0px; }
.landing .stage .motes i:nth-child(14) { left: 9.9%; top: 47.7%; --x: -5px; --y: 28px; --d: 0.06s; width: 4.3px; height: 4.3px; }
.landing .stage .motes i:nth-child(15) { left: 18.9%; top: 34.9%; --x: 4px; --y: 81px; --d: 0.09s; width: 3.3px; height: 3.3px; }
.landing .stage .motes i:nth-child(16) { left: 54.2%; top: 73.0%; --x: 21px; --y: 80px; --d: 0.31s; width: 3.2px; height: 3.2px; }
.landing .stage .motes i:nth-child(17) { left: 38.1%; top: 73.1%; --x: 26px; --y: 31px; --d: 0.19s; width: 2.7px; height: 2.7px; }
.landing .stage .motes i:nth-child(18) { left: 27.6%; top: 49.1%; --x: 12px; --y: 38px; --d: 0.0s; width: 3.3px; height: 3.3px; }
.landing .stage .motes i:nth-child(19) { left: 39.0%; top: 54.0%; --x: 26px; --y: 68px; --d: 0.57s; width: 3.9px; height: 3.9px; }
.landing .stage .motes i:nth-child(20) { left: 64.8%; top: 23.2%; --x: 24px; --y: 75px; --d: 0.96s; width: 4.4px; height: 4.4px; }
.landing .stage .motes i:nth-child(21) { left: 41.0%; top: 43.9%; --x: -8px; --y: 64px; --d: 0.07s; width: 2.2px; height: 2.2px; }
.landing .stage .motes i:nth-child(22) { left: 25.5%; top: 29.7%; --x: 2px; --y: 24px; --d: 0.0s; width: 2.5px; height: 2.5px; }
.landing .note.wiping .motes i { animation: mote 0.85s ease-out forwards; animation-delay: var(--d); }
@keyframes mote { 0% { opacity: 0; transform: translate(0, 0) scale(1); } 15% { opacity: 0.9; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(0.4); } }

/* the room card: what the website shows */
.landing .rcard { position: relative; padding: 0.8rem 1rem 0.75rem; font-size: 0.95rem; line-height: 1.4; color: var(--chalk); transition: opacity 0.8s var(--ease); }
.landing .rcard > :not(.frame) { position: relative; z-index: 1; }
.landing .rcard .frame { color: var(--chalk-soft); }
.landing .rcard .rname { margin: 0; color: var(--dust); font-size: 0.85rem; transition: opacity 0.4s 0.5s; }
.landing .rcard .meta { margin: 0.15rem 0 0; display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; align-items: baseline; color: var(--chalk); transition: opacity 0.4s 0.7s; }
.landing .rcard .meta b { font-weight: 700; }
.landing .rcard .meta span { color: var(--dust); }
.landing .rcard .meta .mark { color: var(--yellow); font-weight: 700; margin-left: auto; }
.landing .rcard.opened .meta .mark { color: var(--dust); font-weight: 400; }
.landing .rcard.faded { opacity: 0.45; }
.landing .rcard .members { list-style: none; margin: 0.3rem 0 0; padding: 0; }
.landing .rcard .members li { display: flex; justify-content: space-between; gap: 1rem; color: var(--dust); transition: opacity 0.4s 0.6s; }
.landing .rcard .members li b { color: var(--chalk); font-weight: 400; }
.landing .rcard .members li:nth-child(2) { transition-delay: 1s; }
.landing .rcard .title { margin: 0; font-weight: 700; font-size: 1.05rem; transition: opacity 0.4s 0.4s; }
.landing .vig-gone { width: 100%; }
.js .landing .draw.is-in .vig-gone .rcard { animation: ghostcard 1.2s 1.8s var(--ease) forwards; }
@keyframes ghostcard { to { opacity: 0.14; } }
.landing .vig-gone .after { margin: 0.6rem 0 0; color: var(--dust); font-size: 0.95rem; transition: opacity 0.6s 2.8s; padding-left: 0.2rem; }
.js .landing .vig-gone .after { opacity: 0; }
.js .landing .draw.is-in .vig-gone .after { opacity: 1; }

/* the receipt: a chalk oval around "opened" and the recorded line */
.landing .receipt { display: flex; align-items: center; gap: 1rem; color: var(--dust); font-size: 0.98rem; line-height: 1.4; transition: opacity 0.3s; padding-left: 0.2rem; }
.landing .oval { position: relative; flex: none; width: 5.2rem; height: 3.2rem; display: grid; place-items: center; font-size: 0.95rem; color: var(--yellow); font-weight: 700; isolation: isolate; }
.oval-stroke { --sweep: 100%; position: absolute; inset: 0; z-index: -1; display: block; background: currentColor; pointer-events: none; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-image: url("/assets/oval.debddc1bfaa4ae5c445b85b3.svg"), conic-gradient(from -80deg, #000 var(--sweep), transparent 0); mask-image: url("/assets/oval.debddc1bfaa4ae5c445b85b3.svg"), conic-gradient(from -80deg, #000 var(--sweep), transparent 0); -webkit-mask-composite: source-in; mask-composite: intersect; }
.landing .stage.passing .receipt .rline .c { visibility: hidden; }
.landing .stage.passing .receipt .rline .c.v { visibility: visible; }
.landing .gone { color: var(--dust); font-size: 1rem; transition: opacity 0.8s; padding-left: 0.3rem; margin: 0; }
.landing .replay { display: none; justify-self: start; background: none; border: 2px solid var(--chalk-edge); color: var(--chalk); font: inherit; font-size: 0.95rem; padding: 0.4rem 0.9rem; border-radius: 3px 4px 3px 5px; cursor: pointer; transition: opacity 0.4s; }
.js .landing .replay { display: inline-block; }
.landing .replay:hover { border-color: var(--chalk); }
@media (prefers-reduced-motion: reduce) { .landing .replay { display: none; } }

/* the chalk tray */
.landing .tray-wrap { position: relative; margin-top: var(--grid-gap); z-index: 1; }
.landing .tray { position: relative; height: 1.15rem; margin-inline: -3rem; background: linear-gradient(#3f6053, #2c473c); box-shadow: 0 -1px 0 rgba(242, 239, 228, 0.18), 0 3px 0 #1e3129, 0 10px 18px rgba(0, 0, 0, 0.35); }
.landing .tray::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1.05rem; height: 1rem; background: linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0)); }
.landing .props { position: absolute; left: 0; bottom: 1rem; width: 12.5rem; height: 2.6rem; display: block; }

/* sections: one gap between them, one heading rhythm inside */
.landing .section { padding: var(--section) 0 0; position: relative; border: 0; }
.landing .section h2 { display: block; font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 900; line-height: 1.05; letter-spacing: -0.015em; margin: 0 0 var(--h2-gap); padding: 0; max-width: none; }
.landing .section .intro { margin: 0 0 var(--lede-gap); color: var(--dust); max-width: 40rem; font-size: 1.125rem; }
.landing .statement { font-size: clamp(1.7rem, 3.2vw, 2.7rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; max-width: 50ch; margin: 0; color: var(--chalk); text-wrap: balance; }
.landing .section .small { color: var(--dust); font-size: 1rem; max-width: 42rem; margin: 0; }
.landing .pain { overflow: hidden; }

/* steps: rows share their three tracks, so vignette boxes match per row */
.landing .steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--grid-gap); row-gap: 0; }
.landing .step { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); grid-template-rows: subgrid; grid-row: span 3; column-gap: 1rem; }
.landing .step .ring.n { grid-column: 1; grid-row: 1 / span 3; width: 3rem; height: 3rem; font-family: var(--ui); font-weight: 700; font-size: 1.2rem; }
.landing .step h3 { grid-column: 2; grid-row: 1; font-size: 1.3rem; font-weight: 700; margin: 0.35rem 0 var(--h2-gap); line-height: 1.2; }
.landing .step .text { grid-column: 2; grid-row: 2; margin: 0 0 var(--h2-gap); color: var(--dust); font-size: 1.05rem; max-width: 30rem; }
.landing .step .text p { margin: 0; }
.landing .step .text .fine { margin-top: 0.5rem; font-size: 0.95rem; }
.landing .step .vig { grid-column: 2; grid-row: 3; display: flex; align-items: center; padding-bottom: var(--grid-gap); }
.landing .step:nth-child(n+5) .vig { padding-bottom: 0; }
.landing .vig > * { width: 100%; max-width: 30rem; }
.landing .mini-slip { position: relative; background: var(--paper); color: var(--paper-ink); padding: 0.9rem 1rem; font-size: 0.95rem; line-height: 1.45; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.18), 0 10px 22px -8px rgba(0, 0, 0, 0.45); transform: rotate(-0.8deg); }
.landing .mini-slip p { margin: 0 0 0.4rem; color: var(--paper-ink); transition: opacity 0.5s var(--ease); }
.landing .mini-slip p:last-child { margin: 0; }
.landing .mini-slip .setting { color: var(--paper-ink); }
.landing .mini-slip .setting .who { color: var(--paper-quiet); font-weight: 600; }
.js .landing .mini-slip p { opacity: 0; }
.js .landing .draw.is-in .mini-slip p { opacity: 1; }
.js .landing .draw.is-in .mini-slip p:nth-child(2) { transition-delay: 0.25s; }
.js .landing .draw.is-in .mini-slip p:nth-child(3) { transition-delay: 0.9s; }

/* works with: one row, then the paragraph */
.board-moment { display: flex; flex-wrap: wrap; align-items: center; gap: var(--h2-gap) var(--grid-gap); margin: 0 0 var(--lede-gap); }
.address { position: relative; display: inline-block; padding: 0.9rem 1.4rem; isolation: isolate; }
.address .oval-stroke { inset: -0.4rem -0.9rem; color: var(--yellow); -webkit-mask-image: url("/assets/oval-wide.52bf454b73d93e6cf73ad3ce.svg"), conic-gradient(from -80deg, #000 var(--sweep), transparent 0); mask-image: url("/assets/oval-wide.52bf454b73d93e6cf73ad3ce.svg"), conic-gradient(from -80deg, #000 var(--sweep), transparent 0); }
.address .url { font-family: var(--ui); font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 700; color: var(--chalk); border: 0; padding: 0; margin: 0; display: block; overflow-wrap: anywhere; user-select: all; }
.assistants { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: auto auto; gap: 0.1rem 1.6rem; font-size: 1.05rem; line-height: 1.5; color: var(--chalk); }
.landing .assistants li { transition: opacity 0.4s var(--ease); }
.js .landing .assistants li { opacity: 0; }
.js .landing .draw.is-in .assistants li { opacity: 1; }
.js .landing .draw.is-in .assistants li:nth-child(2) { transition-delay: 0.15s; }
.js .landing .draw.is-in .assistants li:nth-child(3) { transition-delay: 0.3s; }
.js .landing .draw.is-in .assistants li:nth-child(4) { transition-delay: 0.45s; }

.landing .closing { position: relative; padding: var(--section) 0; overflow: hidden; }
.landing .closing h2 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); margin-bottom: var(--h2-gap); }
.landing .closing .actions { margin-bottom: var(--h2-gap); }
.landing .closing .chalkline { color: var(--dust); font-size: 1.05rem; margin: 0; }

/* the oval sweeps on like the rings; without the script it is simply drawn */
@media (prefers-reduced-motion: no-preference) {
  .js .landing .draw:not(.is-in) .oval-stroke { --sweep: 0%; }
  .js .landing .receipt.stamp .oval-stroke { animation: sweep 0.5s var(--ease) both; }
  .js .landing .draw.is-in .oval-stroke { animation: sweep 0.9s 0.2s var(--ease) both; }
}

/* -------------------------------------------------------------- sections */
.page h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 900; letter-spacing: -0.015em; line-height: 1.1;
  max-width: 26ch; margin: 0 0 0.6rem;
}
.page .intro { margin-top: 0.4rem; max-width: 40rem; color: var(--dust); font-size: 1.05rem; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }

.panel {
  position: relative; background: var(--panel); border-radius: 3px;
  padding: clamp(1.1rem, 2.5vw, 1.7rem) clamp(1.2rem, 2.5vw, 1.8rem);
}
.panel > :not(.frame) { position: relative; z-index: 1; }
.panel h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }

/* fact lists written in chalk */
.facts { display: grid; gap: 0.9rem; list-style: none; max-width: 44rem; }
.facts li { padding-left: 1.6rem; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 0.7rem; height: 3px; background: var(--dust); border-radius: 2px; transform: rotate(-6deg); }

.size { font-family: var(--hand); color: var(--dust); font-size: 1rem; }
.url { font-family: var(--ui); font-weight: 700; font-size: clamp(1.2rem, 2vw, 1.6rem); color: var(--chalk); padding: 0; margin: 0; display: block; overflow-wrap: anywhere; user-select: all; }
.page .address { margin: 0.4rem 0 1rem; }
footer { padding: 1.5rem 0 2.5rem; color: var(--dust); font-size: 0.9rem; border-top: 1px solid var(--dust-faint); }
footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
footer .jp { font-family: "Klee One Footer", var(--hand); font-weight: 600; font-size: 0.9rem; color: var(--dust); margin-left: 0.35rem; }

/* ----------------------------------------------------------- inner pages */
.page { padding: clamp(2rem, 5vw, 3.5rem) 0 4rem; display: grid; gap: clamp(1.6rem, 3vw, 2.4rem); align-content: start; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; }
.page-head > div:first-child { flex: 1 1 24rem; min-width: 0; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.025em; }
.page-head h1.hand { font-family: var(--hand); font-weight: 600; letter-spacing: 0; line-height: 1.15; }
.page-head .meta, .meta { color: var(--dust); margin-top: 0.4rem; }
.kind { color: var(--dust); font-size: 0.95rem; }
.kind a { color: var(--dust); }
.kind a:hover { color: var(--yellow); }
.meta form.signout { display: inline; margin: 0 0 0 0.75rem; }
.ceiling { color: var(--dust); }
.page section { display: grid; gap: 0.9rem; align-content: start; }
.page section.empty { gap: 0.8rem; }
.page section.handoff-card { gap: 1.2rem; }

.rooms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1.4rem; list-style: none; }
.room {
  position: relative; min-height: 12.5rem;
  display: grid; grid-template-rows: auto 1fr auto; gap: 0.6rem;
  padding: clamp(1.2rem, 2.5vw, 1.7rem) clamp(1.3rem, 2.5vw, 1.9rem);
}
.room > :not(.frame) { position: relative; z-index: 1; }
.room:hover .frame { color: var(--yellow); }
.room h2 { font-family: var(--hand); font-weight: 600; font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1.25; letter-spacing: 0; padding: 0 4.5rem 0 0; max-width: none; }
.room h2 a { text-decoration: none; }
.room h2 a:hover { text-decoration: underline; text-decoration-color: var(--yellow); }
.room .count { position: absolute; top: 1rem; right: 1rem; width: 3.8rem; height: 3.8rem; font-size: 1.7rem; }
.room .foot { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; color: var(--dust); font-size: 0.95rem; }
.room .foot a { font-weight: 500; }
.room .unread-word { color: var(--chalk); }

.empty { position: relative; padding: clamp(2rem, 6vw, 4rem) clamp(1.4rem, 4vw, 3rem); display: grid; gap: 0.8rem; max-width: 40rem; }
.empty > :not(.frame) { position: relative; z-index: 1; }
.empty h1, .empty h2 { font-family: var(--hand); font-weight: 600; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: 0; transform: rotate(-1deg); transform-origin: left; padding: 0; max-width: none; -webkit-mask-image: url("/assets/grain.5fdbff0d83dcfcd1fc60eb81.svg"); mask-image: url("/assets/grain.5fdbff0d83dcfcd1fc60eb81.svg"); }
.empty p { color: var(--dust); }
.empty .actions { margin-top: 0.6rem; }

/* people lists on the room page */
.people { list-style: none; display: grid; gap: 0.7rem; }
.people li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem; padding: 0.7rem 0 0.85rem; font-family: var(--hand); font-size: 1.2rem; position: relative; }
.people li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--dust-faint); -webkit-mask-image: url("/assets/stroke-h.399e12b60711da8530e95da5.svg"); mask-image: url("/assets/stroke-h.399e12b60711da8530e95da5.svg"); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.people li:last-child::after { display: none; }
.badge { font-family: var(--ui); font-size: 0.82rem; font-weight: 500; color: var(--dust); padding: 0; }
.badge.creator { color: var(--yellow); font-weight: 700; }
.people form { margin-left: auto; }
.pack { position: relative; font-family: var(--ui); font-size: 0.95rem; line-height: 1.55; color: var(--paper-ink); white-space: pre-wrap; overflow-wrap: anywhere; background: var(--paper); padding: 1.3rem 1.4rem; border-radius: 2px; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.18), 0 10px 24px -8px rgba(0, 0, 0, 0.45); user-select: all; transform: rotate(-0.4deg); }
.pack::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.12; mix-blend-mode: multiply; background-image: url("/assets/paper-grain.a36610a2ed4833ef2ead92a4.svg"); border-radius: 2px; }
.totals { font-family: var(--hand); color: var(--dust); }
.danger-zone { position: relative; padding: clamp(1.2rem, 3vw, 1.8rem) clamp(1.3rem, 3vw, 2rem); max-width: 44rem; display: grid; gap: 0.9rem; }
.danger-zone > :not(.frame) { position: relative; z-index: 1; }
.danger-zone summary { cursor: pointer; font-weight: 700; font-size: 1.15rem; color: var(--red-chalk); list-style: none; display: flex; align-items: center; gap: 0.6rem; }
.danger-zone summary::-webkit-details-marker { display: none; }
.danger-zone summary::before { content: ""; width: 0.55rem; height: 0.55rem; border-right: 2px solid var(--red-chalk); border-bottom: 2px solid var(--red-chalk); transform: rotate(-45deg); transition: transform 0.25s var(--ease); }
.danger-zone[open] summary::before { transform: rotate(45deg); }
.danger-zone p { color: var(--dust); }

/* handoff cards in the inbox */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1.4rem; list-style: none; }
.card { position: relative; display: grid; gap: 0.7rem; align-content: start; padding: clamp(1.2rem, 2.5vw, 1.7rem) clamp(1.3rem, 2.5vw, 1.9rem); }
.card > :not(.frame) { position: relative; z-index: 1; }
.card:hover .frame { color: var(--yellow); }
.card .state { display: flex; gap: 0.6rem; flex-wrap: wrap; color: var(--dust); font-size: 0.9rem; }
.card .state .unread { color: var(--yellow); font-weight: 700; }
.card h2 { font-family: var(--hand); font-weight: 600; font-size: clamp(1.3rem, 2vw, 1.55rem); line-height: 1.35; letter-spacing: 0; padding: 0; max-width: none; overflow-wrap: anywhere; }
.card h2 a { text-decoration: none; }
.card h2 a:hover { text-decoration: underline; text-decoration-color: var(--yellow); }
.card .summary { font-family: var(--hand); font-size: 1.15rem; -webkit-mask-image: url("/assets/grain.5fdbff0d83dcfcd1fc60eb81.svg"); mask-image: url("/assets/grain.5fdbff0d83dcfcd1fc60eb81.svg"); }
.card .withdrawn { position: relative; color: var(--dust); font-family: var(--hand); }
.card .withdrawn strong { color: var(--red-chalk); font-weight: 600; }
.card .files { list-style: none; display: grid; gap: 0.2rem; color: var(--dust); font-size: 0.95rem; }
.card .size { font-size: 0.9rem; }

/* the handoff page */
.meta-list { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.4rem; font-size: 1.05rem; }
.meta-list dt { color: var(--dust); }
.meta-list dd { overflow-wrap: anywhere; }
.meta-list ul { list-style: none; display: grid; gap: 0.2rem; }
.handoff-card { position: relative; max-width: 46rem; display: grid; gap: 1.2rem; padding: clamp(1.3rem, 3vw, 2rem) clamp(1.4rem, 3vw, 2.2rem); }
.handoff-card > :not(.frame) { position: relative; z-index: 1; }
.handoff-card .open { display: grid; gap: 0.9rem; }
.withdrawn-notice { color: var(--dust); font-family: var(--hand); font-size: 1.15rem; }
.withdrawn-notice strong { color: var(--red-chalk); font-weight: 600; }
.caution { color: var(--dust); font-size: 0.95rem; }
.note-body { font-family: var(--hand); font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--chalk); -webkit-mask-image: url("/assets/grain.5fdbff0d83dcfcd1fc60eb81.svg"); mask-image: url("/assets/grain.5fdbff0d83dcfcd1fc60eb81.svg"); }
.file { position: relative; padding: clamp(1.3rem, 3vw, 1.9rem) clamp(1.4rem, 3vw, 2rem); display: grid; gap: 0.7rem; background: var(--paper); color: var(--paper-ink); border-radius: 2px; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.18), 0 12px 28px -10px rgba(0, 0, 0, 0.45); transform: rotate(-0.3deg); }
.file::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.12; mix-blend-mode: multiply; background-image: url("/assets/paper-grain.a36610a2ed4833ef2ead92a4.svg"); border-radius: 2px; }
.file > :not(.frame) { position: relative; z-index: 1; }
.file h3 { font-family: var(--hand); font-weight: 600; font-size: 1.3rem; overflow-wrap: anywhere; color: var(--paper-ink); }
.file .meta { margin: 0; font-size: 0.85rem; color: var(--paper-quiet); }
.file-body { font-family: var(--mono); font-size: 0.9rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--paper-ink); background: rgba(30, 31, 27, 0.06); padding: 1rem 1.1rem; border-radius: 3px; }
.markdown { overflow-wrap: anywhere; }
.markdown h1, .markdown h2, .markdown h3, .markdown h4, .markdown h5, .markdown h6 { font-weight: 700; margin: 1.2em 0 0.4em; padding: 0; display: block; max-width: none; letter-spacing: -0.01em; }
.markdown h1 { font-size: 1.6rem; } .markdown h2 { font-size: 1.35rem; } .markdown h3 { font-size: 1.15rem; }
.markdown h4, .markdown h5, .markdown h6 { font-size: 1rem; }
.markdown p, .markdown ul, .markdown ol, .markdown blockquote, .markdown pre { margin: 0.7em 0; }
.markdown ul, .markdown ol { padding-left: 1.4em; }
.markdown blockquote { border-left: 3px solid var(--paper-quiet); padding-left: 1em; color: var(--paper-quiet); }
.markdown { color: var(--paper-ink); }
.markdown code { font-family: var(--mono); font-size: 0.92em; background: rgba(30, 31, 27, 0.06); padding: 0.1em 0.35em; border-radius: 3px; }
.markdown pre { background: rgba(30, 31, 27, 0.06); padding: 1rem 1.1rem; border-radius: 3px; white-space: pre-wrap; }
.markdown pre code { background: none; padding: 0; }
.markdown hr { border: 0; border-top: 2px solid var(--paper-quiet); margin: 1.2em 0; }
.markdown a { color: #7a621b; }
.provenance { list-style: none; display: grid; gap: 0.5rem; }
.provenance li { padding-left: 1.6rem; position: relative; }
.provenance li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 0.7rem; height: 3px; background: var(--dust); border-radius: 2px; transform: rotate(-6deg); }

/* --------------------------------------------------------------- approve */
.approve { padding: clamp(2rem, 6vw, 4.5rem) 0 4rem; }
.approve .card-consent { max-width: 36rem; margin-inline: auto; display: grid; gap: 1.3rem; }
.approve h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -0.02em; }
.approve .card-consent > p { color: var(--dust); }
.hosts { display: grid; gap: 0.8rem; list-style: none; }
.hosts li { display: grid; gap: 0.15rem; }
.hosts .label { font-size: 0.9rem; color: var(--dust-bright); }
.hosts .host { font-family: var(--hand); font-size: 1.55rem; font-weight: 600; color: var(--chalk); overflow-wrap: anywhere; line-height: 1.2; }
.unverified em { font-style: normal; color: var(--dust); font-size: 0.68em; font-family: var(--ui); font-weight: 400; }
.approve .card-consent > p.warn, .warn { border: 2px solid var(--yellow); border-radius: 3px; padding: 0.8rem 1rem; color: var(--yellow); font-weight: 500; }
.approve dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.2rem; }
.approve dt { color: var(--dust); }
.approve dd { overflow-wrap: anywhere; }
.approve dd .hand { font-family: var(--hand); font-size: 1.1rem; }
.scope { display: flex; gap: 0.8rem; align-items: baseline; flex-wrap: wrap; }
.scope .name { font-family: var(--hand); font-size: 1.4rem; font-weight: 600; }
.scope .new { color: var(--yellow); font-size: 0.95rem; }
.scope .prior { color: var(--dust); font-size: 0.95rem; }
.approve form { display: flex; gap: 0.8rem; justify-content: space-between; flex-wrap: wrap; margin-top: 0.4rem; }
.approve form .button { flex: 1 1 10rem; text-align: center; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 760px) {
  .two { grid-template-columns: 1fr; }
  .nameplate { padding-top: 0.9rem; }
  .brand .logo { height: 28px; }
  .nav { gap: 1rem; font-size: 0.95rem; }
  .nav .who { max-width: 12rem; }
  .room .count { width: 3.3rem; height: 3.3rem; font-size: 1.5rem; }
  .approve dl, .meta-list { grid-template-columns: 1fr; gap: 0.1rem 0; }
  .approve dt, .meta-list dt { margin-top: 0.5rem; }
  .people form { margin-left: 0; }
}

/* ---------------------------------------------------- landing responsive */
@media (max-width: 1080px) {
  .landing .stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "d1 d2" "s1 s2" "note s2" "card s2" "receipt s2" "s1b s2" "d3 d3" "gone gone" "replay replay"; }
}
@media (max-width: 760px) {
  :root { --section: 4.5rem; --h2-gap: 0.75rem; --lede-gap: 1.75rem; --grid-gap: 2rem; }
  .landing .hero h1 { font-size: clamp(2.1rem, 9.6vw, 2.9rem); }
  .landing .hero h1 br.n { display: inline; }
  .landing .hero-top, .landing .hero .lede, .landing .hero-copy { grid-template-columns: 1fr; }
  .landing .stage { grid-template-columns: 1fr; grid-template-areas: none; min-height: 0; }
  .landing .stage .a-d1, .landing .stage .a-d2, .landing .stage .a-d3, .landing .stage .a-s1, .landing .stage .a-s2, .landing .stage .a-s1b, .landing .stage .a-note, .landing .stage .a-card, .landing .stage .a-receipt, .landing .stage .a-gone, .landing .stage .a-replay { grid-area: auto; }
  .landing .date { min-height: 0; display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s, opacity 0.4s; }
  .landing .date > span { min-height: 0; overflow: hidden; display: block; }
  .landing .date.show, html:not(.js) .landing .date { grid-template-rows: 1fr; }
  .landing .note { font-size: 1.5rem; }
  .landing .replay { margin-top: 0; }
  .landing .tray { margin-inline: -1.25rem; }
  .landing .steps { grid-template-columns: 1fr; }
  .landing .step:nth-child(n+5) .vig { padding-bottom: var(--grid-gap); }
  .landing .step:last-child .vig { padding-bottom: 0; }
  .landing .ghost { display: none; }
}

