/* camtheyam.com — a hill at dusk, a desk inside, and a book on it. */
:root {
  --p: 4px;

  --night: #161833;
  --cream: #f6ecd0;
  --cream-soft: #d8cba9;
  --lantern: #f2c14e;
  --wood: #4f3624;
  --wood-light: #6b4a30;
  --wood-dark: #2a1c12;
  --parch: #f2e6c6;
  --parch-2: #e6d5ab;
  --parch-edge: #c9b283;
  --ink: #2e2418;
  --ink-soft: #66563f;
  --rubric: #9a3324;
  --leather: #5b2b1f;
  --leather-dark: #3a1912;
  --brass: #c99a3e;
  --moss: #3f7a3a;

  --display: "IM Fell English", "Iowan Old Style", Georgia, serif;
  --display-sc: "IM Fell English SC", "IM Fell English", Georgia, serif;
  --body: "Vollkorn", "Iowan Old Style", Georgia, serif;

  --step: polygon(0 var(--p), var(--p) var(--p), var(--p) 0, calc(100% - var(--p)) 0, calc(100% - var(--p)) var(--p), 100% var(--p), 100% calc(100% - var(--p)), calc(100% - var(--p)) calc(100% - var(--p)), calc(100% - var(--p)) 100%, var(--p) 100%, var(--p) calc(100% - var(--p)), 0 calc(100% - var(--p)));
}
@media (max-width: 599px) { :root { --p: 3px; } }
@media (min-width: 1200px) { :root { --p: 5px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--wood-dark) var(--wood-img, none) repeat;
  background-size: var(--wood-size, auto);
  color: var(--cream);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
@supports (image-rendering: pixelated) { body { image-rendering: pixelated; } }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--lantern); outline-offset: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
canvas[data-px] { display: block; }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 5;
  background: var(--parch); color: var(--ink); padding: 8px 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Wooden signs and buttons ---------- */
.btn {
  appearance: none;
  display: inline-block;
  border: 0;
  background: var(--wood);
  color: var(--cream);
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  padding: 10px 16px 12px;
  min-height: 44px;
  text-decoration: none;
  cursor: pointer;
  clip-path: var(--step);
  box-shadow: inset 0 calc(-1 * var(--p)) 0 var(--wood-dark), inset 0 var(--p) 0 var(--wood-light);
  touch-action: manipulation;
}
.btn:hover { background: var(--wood-light); }
.btn:active { box-shadow: inset 0 var(--p) 0 var(--wood-dark); padding-top: 12px; padding-bottom: 10px; }
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--lantern); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn.done { background: var(--moss); }

/* ---------- The hill (home) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(600px, 92vh, 900px);
  display: flex;
  flex-direction: column;
  background: #26264e;
  isolation: isolate;
}
.hero > canvas, .vignette > canvas {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
}
.hero-title {
  text-align: center;
  padding: clamp(56px, 11vh, 120px) 16px 0;
}
.wordmark {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.5rem, 14vw, 7.75rem);
  line-height: .9;
  letter-spacing: -.01em;
  color: var(--cream);
  text-shadow: 0 var(--p) 0 rgba(18, 20, 49, .55);
}
.hero-lede {
  margin: 18px auto 0;
  max-width: 30ch;
  font-size: clamp(1.125rem, 2.6vw, 1.375rem);
  line-height: 1.45;
  color: var(--cream);
  text-shadow: 0 2px 0 rgba(18, 20, 49, .7);
}

.doors {
  margin: auto 0 0;
  padding: 0 16px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px clamp(4px, 3.2vw, 44px);
}
.door {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: max(calc(var(--p) * 25 + 16px), 104px);
  text-decoration: none;
  color: var(--cream);
  border-radius: 2px;
}
.door canvas { transition: transform .12s steps(2, end); }
.door:hover canvas, .door:focus-visible canvas { transform: translateY(calc(-1 * var(--p))); }
.door:focus-visible { outline-offset: 6px; }
.sign {
  margin-top: 6px;
  width: 100%;
  padding: 6px 8px 9px;
  text-align: center;
  background: var(--wood);
  clip-path: var(--step);
  box-shadow: inset 0 calc(-1 * var(--p)) 0 var(--wood-dark), inset 0 var(--p) 0 var(--wood-light);
}
.sign-name { display: block; font-family: var(--display); font-size: 1.25rem; line-height: 1.1; }
.sign-game { display: block; font-size: .8125rem; line-height: 1.25; color: var(--cream-soft); margin-top: 2px; }
.sign-state { display: block; font-size: .8125rem; line-height: 1.25; margin-top: 4px; color: var(--cream-soft); font-style: italic; }
[data-state="on"] .sign-state { color: var(--lantern); font-style: normal; font-weight: 600; }
.hero-foot {
  text-align: center;
  padding: 26px 16px calc(var(--p) * 6);
}
.hero-foot a {
  color: var(--cream);
  text-decoration-color: rgba(242, 193, 78, .7);
  text-underline-offset: 4px;
  text-shadow: 0 2px 0 rgba(18, 20, 49, .6);
}

/* ---------- The desk (Crownfall) ---------- */
.desk {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 72px) 16px clamp(40px, 6vw, 64px);
}
.desk-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title candle" "intro candle";
  align-items: end;
  gap: 8px 24px;
}
.desk-head .desk-title { grid-area: title; }
.desk-head .desk-intro { grid-area: intro; align-self: start; }
.desk-head canvas { grid-area: candle; }
.desk-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  line-height: .95;
  color: var(--cream);
}
.desk-intro { margin-top: 10px; max-width: 46ch; color: var(--cream-soft); }
.desk-head canvas { margin-bottom: calc(var(--p) * -1); }

