:root {
  color-scheme: light;
  --bg: #f8f5ef;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #4b5563;
  --accent: #7c2d12;
  --accent-2: #c2410c;
  --border: #eadfce;
  --shadow: 0 18px 60px rgba(31, 41, 55, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #fffaf4, var(--bg));
  color: var(--text);
  line-height: 1.6;
}

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

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.site-header {
  border-bottom: 1px solid rgba(124, 45, 18, 0.08);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.nav nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero {
  padding-top: 4.5rem;
  padding-bottom: 3rem;
}

.section {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.stack > * + * {
  margin-top: 1.5rem;
}

.grid.three-up {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--accent-2);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 0.95;
  margin: 0 0 1rem;
}

h2 {
  margin-top: 0;
  line-height: 1.1;
}

.lede {
  font-size: 1.15rem;
  max-width: 44rem;
  color: var(--muted);
}

.actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.button {
  display: inline-block;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--border);
}

.button.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.cta-card {
  margin-bottom: 2rem;
}

.steps {
  margin: 0;
  padding-left: 1.25rem;
}

.steps li + li {
  margin-top: 0.75rem;
}

.steps.compact li + li {
  margin-top: 0.4rem;
}

.archive-item .meta,
.letter-page .meta {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  color: var(--muted);
}

.archive-toolbar {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.text-link {
  font-weight: 700;
  text-decoration: none;
}

.letter-body {
  max-width: 46rem;
}

.letter-body p {
  margin-top: 0;
  margin-bottom: 1rem;
}

.site-footer {
  padding-top: 1rem;
  padding-bottom: 4rem;
  color: var(--muted);
}

.footer-links a {
  text-decoration: none;
}

@media (max-width: 820px) {
  .grid.three-up,
  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav {
    align-items: flex-start;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
    flex-direction: column;
  }

  .hero {
    padding-top: 3rem;
  }

  .card {
    padding: 1.25rem;
    border-radius: 18px;
  }
}
