/* ==========================================================================
   Sprout & Soil - main stylesheet
   Tokens, base, layout, components, responsive
   ========================================================================== */

:root {
  --green-900: #1f3d2a;
  --green-700: #2d5a3d;
  --green-500: #4a8a5e;
  --green-300: #9bc4a6;
  --green-100: #e3efe6;
  --green-50:  #f3f8f4;
  --soil-700: #7a5f3d;
  --soil-500: #b08858;
  --cream:    #fdfaf5;
  --paper:    #ffffff;
  --ink-900:  #1a1f1c;
  --ink-700:  #36403a;
  --ink-500:  #5a655e;
  --ink-300:  #9aa39e;
  --line:     #e5e1d8;
  --line-soft:#efece4;
  --accent:   #d97a4a;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(28, 36, 30, .04), 0 1px 1px rgba(28,36,30,.03);
  --shadow:    0 4px 14px rgba(28, 36, 30, .06), 0 1px 3px rgba(28,36,30,.04);
  --shadow-lg: 0 16px 40px rgba(28, 36, 30, .08), 0 4px 12px rgba(28,36,30,.05);

  --font-serif: "Fraunces", "Lora", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --max-w:    1180px;
  --read-w:   720px;
  --gutter:   clamp(1rem, 2.4vw, 2rem);

  --t-fast: 140ms ease;
  --t:      220ms ease;
}

/* Reset & base ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Reserve space for vertical scrollbar to prevent layout shift */
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink-900);
  font-family: var(--font-sans);
  /* Fluid body type: 16.5px on small phones up to 17.5px on large screens */
  font-size: clamp(16.5px, 0.95vw + 0.7rem, 17.5px);
  line-height: 1.65;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; /* belt-and-braces guard against horizontal scroll */
}
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
img { border-radius: var(--radius); }
a { color: var(--green-700); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--green-900); text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.18;
  color: var(--ink-900);
  letter-spacing: -0.01em;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.05rem); margin-top: 2.4em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.45rem); margin-top: 1.8em; }
h4 { font-size: 1.1rem; margin-top: 1.4em; }
p  { margin: 0 0 1.15em; }