.howto {
  margin: 26px 0 30px;
  padding: 18px 24px 20px;
  background: var(--parch);
  color: var(--ink);
  clip-path: var(--step);
  box-shadow: inset 0 calc(-1 * var(--p)) 0 var(--parch-2);
}
.howto h3 { font-family: var(--display); font-weight: 400; font-size: 1.375rem; line-height: 1.2; color: var(--rubric); }
.howto ul { margin-top: 8px; padding-left: 1.2em; columns: 2 300px; column-gap: 40px; }
.howto li { break-inside: avoid; margin-bottom: 4px; font-size: 1.0625rem; line-height: 1.45; }
.howto li::marker { color: var(--rubric); }
.howto kbd { font-family: var(--body); font-weight: 600; font-size: .95em; padding: 0 .3em; background: var(--parch-2); border-bottom: 2px solid var(--parch-edge); }

/* the book: leather cover, brass corners, a ribbon */
.book {
  position: relative;
  padding: calc(var(--p) * 4);
  background:
    linear-gradient(var(--brass), var(--brass)) left top / calc(var(--p) * 6) calc(var(--p) * 2) no-repeat,
    linear-gradient(var(--brass), var(--brass)) left top / calc(var(--p) * 2) calc(var(--p) * 6) no-repeat,
    linear-gradient(var(--brass), var(--brass)) right top / calc(var(--p) * 6) calc(var(--p) * 2) no-repeat,
    linear-gradient(var(--brass), var(--brass)) right top / calc(var(--p) * 2) calc(var(--p) * 6) no-repeat,
    linear-gradient(var(--brass), var(--brass)) left bottom / calc(var(--p) * 6) calc(var(--p) * 2) no-repeat,
    linear-gradient(var(--brass), var(--brass)) left bottom / calc(var(--p) * 2) calc(var(--p) * 6) no-repeat,
    linear-gradient(var(--brass), var(--brass)) right bottom / calc(var(--p) * 6) calc(var(--p) * 2) no-repeat,
    linear-gradient(var(--brass), var(--brass)) right bottom / calc(var(--p) * 2) calc(var(--p) * 6) no-repeat,
    var(--leather);
  box-shadow: inset 0 calc(-1 * var(--p)) 0 var(--leather-dark), 0 calc(var(--p) * 2) 0 rgba(20, 12, 8, .55);
}
.book::before {
  content: "";
  position: absolute;
  inset: calc(var(--p) * 2);
  border: 2px dashed rgba(232, 190, 120, .32);
  pointer-events: none;
}
.book::after {
  content: "";
  position: absolute;
  right: 14%;
  bottom: calc(var(--p) * -7);
  width: calc(var(--p) * 3);
  height: calc(var(--p) * 9);
  background: var(--rubric);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
}

