:root {
  color-scheme: light dark;
  --bg: #0b0b0c;
  --fg: #f5f5f5;
  --muted: #9a9a9a;
  --link: #8ab4f8;
  --border: #232326;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  line-height: 1.6;
}

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

/* Splash / coming-soon layout — opt-in via class, not the body default,
   so article pages keep normal document flow. */
body.splash {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}

body.splash main {
  max-width: 32rem;
}

body.splash h1 {
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

body.splash p {
  font-size: 1rem;
  color: var(--muted);
  margin: 0;
}

/* Site nav — used on both the splash page and article pages */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.site-nav a {
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
}

.site-nav .nav-links a {
  color: var(--muted);
  font-weight: 400;
  margin-left: 1.25rem;
}

.site-nav .nav-links a:hover {
  color: var(--fg);
}

/* Article / guide pages */
.page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.page h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 1.5rem;
}

.page h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 2.25rem 0 0.75rem;
}

.page p {
  margin: 0 0 1.1rem;
}

.page ul,
.page ol {
  margin: 0 0 1.1rem;
  padding-left: 1.4rem;
}

.page li {
  margin-bottom: 0.4rem;
}

.page table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.page th,
.page td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
}

/* Guides hub */
.guide-group h2 {
  font-size: 1.1rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 2rem 0 0.75rem;
}

.guide-list {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
}

.guide-list li {
  margin-bottom: 1rem;
}

.guide-list a {
  font-weight: 600;
  text-decoration: none;
}

.guide-list a:hover {
  text-decoration: underline;
}

.guide-list .desc {
  color: var(--muted);
  margin-top: 0.15rem;
}

/* CTA footer block, used at the bottom of every article/hub page */
.site-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
}
