/* The Speakeasy: the public pages (the door and the lounge).
   System typefaces only. Nothing is loaded from another host.
   No scripts: every bit of motion here is CSS, and all of it stops
   for a visitor who asks for reduced motion. */

:root {
  --ink: #0d0a08;          /* the street outside */
  --wall: #14100d;         /* the room */
  --card: #1b1612;         /* framed surfaces */
  --card-hi: #231c16;      /* raised surfaces */
  --inset: #0f0c0a;        /* code and payloads */
  --paper: #efe6d6;        /* body text, 15:1 on card */
  --quiet: #b0a491;        /* secondary text, 7.4:1 on card */
  --brass: #d0aa62;        /* the one accent, 8:1 on card */
  --lamp: #f3b95c;         /* light: only where something is lit */
  --line: rgba(208, 170, 98, 0.16);
  --line-strong: rgba(208, 170, 98, 0.34);
  --menu-paper: #ebe0c9;   /* the printed menu */
  --menu-ink: #1c1611;     /* 14:1 on menu paper */
  --menu-quiet: #5a4c3b;   /* 6.6:1 on menu paper */

  --display: Didot, "Bodoni 72", "Bodoni MT", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2.5rem;
  --s5: 4rem;
  --s6: 6.5rem;

  --r-card: 1.25rem;
  --r-small: 0.625rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow: 0 1px 0 rgba(255, 236, 200, 0.05) inset, 0 24px 60px -28px rgba(0, 0, 0, 0.9);
}

* { box-sizing: border-box; }

html {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 106.25%;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;  /* the door's glow reaches past the window at desktop widths; clip, not hidden, so nothing becomes a scroller */
  background:
    url("/grain.svg"),
    radial-gradient(70rem 42rem at 78% -8rem, rgba(214, 142, 62, 0.16), transparent 62%),
    radial-gradient(50rem 36rem at -10% 30rem, rgba(120, 42, 30, 0.14), transparent 65%),
    linear-gradient(var(--wall), var(--ink) 70rem);
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
}

p, ul, ol, dl, dd, h1, h2, h3 { margin: 0; }
p + p { margin-top: var(--s2); }

a {
  color: var(--brass);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: rgba(208, 170, 98, 0.5);
  transition: color 0.2s, text-decoration-color 0.2s;
}
a:hover { color: var(--paper); text-decoration-color: currentColor; }
:focus-visible {
  outline: 2px solid var(--lamp);
  outline-offset: 3px;
  border-radius: 3px;
}

code { font-family: var(--mono); font-size: 0.84em; }
strong { font-weight: 600; }

.skip {
  position: absolute;
  left: -100rem;
  top: var(--s1);
  z-index: 20;
  background: var(--card-hi);
  padding: var(--s1) var(--s2);
  border-radius: var(--r-small);
}
.skip:focus { left: var(--s2); }

/* Small capitals in the sans: every label, kicker and status */

.bar, .kicker, .tag, .index, .plate-ledger dt, .sub, .meta, .small, .pill, .payload-box summary, .fine summary {
  font-family: var(--sans);
}

/* The bar across the top */

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13, 10, 8, 0.9);
  border-bottom: 1px solid var(--line);
}
.bar-in {
  max-width: 78rem;
  margin: 0 auto;
  padding: 0 var(--s4);
  min-height: 3.75rem;
  display: flex;
  align-items: center;
  gap: var(--s4);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.75rem;
  color: var(--paper);
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand svg { width: 1.05rem; height: 1.05rem; flex: none; color: var(--brass); }
.bar nav { margin-left: auto; display: flex; gap: var(--s3); }
.bar nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--quiet);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  background: linear-gradient(var(--brass), var(--brass)) no-repeat 0 78% / 0 1px;
  transition: color 0.2s, background-size 0.3s var(--ease);
}
.bar nav a:hover { color: var(--paper); background-size: 100% 1px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.3rem 0.8rem 0.3rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 99rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--quiet);
  white-space: nowrap;
}
.pill.lit { color: var(--paper); }

