:root {
  --bg: #f6f4ef;
  --bg-muted: #e9e4da;
  --bg-deep: #405558;
  --surface: #ffffff;
  --text: #2b3739;
  --text-soft: #4c5a5d;
  --accent: #cc8e72;
  --accent-strong: #b97a5f;
  --border: #d5d0c6;

  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;

  --radius: 2px;
  --container: 1200px;
  --narrow: 900px;
  --prose: 860px;

  --display: clamp(2rem, 5.2vw, 4.6rem);
  --h1: clamp(1.8rem, 4.2vw, 3.6rem);
  --h2: clamp(1.45rem, 2.8vw, 2.4rem);
  --body: 1.125rem;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--body);
  line-height: 1.65;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

a:hover { color: #9f6249; }

h1, h2, h3, h4 {
  font-family: "Lora", Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-3);
  color: #324144;
}

p { margin: 0 0 var(--space-3); }
img { max-width: 100%; display: block; }

.container,
.narrow,
.prose {
  width: min(calc(100% - 3rem), var(--measure, var(--container)));
  margin: 0 auto;
}

.narrow { --measure: var(--narrow); }
.prose { --measure: var(--prose); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 93%, white 7%);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: var(--space-3);
  min-height: 74px;
}

.brand {
  font-family: "Lora", Georgia, serif;
  font-size: 2rem;
  text-decoration: none;
  color: #324144;
}

.site-nav {
  display: flex;
  justify-content: flex-start;
  gap: var(--space-3);
}

.site-nav a {
  text-decoration: none;
  color: var(--text-soft);
  font-size: 1.08rem;
}

.site-nav a:hover,
.site-nav a:focus-visible { color: var(--text); }

.btn {
  display: inline-block;
  padding: 0.85rem 1.45rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.btn:hover,
.btn:focus-visible {
  background: var(--accent-strong);
  color: #fff;
}

.btn-nav {
  white-space: nowrap;
  font-size: 0.96rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.hero {
  position: relative;
  min-height: min(62vh, 420px);
  color: #fff;
  display: flex;
  align-items: center;
  background: #516368;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(20, 31, 35, 0.68), rgba(38, 58, 63, 0.44));
  z-index: -1;
}

.hero-light::after {
  background: linear-gradient(115deg, rgba(245, 245, 245, 0.35), rgba(200, 200, 200, 0.22));
}

.hero-inner { padding: var(--space-7) 0; }

.home-page .hero-inner { padding: var(--space-6) 0; }
.home-page .hero-title { margin-bottom: var(--space-2); }

.hero-title {
  font-size: var(--display);
  max-width: 18ch;
  color: #fff;
  margin-bottom: var(--space-3);
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2.6vw, 1.85rem);
  max-width: 40ch;
  margin-bottom: var(--space-4);
  color: rgba(255, 255, 255, 0.95);
}

.section { padding: var(--space-7) 0; }
.section-muted { background: var(--bg-muted); }
.section-cta {
  background: var(--bg-deep);
  color: #f3f5f5;
}

.section-cta .cta-content > *:first-child {
  font-family: "Lora", Georgia, serif;
  font-size: var(--h1);
  color: #f4f6f6;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-3);
}

.section-cta p { color: rgba(255, 255, 255, 0.88); }

.section-page-header {
  padding: var(--space-6) 0 var(--space-2);
}

.page-title { font-size: var(--h1); }
.page-summary {
  color: var(--text-soft);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.lead-text {
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.5;
}

.intro-text { text-align: center; }

.intro-text p:last-child { margin-bottom: 0; }


.quote-stack h2 {
  font-family: "Lora", Georgia, serif;
  font-size: var(--h2);
  margin: 0 0 var(--space-4);
}

.quote-stack blockquote {
  margin: 0 0 var(--space-5);
  padding: 0;
  border: 0;
}

.quote-stack blockquote p { margin: 0 0 var(--space-6); }

.quote-stack blockquote cite {
  display: block;
  font-style: normal;
  font-size: 0.95rem;
  color: var(--text-soft);
  margin: var(--space-2) 0 var(--space-3);
}

.featured-post {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: var(--space-4);
}

.eyebrow {
  margin: 0 0 var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 600;
  color: #5e6d70;
}

.post-list {
  display: grid;
  gap: var(--space-3);
}

.post-card {
  border: 1px solid var(--border);
  padding: var(--space-3);
  background: #faf8f4;
}

.post-card h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); }
.article-meta {
  color: #5d6c6f;
  font-size: 1rem;
  margin-bottom: var(--space-2);
}

.prose {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.78;
}

.prose h2 { font-size: var(--h2); margin-top: var(--space-5); }
.prose h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  margin-top: var(--space-4);
}
.prose ul, .prose ol { margin: 0 0 var(--space-3) 1.3em; }

.pagination {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #f3f0e9;
  padding: var(--space-4) 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: 1rem;
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
    justify-content: space-between;
  }

  .nav-toggle { display: inline-block; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 74px;
    display: none;
    flex-direction: column;
    padding: var(--space-3);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }

  .site-nav.is-open { display: flex; }
  .btn-nav {
    display: inline-block;
    justify-self: end;
  }

  .hero-inner { padding: var(--space-6) 0; }

  .section { padding: var(--space-6) 0; }
}

@media (min-width: 981px) {
  .site-header .site-nav { margin-left: var(--space-6); }
  .site-header .brand { grid-column: 1; }
  .site-header .site-nav { grid-column: 2; }
  .site-header .btn-nav {
    grid-column: 4;
    justify-self: end;
  }
}

@media (max-width: 640px) {
  .container, .narrow, .prose { width: min(calc(100% - 2rem), var(--measure, var(--container))); }
  .brand { font-size: 1.7rem; }
  body { font-size: 1.1rem; }
  .footer-inner { flex-direction: column; }
}
