:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --text: #23201d;
  --muted: #6b645d;
  --rule: #e6e1da;
  --accent: #b4643c;
  --accent-soft: #f3e9e2;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171513;
    --surface: #1f1c1a;
    --text: #eae5df;
    --muted: #a29a91;
    --rule: #322d29;
    --accent: #e0906a;
    --accent-soft: #2a221d;
  }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

header.site {
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

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

.dial {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  border: 2px solid var(--accent);
  position: relative;
  flex: none;
}

.dial::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 0.32rem;
  background: var(--accent);
  transform-origin: bottom center;
  transform: translate(-50%, -100%) rotate(48deg);
  border-radius: 1px;
}

nav.site {
  margin-left: auto;
  display: flex;
  gap: 1.25rem;
  font-size: 0.94rem;
}

nav.site a { color: var(--muted); text-decoration: none; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--accent); }

h1 {
  font-size: 1.95rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

h2:first-of-type { border-top: none; padding-top: 0; }

p { margin: 0 0 1.1rem; }

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

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.updated {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 2.25rem;
}

ul { margin: 0 0 1.1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }

.q {
  font-weight: 600;
  margin: 1.75rem 0 0.4rem;
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 0.7rem;
  padding: 1.25rem 1.35rem;
  text-decoration: none;
  color: inherit;
}

.card:hover { border-color: var(--accent); }

.card strong { display: block; font-size: 1.02rem; margin-bottom: 0.2rem; }
.card span { color: var(--muted); font-size: 0.94rem; line-height: 1.5; display: block; }

footer.site {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.88rem;
}

footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--accent); }
