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

:root {
  --bg:        #faf9f7;
  --surface:   #ffffff;
  --border:    #e5e1dc;
  --text:      #1c1917;
  --muted:     #78716c;
  --faint:     #a8a29e;
  --accent:    #1e3a5f;
  --accent-h:  #162d4a;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

/* ── Layout ─────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

main {
  flex: 1;
}

/* ── Site header ─────────────────────────────────────────────── */

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

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

.site-header .wordmark {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.site-header .wordmark:hover {
  color: var(--accent);
}

.back-link {
  font-size: 0.8125rem;
  color: var(--muted);
  text-decoration: none;
}

.back-link:hover {
  color: var(--text);
}

/* ── Footer ─────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 80px;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--faint);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

/* ── Homepage ────────────────────────────────────────────────── */

.hero {
  padding: 72px 0 60px;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.7;
}

.hero-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

.about-section p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 560px;
}

.about-section p + p {
  margin-top: 16px;
}

.beta-notice {
  margin-top: 48px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.beta-notice p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

.beta-notice strong {
  color: var(--text);
  font-weight: 600;
}

/* ── Legal pages ─────────────────────────────────────────────── */

.legal-header {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.legal-header h1 {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
}

.legal-date {
  font-size: 0.875rem;
  color: var(--faint);
}

.legal-body {
  padding-bottom: 80px;
}

.legal-body p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 16px;
  max-width: 620px;
}

.legal-body h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 40px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.legal-body h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}

.legal-body ul {
  margin: 8px 0 16px 20px;
}

.legal-body li {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 6px;
}

.legal-body strong {
  color: var(--text);
  font-weight: 600;
}

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

.legal-intro {
  border-left: 3px solid var(--border);
  padding-left: 16px;
  margin-bottom: 32px;
}

.legal-intro p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.7;
}

.legal-contact {
  margin-top: 40px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.legal-contact p {
  margin-bottom: 8px;
}

.legal-contact p:last-child {
  margin-bottom: 0;
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 600px) {
  .hero {
    padding: 48px 0 40px;
  }

  .site-footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
}