/* ---------- Crownfall (game) ---------- */
.hc {
  --paper: #efe6cf;
  --paper-2: #e6dabd;
  --paper-edge: #cbbb98;
  --ink: #2a241c;
  --ink-soft: #66594a;
  --rubric: #9a3324;
  --good: #2f6b3a;
  --loot: #7a5300;
  --mana: #2f5d8a;
  position: relative;
  background: var(--paper);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(60, 30, 15, .45), inset 0 0 60px rgba(120, 90, 40, .14);
  font-family: "IM Fell English", Georgia, "Times New Roman", serif;
  image-rendering: auto;
  outline: none;
}
.hc button { font-family: inherit; }
.hc [hidden] { display: none !important; }
.hc-hud {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 18px;
  padding: 12px 20px 10px;
  border-bottom: 1px solid var(--paper-edge);
  background: var(--paper-2);
  font-size: .95rem;
}
.hc-who b { font-size: 1.15rem; margin-right: 8px; }
.hc-who span { color: var(--ink-soft); }
.hc-ap { color: var(--rubric); font-style: italic; }
.hc-bars { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.hc-bar { display: flex; align-items: center; gap: 8px; min-width: 200px; flex: 1 1 200px; }
.hc-bar-l { width: 4.6em; color: var(--ink-soft); }
.hc-bar-t { flex: 1; height: 9px; background: var(--paper); border: 1px solid var(--paper-edge); border-radius: 5px; overflow: hidden; display: block; }
.hc-bar-t i { display: block; height: 100%; background: var(--rubric); transition: width .5s ease; }
.hc-mp .hc-bar-t i { background: var(--mana); }
.hc-bar-n { min-width: 4.5em; text-align: right; font-variant-numeric: tabular-nums; }
.hc-meta { grid-column: 1; display: flex; flex-wrap: wrap; gap: 2px 16px; color: var(--ink-soft); }
.hc-warn { color: var(--rubric); }
.hc-save { grid-column: 2; grid-row: 1; align-self: start; font-style: italic; color: var(--ink-soft); font-size: .9rem; }
.hc-save[data-state="error"] { color: var(--rubric); }

.hc-body { position: relative; }
.hc-log {
  height: clamp(340px, 54vh, 560px);
  overflow-y: auto;
  padding: 22px 28px 12px;
  font-size: 1.12rem;
  line-height: 1.6;
  overscroll-behavior: contain;
}
.hc-p { margin: 0 0 .7em; max-width: 68ch; }
.hc-p b { font-weight: normal; font-family: "IM Fell English SC", "IM Fell English", Georgia, serif; letter-spacing: .02em; }
.hc-chapter { text-align: center; margin: 1.1em auto .8em; max-width: none; color: var(--rubric); font-family: "IM Fell English SC", Georgia, serif; font-size: 1.5rem; line-height: 1.2; }
.hc-chapter span::before, .hc-chapter span::after { content: "❧"; font-size: .8em; margin: 0 .6em; opacity: .8; display: inline-block; }
.hc-chapter span::before { transform: scaleX(-1); }
.hc-chapter + .hc-p::first-letter { float: left; font-size: 3.1em; line-height: .82; padding: .06em .08em 0 0; color: var(--rubric); font-family: "IM Fell English", Georgia, serif; }
.hc-me { color: var(--ink-soft); font-style: italic; font-size: .95rem; margin-top: 1.1em; }
.hc-me::before { content: "❧ "; color: var(--rubric); font-style: normal; }
.hc-foe { font-size: 1.18rem; }
.hc-bad { color: var(--rubric); }
.hc-good, .hc-up { color: var(--good); }
.hc-loot { color: var(--loot); }
.hc-small { font-size: .95rem; color: var(--ink-soft); }
.hc-big { font-size: 1.25rem; }
.hc-titlepage { text-align: center; margin: 1.2em auto 1em; max-width: none; }
.hc-title { display: block; font-family: "IM Fell English SC", Georgia, serif; color: var(--rubric); font-size: clamp(2.2rem, 7vw, 3.2rem); line-height: 1.05; }
.hc-sub { display: block; font-style: italic; color: var(--ink-soft); margin-top: .3em; }
.hc-heroes { font-size: .98rem; border-top: 1px solid var(--paper-edge); border-bottom: 1px solid var(--paper-edge); padding: .5em 0; }
.hc-heroes > span { font-family: "IM Fell English SC", Georgia, serif; color: var(--rubric); }
.hc-heroes ol { margin: .3em 0 0; padding-left: 1.4em; }
.hc-grid { display: grid; grid-template-columns: repeat(4, auto 2.4em); gap: 2px 10px; justify-content: start; }
.hc-grid b { text-align: right; font-family: inherit !important; }

.hc-choices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 8px;
  padding: 14px 20px 16px;
  border-top: 1px solid var(--paper-edge);
}
.hc-c {
  appearance: none;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: baseline;
  text-align: left;
  padding: 9px 12px;
  min-height: 44px;
  background: #f7f0dc;
  color: var(--ink);
  border: 1px solid var(--paper-edge);
  border-radius: 3px;
  box-shadow: 0 2px 0 var(--paper-edge);
  font-size: 1.04rem;
  line-height: 1.3;
  cursor: pointer;
  touch-action: manipulation;
}
.hc-c:hover { background: #fffaea; border-color: #b4a27c; }
.hc-c:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--paper-edge); }
.hc-c:focus-visible { outline: 3px solid var(--rubric); outline-offset: 1px; }
.hc-c[disabled] { opacity: .5; cursor: default; }
.hc-c kbd { font-family: "IM Fell English SC", Georgia, serif; color: var(--rubric); font-size: 1rem; min-width: .8em; }
.hc-c .hc-ct { grid-column: 2; }
.hc-c small { grid-column: 2; color: var(--ink-soft); font-size: .85rem; font-style: italic; }
.hc-ask { grid-column: 1 / -1; display: grid; gap: 8px; }
.hc-ask label { font-size: 1.1rem; }
.hc-ask input {
  font: inherit;
  font-size: 1.3rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--ink);
  padding: 4px 2px;
  max-width: 460px;
  border-radius: 0;
}
.hc-ask input:focus { outline: none; border-bottom-color: var(--rubric); background: rgba(255, 255, 255, .35); }
.hc-ask-row { display: flex; flex-wrap: wrap; gap: 8px; }
.hc-ask-row .hc-c { grid-template-columns: 1fr; }
.hc-err { color: var(--rubric); min-height: 1.2em; margin: 0; }
.hc-busy .hc-choices { opacity: .6; }

