:root {
  --bg: #f5f0f2;
  --paper: rgba(255,255,255,0.93);
  --ink: #2f2027;
  --muted: #6e5863;
  --line: rgba(24, 30, 28, 0.12);
  --accent: #7a3147;
  --accent-soft: #ecd9df;
  --warm: #35506d;
  --shadow: 0 18px 44px rgba(24, 30, 28, 0.08);
  --radius-lg: 26px;
  --radius-md: 18px;
  --max: 1140px;
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.78), transparent 34%),
    radial-gradient(circle at bottom right, rgba(0,0,0,0.04), transparent 28%),
    var(--bg);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.68;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  color: var(--ink);
}

.brand-mark {
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.brand-note {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.nav { display: flex; flex-wrap: wrap; gap: 0.9rem 1.2rem; }
.nav a { color: var(--ink); }

.hero,
.page-hero,
.article-hero { padding: 4rem 0 1.5rem; }

.hero-grid,
.split-grid,
.card-grid,
.footer-grid,
.article-shell {
  display: grid;
  gap: 1rem;
}

.hero-grid { grid-template-columns: 1.25fr 0.95fr; }
.split-grid { grid-template-columns: 1.05fr 0.95fr; }
.card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.footer-grid { grid-template-columns: 1.2fr 0.8fr 0.8fr; }
.article-shell { grid-template-columns: minmax(0,1.45fr) minmax(250px,0.75fr); }

.panel,
.card,
.prose,
.aside-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.35rem;
}

.eyebrow,
.caps {
  display: inline-flex;
  padding: 0.35rem 0.74rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(0,0,0,0.06);
  color: var(--accent);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.caps {
  padding: 0;
  background: transparent;
  border: 0;
}

h1,
h2,
h3 {
  font-family: Georgia, serif;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero h1,
.page-hero h1,
.article-hero h1 {
  margin: 0.8rem 0 1rem;
  font-size: clamp(2.45rem, 6vw, 4.8rem);
  max-width: 12ch;
}

.lede,
p,
li,
.meta,
.breadcrumbs { color: var(--muted); }

.button-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.4rem; }
.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
}

.button { background: var(--accent); color: #fff; }
.button-secondary {
  color: var(--ink);
  border: 1px solid var(--line);
}

.button:hover,
.button-secondary:hover { text-decoration: none; }

.checklist,
.clean-list { padding-left: 1.2rem; }

.quote,
.note-box {
  margin: 1.2rem 0;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
}

.quote {
  background: rgba(255,255,255,0.74);
  border-left: 4px solid var(--warm);
}

.note-box {
  background: var(--accent-soft);
  border: 1px solid rgba(0,0,0,0.08);
}

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 920px) {
  .hero-grid,
  .split-grid,
  .card-grid,
  .footer-grid,
  .article-shell { grid-template-columns: 1fr; }

  .header-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .container { width: min(var(--max), calc(100% - 1.2rem)); }
  .hero h1, .page-hero h1, .article-hero h1 { max-width: none; }
}
