:root {
  --bg: #f6f3ec;
  --surface: #fffdf8;
  --text: #1c2321;
  --muted: #5d6763;
  --line: #ddd6c8;
  --accent: #1f6f5c;
  --accent-text: #ffffff;
  --max: 68rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121615;
    --surface: #1a201e;
    --text: #ecebe4;
    --muted: #a2aba6;
    --line: #2b3431;
    --accent: #6fcfb4;
    --accent-text: #0e1513;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Keyboard users: skip straight to the content, and always see where focus is. */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
}
.skip-link:focus { top: 0.75rem; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
h1:focus { outline: none; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.site-header,
main,
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

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

.mark {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--accent);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

nav a:hover,
nav a:focus-visible { color: var(--text); }

.hero {
  padding: clamp(3rem, 10vw, 7rem) 0 clamp(3rem, 8vw, 5rem);
  max-width: 44rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 1.25rem;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 7vw, 4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

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

.button {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
}

.button:hover,
.button:focus-visible { filter: brightness(1.08); }

.band {
  padding: 2.75rem 0;
  border-top: 1px solid var(--line);
}

.band > p { max-width: 40rem; color: var(--muted); margin: 0; }

h2 {
  margin: 0 0 1rem;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 600;
}

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

.cards li {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface);
}

.cards h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.cards p { margin: 0; color: var(--muted); font-size: 0.975rem; }

.site-footer {
  padding-top: 2rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p { margin: 0; }

.band > p + p { margin-top: 1rem; }

.cards-two { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }

.tag {
  margin: 0 0 0.6rem !important;
  color: var(--accent) !important;
  font-size: 0.8rem !important;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.soon {
  display: inline-block;
  margin-top: 1rem !important;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem !important;
}

.steps { counter-reset: step; }
.steps li { counter-increment: step; }
.steps h3::before {
  content: counter(step) ". ";
  color: var(--accent);
}

.notice {
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  color: var(--text) !important;
}

/* Help and documentation pages */
.doc h3 { margin: 1.75rem 0 0.35rem; font-size: 1.1rem; }
.doc .band h3 + p { margin: 0; max-width: 40rem; color: var(--muted); }
.doc .hero { padding-bottom: 2.5rem; }
.doc .hero .notice { max-width: 40rem; margin: 0; }
.guide { max-width: 40rem; margin: 0; padding-left: 1.4rem; color: var(--muted); }
.guide li { margin-bottom: 0.7rem; }
.guide strong { color: var(--text); }
.site-footer a { color: var(--accent); }

/* Legal pages */
.legal .band { padding: 1.75rem 0; }
.legal .band p { max-width: 42rem; }
.legal .band p + p, .legal .band ul + p { margin-top: 0.8rem; }
.legal .band ul { max-width: 42rem; margin: 0.6rem 0 0; padding-left: 1.3rem; color: var(--muted); }
.legal .band li { margin-bottom: 0.4rem; }
.legal .band strong { color: var(--text); }
.legal a { color: var(--accent); }
.legal .lede { font-size: 1rem; margin-bottom: 1.25rem; }