.hc-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  padding: 10px 20px 12px;
  border-top: 1px solid var(--paper-edge);
  background: var(--paper-2);
}
.hc-tools button {
  appearance: none;
  background: none;
  border: 0;
  padding: 6px 0;
  min-height: 36px;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rubric);
  text-underline-offset: 4px;
  cursor: pointer;
}
.hc-tools button[disabled] { opacity: .45; cursor: default; }
.hc-tools .hc-end { margin-left: auto; color: var(--ink-soft); }

.hc-panel {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  background: var(--paper);
  padding: 18px 28px 22px;
  font-size: 1.04rem;
  line-height: 1.5;
  overscroll-behavior: contain;
}
.hc-paneled .hc-choices { display: none; }
.hc-ph { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--paper-edge); padding-bottom: 8px; margin-bottom: 10px; }
.hc-ph h3 { margin: 0; font-family: "IM Fell English SC", Georgia, serif; color: var(--rubric); font-size: 1.5rem; font-weight: normal; outline: none; }
.hc-x, .hc-panel button { appearance: none; background: #f7f0dc; border: 1px solid var(--paper-edge); border-radius: 3px; padding: 4px 10px; min-height: 32px; font-size: .95rem; color: var(--ink); cursor: pointer; }
.hc-panel h4 { margin: 1em 0 .3em; font-family: "IM Fell English SC", Georgia, serif; font-weight: normal; font-size: 1.15rem; }
.hc-panel ul { margin: 0; padding: 0; list-style: none; }
.hc-kv li { display: flex; align-items: center; gap: 10px; padding: 3px 0; border-bottom: 1px dotted var(--paper-edge); }
.hc-kv li > span { flex: 1; }
.hc-kv li > b { font-weight: normal; }
.hc-skills { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 22px; }
.hc-skg li { display: flex; justify-content: space-between; border-bottom: 1px dotted var(--paper-edge); padding: 2px 0; }
.hc-skg li.hc-t2 { color: var(--ink-soft); }
.hc-skg i { color: var(--rubric); font-style: normal; }
.hc-list li { padding: 5px 0; border-bottom: 1px dotted var(--paper-edge); }
.hc-items li { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 6px 0; border-bottom: 1px dotted var(--paper-edge); }
.hc-items li > small { grid-column: 1; color: var(--ink-soft); }
.hc-acts { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 6px; align-items: center; }
.hc-prog { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); }
.hc-prog .hc-bar-t { max-width: 260px; }
.hc-sheet-id b { font-size: 1.3rem; }

