/* Cozy Compute site: one stylesheet, no external loads (the privacy policy names Supabase and Apple as the only third parties).
   Five colors, light and dark, from the game's own palette (Pal in App/PlayView.swift: bg, surface, ink, muted, accent). */
:root {
  color-scheme: light dark;
  --bg: #F4EEE4; --surface: #FFFCF6; --ink: #2C2621; --muted: #6B5F52; --accent: #BC5532;
  --rule: color-mix(in srgb, var(--muted) 35%, transparent);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1D1A17; --surface: #2A2622; --ink: #F4ECE0; --muted: #AB9F90; --accent: #E58A68; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-wrap: break-word; }

/* One column, 16px side padding */
nav, main { max-width: 40rem; margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
main { padding-top: 1.5rem; padding-bottom: 3rem; }

header { background: var(--surface); border-bottom: 1px solid var(--rule); }
nav ul { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin: 0; padding: 0; list-style: none; }
nav a { display: block; padding: .75rem 0 .5rem; border-bottom: 3px solid transparent; color: var(--ink); font-weight: 600; text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { border-bottom-color: var(--accent); }

h1, h2 { font-family: ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.2; }
h1 { margin: 0 0 1rem; font-size: 2rem; }
h2 { margin: 2rem 0 .5rem; font-size: 1.35rem; }
p, ul, address { margin: 0 0 1rem; }
ul { padding-left: 1.25rem; }
li { margin: .25rem 0; }
li > ul { margin: .25rem 0; }
address { font-style: normal; }
.meta { color: var(--muted); }
.mascot { display: block; max-width: 100%; height: auto; margin: 0 auto 1.5rem; }

/* Links keep the ink color (the accent is under 4.5:1 on the light background) and show the accent as the underline */
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: .15em; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .25em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
