:root {
  --bg: #f7f1e8;
  --bg-alt: #efe6d9;
  --paper: #fffdf9;
  --ink: #2a231c;
  --ink-soft: #5c534b;
  --muted: #7a7168;
  --accent: #9a4f3c;
  --accent-dark: #7c3d2e;
  --accent-soft: #f3e4dc;
  --sage: #5f7260;
  --line: #e4d8cc;
  --shadow: 0 14px 40px rgba(42, 35, 28, 0.08);
  --radius: 18px;
  --header-h: 4.25rem;
  --font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-sans: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --max: 72rem;
  --prose: 42rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
h1, h2, h3, .wordmark, .logo-text {
  font-family: var(--font-serif);
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); margin: 0 0 0.6em; }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin: 1.8em 0 0.55em; }
h3 { font-size: 1.2rem; margin: 1.4em 0 0.4em; }
p { margin: 0 0 1.05em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.2em; }
li { margin: 0 0 0.45em; }
figure { margin: 1.75rem 0; }
figcaption {
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 0.55rem;
  line-height: 1.5;
}
figcaption a { color: var(--muted); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.8rem;
  z-index: 100;
  border-radius: 6px;
}
.skip-link:focus { top: 1rem; }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 241, 232, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.logo img, .logo svg { width: 2.1rem; height: 2.1rem; }
.logo-text {
  font-size: clamp(1.02rem, 2.4vw, 1.28rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.logo-text span { display: block; font-family: var(--font-sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 0.05rem; }

.nav-toggle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  background: var(--paper);
}
.site-nav ul {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.98rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }

/* Hero */
.hero-home {
  position: relative;
  min-height: min(78vh, 42rem);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}
.hero-home img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.hero-home .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(42,35,28,0.15) 0%, rgba(42,35,28,0.55) 55%, rgba(42,35,28,0.78) 100%);
}
.hero-home .hero-copy {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 7rem 0 3.2rem;
}
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  color: #f3e4dc;
}
.hero-home h1 { color: #fff; max-width: 16ch; }
.hero-home .lede {
  max-width: 38rem;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.92);
  margin-bottom: 1.4rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
  font-size: 1rem;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-on-light { background: var(--accent); color: #fff; }
.btn-outline { background: transparent; color: var(--accent-dark); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head p { color: var(--ink-soft); }

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
  gap: 1.4rem;
}
.post-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 18px 50px rgba(42,35,28,0.12); color: inherit; }
.post-card .thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-alt); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .card-body { padding: 1.15rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.card-kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.card-title { font-family: var(--font-serif); font-size: 1.22rem; margin: 0; }
.card-excerpt { color: var(--ink-soft); font-size: 1rem; margin: 0; flex: 1; }
.card-meta { font-size: 0.88rem; color: var(--muted); margin-top: 0.5rem; }

.intro-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.intro-band img {
  width: 100%;
  height: 100%;
  max-height: 26rem;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.kicker { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); margin-bottom: 0.5rem; }

/* Article */
.article-hero { position: relative; }
.article-hero img {
  width: 100%;
  height: min(68vh, 34rem);
  object-fit: cover;
  object-position: center 30%;
}
.article-hero .caption-bar {
  width: min(var(--prose), calc(100% - 2rem));
  margin: 0.7rem auto 0;
  font-size: 0.86rem;
  color: var(--muted);
}
.article-header { padding: 2.4rem 0 0.5rem; }
.article-header .meta { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.8rem; }
.article-body { padding-bottom: 3.5rem; }
.article-body .lede-graf {
  font-size: 1.28rem;
  line-height: 1.6;
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 500;
}

.tips {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.2rem 0.4rem;
  margin: 1.5rem 0;
}
.tips h3 { margin-top: 0; }
.callout {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.15rem;
  margin: 1.6rem 0;
}
.callout.urgent { background: #f8ece6; }
.callout h3 { margin-top: 0; }
.disclaimer {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  font-size: 0.98rem;
  color: var(--ink-soft);
  margin: 2.2rem 0 1.6rem;
}
.sources { margin-top: 2.2rem; padding-top: 0.4rem; }
.sources ol { padding-left: 1.3rem; }
.sources li { margin-bottom: 0.65rem; overflow-wrap: anywhere; }
.in-article img {
  width: 100%;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

/* Pages */
.page-hero {
  padding: 3.2rem 0 1rem;
}
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: start;
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; max-height: 32rem; object-fit: cover; }
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
}
.contact-card a.email {
  font-size: 1.25rem;
  font-weight: 650;
  text-decoration: none;
  color: var(--accent-dark);
  display: inline-block;
  margin: 0.4rem 0 1rem;
}
.contact-card a.email:hover { color: var(--accent); }

/* Footer */
.site-footer {
  background: #2a231c;
  color: #ebe3d8;
  padding: 3rem 0 1.6rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}
.site-footer a { color: #f3e4dc; }
.site-footer h2, .site-footer .logo-text { color: #fff; }
.site-footer .logo { margin-bottom: 0.8rem; }
.site-footer p { color: #cfc4b6; font-size: 0.98rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col h3 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c4a574;
  margin: 0.2rem 0 0.8rem;
}
.footer-col li { margin: 0 0 0.45rem; }
.footer-bottom {
  width: min(var(--max), calc(100% - 2rem));
  margin: 2rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.88rem;
  color: #b6aa9c;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  justify-content: space-between;
}
.privacy-note { max-width: 46rem; }

@media (max-width: 860px) {
  .intro-band, .split, .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle-label { display: inline-flex; }
  .site-nav {
    position: absolute;
    left: 0; right: 0;
    top: var(--header-h);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
    padding: 0.8rem 1rem 1rem;
  }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 0.7rem; }
  .hero-home { min-height: 32rem; }
  .hero-home .hero-copy { padding: 5.5rem 0 2.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .post-card { transition: none; }
}
