/* SELF-HOSTED FONTS (2026-09-30). Loading them from fonts.googleapis.com sends every
   visitor's IP address to Google without consent -- LG München I, 20.01.2022, 3 O 17493/20
   (€100 damages per visitor). Built from the app's own @expo-google-fonts TTFs. */
@font-face{font-family:'DM Sans';font-weight:400;font-style:normal;font-display:swap;src:url('/fonts/dmsans-400.woff2') format('woff2')}
@font-face{font-family:'DM Sans';font-weight:500;font-style:normal;font-display:swap;src:url('/fonts/dmsans-500.woff2') format('woff2')}
@font-face{font-family:'DM Sans';font-weight:600;font-style:normal;font-display:swap;src:url('/fonts/dmsans-700.woff2') format('woff2')}
@font-face{font-family:'DM Sans';font-weight:700;font-style:normal;font-display:swap;src:url('/fonts/dmsans-700.woff2') format('woff2')}
@font-face{font-family:'Syne';font-weight:600;font-style:normal;font-display:swap;src:url('/fonts/syne-600.woff2') format('woff2')}
@font-face{font-family:'Syne';font-weight:700;font-style:normal;font-display:swap;src:url('/fonts/syne-700.woff2') format('woff2')}
@font-face{font-family:'Syne';font-weight:800;font-style:normal;font-display:swap;src:url('/fonts/syne-800.woff2') format('woff2')}

/* PokeSense legal site — the app's own colours and type, on a page built to be read.
   Dark only, like the app: ThemeContext returns darkTheme unconditionally. */
:root {
  --bg: #080808;
  --surface: #111111;
  --border: rgba(255, 255, 255, 0.08);
  --accent: #C9A227;
  --text: #FFFFFF;
  --body: #DDDDDD;   /* 15.9:1 on --bg */
  --muted: #999999;  /*  7.3:1 on --bg */
  /* ONE measure for the bar, the text and the footer. It was 68ch, which looks
     like the same width in three places and is not: ch is relative to the
     element's own font size, so the 14px footer came out visibly narrower than
     the 17px body and nothing lined up. */
  --measure: 640px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

/* Nav. Floated off the edges rather than clamped to them, and it scrolls away
   instead of covering the text someone is trying to read. */
.bar {
  padding: 20px 16px 0;
}

.bar nav {
  max-width: var(--measure);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.bar .here {
  color: var(--text);
  font-weight: 600;
}

.bar .brand {
  font-family: 'Syne', system-ui, sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--accent);
  letter-spacing: -0.01em;
  text-decoration: none;
  margin-right: auto;   /* the wordmark left, the pages right */
}

.bar .brand:hover { color: var(--accent); }

.bar a {
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms ease;
}

.bar a:hover { color: var(--text); }

main {
  max-width: var(--measure);   /* ~70 characters a line at 17px */
  margin: 0 auto;
  padding: 48px 20px 24px;
}

h1 {
  font-family: 'Syne', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 6vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 8px;
}

h2 {
  font-family: 'Syne', system-ui, sans-serif;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.3;
  color: var(--text);
  margin: 0 0 10px;
}

.updated, .lede { color: var(--muted); margin: 0 0 40px; }
.lede { font-size: 19px; color: var(--body); }

section { margin: 0 0 40px; }
section p { margin: 0 0 14px; }
section p:last-child { margin-bottom: 0; }

a { color: var(--accent); }
a:hover { color: var(--text); }

/* Keyboard users get the same signal a mouse user gets from :hover. */
a:focus-visible, .card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Home */
.home .cards {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin: 0 0 48px;
}

@media (min-width: 640px) {
  .home .cards { grid-template-columns: 1fr 1fr; }
}

.card {
  display: block;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: var(--body);
  cursor: pointer;
  /* Colour, not transform: a card that grows on hover shoves the grid around. */
  transition: border-color 180ms ease, background 180ms ease;
}

.card:hover { border-color: rgba(201, 162, 39, 0.32); background: #151515; }
.card h2 { margin-bottom: 6px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

footer {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 32px 20px 64px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

footer p { margin: 0 0 12px; }
.fine { font-size: 13px; line-height: 1.6; }

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