:root {
  --ink: #162b25;
  --ink-soft: #3d5049;
  --muted: #5d6f68;
  --green: #2f6f5e;
  --green-dark: #1d4a3e;
  --cream: #f8f5ee;
  --sand: #efe9dd;
  --line: #ddd7ca;
  --water: #2c7a8c;
  --white: #ffffff;
  --serif: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius: 18px;
  --shadow: 0 18px 40px -24px rgba(20, 43, 37, 0.35);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--green-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--green);
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 5.2vw, 3.9rem);
}

h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

p {
  margin: 0 0 1.15em;
}

ul,
ol {
  margin: 0 0 1.25em;
  padding-left: 1.25em;
}

li {
  margin-bottom: 0.4em;
}

strong {
  font-weight: 650;
}

.container {
  width: min(1140px, 100% - 48px);
  margin-inline: auto;
}

.narrow {
  width: min(820px, 100% - 48px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 16px;
  color: var(--white);
}

:focus-visible {
  outline: 3px solid var(--water);
  outline-offset: 3px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 245, 238, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex: 0 0 auto;
}

.brand svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand:hover {
  color: var(--green-dark);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.95rem;
  font-weight: 550;
}

.primary-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.primary-nav a:hover {
  color: var(--green-dark);
  border-bottom-color: var(--green);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--ink);
  border-radius: 2px;
}

/* Breadcrumbs */
.breadcrumb-wrap {
  padding-top: 18px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.breadcrumbs li {
  margin: 0;
}

.breadcrumbs li + li::before {
  content: '/';
  margin-right: 6px;
  color: #a8b3ae;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

.breadcrumbs [aria-current='page'] {
  color: var(--ink-soft);
}

/* Type helpers */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 12px;
}

.lede {
  font-size: clamp(1.1rem, 1.7vw, 1.28rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
}

.small {
  font-size: 0.86rem;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--green-dark);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}

.text-link:hover {
  border-bottom-color: var(--green);
}

.text-link svg,
.button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid var(--green);
  transition: background 0.18s ease, transform 0.18s ease;
}

.button:hover {
  background: var(--green-dark);
  color: var(--white);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  padding: clamp(44px, 7vw, 86px) 0 clamp(40px, 6vw, 72px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.hero-copy h1 {
  margin-bottom: 0.5em;
}

.hero-copy .lede {
  margin-bottom: 1.6em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.hero-note {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0;
}

.hero-media {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: 28px 28px 28px 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--sand);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sections */
.section {
  padding: clamp(42px, 6vw, 76px) 0;
}

.section-tinted {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(24px, 4vw, 38px);
}

.section-head p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  max-width: none;
}

/* Pillars */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.pillar-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.pillar-media {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--sand);
  overflow: hidden;
}

.pillar-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pillar-body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.pillar-body h3 {
  margin-bottom: 2px;
}

.pillar-body h3 a {
  text-decoration: none;
  color: var(--ink);
}

.pillar-body h3 a:hover {
  color: var(--green-dark);
}

.pillar-body p {
  font-size: 0.94rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.pillar-body .eyebrow {
  font-size: 0.7rem;
  margin-bottom: 4px;
}

.pillar-body .text-link {
  margin-top: auto;
  font-size: 0.9rem;
}

/* Split / panel */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.panel {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
}

.panel h3 {
  margin-bottom: 16px;
}

.panel .text-link {
  margin-top: 14px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2em;
}

.check-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-bottom: 11px;
}

.check-list svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  margin-top: 4px;
  fill: none;
  stroke: var(--green);
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.check-list span {
  flex: 1;
}

/* Post cards */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 30px);
}

.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.post-card-media {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--sand);
  overflow: hidden;
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-body {
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-body .eyebrow {
  font-size: 0.7rem;
  margin-bottom: 6px;
}

.post-card-body h3 {
  font-size: 1.22rem;
  margin-bottom: 8px;
}

.post-card-body h3 a {
  color: var(--ink);
  text-decoration: none;
}

.post-card-body h3 a:hover {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.post-card-body p {
  font-size: 0.94rem;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.post-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0;
}

.post-meta svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* FAQ */
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--serif);
  font-size: 1.1rem;
  list-style: none;
  position: relative;
  padding-right: 30px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: -2px;
  font-family: var(--sans);
  font-size: 1.35rem;
  color: var(--green);
}

.faq details[open] summary::after {
  content: '\2212';
}

.faq details p {
  margin: 12px 0 0;
  color: var(--ink-soft);
}

