:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --text: #1d1f23;
  --muted: #5c6370;
  --border: #e4e2dd;
  --accent: #b3261e;
  --touch-red: #d93025;
  --touch-green: #1e8e3e;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171a;
    --surface: #1d2024;
    --text: #e8e6e3;
    --muted: #a3a9b3;
    --border: #2e3238;
    --accent: #f28b82;
    --touch-red: #f28b82;
    --touch-green: #81c995;
  }
}

* { box-sizing: border-box; }

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

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

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px;
}

header.site {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

/* Two scoring lights: a double touch. */
.lights { display: inline-flex; gap: 4px; }
.lights span { width: 12px; height: 12px; border-radius: 50%; }
.lights .red { background: var(--touch-red); }
.lights .green { background: var(--touch-green); }

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 16px;
  font-size: 15px;
}
nav a:first-child { margin-left: 0; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); }

main { padding: 40px 0 56px; }

h1 { font-size: 30px; line-height: 1.25; margin: 0 0 8px; }
h2 { font-size: 21px; margin: 36px 0 8px; }
h3 { font-size: 17px; margin: 24px 0 4px; }

p, ul { margin: 0 0 14px; }
ul { padding-left: 22px; }
li { margin-bottom: 6px; }

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

.lede { font-size: 19px; color: var(--muted); margin-bottom: 28px; }
.meta { color: var(--muted); font-size: 15px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 20px 0;
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

footer.site {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  padding: 20px 0 32px;
}
footer.site a { color: var(--muted); }
