/* Watif LLC — site styles. The palette is the boot splash's (watif/splash):
   a near-black blue room and a warm white light. Dark only, by design: the
   brand is the light in a dark room. Every text pair is WCAG AA or better. */

:root {
  color-scheme: dark;
  --bg: #0b0f14;
  --bg-deep: #070a0e;
  --surface: #141b24;
  --line: #2a3644;
  --text: #e8f0ff;
  --text-muted: #9fb4d8;
  --light: #fdffe8;          /* the splash's light: wordmark, links, focus */
  --gutter: 16px;
  --measure: 68ch;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  background-image: radial-gradient(120% 70% at 50% 0%, var(--surface) 0%, var(--bg) 55%, var(--bg-deep) 100%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--light); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--light); outline-offset: 3px; border-radius: 2px; }

img { max-width: 100%; height: auto; display: block; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: var(--gutter); top: -100px;
  background: var(--light); color: var(--bg-deep); padding: 8px 12px; border-radius: 6px;
}
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 var(--gutter); }

/* --- header ------------------------------------------------------------- */

.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; --wm-size: 1.35rem; --wm-track: 0.3em; }
.nav { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
.nav a { color: var(--text-muted); text-decoration: none; display: inline-block; padding: 10px 2px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--light); text-decoration: underline; }

/* --- content ------------------------------------------------------------ */

main { flex: 1; padding-bottom: 64px; }

h1, h2, h3 { line-height: 1.25; font-weight: 600; letter-spacing: 0.01em; }
h1 { font-size: clamp(2rem, 6vw, 2.75rem); margin: 0.4em 0 0.3em; }
h2 { font-size: 1.5rem; margin: 2.2em 0 0.6em; }
h3 { font-size: 1.2rem; margin: 1.6em 0 0.4em; }

p, ul { max-width: var(--measure); }
.muted { color: var(--text-muted); }
.lede { font-size: 1.25rem; color: var(--text-muted); max-width: 52ch; }

.hero { padding: 12vh 0 6vh; text-align: center; }
.hero .watif-wordmark { --wm-size: clamp(3rem, 14vw, 7.5rem); }
.hero .lede { margin: 2rem auto 0; }

.game-card {
  display: grid; grid-template-columns: 112px 1fr; gap: 20px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; max-width: 720px;
}
.game-card img { width: 112px; height: 112px; border-radius: 22px; }
.game-card h3 { margin: 0 0 0.2em; }
.game-card p { margin: 0.3em 0; }

.feature { border-radius: var(--radius); border: 1px solid var(--line); margin-top: 8px; }

.status {
  display: inline-block; margin: 0.4em 0 0; padding: 4px 12px; border: 1px solid var(--line);
  border-radius: 999px; font-size: 0.95rem; color: var(--text-muted);
}

dl.contact { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; }
dl.contact dt { color: var(--text-muted); }
dl.contact dd { margin: 0; }

.policy h1 { font-size: clamp(1.75rem, 5vw, 2.25rem); }
.policy li { margin: 0.4em 0; }

/* --- footer ------------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--line); padding: 24px 0 32px; color: var(--text-muted); font-size: 0.95rem; }
.site-footer p { margin: 0.3em 0; max-width: none; }

@media (max-width: 520px) {
  .game-card { grid-template-columns: 1fr; }
  dl.contact { grid-template-columns: 1fr; gap: 2px; }
  dl.contact dd { margin-bottom: 12px; }
}