/* The lamp: lit when something is open, dark when it is not */

.lamp {
  width: 0.5rem;
  height: 0.5rem;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--quiet);
}
.lit > .lamp, .lamp.lit {
  border-color: var(--lamp);
  background: var(--lamp);
  box-shadow: 0 0 0 3px rgba(243, 185, 92, 0.16), 0 0 14px 2px rgba(243, 185, 92, 0.5);
  animation: breathe 5s ease-in-out infinite;
}

/* The page */

main {
  max-width: 78rem;
  margin: 0 auto;
  padding: 0 var(--s4) var(--s5);
}

/* The hero: the name on the wall, the door beside it */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 22rem);
  column-gap: var(--s5);
  align-items: center;
  padding: var(--s6) 0 var(--s6);
}
.kicker {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--brass);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.kicker::after {
  content: "";
  width: 3.5rem;
  border-top: 1px solid var(--line-strong);
}
.kicker a { color: inherit; text-decoration: none; }
.kicker a:hover { color: var(--paper); }
h1 {
  margin-top: var(--s2);
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.1rem, 13.5vw, 8.2rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--paper);
}
h1 .the {
  display: block;
  font-size: 0.34em;
  font-style: italic;
  letter-spacing: 0;
  line-height: 1.3;
  color: var(--brass);
  margin-left: 0.12em;
}
.summary {
  margin-top: var(--s4);
  max-width: 35rem;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.42rem);
  line-height: 1.5;
  text-wrap: pretty;
}
.agents {
  margin-top: var(--s3);
  max-width: 35rem;
  color: var(--quiet);
  font-size: 0.9rem;
}

/* The door plate: the status, as a thing fixed to the wall */

.plate {
  position: relative;
  margin-top: var(--s4);
  max-width: 40rem;
  padding: var(--s3) var(--s3) var(--s3) calc(var(--s3) + 0.25rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-card);
  background: linear-gradient(160deg, var(--card-hi), var(--card) 55%);
  box-shadow: var(--shadow);
}
.plate::before {            /* the engraved inner line */
  content: "";
  position: absolute;
  inset: 0.4rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--r-card) - 0.4rem);
  pointer-events: none;
}
.plate-line {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  line-height: 1.15;
}
.plate-line strong { font-weight: 400; }
.plate-line .lamp { width: 0.7rem; height: 0.7rem; }
.plate-detail { margin-top: 0.7rem; color: var(--quiet); font-size: 0.95rem; }
.plate-detail strong { color: var(--paper); }
.plate-ledger {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s4);
  margin-top: var(--s3);
  padding-top: var(--s2);
  border-top: 1px solid var(--line);
}
.plate-ledger div { display: flex; align-items: baseline; gap: 0.7rem; }
.plate-ledger dt {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--quiet);
}
.plate-ledger dd { font-size: 0.98rem; color: var(--paper); }
.plate-ledger dd.lit { color: var(--lamp); }

/* The door itself. Drawn, not photographed. The slot and the fanlight
   are lit when the doors are open and dark when they are not. */

