:root {
  --parchment: #f4ecd8;
  --ink: #2a1f17;
  --ink-muted: #6b5d4f;
  --rule: #d8cdb4;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(42, 31, 23, 0.35);
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: var(--ink); }

/* ---------- Splash ---------- */

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

.splash .wordmark {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(48px, 9vw, 88px);
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  color: var(--ink);
}

.splash .tagline {
  font-size: 20px;
  color: var(--ink-muted);
  margin: 0 0 96px;
}

.splash .footer-links {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 14px;
  color: var(--ink-muted);
}
.splash .footer-links a { color: var(--ink-muted); }
.splash .footer-links .sep { opacity: 0.5; }

/* ---------- Legal pages ---------- */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.legal-header {
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}

.legal-header .back {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
}
.legal-header .back::before {
  content: "← ";
  color: var(--ink-muted);
}

.legal h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: 38px;
  line-height: 1.2;
  margin: 0 0 24px;
}
.legal h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: 26px;
  line-height: 1.3;
  margin: 56px 0 16px;
}
.legal h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.4;
  margin: 32px 0 12px;
}

.legal p, .legal li { font-size: 17px; line-height: 1.7; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal strong { font-weight: 700; }
.legal hr { border: none; border-top: 1px solid var(--rule); margin: 48px 0; }
.legal code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(42, 31, 23, 0.06);
  padding: 1px 6px;
  border-radius: 3px;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  font-size: 16px;
  border: 1px solid var(--rule);
}
.legal thead th {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
  padding: 12px 16px;
  color: var(--ink-muted);
  background: rgba(42, 31, 23, 0.05);
  border-bottom: 1.5px solid var(--ink);
  border-right: 1px solid var(--rule);
  vertical-align: bottom;
}
.legal thead th:last-child {
  border-right: none;
}
.legal tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  vertical-align: top;
  line-height: 1.55;
}
.legal tbody td:last-child {
  border-right: none;
}
.legal tbody tr:last-child td {
  border-bottom: none;
}
.legal tbody td:first-child {
  font-weight: 600;
  color: var(--ink);
}

.legal-footer {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: var(--ink-muted);
}
.legal-footer a { color: var(--ink-muted); }
.legal-footer .sep { opacity: 0.5; }
