/* Studio chrome shared by every page: palette, type, header, footer, and long-form pages.
   Each game adds its own stylesheet on top (e.g. /rough-sands/rough-sands.css). */
:root {
  --paper: #FAF7F2; --ink: #1E1C19; --nose: #C8643B;
  --muted: #6B655C; --rule: #E6E0D6; --card: #F1EBE1;
  --accent: var(--nose);
  --display: 'Fraunces', Georgia, serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #1E1C19; --ink: #FAF7F2; --muted: #A49C90; --rule: #34302B; --card: #2A2620; }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body {
  font: 17px/1.6 var(--body);
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }

a { color: inherit; text-decoration-color: var(--nose); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--nose); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--nose); outline-offset: 4px; border-radius: 2px; }

/* Header: compact wordmark, then Games · About. */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.mark {
  font-family: var(--display); font-weight: 600; font-variation-settings: "SOFT" 100, "opsz" 72;
  font-size: 24px; line-height: 1; text-decoration: none; white-space: nowrap;
}
.mark img { width: 0.4em; margin: 0 0.09em; vertical-align: 0.06em; }
.site-header nav { display: flex; gap: 20px; font-size: 15px; }
.site-header nav a { text-decoration: none; }
.site-header nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--nose); }

/* Footer: links, contact, the one footer joke, copyright. */
.site-footer { margin-top: 64px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); }
.site-footer .wrap { padding-top: 24px; padding-bottom: 28px; text-align: center; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-bottom: 12px; }
.site-footer p { margin: 4px 0; }

/* Long-form pages: privacy, support, about. */
.doc { padding-top: 40px; }
.doc h1 { font: 600 clamp(36px, 8vw, 52px)/1.05 var(--display); font-variation-settings: "SOFT" 100, "opsz" 72; margin: 0 0 8px; }
.doc .updated { margin: 0 0 32px; color: var(--muted); font-size: 15px; }
.doc h2 { font: 600 22px/1.3 var(--display); font-variation-settings: "SOFT" 100, "opsz" 36; margin: 40px 0 8px; }
.doc p, .doc ul { margin: 0 0 14px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.callout { background: var(--card); border-left: 4px solid var(--accent); border-radius: 6px; padding: 16px 18px; margin: 0 0 28px; }
.callout p:last-child { margin-bottom: 0; }
details { border-bottom: 1px solid var(--rule); padding: 4px 0; }
details:first-of-type { border-top: 1px solid var(--rule); }
summary { cursor: pointer; padding: 12px 0; font-weight: 600; list-style-position: inside; }
summary:hover { color: var(--nose); }
details > div { padding: 0 0 12px; }
details > div p:last-child { margin-bottom: 0; }

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

/* Apple's official "Download on the App Store" badge, used as supplied. Apple asks for at least 40px tall and clear space around it. */
.app-badge { display: inline-block; padding: 4px; line-height: 0; border-radius: 10px; }
.app-badge img { display: block; height: 48px; width: auto; }