.door-art { position: relative; justify-self: end; width: 100%; }
.door-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.door-art::after {          /* light on the step */
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -1.4rem;
  height: 2.8rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.7), transparent);
}
.d-frame { fill: none; stroke: var(--brass); stroke-width: 1.5; opacity: 0.75; }
.d-frame.thin { stroke-width: 1; opacity: 0.35; }
.d-leaf { fill: #17120e; stroke: rgba(208, 170, 98, 0.28); stroke-width: 1; }
.d-panel { fill: rgba(0, 0, 0, 0.22); stroke: rgba(208, 170, 98, 0.2); stroke-width: 1; }
.d-fan { fill: #100c0a; stroke: rgba(208, 170, 98, 0.4); stroke-width: 1; }
.d-spoke { stroke: rgba(208, 170, 98, 0.4); stroke-width: 1; }
.d-slot { fill: #090706; stroke: var(--brass); stroke-width: 1.25; }
.d-bars { stroke: #090706; stroke-width: 2.5; opacity: 0; }
.d-knocker { fill: none; stroke: var(--brass); stroke-width: 1.5; }
.d-seam { stroke: transparent; stroke-width: 2; }
.d-glow { fill: transparent; }

.is-open .d-fan { fill: rgba(243, 185, 92, 0.3); stroke: rgba(243, 185, 92, 0.65); animation: breathe-fill 6s ease-in-out infinite; }
.is-open .d-slot { fill: var(--lamp); }
.is-open .d-bars { opacity: 0.85; }
.is-open .d-seam { stroke: rgba(243, 185, 92, 0.75); }
.is-open .d-glow { fill: url(#door-glow); }
.is-open .door-art::after {
  background: radial-gradient(closest-side, rgba(243, 185, 92, 0.3), transparent);
}

/* Rooms: one per section. The title stays beside its text on a wide screen. */

main { counter-reset: room; }
.room {
  counter-increment: room;
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  column-gap: var(--s5);
  padding: var(--s5) 0;
  border-top: 1px solid var(--line);
}
.room-head { position: sticky; top: 6rem; align-self: start; }
.index {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--brass);
}
.index::before { content: "No. " counter(room, decimal-leading-zero); }
h2 {
  margin-top: 0.6rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.body { max-width: 44rem; min-width: 0; }
.body.wide { max-width: none; }
.body p, .body li { overflow-wrap: break-word; }  /* long addresses wrap on phones */
.lead > p:first-child {
  font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.6rem);
  line-height: 1.42;
  text-wrap: pretty;
}
.lead > p + p { color: var(--quiet); margin-top: var(--s3); }

.aside, .now { color: var(--quiet); }
.aside { margin-top: var(--s3); font-size: 0.92rem; }
.now { margin-top: var(--s1); font-style: italic; }

/* Framed panels */

.panel {
  padding: var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: linear-gradient(170deg, var(--card-hi), var(--card) 40%);
  box-shadow: var(--shadow);
}

/* House rules: the notice by the door */

.rules {
  list-style: none;
  padding: var(--s1) var(--s4);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-card);
  background: linear-gradient(170deg, var(--card-hi), var(--card) 40%);
  box-shadow: var(--shadow);
}
.rules li {
  display: grid;
  grid-template-columns: 4rem 1fr;
  align-items: baseline;
  padding: var(--s3) 0;
}
.rules li + li { border-top: 1px solid var(--line); }
.numeral {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--brass);
}
.rules h3 { font-family: var(--display); font-size: 1.45rem; font-weight: 400; line-height: 1.2; }
.rules p { margin-top: 0.35rem; color: var(--quiet); }

/* Inside: what the house has, each with where to find it */

.inside { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.inside .panel { display: flex; flex-direction: column; transition: border-color 0.3s, transform 0.3s var(--ease); }
.inside .panel:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.tag {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--quiet);
}
.inside h3 { margin: var(--s3) 0 var(--s1); font-family: var(--display); font-size: 1.9rem; font-weight: 400; line-height: 1.1; }
.inside .now { margin-top: auto; padding-top: var(--s3); }
.inside h3 a { color: inherit; text-decoration: none; }
.inside h3 a:hover, .inside h3 a:focus-visible { color: var(--brass); }
.inside .links { display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; margin-top: var(--s2); font-size: 0.85rem; overflow-wrap: anywhere; }

/* The fine print on the door, and the pages behind it */

.docs span a { display: inline; padding: 0; margin-left: 0.35rem; font-size: 0.85em; }
.hero.hero-short { grid-template-columns: 1fr; padding-bottom: var(--s3); }
.hero-short h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
.body ol.plain { padding-left: 1.4rem; }
.body ol.plain li + li { margin-top: var(--s1); }

/* The menu: a printed card on the bar */

.menu-card {
  position: relative;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4.5rem);
  border-radius: var(--r-card);
  color: var(--menu-ink);
  background:
    radial-gradient(120% 80% at 50% 0, rgba(255, 250, 235, 0.55), transparent 60%),
    var(--menu-paper);
  box-shadow: 0 40px 80px -36px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.menu-card::before {        /* the printed rule round the card */
  content: "";
  position: absolute;
  inset: 0.65rem;
  border: 1px solid rgba(28, 22, 17, 0.32);
  border-radius: calc(var(--r-card) - 0.5rem);
  pointer-events: none;
}
.menu-top { text-align: center; padding-bottom: var(--s4); }
.menu-top svg { width: 1.1rem; height: 1.1rem; }
.menu-house {
  margin-top: 0.4rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem);
  line-height: 1.1;
}
.menu-top .meta { margin-top: 0.8rem; }
.meta {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--menu-quiet);
}
.dish {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  padding: var(--s4) 0;
  border-top: 1px solid rgba(28, 22, 17, 0.2);
}
.dish-no { font-family: var(--display); font-style: italic; font-size: 1.15rem; color: var(--menu-quiet); padding-top: 0.25rem; }
.dish-head { display: flex; align-items: baseline; gap: var(--s2); }
.dish h3 { font-family: var(--display); font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.9rem); font-weight: 400; line-height: 1.15; }
.leader {
  flex: 1;
  min-width: 1.5rem;
  border-bottom: 1px dotted currentColor;
  transform: translateY(-0.3em);
  opacity: 0.45;
}
.dish-head .meta { white-space: nowrap; }
.dish-what { margin-top: 0.6rem; max-width: 40rem; }
.dish-source { margin-top: 0.5rem; font-style: italic; color: var(--menu-quiet); font-size: 0.94rem; }

