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

:root {
  --black:   #0d0d0d;
  --white:   #f5f4f0;
  --ink:     #1a1a1a;
  --muted:   #6b6b6b;
  --accent:  #2a5cff;
  --border:  #e0dfd9;

  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-serif: "Georgia", "Times New Roman", serif;

  --max-w: 720px;
  --header-h: 60px;
}

html {
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a:hover {
  text-decoration: underline;
}

/* ── Header ── */

.site-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 100;
}

.wordmark {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
  text-decoration: none;
}

.wordmark:hover {
  text-decoration: none;
  opacity: 0.75;
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

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

/* ── Hero (index) ── */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem;
  gap: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--black);
}

.tagline {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 38ch;
}

.cta {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.65rem 1.6rem;
  background: var(--black);
  color: var(--white);
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: opacity 0.15s;
  text-decoration: none;
}

.cta:hover {
  opacity: 0.8;
  text-decoration: none;
}

/* ── Content pages (about, terms, etc.) ── */

.content-page {
  flex: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.page-hero {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--black);
}

.prose h2 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--black);
  margin-top: 2.5rem;
  margin-bottom: 0.65rem;
}

.prose p {
  color: var(--ink);
  margin-bottom: 1rem;
  max-width: 68ch;
}

.prose ul {
  margin: 0 0 1rem 1.4em;
  max-width: 68ch;
}

.prose li {
  color: var(--ink);
  margin-bottom: 0.4rem;
}

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

/* ── Callout (used on legal pages) ── */

.callout {
  background: #f0f0ec;
  border-left: 3px solid var(--black);
  padding: 1rem 1.2rem;
  margin: 1.8rem 0;
  border-radius: 0 4px 4px 0;
  max-width: 68ch;
}

.callout p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink);
}

/* ── Footer ── */

.site-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.site-footer p {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── Responsive ── */

@media (max-width: 480px) {
  .site-header {
    padding: 0 1.25rem;
  }

  .content-page {
    padding: 2.5rem 1.25rem 4rem;
  }
}