ul, ol { padding-left: 1.4rem; margin: 0 0 1.3em; }
li { margin: .35em 0; }
blockquote {
  border-left: 4px solid var(--green-500);
  background: var(--green-50);
  margin: 2em 0;
  padding: 1.3em 1.6em;
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.12em;
  line-height: 1.55;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-700);
  position: relative;
}
blockquote::before {
  content: """;
  position: absolute;
  top: -0.2em;
  left: 0.3em;
  font-size: 3.5em;
  font-family: var(--font-serif);
  color: var(--green-300);
  opacity: 0.5;
  line-height: 1;
}
code, kbd, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .94em;
}

/* Layout containers ------------------------------------------------------ */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }
.container--read   { max-width: var(--read-w); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink-900); color: #fff;
  padding: .6rem 1rem; border-radius: 0 0 var(--radius) 0; z-index: 1000;
}
.skip-link:focus { left: 0; }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 250, 245, 0.92);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(1rem, 2.4vw, 2.6rem); padding-block: 1.15rem;
}
.site-brand {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600;
  color: var(--ink-900); letter-spacing: -0.02em;
  flex-shrink: 0; white-space: nowrap;
}
.site-brand:hover { color: var(--green-700); text-decoration: none; }
.site-brand__mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  display: grid; place-items: center; color: #fff; font-size: 18px;
  flex-shrink: 0;
}

.primary-nav { display: flex; align-items: center; gap: clamp(1rem, 1.8vw, 1.9rem); }
.primary-nav ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: clamp(.9rem, 1.5vw, 1.7rem); align-items: center;
}
.primary-nav a {
  color: var(--ink-700); font-weight: 500; font-size: clamp(.9rem, .5vw + .72rem, .98rem);
  padding: .4rem 0; border-bottom: 2px solid transparent; white-space: nowrap;
}
.primary-nav a:hover { color: var(--green-700); border-bottom-color: var(--green-500); text-decoration: none; }
.primary-nav .current-menu-item > a { color: var(--green-700); border-bottom-color: var(--green-500); }

.header-actions { display: flex; align-items: center; gap: .6rem; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper);
  display: grid; place-items: center; color: var(--ink-700);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  cursor: pointer;
  flex-shrink: 0;
}
.icon-btn:hover { background: var(--green-50); color: var(--green-700); border-color: var(--green-300); }
.icon-btn svg { width: 18px; height: 18px; }

.menu-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
}
.menu-toggle__icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22px; height: 22px;
  transition: opacity 200ms ease, transform 200ms ease;
}
.menu-toggle__icon--close { opacity: 0; transform: rotate(-90deg); }
.drawer-open .menu-toggle__icon--open { opacity: 0; transform: rotate(90deg); }
.drawer-open .menu-toggle__icon--close { opacity: 1; transform: rotate(0); }

/* Search overlay --------------------------------------------------------- */
.search-overlay {
  position: fixed; inset: 0; background: rgba(26, 31, 28, .6); backdrop-filter: blur(4px);
  display: none; align-items: flex-start; justify-content: center;
  z-index: 100; padding: 14vh 1rem 0;
}
.search-overlay.is-open { display: flex; }
.search-overlay__box {
  background: var(--paper); width: 100%; max-width: 600px;
  border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-lg);
}
.search-overlay form { display: flex; gap: .6rem; }
.search-overlay input[type="search"] {
  flex: 1; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 1.05rem; background: var(--cream);
}
.search-overlay input[type="search"]:focus { outline: 2px solid var(--green-300); border-color: var(--green-500); }
.search-overlay button[type="submit"] {
  padding: .9rem 1.3rem; background: var(--green-700); color: #fff; border: 0;
  border-radius: var(--radius); font-weight: 600;
}

/* Hero ------------------------------------------------------------------- */
.hero {
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4.5rem);
  text-align: center;
  background:
    radial-gradient(ellipse 1200px 600px at top, rgba(155, 196, 166, 0.28), transparent 60%),
    radial-gradient(ellipse 800px 400px at 30% 30%, rgba(212, 184, 122, 0.10), transparent 50%),
    var(--cream);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--cream));
  pointer-events: none;
}
.hero__eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--green-700);
  background: var(--green-100); padding: .35rem .8rem; border-radius: 999px;
  margin-bottom: 1.1rem;
}
.hero h1 { max-width: 22ch; margin-left: auto; margin-right: auto; }
.hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-700);
  max-width: 62ch; margin: 0 auto 1.6rem;
}
.hero__cta { display: inline-flex; gap: .8rem; flex-wrap: wrap; justify-content: center; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: 999px;
  font-weight: 600; font-size: .96rem; line-height: 1;
  min-height: 44px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t), background var(--t-fast), color var(--t-fast);
}
.btn--primary {
  background: var(--green-700); color: #fff; box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--green-900); color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--ghost {
  background: transparent; color: var(--ink-900); border-color: var(--line);
}
.btn--ghost:hover { background: var(--paper); color: var(--green-700); border-color: var(--green-300); text-decoration: none; }

/* Section heading ------------------------------------------------------- */
.section { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.section--soft { background: var(--green-50); }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 2.4rem; }
.section-head h2 { margin-top: 0; }
.section-head__eyebrow {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .12em;
  font-weight: 600; color: var(--green-700); margin-bottom: .6rem;
}
.section-head p { color: var(--ink-700); }

/* Start Here cards ------------------------------------------------------ */
.start-here {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.start-here__card {
  background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: 1.4rem 1.3rem;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.start-here__card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--green-300);
}
.start-here__num {
  display: inline-block; font-family: var(--font-serif);
  color: var(--green-500); font-size: 1.4rem; font-weight: 600; margin-bottom: .4rem;
}
.start-here__card h3 { margin: .2rem 0 .5rem; font-size: 1.12rem; }
.start-here__card p { color: var(--ink-700); margin: 0 0 .8rem; font-size: .95rem; }
.start-here__card a.read-more { font-weight: 600; font-size: .9rem; }

/* Category cards --------------------------------------------------------- */
.cat-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.cat-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--paper);
  border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-300);
}
.cat-card:hover h3 { color: var(--green-700); }
.cat-card h3 { transition: color var(--t-fast); }
.cat-card a.stretched { position: absolute; inset: 0; z-index: 2; text-indent: -9999px; }
.cat-card__media {
  aspect-ratio: 16 / 10; background: var(--green-100); overflow: hidden;
}
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform 500ms ease; }
.cat-card:hover .cat-card__media img { transform: scale(1.04); }
.cat-card__body { padding: 1.2rem 1.3rem 1.4rem; }
.cat-card__eyebrow {
  font-size: .76rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--green-700); font-weight: 600;
}
.cat-card h3 { font-size: 1.2rem; margin: .35rem 0 .55rem; }
.cat-card p  { color: var(--ink-700); margin: 0; font-size: .94rem; }
.cat-card__count { font-size: .82rem; color: var(--ink-500); margin-top: .8rem; }

/* Post list / grid ------------------------------------------------------ */
.post-grid {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.post-card {
  display: flex; flex-direction: column;
}
.post-card__media {
  aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius);
  background: var(--green-100); margin-bottom: 1rem;
}
.post-card__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform 500ms ease; }
.post-card:hover .post-card__media img { transform: scale(1.03); }
.post-card__cat {
  display: inline-block;
  font-size: .72rem;
  color: var(--green-700);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  background: var(--green-100);
  padding: .25rem .65rem;
  border-radius: 999px;
  margin-bottom: .15rem;
  align-self: flex-start;
}
.post-card h3 { font-size: 1.18rem; margin: .55rem 0 .55rem; line-height: 1.3; }
.post-card h3 a { color: var(--ink-900); }
.post-card h3 a:hover { color: var(--green-700); text-decoration: none; }
.post-card__meta { font-size: .85rem; color: var(--ink-500); display: flex; gap: .6rem; align-items: center; }
.post-card__excerpt { color: var(--ink-700); font-size: .95rem; margin: .4rem 0 0; }

/* Featured (large) post -------------------------------------------------- */
.featured-row {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: stretch;
}
.featured-row__big { display: flex; flex-direction: column; }
.featured-row__big .post-card__media { aspect-ratio: 16 / 11; }
.featured-row__big h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.featured-row__side { display: grid; grid-template-rows: 1fr 1fr; gap: 1.4rem; }
.featured-row__side .post-card { flex-direction: row; gap: 1rem; }
.featured-row__side .post-card__media { width: 130px; min-width: 130px; aspect-ratio: 1/1; margin: 0; }
.featured-row__side .post-card h3 { font-size: 1.02rem; margin: .2rem 0 .35rem; }

/* Newsletter ------------------------------------------------------------- */
.newsletter {
  background:
    radial-gradient(circle at 85% 85%, rgba(155, 196, 166, .22), transparent 55%),
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, .08), transparent 50%),
    linear-gradient(135deg, var(--green-700) 0%, var(--green-900) 100%);
  color: #fff; border-radius: var(--radius-xl);
  padding: clamp(2.2rem, 5vw, 3.6rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
}
.newsletter::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 22V12'/%3E%3Cpath d='M12 12c0-5 4-9 9-9 0 5-4 9-9 9z'/%3E%3Cpath d='M12 12c0-4-3-7-7-7 0 4 3 7 7 7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: top -30px right -30px;
  background-size: 280px;
  opacity: 0.05;
  pointer-events: none;
}
.newsletter::after {
  content: ""; position: absolute; right: -60px; bottom: -60px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 196, 166, .25), transparent 70%);
  pointer-events: none;
}
.newsletter h2 { color: #fff; margin-top: 0; font-size: clamp(1.5rem, 2.8vw, 2.1rem); position: relative; z-index: 1; }
.newsletter p { color: rgba(255,255,255,.85); max-width: 50ch; margin: 0 auto 1.6rem; position: relative; z-index: 1; }
.newsletter form {
  display: flex; gap: .6rem; max-width: 480px; margin: 0 auto;
  flex-wrap: wrap; justify-content: center; position: relative; z-index: 1;
}
.newsletter input[type="email"] {
  flex: 1; min-width: 220px; padding: .85rem 1rem;
  border: 0; border-radius: var(--radius); font-size: 1rem;
}
.newsletter button {
  padding: .85rem 1.4rem; background: var(--cream); color: var(--green-900);
  border: 0; border-radius: var(--radius); font-weight: 700;
}
.newsletter__note { font-size: .8rem; color: rgba(255,255,255,.7); margin-top: .9rem; }

/* About teaser ----------------------------------------------------------- */
.about-teaser {
  display: grid; grid-template-columns: 1fr 2fr; gap: 2.5rem; align-items: center;
  background: var(--paper); padding: clamp(1.6rem, 3vw, 2.6rem);
  border-radius: var(--radius-xl); border: 1px solid var(--line-soft);
}
.about-teaser__photo {
  width: 100%; aspect-ratio: 1/1; border-radius: 50%;
  overflow: hidden; max-width: 220px; margin: 0 auto;
  background: var(--green-100);
}
.about-teaser__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.about-teaser h2 { margin-top: 0; }
.about-teaser p { color: var(--ink-700); }

/* Single post ------------------------------------------------------------ */
.single-hero {
  padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
}
.single-hero__cat {
  display: inline-block; font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--green-700);
  background: var(--green-100); padding: .3rem .75rem; border-radius: 999px;
  margin-bottom: 1.1rem;
}
.single-hero h1 { max-width: 28ch; margin-bottom: .8rem; }
.single-hero__lead {
  font-size: clamp(1.05rem, 1.5vw, 1.18rem); color: var(--ink-700); max-width: 62ch;
}
.single-hero__meta {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-top: 1.4rem; padding: 1.1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: .92rem; color: var(--ink-500);
}
.single-hero__author { display: flex; align-items: center; gap: .7rem; }
.single-hero__author img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.single-hero__author strong { color: var(--ink-900); display: block; line-height: 1.2; }
.single-hero__author span { font-size: .82rem; }
.single-hero__featured {
  margin: 1.8rem 0 0; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.single-hero__featured img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }

.entry-content { font-size: 1.07rem; line-height: 1.72; }
.entry-content > * { max-width: var(--read-w); margin-left: auto; margin-right: auto; }
.entry-content > h2, .entry-content > h3, .entry-content > h4 { max-width: var(--read-w); }
.entry-content > figure, .entry-content > .callout, .entry-content > .tip-box, .entry-content > .faq, .entry-content > table { max-width: 820px; }

/* Drop cap on first paragraph */
.entry-content > p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 3.6em;
  line-height: 0.88;
  float: left;
  margin: 0.08em 0.12em 0 0;
  color: var(--green-700);
  padding: 0.05em 0.05em 0 0;
}
.entry-content > p:first-of-type {
  font-size: 1.13rem;
  color: var(--ink-700);
}

/* Tighter rhythm */
.entry-content > h2 { margin-top: 2.6em; }
.entry-content > h2 + p { margin-top: 0; }
.entry-content > h3 + p { margin-top: 0; }

/* Refined link style inside body */
.entry-content a:not(.btn) {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 1px;
  padding-bottom: 1px;
  text-decoration: none;
  transition: background-size var(--t-fast);
}
.entry-content a:not(.btn):hover {
  background-size: 100% 2px;
  color: var(--green-900);
}
.entry-content figure { margin: 2rem auto; }
.entry-content figure img { width: 100%; border-radius: var(--radius-lg); }
.entry-content figcaption {
  font-size: .87rem; color: var(--ink-500); text-align: center;
  margin-top: .6rem; font-style: italic;
}
/* Tables get a responsive horizontal-scroll wrapper on small screens */
.entry-content table {
  width: 100%; border-collapse: collapse; margin: 2rem auto;
  background: var(--paper); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); font-size: .96rem;
  box-shadow: var(--shadow-sm);
  display: table; /* baseline */
}
/* When wrapped in a scrollable container, allow horizontal scroll */
.entry-content .table-scroll {
  margin: 2rem auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  max-width: 820px;
}
.entry-content .table-scroll table {
  margin: 0;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  min-width: 500px;
}
.entry-content thead { background: var(--green-50); }
.entry-content thead th {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--green-900);
  border-bottom: 2px solid var(--green-100);
}
.entry-content th, .entry-content td {
  padding: .9rem 1.15rem; text-align: left; border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.entry-content tbody tr:nth-child(even) { background: rgba(243, 248, 244, 0.4); }
.entry-content tr:last-child td { border-bottom: 0; }
.entry-content ul li::marker { color: var(--green-500); }
.entry-content ol li::marker { color: var(--green-700); font-weight: 600; }

.callout, .tip-box {
  margin: 1.8rem auto; padding: 1.2rem 1.4rem;
  border-radius: var(--radius-lg); border: 1px solid var(--green-300);
  background: var(--green-50);
  display: flex; gap: 1rem; align-items: flex-start;
}
.callout__icon, .tip-box__icon {
  font-size: 1.4rem; line-height: 1; flex-shrink: 0;
}
.callout strong, .tip-box strong { color: var(--green-900); }
.tip-box { border-color: #f3d488; background: #fbf4dc; }
.tip-box strong { color: #6b4f00; }

.faq { margin: 2rem auto; }
.faq h2 { margin-bottom: 1rem; }
.faq details {
  background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); margin-bottom: .85rem;
  transition: box-shadow var(--t), border-color var(--t), background var(--t);
  overflow: hidden;
}
.faq details[open] {
  box-shadow: var(--shadow);
  border-color: var(--green-300);
  background: linear-gradient(180deg, var(--paper), var(--green-50) 80%);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 1.15rem 1.3rem;
  font-weight: 600; color: var(--ink-900); font-size: 1.04rem;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
  min-height: 56px;
  transition: color var(--t-fast);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.faq summary:hover { color: var(--green-700); }
@media (max-width: 480px) {
  .faq summary { padding: 1rem 1.1rem; font-size: 1rem; }
  .faq summary::after { width: 26px; height: 26px; }
  .faq details > div { padding: 0 1.1rem 1.1rem; font-size: .95rem; }
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat,
    var(--green-100);
  color: var(--green-700);
  transition: transform var(--t), background-size var(--t);
}
.faq details[open] summary::after {
  background:
    linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat,
    var(--green-100);
  transform: rotate(180deg);
}
.faq details > div { padding: 0 1.3rem 1.3rem; color: var(--ink-700); }

/* Table of contents ------------------------------------------------------ */
.toc {
  background: var(--green-50); border: 1px solid var(--green-100);
  border-radius: var(--radius-lg); padding: 1.1rem 1.3rem;
  margin: 1.5rem auto 2rem;
}
.toc__title {
  font-family: var(--font-serif); font-weight: 600; font-size: 1rem;
  margin: 0 0 .55rem; color: var(--ink-900);
  display: flex; align-items: center; gap: .5rem;
}
.toc ol { padding-left: 1.2rem; margin: 0; counter-reset: tocitem; }
.toc ol li {
  list-style: none; counter-increment: tocitem; position: relative;
  padding: .15rem 0 .15rem 1.8rem; font-size: .95rem;
}
.toc ol li::before {
  content: counter(tocitem, decimal-leading-zero);
  position: absolute; left: 0; top: .15rem;
  font-family: var(--font-serif); color: var(--green-500); font-size: .85rem;
}
.toc a { color: var(--ink-700); }
.toc a:hover { color: var(--green-700); text-decoration: none; }

/* Author bio ------------------------------------------------------------- */
.author-bio {
  margin: 3rem auto 0; padding: 1.6rem; border-radius: var(--radius-lg);
  background: var(--paper); border: 1px solid var(--line-soft);
  display: flex; gap: 1.3rem; align-items: flex-start;
  max-width: 820px;
}
.author-bio img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-bio h4 { margin: 0 0 .25rem; font-size: 1.1rem; }
.author-bio__role { font-size: .85rem; color: var(--green-700); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .55rem; }
.author-bio p { color: var(--ink-700); margin: 0; font-size: .95rem; }

/* Related posts --------------------------------------------------------- */
.related { margin-top: 3.5rem; }
.related h2 { text-align: center; }

/* Breadcrumbs ------------------------------------------------------------ */
.breadcrumbs {
  font-size: .85rem; color: var(--ink-500); margin: 0 0 1rem;
}
.breadcrumbs a { color: var(--ink-500); }
.breadcrumbs a:hover { color: var(--green-700); }
.breadcrumbs__sep { margin: 0 .4rem; color: var(--ink-300); }

/* Archive / category header --------------------------------------------- */
.archive-hero {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2rem);
  text-align: center; background: var(--green-50);
  border-bottom: 1px solid var(--line-soft);
}
.archive-hero__eyebrow {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .12em;
  font-weight: 600; color: var(--green-700); margin-bottom: .6rem;
}
.archive-hero h1 { margin: 0 auto .8rem; max-width: 24ch; }
.archive-hero__desc { color: var(--ink-700); max-width: 60ch; margin: 0 auto; }

/* Sidebar (widgets) ----------------------------------------------------- */
.layout-with-sidebar {
  display: grid; gap: 2.5rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1024px) {
  .layout-with-sidebar { grid-template-columns: minmax(0, 1fr) 320px; }
  .layout-with-sidebar__main { min-width: 0; }
}
.post-grid--archive { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.widget--cat h3 {
  color: var(--ink-900);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  text-transform: none;
  letter-spacing: 0;
}
.widget--cat ul li:first-child::before {
  content: "→ ";
  color: var(--green-500);
  font-weight: 600;
}
.widget li.is-current a {
  color: var(--green-700);
  font-weight: 600;
}
.widget--newsletter {
  background: linear-gradient(135deg, var(--green-50), var(--cream));
  border-color: var(--green-300);
}
.widget {
  background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: 1.3rem; margin-bottom: 1.4rem;
}
.widget h3 {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .12em;
  margin: 0 0 1rem; color: var(--green-700); font-weight: 700;
  font-family: var(--font-sans);
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: .55rem 0; border-bottom: 1px solid var(--line-soft); font-size: .95rem; }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--ink-900); }
.widget a:hover { color: var(--green-700); }

/* Footer ----------------------------------------------------------------- */
.site-footer {
  background: #14201a; color: rgba(255,255,255,.72);
  padding: 3.5rem 0 1.5rem; margin-top: 4rem;
  font-size: .94rem;
}
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  margin-bottom: 2.5rem;
}
.footer-col h4 {
  font-family: var(--font-sans); color: #fff;
  font-size: .82rem; text-transform: uppercase; letter-spacing: .12em;
  margin: 0 0 1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: .45rem 0; }
.footer-brand { font-family: var(--font-serif); font-size: 1.3rem; color: #fff; font-weight: 600; margin-bottom: .7rem; display: inline-block; }
.footer-brand:hover { color: #fff; text-decoration: none; }
.footer-about p { font-size: .92rem; max-width: 36ch; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; font-size: .85rem; color: rgba(255,255,255,.55);
}

/* Comments, forms ------------------------------------------------------- */
.comments-area { margin-top: 3rem; max-width: var(--read-w); margin-left: auto; margin-right: auto; }

/* Pagination ----------------------------------------------------------- */
.pagination {
  display: flex; justify-content: center; gap: .5rem;
  margin: 3rem 0 1rem; flex-wrap: wrap;
}
.pagination a, .pagination span {
  padding: .55rem .9rem; border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--ink-700);
  background: var(--paper); font-weight: 500;
}
.pagination a:hover { background: var(--green-50); color: var(--green-700); text-decoration: none; }
.pagination .current { background: var(--green-700); color: #fff; border-color: var(--green-700); }

/* Utility --------------------------------------------------------------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mt-0 { margin-top: 0; }
.tc { text-align: center; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 880px) {
  .featured-row { grid-template-columns: 1fr; }
  .featured-row__side { grid-template-rows: auto; gap: 1.2rem; }
  .about-teaser { grid-template-columns: 1fr; text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* Off-canvas mobile drawer ---------------------------------------------- */
.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 32, 26, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
  z-index: 60;
}
.mobile-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(86vw, 380px);
  background: var(--cream);
  z-index: 70;
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(.4, 0, .2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  box-shadow: -8px 0 32px rgba(20, 32, 26, 0.18);
}
.mobile-drawer.is-open { transform: translateX(0); }

.mobile-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.3rem;
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 2;
}
.mobile-drawer__close {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 50%;
  color: var(--ink-700);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.mobile-drawer__close:hover, .mobile-drawer__close:focus-visible {
  background: var(--green-50);
  color: var(--green-700);
}
.mobile-drawer__close svg { width: 18px; height: 18px; }

.mobile-drawer__nav { padding: .8rem 0; }
.mobile-drawer__menu, .mobile-drawer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-drawer__menu li, .mobile-drawer__nav li {
  border-bottom: 1px solid var(--line-soft);
}
.mobile-drawer__menu li:last-child, .mobile-drawer__nav li:last-child {
  border-bottom: 0;
}
.mobile-drawer__menu a, .mobile-drawer__nav a {
  display: block;
  padding: 1rem 1.4rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink-900);
  text-decoration: none;
  min-height: 44px;
  transition: background var(--t-fast), color var(--t-fast);
}
.mobile-drawer__menu a:hover, .mobile-drawer__menu a:focus-visible,
.mobile-drawer__nav a:hover, .mobile-drawer__nav a:focus-visible {
  background: var(--green-50);
  color: var(--green-700);
}
.mobile-drawer__menu .current-menu-item > a,
.mobile-drawer__nav .current-menu-item > a {
  color: var(--green-700);
  font-weight: 600;
  position: relative;
}
.mobile-drawer__menu .current-menu-item > a::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 22px;
  background: var(--green-700);
  border-radius: 0 3px 3px 0;
}

.mobile-drawer__section {
  padding: 1.3rem 1.4rem .8rem;
  border-top: 1px solid var(--line-soft);
}
.mobile-drawer__label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
  color: var(--green-700);
  margin: 0 0 .8rem;
}
.mobile-drawer__cats {
  list-style: none; margin: 0; padding: 0;
}
.mobile-drawer__cats li { border-bottom: 1px solid var(--line-soft); }
.mobile-drawer__cats li:last-child { border-bottom: 0; }
.mobile-drawer__cats a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem .2rem;
  color: var(--ink-900);
  text-decoration: none;
  font-size: .98rem;
  min-height: 44px;
}
.mobile-drawer__cats a:hover, .mobile-drawer__cats a:focus-visible {
  color: var(--green-700);
}
.mobile-drawer__cats a span {
  color: var(--ink-500);
  font-size: .85rem;
}

.mobile-drawer__search {
  padding: 1rem 1.4rem 1.6rem;
  display: flex;
  gap: .5rem;
  border-top: 1px solid var(--line-soft);
  margin-top: auto;
  background: var(--paper);
  position: sticky;
  bottom: 0;
}
.mobile-drawer__search input {
  flex: 1;
  padding: .7rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: .98rem;
  background: var(--cream);
  min-width: 0;
}
.mobile-drawer__search input:focus {
  outline: 2px solid var(--green-300);
  border-color: var(--green-500);
}
.mobile-drawer__search button {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--green-700);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  flex-shrink: 0;
}
.mobile-drawer__search button svg { width: 18px; height: 18px; }
.mobile-drawer__search button:hover { background: var(--green-900); }

/* Body scroll lock when drawer is open */
body.drawer-open { overflow: hidden; }

/* Tablet (768-1024) - prevent cramped layouts ---------------------------- */
@media (max-width: 1024px) {
  .container { padding: 0 1.5rem; }
  .hero-card__siblings { grid-template-columns: 1fr; }
}

@media (max-width: 1023px) {
  .menu-toggle {
    display: inline-grid; place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink-700);
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  }
  .menu-toggle:hover, .menu-toggle:focus-visible {
    background: var(--green-50);
    color: var(--green-700);
    border-color: var(--green-300);
  }
  .primary-nav--desktop { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .author-bio { flex-direction: column; text-align: center; align-items: center; }
  .featured-row__side .post-card { flex-direction: column; }
  .featured-row__side .post-card__media { width: 100%; aspect-ratio: 16/10; }
}

@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .entry-content > p:first-of-type::first-letter { font-size: 3.2em; }
  .entry-content table { font-size: .92rem; }
  .entry-content th, .entry-content td { padding: .65rem .8rem; }
  .single-hero__featured { aspect-ratio: 16 / 10; }
  .callout, .tip-box { padding: 1rem 1.1rem; gap: .7rem; }
  .single-hero__meta { font-size: .87rem; gap: .7rem; flex-wrap: wrap; }
  .site-header__inner { padding: .7rem 0; }
  .site-brand { font-size: 1.18rem; }
}

@media (max-width: 600px) {
  .container { padding: 0 1.15rem; }
  .hero { padding-top: clamp(2rem, 5vw, 3rem); padding-bottom: clamp(2rem, 5vw, 3rem); }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero h1, .single-hero h1 { font-size: clamp(1.55rem, 7.5vw, 2.1rem); }
  .hero__headline { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  .start-here { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; align-items: stretch; gap: .55rem; }
  .hero__cta .btn { justify-content: center; }
  .header-actions { gap: .35rem; }
  .single-hero h1 { letter-spacing: -0.01em; }
}

@media (max-width: 380px) {
  body { font-size: 16px; }
  .container { padding: 0 .85rem; }
  .site-brand { font-size: 1.05rem; }
  .icon-btn { width: 38px; height: 38px; }
  .menu-toggle { width: 40px; height: 40px; }
}

/* Small refinements ----------------------------------------------------- */
.section-head__eyebrow {
  position: relative;
  padding-left: 1.5rem;
  display: inline-block;
}
.section-head__eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 1rem; height: 1px;
  background: var(--green-500);
  transform: translateY(-50%);
}
.section-head { padding: 0 1rem; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }

.post-card__media { box-shadow: var(--shadow-sm); transition: box-shadow var(--t); }
.post-card:hover .post-card__media { box-shadow: var(--shadow); }

.author-bio { box-shadow: var(--shadow-sm); }
.author-bio h4 { font-family: var(--font-serif); }

/* Updated date pill */
.updated-pill {
  display: inline-block;
  font-size: .76rem;
  background: var(--green-100);
  color: var(--green-700);
  padding: .15rem .55rem;
  border-radius: 999px;
  font-weight: 600;
  margin-left: .4rem;
}

/* Pull-quote */
.entry-content .pull-quote {
  border-left: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: var(--font-serif);
  font-style: normal;
  font-size: 1.4em;
  line-height: 1.4;
  color: var(--green-900);
  text-align: center;
  padding: 1.6em 0;
  margin: 2.4em auto;
  max-width: 720px;
}
.entry-content .pull-quote::before { display: none; }

/* Better focus states for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--green-500);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Editorial hero -------------------------------------------------------- */
.hero--editorial {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(ellipse 1100px 600px at 80% 10%, rgba(155, 196, 166, 0.22), transparent 60%),
    radial-gradient(ellipse 800px 400px at 10% 40%, rgba(212, 184, 122, 0.10), transparent 55%),
    var(--cream);
  overflow: hidden;
  text-align: left;
}
.hero--editorial::after { display: none; }

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero__bg {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
}
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.7;
}
.hero__orb--a {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(155, 196, 166, .55), transparent 70%);
  top: -80px; right: -80px;
  animation: orb-float-a 14s ease-in-out infinite;
}
.hero__orb--b {
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(217, 122, 74, .15), transparent 70%);
  bottom: -60px; left: -40px;
  animation: orb-float-b 18s ease-in-out infinite;
}
.hero__leaf {
  position: absolute;
  width: 90px; height: 90px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.16;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%232d5a3d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 22V12'/%3E%3Cpath d='M12 12c0-5 4-9 9-9 0 5-4 9-9 9z'/%3E%3Cpath d='M12 12c0-4-3-7-7-7 0 4 3 7 7 7z'/%3E%3C/svg%3E");
}
.hero__leaf--a { top: 12%; left: 6%; animation: leaf-drift 9s ease-in-out infinite; }
.hero__leaf--b { bottom: 14%; right: 8%; width: 70px; height: 70px; animation: leaf-drift 11s ease-in-out infinite reverse; transform: rotate(35deg); }

@keyframes orb-float-a {
  0%,100% { transform: translate(0,0); }
  50%     { transform: translate(-20px, 25px); }
}
@keyframes orb-float-b {
  0%,100% { transform: translate(0,0); }
  50%     { transform: translate(30px, -20px); }
}
@keyframes leaf-drift {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%     { transform: translateY(-12px) rotate(8deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__orb, .hero__leaf { animation: none !important; }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: .45rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(45, 90, 61, 0.15);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 1.3rem;
}
.hero__eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 0 rgba(74, 138, 94, 0.5);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 138, 94, 0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(74, 138, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 138, 94, 0); }
}

.hero__headline {
  font-size: clamp(2.1rem, 4.8vw, 3.5rem);
  line-height: 1.08;
  margin: 0 0 1.1rem;
  letter-spacing: -0.022em;
  max-width: 22ch;
  color: var(--ink-900);
}

.hero__lead {
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  color: var(--ink-700);
  max-width: 50ch;
  margin: 0 0 1.7rem;
  line-height: 1.62;
}

.hero__cta {
  display: inline-flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.hero__cta .btn--primary svg {
  transition: transform var(--t-fast);
}
.hero__cta .btn--primary:hover svg { transform: translateX(3px); }

.hero__trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  font-size: .88rem;
  color: var(--ink-500);
}
.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

/* Hero featured cards */
.hero__feature {
  display: grid;
  gap: 1rem;
  position: relative;
}

.hero-card--main {
  display: block;
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow);
  border: 1px solid var(--line-soft);
  transition: transform var(--t), box-shadow var(--t);
  transform: translateZ(0); /* GPU hint */
}
.hero-card--main:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.hero-card__media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--green-100);
}
.hero-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 0;
  transition: transform 600ms ease;
}
.hero-card--main:hover .hero-card__media img { transform: scale(1.04); }
.hero-card__shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 32, 26, 0.5), transparent 50%);
}
.hero-card__body {
  padding: 1.2rem 1.3rem 1.4rem;
}
.hero-card__pill {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--green-700);
  background: var(--green-100);
  padding: .25rem .7rem;
  border-radius: 999px;
  margin-bottom: .55rem;
}
.hero-card__pill--small { font-size: .68rem; padding: .2rem .55rem; }
.hero-card--main h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
  color: var(--ink-900);
  line-height: 1.28;
  margin: 0 0 .8rem;
}
.hero-card__cta {
  font-weight: 600;
  font-size: .92rem;
  color: var(--green-700);
}

.hero-card__siblings {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
}
.hero-card__siblings a {
  display: flex;
  gap: .8rem;
  align-items: stretch;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.hero-card__siblings a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--green-300);
  text-decoration: none;
}
.hero-card__sib-media {
  width: 78px;
  flex-shrink: 0;
  background: var(--green-100);
  overflow: hidden;
}
.hero-card__sib-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.hero-card__sib-body {
  padding: .55rem .6rem .55rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .25rem;
  min-width: 0;
}
.hero-card__sib-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: .87rem;
  line-height: 1.25;
  color: var(--ink-900);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__feature { margin-top: 1rem; }
}
@media (max-width: 600px) {
  .hero-card__siblings { grid-template-columns: 1fr; }
  .hero__trust { gap: 1rem; font-size: .82rem; }
}

/* Latest Guides - editorial layout ------------------------------------- */
.lg-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.4rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  align-items: stretch;
}
@media (max-width: 900px) {
  .lg-grid { grid-template-columns: 1fr; }
}

/* Lead featured card ------------------------------------------- */
.lg-lead {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line-soft);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  height: 100%;
}
.lg-lead:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--green-300);
  text-decoration: none;
}
.lg-lead__media {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--green-100);
}
.lg-lead__media img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 0;
  transition: transform 700ms ease;
}
.lg-lead:hover .lg-lead__media img { transform: scale(1.035); }
.lg-lead__shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 32, 26, 0.18), transparent 55%);
  pointer-events: none;
}
.lg-lead__body {
  padding: 1.6rem 1.8rem 1.8rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.lg-lead__title {
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  line-height: 1.22;
  letter-spacing: -0.005em;
  margin: 0 0 .7rem;
  color: var(--ink-900);
}
.lg-lead__excerpt {
  font-size: .98rem;
  color: var(--ink-700);
  margin: 0 0 1.2rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lg-lead__meta {
  display: flex;
  gap: .6rem;
  font-size: .85rem;
  color: var(--ink-500);
  align-items: center;
  margin-top: auto;
}

/* Pill (used in lead + side cards) ------------------------------- */
.lg-pill {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .11em;
  color: var(--green-700);
  background: var(--green-100);
  padding: .3rem .75rem;
  border-radius: 999px;
  margin-bottom: .85rem;
  align-self: flex-start;
  line-height: 1;
}
.lg-pill--sm {
  font-size: .65rem;
  padding: .25rem .6rem;
  margin-bottom: .55rem;
  letter-spacing: .1em;
}

/* Side cards column -------------------------------------------- */
.lg-side {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 1.1rem;
  align-content: stretch;
  height: 100%;
}
.lg-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.lg-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--green-300);
  text-decoration: none;
}
.lg-row__media {
  position: relative;
  background: var(--green-100);
  overflow: hidden;
}
.lg-row__media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 600ms ease;
}
.lg-row:hover .lg-row__media img { transform: scale(1.04); }
.lg-row__body {
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  gap: .15rem;
}
.lg-row__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.02rem;
  line-height: 1.32;
  color: var(--ink-900);
  margin: 0 0 .45rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--t-fast);
}
.lg-row__meta {
  font-size: .8rem;
  color: var(--ink-500);
  line-height: 1.2;
}
.lg-row:hover .lg-row__title { color: var(--green-700); }

/* Bottom row "extras" - 3 vertical cards ---------------------- */
.lg-extra {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 2.4vw, 2.2rem);
  margin-bottom: 1rem;
}
@media (max-width: 880px) {
  .lg-extra { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
.lg-extra__card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.lg-extra__card:hover { text-decoration: none; }
.lg-extra__media {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 1.1rem;
  background: var(--green-100);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t), transform var(--t);
}
.lg-extra__media img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 0;
  transition: transform 500ms ease;
}
.lg-extra__card:hover .lg-extra__media {
  box-shadow: var(--shadow);
}
.lg-extra__card:hover .lg-extra__media img { transform: scale(1.04); }
.lg-extra__card h4 {
  font-size: 1.12rem;
  line-height: 1.32;
  margin: 0 0 .55rem;
  color: var(--ink-900);
  transition: color var(--t-fast);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lg-extra__card:hover h4 { color: var(--green-700); }
.lg-extra__meta {
  font-size: .82rem;
  color: var(--ink-500);
  display: flex; gap: .5rem; align-items: center;
  line-height: 1.2;
}

/* Responsive tweaks --------------------------------------------- */
@media (max-width: 1024px) and (min-width: 901px) {
  /* Tablet landscape - keep two columns but tighten ratio + spacing */
  .lg-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.6rem; }
  .lg-lead__body { padding: 1.3rem 1.4rem 1.5rem; }
  .lg-lead__title { font-size: 1.25rem; }
  .lg-row { grid-template-columns: 120px minmax(0, 1fr); }
  .lg-row__body { padding: .85rem 1rem; }
  .lg-row__title { font-size: .98rem; }
  .lg-extra { gap: 1.2rem; }
  .lg-extra__card h4 { font-size: 1.05rem; }
}
@media (max-width: 900px) {
  .lg-side { grid-template-rows: auto; }
  .lg-row { grid-template-columns: 130px minmax(0, 1fr); }
}
@media (max-width: 720px) {
  /* Mobile - convert lg-extra (3 cards) to a 2-column friendly stack */
  .lg-extra { grid-template-columns: 1fr; gap: 1.3rem; }
  .lg-extra__media { aspect-ratio: 16/10; }
}
@media (max-width: 600px) {
  .lg-row { grid-template-columns: 110px minmax(0, 1fr); }
  .lg-row__body { padding: .85rem 1rem; }
  .lg-row__title { font-size: .96rem; -webkit-line-clamp: 3; }
  .lg-lead__body { padding: 1.3rem 1.3rem 1.4rem; }
  .lg-lead__title { font-size: 1.2rem; }
}
@media (max-width: 420px) {
  .lg-row { grid-template-columns: 95px minmax(0, 1fr); }
  .lg-row__title { font-size: .93rem; }
}

/* Category prev/next pager ---------------------------------------------- */
.cat-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 820px;
  margin: 3rem auto 0;
}
.cat-pager > a, .cat-pager > span {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  text-decoration: none;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  min-height: 60px;
}
.cat-pager a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--green-300);
  text-decoration: none;
}
.cat-pager__label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--green-700);
  font-weight: 600;
}
.cat-pager__title {
  color: var(--ink-900);
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.35;
}
.cat-pager__next { text-align: right; }
@media (max-width: 720px) {
  .cat-pager { grid-template-columns: 1fr; }
  .cat-pager__next { text-align: left; }
}

/* Print ----------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .newsletter, .related, .author-bio, .icon-btn, .menu-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}