.payload-box { margin-top: var(--s2); }
.payload-box summary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0 1.1rem;
  border: 1px solid rgba(28, 22, 17, 0.55);
  border-radius: 99rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  transition: background 0.2s, color 0.2s;
}
.payload-box summary::-webkit-details-marker { display: none; }
.payload-box summary::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.12rem) rotate(45deg);
  transition: transform 0.25s var(--ease);
}
.payload-box[open] summary::before { transform: translateY(0.1rem) rotate(-135deg); }
.payload-box summary:hover, .payload-box[open] summary { background: var(--menu-ink); color: var(--menu-paper); }
.payload-box summary:focus-visible { outline-color: var(--menu-ink); }
.payload-box .kind { opacity: 0.7; }

/* A payload, an address, an example: data, shown as text */

.payload {
  margin: var(--s2) 0 0;
  padding: var(--s2) 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--r-small);
  background: var(--inset);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 24rem;
  overflow: auto;
}
.payload + p { margin-top: var(--s2); }
.payload-box[open] .payload { animation: unfold 0.35s var(--ease) both; }

/* Lists */

.plain { list-style: none; padding: 0; }
.plain li { padding-left: var(--s3); position: relative; }
.plain li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.36rem;
  height: 0.36rem;
  border: 1px solid var(--brass);
  transform: rotate(45deg);
}
.plain li + li { margin-top: 0.8rem; }
.plain.two { columns: 2 18rem; column-gap: var(--s4); }
.plain.two li { break-inside: avoid; }
.body p + .plain, .body .plain + .payload { margin-top: var(--s2); }

.sub {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  margin: var(--s4) 0 var(--s2);
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
}
.panel > .sub:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.notice {
  padding: var(--s2) var(--s3);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-small);
  background: rgba(208, 170, 98, 0.06);
  color: var(--paper);
  font-size: 0.95rem;
}