/* CTA band */
.cta-band {
  background: var(--green-dark);
  color: var(--cream);
  border-radius: 26px;
  padding: clamp(28px, 4vw, 46px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-band h2 {
  color: var(--white);
}

.cta-band p {
  color: #d3e3dc;
  margin-bottom: 0;
  max-width: 55ch;
}

.cta-band .eyebrow {
  color: #9dc6b7;
}

.cta-band .button {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--green-dark);
  flex: 0 0 auto;
}

.cta-band .button:hover {
  background: var(--white);
  color: var(--green-dark);
}

/* Page heads */
.page-head {
  padding-top: clamp(30px, 4vw, 52px);
  padding-bottom: clamp(22px, 3vw, 30px);
}

.page-head h1 {
  margin-bottom: 0.4em;
}

.page-updated {
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 14px;
}

.page-figure,
.article-figure {
  margin: 0 0 clamp(28px, 4vw, 46px);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
  aspect-ratio: 3 / 2;
}

.article-figure {
  aspect-ratio: 16 / 9;
}

.page-figure img,
.article-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Prose */
.prose {
  padding-bottom: clamp(40px, 6vw, 72px);
}

.prose-section {
  margin-bottom: clamp(28px, 4vw, 40px);
}

.prose h2 {
  margin-top: 0;
  margin-bottom: 0.55em;
}

.prose h3 {
  margin-top: 1.6em;
}

.prose p,
.prose li {
  max-width: 68ch;
}

.prose ul,
.prose ol {
  padding-left: 1.35em;
}

.prose .check-list {
  padding-left: 0;
}

/* Article */
.byline {
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
}

.byline a {
  color: var(--ink-soft);
  font-weight: 600;
}

.key-points {
  background: var(--sand);
  border-left: 4px solid var(--green);
  border-radius: 0 14px 14px 0;
  padding: 22px 24px 12px;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.key-points h2 {
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.key-points .check-list {
  margin-bottom: 0;
}

.sources .link-list {
  margin-bottom: 14px;
}

.disclaimer {
  font-size: 0.86rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 32px;
}

.author-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
  margin-top: 28px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
}

.author-box h2 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.author-box h2 a {
  text-decoration: none;
  color: var(--ink);
}

.author-box p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.author-box .text-link {
  flex: 0 0 auto;
}

.related {
  margin-top: 20px;
}

/* Link lists */
.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}

.link-list li:first-child {
  border-top: 1px solid var(--line);
}

.link-list a {
  display: block;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}

.link-list a:hover {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-list span {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 2px;
}

.link-list.external a::after {
  content: ' \2197';
  font-size: 0.8em;
  color: var(--muted);
}

/* Guides */
.guide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding-bottom: 56px;
}

.guide-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
}

.guide-card h2 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.guide-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.guide-card ol {
  margin: 0;
  padding-left: 1.2em;
}

.guide-card li {
  margin-bottom: 9px;
}

.guide-card a {
  font-weight: 600;
  text-decoration: none;
}

.guide-card a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Recipes */
.recipe {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
  margin-bottom: 22px;
}

.recipe h2 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.recipe-meta {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 14px;
}

.recipe-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 28px;
  margin-top: 18px;
}

.recipe-grid h3 {
  font-family: var(--sans);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 10px;
}

.recipe-grid ul,
.recipe-grid ol {
  padding-left: 1.2em;
  margin: 0;
  font-size: 0.95rem;
}

.contact-mail {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--green-dark);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #c9d6d1;
  padding: clamp(44px, 6vw, 72px) 0 26px;
  margin-top: 10px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
}

.footer-brand .brand {
  color: var(--cream);
  margin-bottom: 14px;
}

.footer-brand .brand svg {
  stroke: #8fc3b1;
}

.footer-brand p {
  font-size: 0.92rem;
  color: #a9bcb5;
  max-width: 34ch;
}

.footer-note {
  font-size: 0.82rem !important;
  color: #7f978e !important;
}

.footer-heading {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8fc3b1;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: #d7e2dd;
  text-decoration: none;
  font-size: 0.92rem;
  padding: 5px 0;
}

.footer-col a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.84rem;
  color: #93a9a1;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: #c9d6d1;
}

/* Responsive */
@media (max-width: 1000px) {
  .primary-nav {
    gap: 15px;
    font-size: 0.9rem;
  }

  .pillar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.4fr repeat(2, minmax(0, 1fr));
    row-gap: 36px;
  }
}

@media (max-width: 780px) {
  .container,
  .narrow {
    width: min(100% - 36px, 820px);
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 18px;
    left: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 16px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .nav-open .primary-nav {
    display: flex;
  }

  .primary-nav a {
    width: 100%;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
  }

  .primary-nav a:last-child {
    border-bottom: 0;
  }

  .hero-grid,
  .split,
  .guide-list,
  .recipe-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    aspect-ratio: 4 / 3;
    order: -1;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

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

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .author-box {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 1rem;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .pillar-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
