/* Elkar · KU Season 01 sign-up.
   Paper, ink and the table. One idea per screen, said plainly.
   Colour is an event: ember for the commitment, marigold for "you" and "again"; table hues only identify tables.
   Type has three jobs: Fraunces speaks (headlines, moments), Hanken works (everything functional), small caps label (rarely).
   Motion marks what is real: the mark becomes the table, your seat lights when your email is a KU one, the weeks follow your scroll. */

/* ───────────── Fonts ───────────── */
@font-face { font-family: "Fraunces"; src: url("/fonts/Fraunces-Roman.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/Fraunces-Italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Elkar Heading"; src: url("/fonts/ElkarHeading.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken"; src: url("/fonts/Hanken-400Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken"; src: url("/fonts/Hanken-500Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Hanken"; src: url("/fonts/Hanken-600SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* ───────────── Tokens ───────────── */
:root {
  --paper: #F6F0E7; --surface: #FFFCF6; --sunk: #EDE5D8; --disc: #EFE7DA; --seat-open: #E4D9C8;
  --ink: #1F1A16; --ink2: #5C5249; --ink3: #70645A;
  --line: #E3D9CB; --line-strong: #8E8172;
  --ember: #C8481F; --ember-press: #B13E19; --ember-text: #A63A15;
  --marigold: #F0B23A; --marigold-soft: #F8E2B0; --marigold-ink: #7A5000;
  --moss-ok: #3F6233; --brick: #B42A1E; --brick-tint: #F6D5CF;
  --stage: #17130F; --stage-ink: #F3ECE2; --stage-ink2: #BFB4A7; --stage-ink3: #8F8377; --stage-gold: #F5C35C;
  --stage-hair: rgba(243, 236, 226, 0.14);
  --moss: #486A3C; --moss-t: #DCE6D2; --indigo: #3B5A8F; --indigo-t: #D9E1EF; --violet: #5A4B8C; --violet-t: #E3DEF0;
  --plum: #7B4A6C; --plum-t: #EBDAE4; --clay: #8F472C; --clay-t: #F2D6CC; --pine: #2D5C53; --pine-t: #D3E3DF;
  --olive: #4D5E1B; --olive-t: #E1E6C9; --slate: #4A5868; --slate-t: #DCE1E7;
  /* People: a mid-tone disc and a deep initial. The pale -t tints above are for backgrounds only. */
  --indigo-m: #A9C0EA; --indigo-d: #233F70; --moss-m: #A9C896; --moss-d: #2F4F26; --plum-m: #DDB0CF; --plum-d: #63345A;
  --clay-m: #EDAB8F; --clay-d: #74331B; --pine-m: #97CFC1; --pine-d: #1D4A42;

  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-heading: "Elkar Heading", "Fraunces", Georgia, serif;
  --f-ui: "Hanken", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: 20px;
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  --ease-emph: cubic-bezier(0.05, 0.7, 0.1, 1);
  --ease-in: cubic-bezier(0.3, 0, 1, 1);
  --ease-settle: cubic-bezier(0.34, 1.3, 0.64, 1);
  color-scheme: light;
}
@media (min-width: 720px) { :root { --gutter: 40px; } }

/* ───────────── Base ───────────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 var(--f-ui); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: clip;
}
body.is-locked { overflow: hidden; }
svg { display: block; }
a { color: inherit; }
p, h1, h2, h3, ol, ul, figure { margin: 0; }
h1, h2, h3 { font-weight: 400; }
ol, ul { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--marigold); color: var(--ink); }
:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: fixed; left: 12px; top: -64px; z-index: 200; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 999px; text-decoration: none; font-weight: 600; transition: top 0.2s var(--ease-out); }
.skip:focus { top: 12px; }

/* Paper grain: static and near-invisible. Off on small screens, where it only costs. */
.grain { display: none; }
@media (min-width: 720px) {
  .grain {
    display: block; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .1 0 0 0 0 .08 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }
}

/* ───────────── Type ───────────── */
/* Display speaks in the wordmark's voice: the same soft, full-bodied Fraunces (SOFT 100), a step lighter than the
   600 of "elkar" because at 100 px that weight closes up. Word spaces are opened a touch to pay for the tight tracking. */
.display {
  font-family: var(--f-display); font-weight: 500; font-variation-settings: "SOFT" 100;
  line-height: 0.98; letter-spacing: -0.04em; word-spacing: 0.05em; text-wrap: balance;
}
.display em { font-style: italic; font-weight: 460; color: var(--ember-text); letter-spacing: -0.028em; }
.h2 {
  font-family: var(--f-display); font-weight: 470; font-variation-settings: "SOFT" 100;
  font-size: clamp(2rem, 1.35rem + 2.7vw, 3.5rem); line-height: 1.03; letter-spacing: -0.028em; text-wrap: balance;
}
.lede { font-size: clamp(1.06rem, 1rem + 0.35vw, 1.22rem); line-height: 1.5; color: var(--ink2); max-width: 31em; text-wrap: pretty; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 12px/1.2 var(--f-ui); letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink3); }
.wordmark { font-family: var(--f-display); font-weight: 600; font-variation-settings: "SOFT" 100; font-size: 26px; letter-spacing: -0.045em; line-height: 1; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--stage-gold); flex: none; animation: pulse 2.4s var(--ease-out) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(245, 195, 92, 0.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(245, 195, 92, 0); } }

/* The headline rises one word at a time, in reading order. */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.08em 0.1em 0.2em; margin: -0.08em -0.1em -0.2em; }
.wi { display: inline-block; will-change: transform; }
.js [data-split] .wi { transform: translateY(108%); }
.js [data-split].is-in .wi { transform: none; transition: transform 900ms var(--ease-emph) var(--d, 0ms); }

/* ───────────── Buttons ───────────── */
.btn {
  --h: 56px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ember); color: #fff; font: 600 16.5px/1 var(--f-ui); letter-spacing: -0.005em; white-space: nowrap; text-decoration: none;
  transition: transform 160ms var(--ease-out), background-color 200ms var(--ease-out), color 200ms, box-shadow 240ms var(--ease-out);
  touch-action: manipulation; user-select: none; isolation: isolate; overflow: hidden;
}
.btn:hover { background: var(--ember-press); }
.btn:active { transform: scale(0.965); }
.btn__arrow { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; transition: transform 260ms var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn__meta { font-weight: 500; opacity: 0.75; }
.btn--gold { background: var(--stage-gold); color: #1F1A16; }
.btn--gold:hover { background: #F8D07C; }
.btn--quiet { background: transparent; color: var(--ink2); padding: 0 18px; }
.btn--quiet:hover { background: var(--sunk); color: var(--ink); }
.btn--small { --h: 40px; padding: 0 16px; font-size: 14.5px; }
.btn--wide { width: 100%; }
.btn[aria-busy="true"] { pointer-events: none; }
.btn[aria-busy="true"] .btn__label, .btn[aria-busy="true"] .btn__arrow { opacity: 0; }
.btn[aria-busy="true"]::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.4px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--sunk); display: grid; place-items: center; cursor: pointer; transition: background-color 160ms, transform 160ms var(--ease-out); }
.icon-btn:hover { background: var(--line); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }

/* ───────────── Bar ───────────── */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 20px;
  padding: 12px var(--gutter); padding-top: max(12px, env(safe-area-inset-top));
  transition: background-color 300ms var(--ease-out), box-shadow 300ms var(--ease-out), color 300ms var(--ease-out);
}
.bar.is-solid { background: rgba(246, 240, 231, 0.84); -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px); box-shadow: 0 1px 0 var(--line); }
.bar.is-night { background: rgba(23, 19, 15, 0.76); box-shadow: 0 1px 0 rgba(243, 236, 226, 0.08); color: var(--stage-ink); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.mark { width: 26px; height: 26px; }
.mark circle { fill: var(--ink); transition: fill 300ms; }
.mark .mark__table { opacity: 0.26; }
.mark .mark__you { fill: var(--marigold); }
.bar.is-night .mark circle { fill: var(--stage-ink); }
.bar.is-night .mark .mark__you { fill: var(--stage-gold); }
.pill {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px;
  background: var(--ember); color: #fff; text-decoration: none; font-weight: 600; font-size: 14.5px;
  transition: background-color 200ms, color 200ms, opacity 260ms var(--ease-out), transform 360ms var(--ease-emph);
}
.pill:hover { background: var(--ember-press); }
.bar.is-night .pill { background: var(--stage-gold); color: #1F1A16; }
@media (max-width: 719px) { .pill { min-height: 36px; padding: 0 15px; font-size: 14px; } .wordmark { font-size: 24px; } .mark { width: 24px; height: 24px; } }
.bar__end { margin-left: auto; display: grid; align-items: center; justify-items: end; }
.bar__end > * { grid-area: 1 / 1; }
.bar__meta { font-size: 13.5px; font-weight: 500; color: var(--ink3); letter-spacing: 0.01em; white-space: nowrap; transition: opacity 240ms var(--ease-out), color 300ms; }
.bar.is-night .bar__meta { color: var(--stage-ink3); }
.bar.has-cta .bar__meta { opacity: 0; pointer-events: none; } /* it shares the action's spot: faded out, it must not take the click */
.bar__long { display: none; }
@media (min-width: 720px) { .bar__long { display: inline; } .bar__short { display: none; } }
.js .pill { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.js .bar.has-cta .pill { opacity: 1; transform: none; pointer-events: auto; }

/* ───────────── Hero ─────────────
   You are already at the table. The words get the top of the page to themselves; the table rises from below like a
   horizon with the five others seated along its far rim; the form sits on the table in front of you, and your empty
   seat is part of it. Everything is in normal flow, so nothing can collide at any size: the seats are drawn into
   the gap (.hero__arch) that the script sizes for them. */
.hero { position: relative; overflow: clip; padding: 96px var(--gutter) 64px; }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.hero__content { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; max-width: 1180px; margin: 0 auto; }
.hero h1 { font-size: clamp(2.75rem, 12.8vw, 4.6rem); }
.hero__sub { margin-top: 18px; font-size: clamp(1.08rem, 0.97rem + 0.55vw, 1.4rem); line-height: 1.48; color: var(--ink2); max-width: 29em; text-wrap: balance; }
.hero__sub b { font-weight: 500; color: var(--ink); }
.hero__arch { width: 100%; margin-top: 30px; }
/* Until the script has sized the table, hold the screen, so the next section never shows for a frame. */
.js .hero:not(.is-laid) { min-height: 100svh; }
.hero .join { margin-top: 0; }
@media (min-width: 720px) {
  .hero h1 { font-size: clamp(4.2rem, min(7.8vw, 14svh), 9.4rem); white-space: nowrap; }
  .hero__sub { margin-top: 26px; }
  .hero__arch { margin-top: 44px; }
}
@media (min-width: 900px) {
  .hero { min-height: 100svh; display: grid; align-content: center; padding: 84px var(--gutter) clamp(56px, 9svh, 150px); }
}
/* Big screens: the form and the labels grow with the headline, so the place you type never looks like an afterthought. */
@media (min-width: 1500px) and (min-height: 860px) {
  .hero .join { max-width: 640px; gap: 14px; }
  .hero .join__field { padding: 7px; }
  .hero .join input { height: 62px; font-size: 19.5px; padding-left: 16px; }
  .hero .join .join__field .btn { --h: 62px; padding: 0 32px; font-size: 18.5px; }
  .hero .join__field .join__seat { width: 52px; height: 52px; }
  .hero .join__field .join__seat b { font-size: 25px; }
  .hero .join__field .join__seat i { font-size: 18.5px; }
  .hero .join__note { font-size: 15.5px; }
  .rseat__label { font-size: 16px; }
  .hero .join__next { --h: 62px; min-width: 320px; padding: 0 32px; font-size: 18.5px; }
  .hero .join__doneline { font-size: 1.9rem; }
  .hero .join__you { font-size: 16px; }
  .hero .join__donenote, .hero .join__link { font-size: 15.5px; }
}

.hero.is-member h1 { white-space: normal; }
.rseat, .rseat__body { transform-box: fill-box; transform-origin: center; }
.rseat__body { transition: transform 800ms var(--ease-settle); }
.rseat__disc { fill: var(--t); }
.rseat__i { font-family: var(--f-heading); font-weight: 400; fill: var(--b); text-anchor: middle; dominant-baseline: central; }
.rseat__label { font: 500 14px var(--f-ui); fill: var(--ink3); letter-spacing: 0.01em; }
.ring[data-size="s"] .rseat__label { font-size: 11.5px; letter-spacing: 0.015em; }
/* When you sit down, the other five turn towards you. */
.ring.is-you .rseat__body { transform: translate(calc(var(--lx) * 1px), calc(var(--ly) * 1px)); }

/* First paint: the table rises, then the five sit down, from the middle outwards. */
.js .ring__table { transform: translateY(46px); opacity: 0; }
.js .rseat { opacity: 0; transform: translateY(-30px) scale(1.14); }
.is-ready .ring__table { transform: none; opacity: 1; transition: transform 1300ms var(--ease-emph), opacity 700ms var(--ease-out); }
.is-ready .rseat { opacity: 1; transform: none; transition: transform 1000ms var(--ease-settle) var(--d, 0ms), opacity 300ms var(--ease-out) var(--d, 0ms); }
.js .hero__content > :not(h1) { opacity: 0; transform: translateY(10px); }
.is-ready .hero__content > :not(h1) { opacity: 1; transform: none; transition: opacity 600ms var(--ease-out) 160ms, transform 700ms var(--ease-emph) 160ms; }
.is-ready .hero__content > .join { transition-delay: 300ms; }

/* ───────────── Join (email) ─────────────
   The field is your place at the table: the disc on its left is your seat. It says "you", as the same seat does in the
   story further down, until a KU email turns it into your initial. (A plus sign there reads as "attach a file".) */
.join { width: 100%; max-width: 540px; min-width: 0; display: grid; gap: 12px; margin-top: 6px; }
.join__field {
  display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px;
  background: var(--surface); box-shadow: 0 0 0 1.5px rgba(243, 236, 226, 0.14), 0 26px 60px -22px rgba(0, 0, 0, 0.7);
  transition: box-shadow 260ms var(--ease-out), transform 260ms var(--ease-out);
}
.join__field:focus-within { box-shadow: 0 0 0 3px var(--marigold), 0 26px 60px -22px rgba(0, 0, 0, 0.7); }
.join.is-good .join__field { box-shadow: 0 0 0 3px #9DC08B, 0 26px 60px -22px rgba(0, 0, 0, 0.7); }
.join.is-warn .join__field { box-shadow: 0 0 0 3px #FF8A7A, 0 26px 60px -22px rgba(0, 0, 0, 0.7); }
.join.is-shake .join__field { animation: shake 420ms var(--ease-out); }
@keyframes shake { 20% { transform: translateX(-7px); } 45% { transform: translateX(6px); } 70% { transform: translateX(-3px); } }
.join__seat {
  position: relative; flex: none; width: 44px; height: 44px; margin-left: 4px; border-radius: 50%; display: grid; place-items: center;
  background: var(--marigold-soft); transition: background-color 420ms var(--ease-out), transform 520ms var(--ease-settle);
}
.join__seat i { grid-area: 1 / 1; font: italic 460 16px/1 var(--f-display); font-variation-settings: "SOFT" 100; letter-spacing: -0.015em; color: var(--marigold-ink); transform: translateY(-1px); transition: opacity 180ms var(--ease-out), transform 420ms var(--ease-out); }
.join__seat b { grid-area: 1 / 1; font: 400 21px/1 var(--f-heading); color: #1F1A16; opacity: 0; transform: scale(0.6); transition: opacity 260ms var(--ease-out) 100ms, transform 520ms var(--ease-settle) 100ms; }
.join__field:focus-within .join__seat { transform: scale(1.06); }
.join.is-lit .join__seat { background: var(--marigold); }
.join.is-lit .join__seat i { opacity: 0; transform: translateY(-1px) scale(0.7); }
.join.is-lit .join__seat b { opacity: 1; transform: none; }
.join input { flex: 1; min-width: 0; height: 52px; padding: 0 8px 0 12px; border: 0; background: transparent; outline: none; font-size: 17px; color: var(--ink); }
.join input::placeholder { color: var(--ink3); opacity: 0.75; }
.join .join__field .btn { --h: 52px; flex: none; }
.join__note { font-size: 14px; line-height: 1.45; color: var(--stage-ink3); min-height: 1.45em; transition: color 200ms; text-wrap: balance; }
.join__note strong { color: var(--stage-ink); font-weight: 600; }
.join.is-good .join__note { color: #9DC08B; }
.join.is-warn .join__note { color: #FF8A7A; }
@media (max-width: 560px) {
  .join__field { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 4px; border-radius: 32px; }
  .join input { height: 50px; }
  .join .join__field .btn { grid-column: 1 / -1; width: 100%; --h: 54px; }
}
/* Someone who already has a seat sees their place at the table, not the form again: their seat, and one thing to do next. */
.join__done { display: grid; justify-items: center; }
.join.is-joined .join__field, .join.is-joined .join__note { display: none; }
.join__you { margin-bottom: 10px; font: 500 14px/1 var(--f-ui); letter-spacing: 0.01em; color: var(--stage-ink3); }
.final .join__you { display: none; }
.join__seat--big { width: 64px; height: 64px; margin: 0; }
.join__seat--big b { font-size: 30px; }
/* You are on the near side of the table, so your seat is drawn a little larger than the five across from you. */
.hero .join__seat--big { width: calc(var(--sr, 32) * 2.3px); height: calc(var(--sr, 32) * 2.3px); }
.hero .join__seat--big b { font-size: calc(var(--sr, 32) * 0.86px); }
/* Your seat arrives after the five have sat: the disc grows into place, the initial comes up into it, and the rest
   follows in reading order. Nothing radiates, pulses or repeats. */
.is-ready .join.is-joined .join__seat--big { animation: seat-in 720ms var(--ease-emph) 560ms both; }
.is-ready .join.is-joined .join__seat--big b { animation: initial-in 520ms var(--ease-emph) 860ms both; }
.is-ready .join.is-joined .join__done > :not(.join__seat) { animation: follow 620ms var(--ease-emph) var(--after, 0ms) both; }
.join__you { --after: 760ms; }
.join__doneline { --after: 900ms; }
.join__next { --after: 990ms; }
.join__donenote { --after: 1080ms; }
.join__links { --after: 1150ms; }
@keyframes seat-in { from { opacity: 0; transform: scale(0.72); } 35% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes initial-in { from { opacity: 0; transform: translateY(30%); } to { opacity: 1; transform: none; } }
@keyframes follow { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.join__doneline { margin-top: 16px; font-family: var(--f-display); font-style: italic; font-weight: 340; font-variation-settings: "SOFT" 80; font-size: clamp(1.32rem, 1.16rem + 0.62vw, 1.7rem); line-height: 1.2; letter-spacing: -0.014em; color: var(--stage-ink); font-variant-numeric: lining-nums tabular-nums; }
.join__doneline:empty { display: none; }
.join__next { margin-top: 22px; min-width: 268px; }
.join__donenote { margin-top: 14px; max-width: 30em; font-size: 14.5px; line-height: 1.45; color: var(--stage-ink2); text-wrap: balance; }
.join__donenote:empty { display: none; }
.join__links { margin-top: 4px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; }
.join__links i { width: 3px; height: 3px; border-radius: 50%; background: var(--stage-ink3); }
.join__link { border: 0; background: none; padding: 9px 10px; font: 500 14.5px/1.2 var(--f-ui); color: var(--stage-ink2); cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: rgba(243, 236, 226, 0.3); text-underline-offset: 4px; transition: color 160ms var(--ease-out); }
.join__link:hover { color: var(--stage-ink); }
@media (max-width: 480px) { .join__next { width: 100%; } }

/* "Finish it": completes a half-typed KU address in one tap */
.suggest { border: 0; background: none; padding: 4px 2px; font: inherit; color: var(--stage-ink2); cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.suggest strong { color: var(--stage-ink); font-weight: 600; }

/* ───────────── Night: why, then how ───────────── */
.night { position: relative; background: var(--stage); color: var(--stage-ink); }
.night :focus-visible, .final :focus-visible, .hero .join :focus-visible { outline-color: var(--stage-ink); }
.statement {
  padding: clamp(92px, 17vh, 210px) 0 clamp(56px, 10vh, 130px); max-width: 19em;
  font-family: var(--f-display); font-weight: 350; font-variation-settings: "SOFT" 80;
  font-size: clamp(1.72rem, 1.02rem + 3vw, 3.3rem); line-height: 1.15; letter-spacing: -0.024em;
}
.statement p { text-wrap: balance; }
.statement p + p { margin-top: 0.62em; }
.statement__turn { color: var(--stage-gold); font-style: italic; }
.js .statement .ink { opacity: 0.2; transition: opacity 160ms linear; } /* the short fade evens out a mouse wheel's steps */

.story { position: relative; height: 430vh; }
.story__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.story__inner { width: 100%; max-width: 1180px; height: 100%; margin: 0 auto; padding: 72px var(--gutter) 26px; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 10px; }
.story__art { order: -1; position: relative; min-height: 0; display: grid; place-items: center; }
.story__svg { width: 100%; height: 100%; max-width: 50svh; max-height: 50svh; overflow: visible; }
.story__copy { display: grid; gap: 14px; }
.story__title { font: 600 12px/1.2 var(--f-ui); letter-spacing: 0.15em; text-transform: uppercase; color: var(--stage-ink3); }
.weeks { position: relative; min-height: 11.4em; }
.week { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(14px); transition: opacity 420ms var(--ease-out), transform 520ms var(--ease-emph); pointer-events: none; }
.week.is-on { opacity: 1; transform: none; }
.week__n { display: block; margin-bottom: 8px; font: 600 13px/1.2 var(--f-ui); letter-spacing: 0.04em; color: var(--stage-gold); font-variant-numeric: tabular-nums; }
.week h3 { font-family: var(--f-display); font-weight: 450; font-variation-settings: "SOFT" 100; font-size: clamp(1.75rem, 1.3rem + 2.2vw, 2.3rem); line-height: 1.06; letter-spacing: -0.026em; text-wrap: balance; }
.week__body p { margin-top: 10px; color: var(--stage-ink2); font-size: 1.02rem; line-height: 1.55; max-width: 30em; text-wrap: pretty; }
.story__rail { display: flex; gap: 6px; }
.story__rail i { flex: 1; max-width: 72px; height: 3px; border-radius: 3px; background: var(--stage-hair); overflow: hidden; position: relative; }
.story__rail i::after { content: ""; position: absolute; inset: 0; background: var(--stage-ink); transform-origin: left; transform: scaleX(var(--p, 0)); }
.story__rail i:last-child::after { background: var(--stage-gold); }
.story__table { fill: rgba(243, 236, 226, 0.055); }
.sdot circle { fill: var(--b); }
.sdot text { font: 400 22px var(--f-heading); fill: var(--stage); text-anchor: middle; dominant-baseline: central; }
.sdot .sdot__label { font: 500 15px var(--f-ui); fill: var(--stage-ink2); dominant-baseline: auto; }
.sdot--you circle { fill: var(--stage-gold); }
.sdot--you text:not(.sdot__label) { font: italic 400 19px var(--f-display); fill: #1F1A16; }
.sline { stroke: var(--stage-ink2); stroke-width: 1.5; stroke-linecap: round; }
.sline--gold { stroke: var(--stage-gold); stroke-width: 3.2; }
@media (min-width: 900px) {
  .story__inner { grid-template-columns: 0.94fr 1.06fr; grid-template-rows: none; align-items: center; gap: 64px; padding: 84px var(--gutter) 36px; }
  .story__art { order: 0; height: 100%; }
  .story__svg { max-width: 74svh; max-height: 74svh; }
  .story__copy { gap: 0; }
  .story__title { margin-bottom: clamp(20px, 4svh, 40px); font-family: var(--f-display); font-weight: 470; font-variation-settings: "SOFT" 100; font-size: clamp(2rem, 1.35rem + 2.7vw, 3.5rem); line-height: 1.03; letter-spacing: -0.028em; text-transform: none; color: var(--stage-ink); text-wrap: balance; }
  .weeks { min-height: 0; border-top: 1px solid var(--stage-hair); }
  .week { position: relative; inset: auto; display: grid; grid-template-columns: 86px 1fr; align-items: baseline; padding: clamp(11px, 1.9svh, 17px) 0 clamp(12px, 2svh, 18px); border-bottom: 1px solid var(--stage-hair); opacity: 0.36; transform: none; pointer-events: auto; transition: opacity 420ms var(--ease-out); }
  .week.is-on { opacity: 1; }
  .week__n { margin: 0; color: var(--stage-ink3); transition: color 300ms; }
  .week.is-on .week__n { color: var(--stage-gold); }
  .week h3 { font-size: clamp(1.45rem, 1rem + 1.3vw, 2rem); }
  .week__body { grid-column: 2; display: grid; grid-template-rows: 0fr; transition: grid-template-rows 520ms var(--ease-emph); }
  .week.is-on .week__body { grid-template-rows: 1fr; }
  .week__body p { min-height: 0; overflow: hidden; margin-top: 0; }
  .week__body p::before { content: ""; display: block; height: 8px; }
  .week::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--stage-ink); transform-origin: left; transform: scaleX(var(--p, 0)); }
  .week--again::after { background: var(--stage-gold); }
  .story__rail { display: none; }
}

/* ───────────── Sections (light) ───────────── */
.head { display: grid; gap: 16px; margin-bottom: 40px; max-width: 880px; }
@media (min-width: 900px) { .head { margin-bottom: 60px; } }
.tables, .rules, .faq { padding: 88px 0; position: relative; }
@media (min-width: 900px) { .tables, .rules, .faq { padding: 136px 0; } }

/* Tables: an index you can pick from. Picks travel into the questions after sign-up. */
.index { border-top: 1px solid var(--ink); }
.row {
  --t: var(--sunk); --b: var(--ink);
  appearance: none; width: 100%; margin: 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
  position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 40px; gap: 5px 14px; padding: 20px 0 22px;
  touch-action: manipulation;
}
.row::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -0.5); z-index: -1; border-radius: 6px; background: var(--t); opacity: 0; transition: opacity 260ms var(--ease-out); }
.row[aria-pressed="true"]::before { opacity: 1; }
.row__n { display: none; font: 400 15px var(--f-display); font-variant-numeric: lining-nums tabular-nums; color: var(--ink3); }
.row__title { grid-column: 1; font-family: var(--f-display); font-weight: 450; font-variation-settings: "SOFT" 100; font-size: clamp(1.7rem, 1.3rem + 1.9vw, 2.7rem); line-height: 1.04; letter-spacing: -0.028em; }
.row__line { grid-column: 1 / -1; color: var(--ink2); font-size: 16px; line-height: 1.5; max-width: 33em; text-wrap: pretty; }
.row__when { grid-column: 1 / -1; margin-top: 3px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--b); }
.row__pick { grid-column: 2; grid-row: 1; align-self: center; justify-self: end; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-strong); display: grid; place-items: center; transition: background-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out), opacity 220ms, transform 320ms var(--ease-settle); }
.row__pick svg { width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(0.5); transition: opacity 180ms, transform 320ms var(--ease-settle); }
.row[aria-pressed="true"] .row__pick { background: var(--b); box-shadow: inset 0 0 0 1.5px var(--b); }
.row[aria-pressed="true"] .row__pick svg { opacity: 1; transform: none; }
.row:active .row__pick { transform: scale(0.9); }
.index.is-full .row[aria-pressed="false"] .row__pick { opacity: 0.3; }
@media (hover: hover) {
  .row:hover::before { opacity: 0.55; }
  .row[aria-pressed="true"]:hover::before { opacity: 1; }
  .row:hover .row__pick { box-shadow: inset 0 0 0 1.5px var(--b); }
}
@media (min-width: 900px) {
  .row { grid-template-columns: 48px minmax(0, 1.05fr) minmax(0, 1fr) 176px 40px; align-items: center; gap: 24px; padding: 24px 0 26px; }
  .row__n { display: block; }
  .row__title, .row__line, .row__when, .row__pick { grid-column: auto; grid-row: auto; }
  .row__when { margin-top: 0; text-align: right; }
}
.index__foot { margin-top: 26px; min-height: 52px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; color: var(--ink2); font-size: 16.5px; line-height: 1.5; }
.index__foot p { max-width: 34em; }
.index__foot b { color: var(--ink); font-weight: 600; }
.index__foot .btn { --h: 48px; padding: 0 22px; font-size: 15.5px; }

/* House rules */
.rules { background: var(--surface); border-block: 1px solid var(--line); }
.rules__list { display: grid; counter-reset: rule; }
.rule { padding: 24px 0 30px; border-top: 1px solid var(--line); counter-increment: rule; }
.rule::before { content: counter(rule, decimal-leading-zero); display: block; margin-bottom: 14px; font: 500 13px/1 var(--f-ui); letter-spacing: 0.08em; font-variant-numeric: tabular-nums; color: var(--ink3); }
.rule h3 { font-family: var(--f-display); font-weight: 450; font-variation-settings: "SOFT" 100; font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem); line-height: 1.1; letter-spacing: -0.024em; }
.rule p { margin-top: 9px; color: var(--ink2); font-size: 16px; line-height: 1.55; max-width: 27em; text-wrap: pretty; }
@media (min-width: 760px) { .rules__list { grid-template-columns: repeat(2, 1fr); column-gap: 56px; } .rule { padding: 26px 0 40px; } }
@media (min-width: 1100px) { .rules__list { grid-template-columns: repeat(3, 1fr); } }

/* ───────────── Questions ───────────── */
.faq__grid { display: grid; gap: 8px; }
@media (min-width: 960px) { .faq__grid { grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; } .head--side { position: sticky; top: 120px; } }
.qs { border-top: 1px solid var(--ink); }
.q { border-bottom: 1px solid var(--line); }
.q summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-family: var(--f-display); font-weight: 400; font-variation-settings: "SOFT" 100;
  font-size: clamp(1.28rem, 1.14rem + 0.6vw, 1.55rem); line-height: 1.2; letter-spacing: -0.02em; transition: color 200ms;
}
.q summary::-webkit-details-marker { display: none; }
.q summary::after {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-strong);
  background-image: linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink));
  background-size: 12px 1.8px, 1.8px 12px; background-position: center; background-repeat: no-repeat;
  transition: transform 360ms var(--ease-emph), background-color 200ms, box-shadow 200ms;
}
.q[open] summary::after { transform: rotate(135deg); background-color: var(--marigold); box-shadow: inset 0 0 0 1.5px var(--marigold); }
.q summary:hover { color: var(--ember-text); }
.q__a p { padding: 0 52px 26px 0; color: var(--ink2); font-size: 16.5px; line-height: 1.6; max-width: 38em; text-wrap: pretty; }
.q__a a { text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.q[open] .q__a { animation: drop 420ms var(--ease-emph); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ───────────── Final (night) ───────────── */
.final { background: var(--stage); color: var(--stage-ink); padding: 104px 0 112px; position: relative; overflow: hidden; }
@media (min-width: 900px) { .final { padding: 168px 0 176px; } }
.final__inner { display: grid; justify-items: center; text-align: center; gap: 26px; }
.final__mark { width: 60px; height: 60px; margin-bottom: 6px; }
.final__mark circle { fill: var(--stage-ink); transition: fill 420ms var(--ease-out); }
.final__mark .mark__table { opacity: 0.14; }
.final__mark .mark__you { fill: rgba(243, 236, 226, 0.2); }
.final__mark.is-lit .mark__you { fill: var(--stage-gold); }
.display--final { font-size: clamp(2.7rem, 1.5rem + 5vw, 5.6rem); }
.final__sub { max-width: 29em; color: var(--stage-ink2); font-size: clamp(1.06rem, 1rem + 0.35vw, 1.22rem); line-height: 1.5; text-wrap: balance; }
.final .join { margin-top: 10px; }

/* Live board */
.board { width: 100%; max-width: 560px; margin-top: 56px; padding-top: 30px; border-top: 1px solid var(--stage-hair); text-align: left; }
.board__title { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; font-family: var(--f-display); font-variation-settings: "SOFT" 100; font-size: 1.5rem; letter-spacing: -0.02em; }
.board__list { display: grid; gap: 12px; }
.board__row { display: grid; grid-template-columns: minmax(0, 150px) 1fr 40px; align-items: center; gap: 14px; font-weight: 500; font-size: 15.5px; }
.board__bar { height: 10px; border-radius: 999px; background: rgba(243, 236, 226, 0.1); overflow: hidden; }
.board__bar span { display: block; height: 100%; border-radius: inherit; background: var(--stage-ink2); transform-origin: left; transform: scaleX(0); transition: transform 1400ms var(--ease-emph) var(--d, 0ms); }
.board.is-visible .board__bar span { transform: scaleX(var(--v, 0)); }
.board__row:first-child .board__bar span { background: var(--stage-gold); }
.board__n { text-align: right; font-variant-numeric: tabular-nums; color: var(--stage-ink2); }
.board__total { margin-top: 22px; color: var(--stage-ink3); font-size: 14.5px; }

/* ───────────── Footer: the name, as a dictionary would have it ───────────── */
.foot { padding: 72px 0 36px; overflow: hidden; }
@media (min-width: 900px) { .foot { padding: 112px 0 40px; } }
.entry { display: grid; gap: 18px; }
.entry__word { font-family: var(--f-display); font-weight: 540; font-variation-settings: "SOFT" 100; font-size: clamp(6rem, 30vw, 19rem); line-height: 0.78; letter-spacing: -0.058em; margin-left: -0.045em; padding-bottom: 0.06em; }
.entry__meta { font-size: 15px; color: var(--ink3); letter-spacing: 0.01em; }
.entry__meta i { font-family: var(--f-display); font-variation-settings: "SOFT" 100; font-size: 16.5px; margin-left: 8px; }
/* On a phone the word is set as wide as the column, like a masthead: its width is 1.8 times its size. */
@media (max-width: 899px) { .entry__word { font-size: clamp(6rem, calc((100vw - 2 * var(--gutter)) / 1.8), 16rem); margin-left: -0.022em; } }
.entry__use { margin-top: 14px; font-size: 15px; color: var(--ink3); letter-spacing: 0.01em; }
.entry__use i { font-family: var(--f-display); font-variation-settings: "SOFT" 100; font-size: 16.5px; margin-right: 8px; color: var(--ink2); }
.entry__def { margin-top: 4px; font-family: var(--f-display); font-style: italic; font-weight: 340; font-variation-settings: "SOFT" 100; font-size: clamp(2rem, 1.3rem + 2.8vw, 3.4rem); line-height: 1.02; letter-spacing: -0.026em; }
@media (min-width: 900px) { .entry { grid-template-columns: auto 1fr; align-items: end; gap: 56px; } .entry__gloss { padding-bottom: 1.1rem; } }
.foot__meta { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 28px; font-size: 13.5px; color: var(--ink3); }
.foot__meta a { text-decoration-color: var(--line-strong); text-underline-offset: 4px; }

/* ───────────── Reveal ───────────── */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease-out) var(--d, 0ms), transform 800ms var(--ease-emph) var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .rule.reveal:nth-child(3n + 2) { --d: 60ms; }
.js .rule.reveal:nth-child(3n + 3) { --d: 120ms; }

/* ───────────── The sheet: your seat ───────────── */
.sheet {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0;
  background: var(--paper); color: var(--ink); overflow: hidden;
}
.sheet[open] { display: flex; flex-direction: column; animation: sheet-in 520ms var(--ease-emph); }
.sheet.is-closing { animation: sheet-out 240ms var(--ease-in) forwards; }
.sheet::backdrop { background: rgba(23, 19, 15, 0.46); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade 400ms var(--ease-out); }
@keyframes sheet-in { from { transform: translateY(36px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sheet-out { to { transform: translateY(26px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@media (min-width: 720px) {
  .sheet { width: min(580px, calc(100% - 48px)); height: min(770px, calc(100% - 48px)); max-height: none; margin: auto; border-radius: 32px; box-shadow: 0 40px 120px -30px rgba(23, 19, 15, 0.55); }
}
.sheet__top { display: flex; align-items: center; gap: 14px; padding: 16px 18px 8px 22px; padding-top: max(16px, env(safe-area-inset-top)); }
.sheet__top .icon-btn:first-child { margin-right: -4px; }
.sheet__mark { width: 30px; height: 30px; }
.sheet__mark circle { fill: var(--ink); opacity: 0.16; transition: fill 400ms var(--ease-out), opacity 400ms; }
.sheet__mark .mark__table { opacity: 0.12; }
.sheet__mark circle.is-done { fill: var(--marigold); opacity: 1; }
.sheet__mark circle.is-now { fill: var(--ink); opacity: 1; }
.sheet__step { flex: 1; font-size: 13.5px; font-weight: 600; color: var(--ink3); letter-spacing: 0.02em; }
.sheet__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 10px 26px 0; display: flex; flex-direction: column; }
@media (min-width: 720px) { .sheet__body { padding: 14px 44px 0; } }

/* Every question is the same shape: the answer scrolls, Skip and Next stay put at the bottom, under the thumb. */
.pane { display: none; }
.pane.is-on { display: flex; flex-direction: column; gap: 18px; flex: 1 0 auto; animation: pane-in 480ms var(--ease-emph); }
.pane > * { flex: none; }
.pane.is-back { animation-name: pane-back; }
@keyframes pane-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes pane-back { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
.pane[data-pane="seated"], .pane[data-pane="share"] { align-items: center; justify-content: center; text-align: center; padding-bottom: max(34px, env(safe-area-inset-bottom)); }
.pane__lede { color: var(--ink2); font-size: 17px; line-height: 1.55; max-width: 26em; text-wrap: balance; }
.pane__actions { display: grid; gap: 8px; width: 100%; margin-top: 10px; }
.pane__fine { color: var(--ink3); font-size: 13.5px; }
.pane__nav { position: sticky; bottom: 0; z-index: 2; margin-top: auto; display: flex; justify-content: space-between; gap: 10px; padding: 18px 0 max(24px, env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--paper) 80%, rgba(246, 240, 231, 0)); }
.pane__nav .btn:last-child { min-width: 140px; }
.display--sheet { font-size: clamp(2.6rem, 2rem + 3vw, 3.6rem); line-height: 1; }
.sheet__error { width: 100%; padding: 12px 16px; border-radius: 14px; background: var(--brick-tint); color: var(--brick); font-weight: 500; font-size: 15px; }

.seated { width: 250px; height: 250px; overflow: visible; margin: 0 0 10px; }
.seated__table { fill: var(--disc); transform-box: fill-box; transform-origin: center; }
.seated__others g, .seated__you { transform-box: fill-box; transform-origin: center; }
.seated__others circle { fill: var(--t); }
.seated__others text { font: 400 20px var(--f-heading); fill: var(--b); text-anchor: middle; dominant-baseline: central; }
.seated__disc { fill: var(--ink); } /* your seat, as on the hero's table: the one dark disc, with a marigold initial */
.seated__you text { font: 400 21px var(--f-heading); fill: var(--marigold); text-anchor: middle; dominant-baseline: central; }
/* The table opens, the five sit down in turn, then you. Your seat lands last and rings once. */
.pane[data-pane="seated"].is-on .seated__table { animation: grow 800ms var(--ease-emph) both; }
.pane[data-pane="seated"].is-on .seated__others g { animation: settle 760ms var(--ease-settle) both; }
.pane[data-pane="seated"].is-on .seated__others g:nth-child(1) { animation-delay: 120ms; }
.pane[data-pane="seated"].is-on .seated__others g:nth-child(2) { animation-delay: 200ms; }
.pane[data-pane="seated"].is-on .seated__others g:nth-child(3) { animation-delay: 280ms; }
.pane[data-pane="seated"].is-on .seated__others g:nth-child(4) { animation-delay: 360ms; }
.pane[data-pane="seated"].is-on .seated__others g:nth-child(5) { animation-delay: 440ms; }
.pane[data-pane="seated"].is-on .seated__you { animation: drop-seat 900ms var(--ease-settle) 640ms both; }
@keyframes grow { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes settle { from { transform: translateY(-14px) scale(1.25); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes drop-seat { from { transform: translateY(-110px) scale(1.4); opacity: 0; } 55% { opacity: 1; } to { transform: none; opacity: 1; } }
.seatno { font-family: var(--f-display); font-style: italic; font-weight: 330; font-variation-settings: "SOFT" 80; font-size: 21px; color: var(--ink2); }
.seatno__n { font-style: normal; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums lining-nums; }

.me-seat { position: relative; width: 64px; height: 64px; margin: 6px 0 -2px; border-radius: 50%; display: grid; place-items: center; background: var(--marigold-soft); transition: background-color 420ms var(--ease-out); }
.me-seat::before { content: "you"; position: absolute; inset: 0; display: grid; place-items: center; padding-bottom: 2px; font: italic 460 22px/1 var(--f-display); font-variation-settings: "SOFT" 100; letter-spacing: -0.015em; color: var(--marigold-ink); transition: opacity 200ms; }
.me-seat b { font: 400 30px/1 var(--f-heading); color: #1F1A16; opacity: 0; transform: scale(0.6); transition: opacity 240ms var(--ease-out), transform 480ms var(--ease-settle); }
.me-seat.is-lit { background: var(--marigold); }
.me-seat.is-lit::before { opacity: 0; }
.me-seat.is-lit b { opacity: 1; transform: none; }
.me-seat.is-pop b { animation: pop 380ms var(--ease-settle); }
@keyframes pop { from { transform: scale(0.72); } to { transform: none; } }
.line-input { width: 100%; border: 0; border-bottom: 1.5px solid var(--line-strong); border-radius: 0; background: transparent; outline: none; padding: 8px 0 9px; font-size: 17px; color: var(--ink); transition: border-color 200ms; }
.line-input:focus { border-bottom-color: var(--ember); }
.line-input::placeholder { color: var(--ink3); opacity: 0.7; }
.q-title { font-family: var(--f-display); font-weight: 460; font-variation-settings: "SOFT" 100; font-size: clamp(2rem, 1.6rem + 1.8vw, 2.7rem); line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
.q-title label { cursor: text; }
.q-hint { display: inline-block; vertical-align: middle; font: 500 14px var(--f-ui); letter-spacing: 0; color: var(--ink3); margin-left: 6px; }
.q-hint.is-full { color: var(--ember-text); }
.q-why { color: var(--ink3); font-size: 14.5px; margin-top: -6px; }
.big-input {
  width: 100%; border: 0; border-bottom: 2px solid var(--line-strong); background: transparent; outline: none; border-radius: 0;
  padding: 10px 0 12px; font-family: var(--f-display); font-weight: 380; font-variation-settings: "SOFT" 100; font-size: clamp(1.8rem, 1.5rem + 1.4vw, 2.3rem); letter-spacing: -0.02em; color: var(--ink);
  transition: border-color 200ms;
}
.big-input:focus { border-bottom-color: var(--ember); }
.big-input::placeholder { color: var(--ink3); opacity: 0.55; }
.big-input--area { font-family: var(--f-ui); font-size: 18px; line-height: 1.5; letter-spacing: 0; resize: none; border: 1.5px solid var(--line); border-radius: 18px; padding: 16px 18px; background: var(--surface); min-height: 140px; }
.big-input--area:focus { border-color: var(--ink); }
.sub-q { display: grid; gap: 10px; margin-top: 6px; }
.sub-q.is-shown { animation: drop 420ms var(--ease-emph); }
.sub-q__label { font-weight: 600; font-size: 14.5px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip > span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); font-size: 16px; font-weight: 500; line-height: 1.2;
  transition: background-color 180ms var(--ease-out), border-color 180ms, color 180ms, transform 160ms var(--ease-out);
}
.chips--small .chip > span { min-height: 44px; padding: 0 15px; font-size: 15px; }
.chip:hover > span { border-color: var(--line-strong); }
.chip:active > span { transform: scale(0.95); }
.chip input:focus-visible + span { outline: 2.5px solid var(--ink); outline-offset: 2px; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip .tick { width: 0; overflow: hidden; display: inline-grid; margin-left: -8px; transition: width 260ms var(--ease-settle), margin 260ms var(--ease-settle); }
.chip .tick svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.chip input:checked + span .tick { width: 16px; margin-left: 0; }

.picks { border-top: 1px solid var(--ink); }
.pick { position: relative; display: block; cursor: pointer; }
.pick input { position: absolute; inset: 0; z-index: 1; opacity: 0; margin: 0; cursor: pointer; }
.pick__row { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr auto 28px; align-items: center; gap: 4px 14px; padding: 10px 0 11px; border-bottom: 1px solid var(--line); transition: opacity 200ms; }
.pick__row::before { content: ""; position: absolute; inset: 0 -12px; z-index: -1; border-radius: 6px; background: var(--t); opacity: 0; transition: opacity 240ms var(--ease-out); }
.pick b { font-family: var(--f-display); font-weight: 380; font-variation-settings: "SOFT" 80; font-size: 21px; line-height: 1.15; letter-spacing: -0.02em; }
.pick small { font-size: 11.5px; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; color: var(--b); white-space: nowrap; }
.pick__dot { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-strong); display: grid; place-items: center; transition: background-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out), transform 300ms var(--ease-settle); }
.pick__dot svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(0.5); transition: opacity 180ms, transform 320ms var(--ease-settle); }
.pick:hover .pick__dot { box-shadow: inset 0 0 0 1.5px var(--b); }
.pick:active .pick__dot { transform: scale(0.88); }
.pick input:checked + .pick__row::before { opacity: 1; }
.pick input:checked + .pick__row .pick__dot { background: var(--b); box-shadow: inset 0 0 0 1.5px var(--b); }
.pick input:checked + .pick__row .pick__dot svg { opacity: 1; transform: none; }
.pick input:focus-visible + .pick__row { outline: 2.5px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.pick input:disabled { cursor: default; }
.pick input:disabled + .pick__row { opacity: 0.36; }
@media (max-width: 460px) {
  .pick__row { grid-template-columns: 1fr 28px; padding: 10px 0 11px; }
  .pick small { grid-row: 2; }
  .pick__dot { grid-column: 2; grid-row: 1 / span 2; }
}

.prompts { display: flex; flex-wrap: wrap; gap: 8px; }
.prompt { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; min-height: 40px; padding: 0 14px; font-size: 14.5px; font-weight: 500; color: var(--ink2); cursor: pointer; transition: background-color 160ms, color 160ms, border-color 160ms; }
.prompt:hover { background: var(--marigold-soft); border-color: var(--marigold); color: var(--ink); }

.linkbox { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1.5px var(--line); margin-top: 6px; }
.linkbox__url { flex: 1; min-width: 0; text-align: left; font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink2); }
/* However many apps are offered on this device, they share the row evenly: no empty slot. */
.share { width: 100%; display: flex; flex-wrap: wrap; gap: 8px; }
.share__btn { flex: 1 1 0; display: grid; place-items: center; min-height: 52px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 600; font-size: 15px; cursor: pointer; transition: background-color 160ms, border-color 160ms, transform 160ms var(--ease-out); }
.share__btn:hover { border-color: var(--ink); }
.share__btn:active { transform: scale(0.96); }
.share__btn--main { flex-basis: 100%; background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ───────────── Reduced motion: final frames, short fades ───────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 160ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 160ms !important; transition-delay: 0ms !important; }
  .js [data-split] .wi, .js .rseat, .js .ring__table, .js .reveal, .js .hero__content > :not(h1), .js .pill { transform: none !important; }
  .ring.is-you .rseat__body { transform: none; }
  .js .statement .ink { opacity: 1 !important; }
  .pulse { animation: none; }
}

/* ───────────── Hues (identity colours for tables; never event colours) ───────────── */
[data-hue="moss"] { --t: var(--moss-t); --b: var(--moss); }
[data-hue="indigo"] { --t: var(--indigo-t); --b: var(--indigo); }
[data-hue="violet"] { --t: var(--violet-t); --b: var(--violet); }
[data-hue="plum"] { --t: var(--plum-t); --b: var(--plum); }
[data-hue="clay"] { --t: var(--clay-t); --b: var(--clay); }
[data-hue="pine"] { --t: var(--pine-t); --b: var(--pine); }
[data-hue="olive"] { --t: var(--olive-t); --b: var(--olive); }
[data-hue="slate"] { --t: var(--slate-t); --b: var(--slate); }
/* A person, as opposed to a table: mid-tone disc, deep initial. */
.rseat[data-hue="indigo"], .seated__others [data-hue="indigo"] { --t: var(--indigo-m); --b: var(--indigo-d); }
.rseat[data-hue="moss"], .seated__others [data-hue="moss"] { --t: var(--moss-m); --b: var(--moss-d); }
.rseat[data-hue="plum"], .seated__others [data-hue="plum"] { --t: var(--plum-m); --b: var(--plum-d); }
.rseat[data-hue="clay"], .seated__others [data-hue="clay"] { --t: var(--clay-m); --b: var(--clay-d); }
.rseat[data-hue="pine"], .seated__others [data-hue="pine"] { --t: var(--pine-m); --b: var(--pine-d); }


/* The hero's form sits on a light ground (the closing form keeps the night styling). */
.hero .join__field { box-shadow: 0 0 0 1.5px rgba(31, 26, 22, 0.07), 0 22px 48px -24px rgba(31, 26, 22, 0.42); }
.hero .join__field:focus-within { box-shadow: 0 0 0 2px var(--ink), 0 24px 52px -24px rgba(31, 26, 22, 0.46); }
.hero .join.is-good .join__field { box-shadow: 0 0 0 2px var(--moss-ok), 0 24px 52px -24px rgba(31, 26, 22, 0.46); }
.hero .join.is-warn .join__field { box-shadow: 0 0 0 2px var(--brick), 0 24px 52px -24px rgba(31, 26, 22, 0.46); }
.hero .join__note { color: var(--note, var(--ink3)); }
.hero .join__note strong { color: var(--ink); }
.hero .join.is-good .join__note { color: var(--moss-ok); }
.hero .join.is-warn .join__note { color: var(--brick); }
.hero .suggest { color: var(--ink2); }
.hero .suggest strong { color: var(--ink); }
.hero .join :focus-visible { outline-color: var(--ink); }

/* The table is a low sun: one disc of marigold rising from the bottom of the page, with the five on its rim. */
.ring__table { fill: var(--marigold); }
.hero { --note: #5E3F00; }
.hero .join.is-good .join__note { color: #2C4A1C; }
.hero .join.is-warn .join__note { color: #8E1F15; }
.hero .join__field .join__seat { background: #FFF1CC; }
.hero .join.is-lit .join__field .join__seat { background: var(--marigold); }
/* A member's own seat, on the table: the one dark disc, so it reads against the marigold. */
.hero .join.is-joined .join__seat--big { background: var(--ink); }
.hero .join.is-joined .join__seat--big b { color: var(--marigold); }
.hero .join__you { color: var(--note); }
.hero .join__doneline { color: var(--ink); }
.hero .join__next { background: var(--ink); }
.hero .join__next:hover { background: #000; }
.hero .join__donenote, .hero .join__link { color: #4A3406; }
.hero .join__link { text-decoration-color: rgba(31, 26, 22, 0.32); }
.hero .join__link:hover { color: var(--ink); }
.hero .join__links i { background: #4A3406; opacity: 0.55; }
@media (max-width: 719px) { .join__you { font-size: 12.5px; } }
/* A short laptop screen (1366 by 768 with the browser's own bars): a member still sees their seat and the next step without scrolling. */
@media (min-width: 1100px) and (max-height: 729px) {
  .hero.is-member { padding-top: 72px; }
  .hero.is-member .hero__sub { margin-top: 14px; }
  .hero.is-member .hero__arch { margin-top: 18px; }
  .hero.is-member .join__seat--big { width: calc(var(--sr, 32) * 2px); height: calc(var(--sr, 32) * 2px); }
  .hero.is-member .join__doneline { margin-top: 10px; font-size: 1.3rem; }
  .hero.is-member .join__next { margin-top: 14px; --h: 50px; }
  .hero.is-member .join__donenote { display: none; }
}
/* Returning members: hold the headline back until it is theirs (see boot.js). */
.is-returning #hero-title, .is-returning #hero-sub { visibility: hidden; }
.hero__sub { max-width: 27em; }
.hero__sub span { display: inline-block; }
@media (min-width: 720px) { .hero__sub { max-width: 33em; } }
