:root {
  --bg: #f6f3ee;
  --text: #1c1917;
  --muted: #57534e;
  --link: #1d4ed8;
  --border: #e7e5e4;
  --card: #ffffff;
  --btn: #1c1917;
  --btn-text: #fafaf9;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0a09;
    --text: #fafaf9;
    --muted: #a8a29e;
    --link: #93c5fd;
    --border: #292524;
    --card: #1c1917;
    --btn: #fafaf9;
    --btn-text: #1c1917;
  }
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

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

.wordmark {
  font-family: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: inherit;
}

/* Temporary home */

.home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 32px;
  text-align: center;
}

.home .wordmark {
  font-size: clamp(2.4rem, 8vw, 3.4rem);
  margin: 0 0 12px;
}

.home .tagline {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 22rem;
}

.store-btn {
  display: inline-block;
  background: var(--btn);
  color: var(--btn-text);
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
}

.store-btn:hover {
  opacity: 0.88;
}

.home-legal {
  display: flex;
  gap: 8px 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 28px 0 0;
}

.home-legal a {
  font-weight: 600;
  text-decoration: none;
}

.home-legal a:hover {
  text-decoration: underline;
}

.home-foot {
  margin-top: 48px;
  font-size: 0.85rem;
  color: var(--muted);
}

.home-foot a {
  color: inherit;
}

/* Legal articles */

.legal {
  max-width: 40rem;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.legal-nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.legal-nav .wordmark {
  font-size: 1.15rem;
}

.legal-nav a {
  text-decoration: none;
  font-weight: 600;
}

.legal-nav a:hover {
  text-decoration: underline;
}

.legal h1 {
  font-family: ui-serif, "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 8px;
}

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

.legal h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.6rem;
}

.legal p,
.legal li {
  color: var(--text);
}

.legal ul {
  padding-left: 1.2rem;
}

.legal li {
  margin: 0.35rem 0;
}

.legal .muted {
  color: var(--muted);
  font-size: 0.92rem;
}
