:root {
  --bg: #f7f1e8;
  --surface: #fffaf2;
  --text: #2b2118;
  --muted: #6b5b4b;
  --accent: #c2562f;
  --accent-2: #e0a03a;
  --forest: #2f5a3c;
  --forest-dark: #21402b;
  --line: #dccfba;
  --paper-dark: #eadfcb;
  --link: #9a3f1c;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  overflow-wrap: break-word;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .5em;
}

h2 { font-size: 1.5rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

a {
  color: var(--link);
  text-underline-offset: 3px;
  transition: color .2s ease, text-decoration-color .2s ease, text-underline-offset .2s ease;
}
a:hover {
  color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -80px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--text);
}
.skip-link:focus { top: 8px; }

.page {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 48px) 16px;
}

.play, .prose, .faq { scroll-margin-top: 16px; }

.prose, .faq {
  max-width: 760px;
  margin-top: 40px;
}
.prose:empty { display: none; }

.faq-item {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.faq-item h3 { margin-bottom: .25em; }
.faq-item p { margin: 0; color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .95rem;
}
.site-footer .page { padding-top: 24px; padding-bottom: 32px; }
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-bottom: 8px;
}
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-footer p { margin: 0; }

@media (max-width: 640px) {
  .page { padding: 16px 12px; }
  .prose, .faq { margin-top: 28px; }
  .faq-item { padding: 10px 0; }
  .site-footer .page { padding-top: 16px; padding-bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a { transition: none; }
}
