@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:wght@600;700&display=swap');

:root {
  --bg: #fbf7f0;
  --card: #ffffff;
  --border: #e8dfd0;
  --text: #1c1917;
  --muted: #57534e;
  --crust: #c4763a;
  --sage: #5f7a5e;
  --max: 960px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'DM Sans', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--crust); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2 { font-family: 'Fraunces', Georgia, serif; font-weight: 700; letter-spacing: -0.02em; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 247, 240, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 0; }
.logo { font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.35rem; color: var(--text); }
.nav-links { display: flex; gap: 1.25rem; font-size: 0.95rem; font-weight: 500; }
.nav-cta {
  background: var(--crust); color: #fff !important; padding: 0.45rem 0.9rem;
  border-radius: 999px; text-decoration: none !important;
}

.hero { padding: 4rem 0 3rem; text-align: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 1rem; max-width: 14ch; margin-inline: auto; }
.hero p { color: var(--muted); font-size: 1.125rem; max-width: 42ch; margin: 0 auto 1.5rem; }
.hero-note { font-size: 0.9rem; color: var(--sage); font-weight: 600; }

.page-hero { padding: 3rem 0 1.5rem; }
.page-hero h1 { margin: 0 0 0.5rem; font-size: 2rem; }
.page-hero p { color: var(--muted); margin: 0; }

.prose { max-width: 680px; margin: 0 auto 4rem; }
.prose h2 { font-size: 1.2rem; margin: 2rem 0 0.75rem; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.2rem; }
.prose code { font-size: 0.85em; background: #fff; padding: 0.1em 0.35em; border-radius: 4px; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
}