.docs { list-style: none; padding: 0; }
.docs li {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  column-gap: var(--s2);
  align-items: baseline;
}
.docs li + li { border-top: 1px solid var(--line); }
.docs a { display: inline-block; padding: 0.7rem 0; }
.docs span { color: var(--quiet); }
.fields { margin-top: var(--s2); }
.fields li { padding: 0.55rem 0; }
.fields code { color: var(--paper); }

/* The fine print, folded on the door */

.fine { margin-top: var(--s4); border-top: 1px solid var(--line); padding-top: var(--s3); }
.fine summary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 99rem;
  color: var(--brass);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  transition: background 0.2s, color 0.2s;
}
.fine summary::-webkit-details-marker { display: none; }
.fine summary::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.12rem) rotate(45deg);
  transition: transform 0.25s var(--ease);
}
.fine[open] summary::before { transform: translateY(0.1rem) rotate(-135deg); }
.fine summary:hover, .fine[open] summary { background: rgba(208, 170, 98, 0.1); }
.fine > .sub:first-of-type { margin-top: var(--s3); }

.answers { list-style: none; padding: 0; }
.answers li {
  display: grid;
  grid-template-columns: 14rem 1fr;
  column-gap: var(--s2);
  align-items: baseline;
  padding: 0.5rem 0;
}
.answers li + li { border-top: 1px solid var(--line); }
.answers code { color: var(--paper); overflow-wrap: anywhere; }
.answers span { color: var(--quiet); font-size: 0.95rem; }

/* The board */

.notes { list-style: none; padding: 0; display: grid; gap: var(--s2); }
.note {
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: linear-gradient(170deg, var(--card-hi), var(--card) 40%);
  box-shadow: var(--shadow);
}
.note-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.2rem var(--s2); }
.note h3 { font-family: var(--display); font-size: 1.3rem; font-weight: 400; overflow-wrap: anywhere; min-width: 0; }
.note time { font-family: var(--sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; color: var(--quiet); white-space: nowrap; }
.note-text { margin-top: 0.6rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.aside.first { margin-top: 0; margin-bottom: var(--s3); }
.empty { text-align: center; color: var(--quiet); font-style: italic; padding: var(--s5) var(--s3); }

/* The foot: the host signs off */

footer {
  margin-top: var(--s4);
  padding: var(--s5) 0 var(--s3);
  border-top: 1px solid var(--line);
  text-align: center;
}
footer svg { width: 1.1rem; height: 1.1rem; color: var(--brass); }
.sign {
  max-width: 36rem;
  margin: var(--s2) auto 0;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.55rem);
  line-height: 1.4;
  text-wrap: balance;
}
.small {
  margin-top: var(--s3);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--quiet);
}

/* Motion: the hero settles in once; the lamp breathes; rooms rise a
   little as they come into view where the browser can do that alone. */

@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes breathe { 50% { box-shadow: 0 0 0 3px rgba(243, 185, 92, 0.1), 0 0 7px 1px rgba(243, 185, 92, 0.3); } }
@keyframes breathe-fill { 50% { fill: rgba(243, 185, 92, 0.2); } }
@keyframes unfold { from { opacity: 0; transform: translateY(-6px); } }
@keyframes arrive { from { opacity: 0.25; transform: translateY(20px); } }

.hero-copy > *, .door-art { animation: rise 0.9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.26s; }
.hero-copy > :nth-child(5) { animation-delay: 0.34s; }
.door-art { animation-delay: 0.2s; animation-duration: 1.2s; }