.hc-wmap, .hc-dmap { width: 100%; max-width: 560px; height: auto; display: block; margin: 6px auto; }
.hc-dmap { max-height: 380px; }
.hc-wmap { background: #f3ead4; border: 1px solid var(--paper-edge); }
.hc-wmap .hc-sea { fill: #c7d2cf; }
.hc-wmap .hc-marsh { fill: #ccd2ad; }
.hc-wmap .hc-roads line { stroke: #a8946c; stroke-width: 1.4; stroke-dasharray: 3 3; }
.hc-wmap circle { fill: var(--ink); }
.hc-wmap text { font-family: "IM Fell English", Georgia, serif; font-size: 11px; fill: var(--ink); }
.hc-wmap .hc-here circle { fill: var(--rubric); }
.hc-wmap .hc-here text { fill: var(--rubric); }
.hc-wmap .hc-cart { font-family: "IM Fell English SC", Georgia, serif; font-size: 14px; letter-spacing: .3em; fill: var(--ink-soft); }
.hc-dmap line { stroke: var(--ink-soft); stroke-width: 4; stroke-linecap: round; }
.hc-dmap line.hc-shut { stroke-dasharray: 3 4; stroke-width: 3; }
.hc-dmap rect { stroke: var(--ink); stroke-width: 1.5; }
.hc-dmap .hc-seen { fill: var(--paper-2); }
.hc-dmap .hc-cur { fill: var(--rubric); }
.hc-dmap .hc-unk { fill: none; stroke-dasharray: 3 3; stroke: var(--ink-soft); }
.hc-dmap .hc-gl { font-size: 14px; fill: var(--ink); }
.hc-dmap .hc-en { font-size: 13px; }

/* ---------- Server pages ---------- */
.vignette {
  position: relative;
  overflow: hidden;
  height: clamp(220px, 34vw, 340px);
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
}
.home-link {
  align-self: flex-start;
  font-family: var(--display);
  font-size: 1.375rem;
  line-height: 1;
  text-decoration: none;
  padding: 8px 12px 10px;
}
.vignette .sign { width: auto; text-align: left; }
.vig-sign {
  align-self: flex-start;
  padding: 10px 18px 14px;
  margin-bottom: calc(var(--p) * 2);
}
.vig-sign h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.25rem, 6vw, 3.25rem); line-height: 1; }
.vig-sign p { color: var(--cream-soft); font-size: 1rem; margin-top: 4px; }

.page {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 16px 56px;
}
.sheet {
  background: var(--parch);
  color: var(--ink);
  padding: clamp(22px, 4.5vw, 40px);
  clip-path: var(--step);
  box-shadow: inset 0 calc(-1 * var(--p)) 0 var(--parch-2);
}
.sheet + .sheet { margin-top: 24px; }
.sheet h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.75rem, 4.6vw, 2.25rem); line-height: 1.1; color: var(--ink); }
.sheet h3 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; line-height: 1.2; }
.sheet h4 { font-family: var(--body); font-weight: 600; font-size: 1.0625rem; }
.sheet b { font-weight: 600; }
.lede { margin-top: 6px; color: var(--ink-soft); }

