/* Patio del mediodía, from docs/design/system/tokens.json. No web fonts: the CSP has no font-src, so the design families
   are named first and render only where installed; the stacks fall back to system fonts. */
:root {
  --surface-ground: #f0efe7;
  --surface-card: #fbf7ee;
  --surface-ledge: #8f3e22;
  --surface-ledge-edge: #70301a;
  --on-ledge: #fbf7ee;
  --accent: #14506b;
  --accent-secondary: #8f3e22;
  --line-strong: #2b221a;
  --text-primary: #211c17;
  --ink: #211c17;
  --ink-muted: #4a4238;
  --danger-ink: #8a3418;
  --font-display: "Bricolage Grotesque", Onest, system-ui, sans-serif;
  --font-sans: Figtree, Onest, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--surface-ground);
  color: var(--text-primary);
  font: 500 16px/1.6 var(--font-sans);
}
header, footer { max-width: 800px; margin: 0 auto; padding: 24px 16px; color: var(--text-primary); }
header a { color: var(--text-primary); text-decoration: none; font: 800 1.6rem/1.2 var(--font-display); }
header a:hover { color: var(--accent); }
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  background: var(--surface-card);
  color: var(--ink);
  border: 2px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 2px 3px 0 rgb(33 28 23 / 45%);
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.25; }
h1 { font-size: 2rem; margin: 0 0 8px; }
h2 { font-size: 1.4rem; margin: 32px 0 8px; }
h3 { font-size: 1.15rem; margin: 20px 0 6px; }
a { color: var(--ink); text-decoration-color: var(--accent-secondary); text-underline-offset: 2px; }
a:hover { color: var(--danger-ink); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.meta { color: var(--ink-muted); margin: 0 0 24px; }
.draft {
  border: 2px dashed var(--danger-ink);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--danger-ink);
  font-weight: 700;
}
.stores { display: flex; flex-wrap: wrap; gap: 16px; padding: 0; list-style: none; }
.stores a {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--surface-ledge);
  color: var(--on-ledge);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--surface-ledge-edge);
}
.stores a:hover { background: var(--surface-ledge-edge); color: var(--on-ledge); }
footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
footer a { color: var(--text-primary); }
footer a:hover { color: var(--accent); }
/* Room invite page (/join/<CODE>): the code is the one thing to read. */
.room-code {
  display: inline-block;
  margin: 0 0 16px;
  padding: 12px 24px;
  border-radius: 8px;
  background: var(--surface-ledge);
  color: var(--on-ledge);
  border: 2px solid var(--surface-ledge-edge);
  font: 700 2.5rem/1.2 var(--font-sans);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.15em;
}
.copy {
  padding: 8px 16px;
  border-radius: 8px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: 700 1rem/1.4 var(--font-sans);
  cursor: pointer;
}
.copy:hover { color: var(--danger-ink); border-color: var(--danger-ink); }
.copy:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.copy-status { margin-left: 8px; color: var(--ink-muted); }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
