:root {
  --bg: #E9DCC3;
  --card: #F5EDDA;
  --text: #241708;
  --subtext: #7A6547;
  --accent: #4A2F1F;
  --accent-text: #F5EDDA;
  --border: #C7AF88;
  --chip-bg: #E2CFA9;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C140D;
    --card: #241C12;
    --text: #F0E6D4;
    --subtext: #B3A183;
    --accent: #D6A45C;
    --accent-text: #1C140D;
    --border: #3D2F1E;
    --chip-bg: #3A2C1A;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 18px;
  line-height: 1.6;
}

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, .wordmark {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

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

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.wordmark {
  font-size: 22px;
}

.site-header nav a {
  color: var(--text);
  text-decoration: none;
  margin-left: 24px;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
}

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

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

.hero h1 {
  font-size: 48px;
  max-width: 11em;
}

.hero .lede {
  margin-top: 24px;
  max-width: 40em;
  color: var(--subtext);
  font-size: 20px;
}

.button {
  display: inline-block;
  margin-top: 32px;
  padding: 14px 28px;
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  border-radius: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 15px;
}

.button:hover {
  opacity: 0.9;
}

.features {
  padding: 8px 0 72px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
}

.card .label {
  display: inline-block;
  background: var(--chip-bg);
  color: var(--subtext);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.card h3 {
  font-size: 21px;
  margin-bottom: 8px;
}

.card p {
  margin: 0;
  color: var(--subtext);
  font-size: 16px;
}

.cta {
  border-top: 1px solid var(--border);
  padding: 64px 0;
  text-align: center;
}

.cta h2 {
  font-size: 30px;
}

.cta p {
  color: var(--subtext);
  margin-top: 12px;
}

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

.site-footer span {
  color: var(--subtext);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-row a {
  color: var(--subtext);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  text-decoration: none;
}

.footer-row a:hover {
  color: var(--accent);
}

.wordmark {
  text-decoration: none;
  color: var(--text);
}

/* Policy pages */

.policy {
  padding: 56px 0 72px;
}

.policy h1 {
  font-size: 38px;
}

.policy .effective-date {
  color: var(--subtext);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  margin-top: 8px;
}

.policy .draft-note {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  color: var(--subtext);
  font-size: 15px;
  margin-top: 20px;
}

.policy h2 {
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 12px;
}

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

.policy ul {
  padding-left: 22px;
}

.policy li {
  margin-bottom: 10px;
}

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

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 720px;
}

th, td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: var(--chip-bg);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--subtext);
}

tr:last-child td {
  border-bottom: none;
}

code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9em;
  background: var(--chip-bg);
  padding: 1px 5px;
  border-radius: 4px;
}

@media (max-width: 640px) {
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 34px; }
  .hero .lede { font-size: 18px; }
  .feature-grid { grid-template-columns: 1fr; }
}