/* status: the door's window is the light */
.status-row { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.state-word { font-family: var(--display); font-size: clamp(2.5rem, 8vw, 3.5rem); line-height: 1; }
[data-state="on"] .state-word { color: var(--moss); }
[data-state="off"] .state-word { color: var(--rubric); }
.state-detail { margin-top: 6px; }
.state-sub { color: var(--ink-soft); font-size: 1rem; }
.wait-link { display: inline-block; margin-top: 10px; color: var(--rubric); font-weight: 600; text-underline-offset: 4px; }
.wait-link[hidden] { display: none; }

.fields { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-top: 28px; }
.field {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 14px;
  padding: 12px 14px 14px 18px;
  background: var(--parch-2);
  clip-path: var(--step);
}
.field-label { grid-column: 1; font-size: .875rem; color: var(--ink-soft); }
.field-value { grid-column: 1; font-weight: 600; font-size: clamp(1.25rem, 4.5vw, 1.625rem); line-height: 1.2; overflow-wrap: anywhere; }
.field .btn { grid-column: 2; grid-row: 1 / span 2; }
.specs { margin-top: 20px; color: var(--ink-soft); }
.specs b { color: var(--ink); }
.status-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 22px; padding-top: 16px; border-top: 2px solid var(--parch-2); font-size: 1rem; color: var(--ink-soft); }

/* how to join */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 24px; }
.tab {
  appearance: none;
  border: 0;
  padding: 9px 14px 11px;
  min-height: 44px;
  background: var(--parch-2);
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  clip-path: var(--step);
  box-shadow: inset 0 calc(-1 * var(--p)) 0 var(--parch-edge);
}
.tab:hover { background: #ddc999; }
.tab[aria-selected="true"] { background: var(--wood); color: var(--cream); box-shadow: inset 0 calc(-1 * var(--p)) 0 var(--wood-dark); }
.tab:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--rubric); }
.device[hidden] { display: none; }
.device h3 { margin-bottom: 10px; }
.steps { padding-left: 1.5em; }
.steps > li { padding-left: .3em; margin-bottom: 12px; }
.steps > li::marker { font-family: var(--display); color: var(--rubric); font-size: 1.15em; }
.fill { display: grid; grid-template-columns: max-content 1fr; gap: 2px 18px; margin: 8px 0 4px; padding: 10px 14px; background: var(--parch-2); }
.fill dt { color: var(--ink-soft); }
.fill dd { font-weight: 600; overflow-wrap: anywhere; }
.callout { padding: 10px 14px; border-left: var(--p) solid var(--brass); background: rgba(201, 154, 62, .12); }
.way + .way { margin-top: 26px; padding-top: 22px; border-top: 2px dashed var(--parch-edge); }
.way-note { color: var(--ink-soft); margin: 2px 0 10px; }
.path span + span::before { content: " › "; color: var(--ink-soft); }
.path span { font-weight: 600; }

.notes ul { margin-top: 12px; padding-left: 1.2em; }
.notes li { margin-bottom: 8px; }
.notes li::marker { color: var(--rubric); }

/* coming soon */
.soon-row { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.soon-row p + p { margin-top: 10px; }

.other { margin-top: 36px; }
.other h2 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; color: var(--cream); }
.other ul { list-style: none; padding: 0; margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; }
.other a { display: block; }

/* ---------- Footer ---------- */
.site-foot {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: .9375rem;
  color: var(--cream-soft);
  border-top: 2px solid rgba(0, 0, 0, .35);
}
.site-foot a { color: var(--cream); text-underline-offset: 3px; }

/* ---------- Narrow screens ---------- */
@media (max-width: 640px) {
  .hero { min-height: max(640px, 100svh); }
  .doors { gap: 14px 6px; }
  .door { width: 104px; }
  .sign-name { font-size: 1.125rem; }
  .desk-head { grid-template-areas: "title candle" "intro intro"; gap: 4px 8px; }
  .howto { padding: 16px 18px 18px; }
  .book { padding: calc(var(--p) * 3); }
  .hc-hud { padding: 10px 14px 8px; }
  .hc-log { height: 62vh; padding: 16px 16px 8px; font-size: 1.08rem; }
  .hc-panel { padding: 14px 16px 18px; }
  .hc-choices { grid-template-columns: 1fr; padding: 12px 14px 14px; }
  .hc-tools { padding: 8px 14px 10px; gap: 2px 14px; }
  .hc-grid { grid-template-columns: repeat(2, auto 2.4em); }
  .fields { grid-template-columns: 1fr; }
  .status-row { gap: 14px; }
  .soon-row { grid-template-columns: 1fr; gap: 14px; }
  .fill { grid-template-columns: 1fr; gap: 0; }
  .fill dd + dt { margin-top: 6px; }
}
@media (max-width: 359px) {
  .desk-head canvas { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .door canvas, .hc-bar-t i { transition: none; }
}