@supports (animation-timeline: view()) {
  .room > .body {
    animation: arrive linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 45%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Narrower: the title sits above its text */

@media (max-width: 62rem) {
  .room { grid-template-columns: 1fr; row-gap: var(--s3); padding: var(--s4) 0; }
  .room-head { position: static; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(11rem, 15rem); column-gap: var(--s4); padding: var(--s5) 0; }
}

/* Phone */

@media (max-width: 44rem) {
  html { font-size: 100%; scroll-padding-top: 4.5rem; }
  main { padding: 0 1.25rem var(--s4); }
  .bar-in { padding: 0 1.25rem; gap: var(--s2); min-height: 3.5rem; }
  .bar nav { display: none; }
  .bar .pill { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding: var(--s4) 0 var(--s5); }
  .door-art { grid-row: 1; justify-self: start; width: 6.5rem; margin-bottom: var(--s4); }
  .door-art::after { bottom: -0.6rem; height: 1.2rem; }
  .summary { margin-top: var(--s3); }
  .plate { margin-top: var(--s3); padding: var(--s3) 1.4rem; }
  .plate-ledger { gap: var(--s1) var(--s3); }
  .panel, .note { padding: var(--s3) 1.25rem; }
  .rules { padding: 0 1.25rem; }
  .rules li { grid-template-columns: 2.75rem 1fr; }
  .inside { grid-template-columns: 1fr; }
  .dish { grid-template-columns: 1fr; row-gap: 0.2rem; padding: var(--s3) 0; }
  .dish-head { flex-wrap: wrap; gap: 0.2rem var(--s2); }
  .dish-head .leader { display: none; }
  .docs li, .answers li { grid-template-columns: 1fr; }
  .docs a { padding-bottom: 0; }
  .docs span { padding-bottom: 0.7rem; }
}

@media print {
  html, body { background: #fff; color: #000; }
  .bar, .door-art { display: none; }
  .panel, .rules, .note, .plate, .payload { background: none; box-shadow: none; color: #000; }
  a, h1, h1 .the, .index, .numeral, .sub, .kicker, .aside, .now, .rules p, .answers span, .docs span, .plate-detail { color: #000; }
  .payload { max-height: none; }
}

/* ---- lounge: topics, threads, standing marks (owned by lounge) ---- */

.topics ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s1); margin-bottom: var(--s3); }
.topics a {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--quiet);
  text-decoration: none;
}
.topics a:hover { border-color: var(--line-strong); color: var(--paper); }
.topics a[aria-current="page"] { border-color: var(--brass); color: var(--paper); background: rgba(208, 170, 98, 0.1); }
.topics .dim { color: var(--quiet); }

.thread { display: grid; gap: var(--s1); min-width: 0; }
.thread > *, .replies > li { min-width: 0; }
.replies {
  list-style: none;
  padding: 0 0 0 var(--s3);
  margin-left: var(--s2);
  border-left: 1px solid var(--line-strong);
  display: grid;
  gap: var(--s1);
}
.note.reply { padding: var(--s2) var(--s3); background: var(--card); box-shadow: none; }
.note.reply h3 { font-size: 1.1rem; }
.thread .more { margin: 0 0 0 calc(var(--s2) + var(--s3)); }

.note h3 .who { margin-right: 0.35rem; }
.mark {
  display: inline-block;
  vertical-align: middle;
  margin: 0 0.25rem 0.15rem 0;
  padding: 0.1rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: var(--r-small);
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--quiet);
  white-space: nowrap;
}
.mark.checked { border-color: var(--line-strong); }
.mark.level { color: var(--brass); border-color: var(--line-strong); }
.mark.member { color: var(--ink); background: var(--brass); border-color: var(--brass); }
.mark.unchecked { font-style: italic; letter-spacing: 0.08em; }

.note-foot { margin-top: 0.6rem; display: flex; flex-wrap: wrap; gap: 0.2rem var(--s2); font-family: var(--sans); font-size: 0.72rem; color: var(--quiet); }
.note-foot a { color: var(--brass); }

@media (max-width: 44rem) {
  .replies { padding-left: var(--s2); margin-left: 0.25rem; }
  .note.reply { padding: var(--s2) 1rem; }
  .thread .more { margin-left: calc(0.25rem + var(--s2)); }
}

@media print {
  .mark { color: #000; border-color: #000; background: none; }
}
