:root {
  color-scheme: light;
  --bg: #f6f4ee;
  --panel: #ffffff;
  --text: #15161a;
  --muted: #5e6472;
  --line: #d8d2c3;
  --accent: #8a5a00;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(138, 90, 0, 0.08), transparent 24rem),
    linear-gradient(180deg, #fffdf8 0%, var(--bg) 100%);
}

a { color: inherit; }

.site-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
}

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

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  color: var(--muted);
}

.site-nav a,
.card {
  text-decoration: none;
}

.site-main {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.hero,
.page {
  display: grid;
  gap: 1rem;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.page-header h1,
.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1.05;
}

.lede {
  max-width: 70ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.section-grid,
.child-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.card {
  display: grid;
  gap: 0.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(17, 17, 18, 0.04);
}

.card h2 {
  margin: 0;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.prose {
  max-width: 75ch;
}

.prose :is(h2, h3, h4) {
  margin-top: 2rem;
}

.prose p,
.prose ul,
.prose ol {
  line-height: 1.75;
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
  }
}
