:root {
  color-scheme: dark;
  --bg: #1c1410;
  --card: #2a1d16;
  --text: #f6efe4;
  --muted: #c4b2a1;
  --line: #4a3428;
  --inn: #2f6b45;
  --gui: #a33b24;
  --hint: #e08a2c;
  --focus: #f0a04a;
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f1e8;
  --card: #fffaf3;
  --text: #2a1c14;
  --muted: #6d5848;
  --line: #e4d5c4;
  --inn: #2f6b45;
  --gui: #a33b24;
  --hint: #9a4e12;
  --focus: #9a4e12;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 Georgia, "Iowan Old Style", Palatino, serif;
}
a { color: inherit; }
.wrap { max-width: 40rem; margin: 0 auto; padding: 1rem 1rem 3rem; }
.top { display: flex; justify-content: space-between; gap: 0.75rem; align-items: baseline; }
.brand { font-weight: 700; letter-spacing: 0.04em; }
nav { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0.5rem 0 1rem; }
nav a { color: var(--muted); }
h1 { font-size: 1.6rem; line-height: 1.2; margin: 0.2rem 0; }
h2 { font-size: 1.05rem; margin: 0 0 0.4rem; }
.note, .status { color: var(--muted); min-height: 1.4em; }
.bench { margin: 0 0 0.8rem; }
.bench-label { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.seats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.45rem; }
.seat {
  min-height: 4.4rem;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 0.6rem;
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  font: inherit;
  touch-action: manipulation;
}
.seat[data-mark="0"] { background: var(--inn); color: #fff; }
.seat[data-mark="1"] { background: var(--gui); color: #fff; }
.seat.hinted { outline: 3px solid var(--hint); }
.seat:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
.seat-name { font-weight: 700; }
.seat-mark { font-size: 0.78rem; text-transform: lowercase; }
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0; }
button, .linkish {
  font: inherit;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  touch-action: manipulation;
}
.clues { display: grid; gap: 0.45rem; }
.clue { background: var(--card); border: 1px solid var(--line); border-radius: 0.6rem; padding: 0.55rem 0.7rem; }
.clue h3 { margin: 0; font-size: 0.95rem; }
.clue p { margin: 0.2rem 0 0; }
.clue.sealed { color: var(--muted); }
.result { margin-top: 1rem; background: var(--card); border: 1px solid var(--line); border-radius: 0.8rem; padding: 0.8rem; }
pre {
  white-space: pre-wrap;
  font: 1rem/1.35 ui-monospace, monospace;
  background: transparent;
  color: inherit;
}
.prose p, .prose li { color: var(--text); }
.prose h2 { margin-top: 1.2rem; }
footer { margin-top: 2rem; color: var(--muted); font-size: 0.85rem; }
.archive-list { padding-left: 1.1rem; }
.archive-list a { color: var(--text); }
.brand { color: #e07a3d; }
