/* ==========================================================================
   StaySprout — static site styles
   Fonts: Lora (serif display) + Karla (sans body)
   Palette: dark olive / cream / sage — earthy, editorial, generous whitespace
   ========================================================================== */

:root {
  --ink:        #3b3a21;   /* dark olive — primary text & footer */
  --ink-soft:   #5f5d42;   /* softened text */
  --paper:      #f6f4ec;   /* page background (warm off-white) */
  --cream:      #fbf5ea;   /* card / band cream */
  --cream-warm: #fff3eb;   /* warmer cream accents */
  --sage:       #8a9a5b;   /* accent green (brand green) */
  --sage-dark:  #8a9a5b;   /* text accents use the brand green */
  --sage-press: #74844a;   /* darker green, hover/pressed states only */
  --taupe:      #b9b8a7;   /* muted lines / secondary */
  --white:      #ffffff;
  --line:       rgba(59, 58, 33, 0.14);

  --maxw: 1180px;
  --readw: 720px;

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans:  "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --shadow: 0 18px 40px -24px rgba(59, 58, 33, 0.45);
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.15rem;
  line-height: 1.75;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-dark); text-decoration: none; }
a:hover { color: var(--ink); }

h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.014em;
  color: var(--ink);
  margin: 0 0 0.5em;
}
p { margin: 0 0 1.25em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 3rem); }

/* ---------- skip link ---------- */
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white); padding: .6rem 1rem; z-index: 200; }
.skip:focus { left: 0; }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 244, 236, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 76px;
}
.brand {
  font-family: var(--serif); font-size: 1.6rem; font-weight: 500;
  letter-spacing: -0.02em; color: var(--ink); white-space: nowrap;
}
.brand:hover { color: var(--sage-dark); }

.nav-menu { display: flex; align-items: center; gap: 2.1rem; list-style: none; margin: 0; padding: 0; }
.nav-menu > li { position: relative; }
.nav-link {
  font-family: var(--sans); font-size: 1rem; font-weight: 500;
  letter-spacing: 0.005em; color: var(--ink); padding: .4rem 0;
  background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: .35rem;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--sage-dark); }
.nav-link[aria-current="page"] { color: var(--sage); }
.dropdown-menu a[aria-current="page"] { background: var(--cream); color: var(--sage); }
.nav-link .caret { width: .55em; height: .55em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.nav-link[aria-expanded="true"] .caret { transform: rotate(-135deg) translateY(-2px); }

/* dropdown */
.dropdown-menu {
  position: absolute; top: calc(100% + .5rem); right: 0;
  min-width: 320px; background: var(--white);
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: .5rem;
  list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-item.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
  display: block; padding: .6rem .8rem; border-radius: 8px;
  font-size: .98rem; line-height: 1.35; color: var(--ink);
}
.dropdown-menu a:hover { background: var(--cream); color: var(--sage-dark); }

/* mobile toggle */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem clamp(1.25rem, 5vw, 3rem) 1.25rem;
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-menu.open { max-height: 80vh; overflow: auto; }
  .nav-menu > li { width: 100%; border-top: 1px solid var(--line); }
  .nav-link { width: 100%; justify-content: space-between; padding: .95rem 0; font-size: 1.05rem; }
  .dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-radius: 0; min-width: 0;
    padding: 0 0 .5rem .5rem; display: none; background: transparent;
  }
  .nav-item.open .dropdown-menu { display: block; }
  .nav-item.open .dropdown-menu a { padding: .5rem .6rem; }
}

/* ==========================================================================
   Hero (homepage) — full-bleed photo with headline in front
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  min-height: min(82vh, 760px);
  display: flex; align-items: flex-start;   /* text sits at the top, over the sky */
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center bottom;
}
.hero-inner {
  position: relative; z-index: 2; width: 100%;
  padding-top: clamp(0.75rem, 2vw, 1.5rem);
}
.hero-text { max-width: 640px; text-align: left; }
.masthead {
  font-size: clamp(2.3rem, 8.5vw, 5.4rem); line-height: 1.02;
  letter-spacing: -0.025em; margin: 0 0 0.4em; color: var(--ink);
}
.brand-accent { color: var(--sage); }
.hero .tagline {
  font-family: var(--sans); font-weight: 400;
  font-size: clamp(1.15rem, 2.1vw, 1.5rem); line-height: 1.5;
  color: var(--ink); max-width: 32ch; margin: 0;
}
@media (max-width: 720px) {
  .hero { min-height: min(88vh, 680px); }
  .hero .tagline { max-width: none; }
  .site-header .nav { min-height: 58px; }   /* shorter header bar on phones */
  .hero-inner { padding-top: 1.9rem; }        /* more clearance so the title isn't tucked under it */
}

/* ==========================================================================
   Sections & shared bits
   ========================================================================== */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--cream { background: var(--cream); }
.section--sage { background: var(--sage); color: var(--white); }
.section--sage h1, .section--sage h2, .section--sage h3 { color: var(--white); }

.eyebrow {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .18em;
  font-size: .8rem; font-weight: 700; color: var(--sage-dark); margin-bottom: 1rem;
}
.section--sage .eyebrow { color: rgba(255,255,255,.85); }

.lead { font-size: 1.35rem; line-height: 1.6; color: var(--ink); }
.center { text-align: center; }
.measure { max-width: var(--readw); margin-left: auto; margin-right: auto; }

.script { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--sage-dark); }

/* buttons / inline link cues */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 600;
  font-size: 1rem; letter-spacing: .01em;
  padding: .8rem 1.6rem; border-radius: 999px;
  border: 1.5px solid var(--ink); color: var(--ink); background: transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--ink); color: var(--cream); }
.btn--sage { border-color: var(--sage); background: var(--sage); color: var(--white); }
.btn--sage:hover { background: var(--sage-press); border-color: var(--sage-press); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.center .btn-row { justify-content: center; }

/* ==========================================================================
   Homepage: mission / definition band
   ========================================================================== */
.mission-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem 2.5rem; }
.mission-grid h3 { font-size: 1.35rem; margin-bottom: .35em; }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.pillar { background: var(--white); border-radius: 14px; padding: 1.6rem 1.5rem; box-shadow: var(--shadow); }
.pillar h4 { color: var(--sage-dark); font-size: 1.2rem; margin-bottom: .3em; }
.pillar p { margin: 0; font-size: 1.02rem; line-height: 1.6; }

/* ==========================================================================
   Article cards (homepage grid)
   ========================================================================== */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2.4rem; }
.card {
  display: flex; flex-direction: column; background: var(--white);
  border-radius: 16px; overflow: hidden; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -26px rgba(59,58,33,.5); }
.card a.card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.card a.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover a.card-img img { transform: scale(1.04); }
.card-body { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.35rem; line-height: 1.25; margin-bottom: .5em; }
.card-body h3 a { color: var(--ink); }
.card-body h3 a:hover { color: var(--sage-dark); }
.card-body p { font-size: 1.02rem; line-height: 1.62; color: var(--ink-soft); margin-bottom: 1.1em; }
.card-more { margin-top: auto; font-weight: 600; color: var(--sage-dark); font-size: .98rem; letter-spacing: .01em; }
.card-more .arrow { transition: transform .2s; display: inline-block; }
.card:hover .card-more .arrow { transform: translateX(4px); }

/* featured (wide) card */
.card--feature { grid-column: 1 / -1; flex-direction: row; }
.card--feature a.card-img { flex: 1 1 52%; aspect-ratio: auto; min-height: 340px; }
.card--feature .card-body { flex: 1 1 48%; justify-content: center; padding: clamp(1.8rem, 4vw, 3rem); }
.card--feature .card-body h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.card--feature .card-body p { font-size: 1.12rem; }
@media (max-width: 780px) {
  .card--feature { flex-direction: column; }
  .card--feature a.card-img { aspect-ratio: 16 / 10; min-height: 0; }
}

/* ==========================================================================
   Article page layout
   ========================================================================== */
.article-head { padding: clamp(3rem, 7vw, 5rem) 0 clamp(1.5rem, 4vw, 2.5rem); text-align: center; }
.article-head .kicker { font-family: var(--sans); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; color: var(--sage-dark); margin-bottom: 1rem; }
.article-head h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); max-width: 20ch; margin-left: auto; margin-right: auto; }
/* wide article header — title spans the full content width (matching a full-width photo) */
.article-head--wide h1 { max-width: none; font-size: clamp(2.4rem, 5.6vw, 4.3rem); }
.article-date { font-style: italic; color: var(--ink-soft); font-family: var(--serif); margin-top: .8rem; }

.article-body { padding-bottom: clamp(3rem, 7vw, 6rem); }

/* prose grid: text at reading width, figures/carousel can break out wider */
.prose { display: grid; grid-template-columns: 1fr min(720px, 100%) 1fr; }
.prose > * { grid-column: 2; min-width: 0; }
.prose > .wide { grid-column: 1 / -1; width: min(1000px, 100%); justify-self: center; }
.prose > .full { grid-column: 1 / -1; width: 100%; }
.article-body .measure > p,
.article-body .measure > h2,
.article-body .measure > h3,
.article-body .measure > h4,
.article-body .measure > ul,
.article-body .measure > ol,
.article-body .measure > blockquote,
.article-body .measure > hr { }
.article-body h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); margin-top: 2.4em; margin-bottom: .5em; }
.article-body h3 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); margin-top: 1.8em; margin-bottom: .4em; }
.article-body h4 { font-size: 1.2rem; color: var(--sage-dark); margin-top: 1.6em; }
/* consistent header-to-content spacing across all articles:
   the gap after a heading is always just the heading's own bottom margin,
   regardless of whether a paragraph, two-column block, photo block or sidebar follows */
.article-body :is(h2, h3, h4) + * { margin-top: 0; }
.article-body ul, .article-body ol { padding-left: 1.3em; margin: 0 0 1.4em; }
.article-body li { margin-bottom: .6em; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.6em 0; }
.article-body .intro { font-size: 1.32rem; line-height: 1.6; color: var(--ink); }

/* figures */
figure { margin: 2.4rem 0; }
figure.full { margin-left: 0; margin-right: 0; }
figure img { border-radius: 12px; width: 100%; }
figure figcaption { font-family: var(--sans); font-size: .92rem; color: var(--ink-soft); margin-top: .7rem; text-align: center; font-style: italic; }
/* wide figures break out of the reading column */
.figure-wide { max-width: 1000px; margin-left: auto; margin-right: auto; }

/* pull-quote / "Worth knowing" callout */
.callout {
  background: var(--cream); border-left: 4px solid var(--sage);
  border-radius: 0 12px 12px 0; padding: 1.4rem 1.6rem; margin: 2rem 0;
  font-size: 1.05rem; line-height: 1.6;
}
.callout p { margin: 0; }
.callout strong:first-child { color: var(--sage-dark); }
.callout--center { text-align: center; border-left: 0; border-radius: 12px; padding: 1.5rem 1.8rem; max-width: 660px; margin-left: auto; margin-right: auto; }

blockquote {
  margin: 2rem 0; padding: .4rem 0 .4rem 1.6rem;
  border-left: 3px solid var(--taupe);
  font-family: var(--serif); font-size: 1.35rem; font-style: italic; color: var(--ink-soft);
}
blockquote p { margin: 0; }

/* related / links row at foot of article */
.article-foot { border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 2rem; }

/* ==========================================================================
   Carousel (scroll-snap gallery)
   ========================================================================== */
.carousel { position: relative; margin: 2.6rem 0; }
.carousel-track {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 1rem; scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.carousel-track figure { flex: 0 0 min(80%, 560px); scroll-snap-align: center; margin: 0; }
.carousel-track figure img { aspect-ratio: 16/10; object-fit: cover; }
.carousel-hint { text-align: center; font-size: .85rem; color: var(--ink-soft); font-style: italic; }
.carousel-btn {
  position: absolute; top: 40%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--white); color: var(--ink); cursor: pointer; display: none;
  align-items: center; justify-content: center; box-shadow: var(--shadow); font-size: 1.2rem;
}
.carousel-btn:hover { background: var(--cream); }
.carousel-btn.prev { left: -10px; }
.carousel-btn.next { right: -10px; }
@media (min-width: 900px) { .carousel-btn { display: flex; } }

/* ==========================================================================
   Agri-stays (intro) page
   ========================================================================== */
.stay-toc { display: flex; flex-wrap: wrap; gap: .6rem 1rem; justify-content: center; margin: 2rem 0 0; padding: 0; list-style: none; }
.stay-toc a { display: inline-block; padding: .5rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; font-size: .95rem; color: var(--ink); }
.stay-toc a:hover { background: var(--sage); color: var(--white); border-color: var(--sage); }

.stay { padding: clamp(3rem, 6vw, 5rem) 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.stay-tag { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--sage-dark); margin-bottom: .4rem; }
.stay h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1.2rem; }
.stay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.6rem 2rem; margin: 1.8rem 0; }
.stay-fact h4 { font-size: 1.1rem; margin-bottom: .15em; }
.stay-fact .stay-fact-label { font-family: var(--serif); font-style: italic; color: var(--sage-dark); font-size: .95rem; }
.stay-fact p { font-size: 1rem; line-height: 1.55; margin: .2em 0 0; }
.stay-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.8rem 0; }
.stay-photos img { border-radius: 12px; aspect-ratio: 16/11; object-fit: cover; width: 100%; }
@media (max-width: 620px) { .stay-photos { grid-template-columns: 1fr; } }
.stay-links { font-size: 1rem; }
.stay-links strong { color: var(--ink); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--cream-warm); padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer-brand { font-family: var(--serif); font-size: 1.9rem; font-weight: 500; margin: 0 0 .3rem; color: var(--white); }
.footer-brand-tag { font-style: italic; color: rgba(255,243,235,.7); font-family: var(--serif); }
.site-footer h4 { color: rgba(255,243,235,.6); font-family: var(--sans); text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; margin: 0 0 .8rem; }
.site-footer a { color: var(--cream-warm); }
.site-footer a:hover { color: var(--sage); }
.footer-col p, .footer-col a { display: block; font-size: 1.02rem; line-height: 1.7; margin: 0; word-break: break-word; }
.footer-bottom { border-top: 1px solid rgba(255,243,235,.16); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .88rem; color: rgba(255,243,235,.55); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand-col { grid-column: 1 / -1; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

/* utilities */
.mt-0 { margin-top: 0; }
.stack > * + * { margin-top: 1.25em; }

/* ==========================================================================
   Media + text (photo beside text)
   ========================================================================== */
.media-text {
  display: grid; grid-template-columns: 0.85fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem); align-items: stretch; margin: 2.8rem 0;
}
.media-text__img { display: flex; flex-direction: column; }
.media-text__img > img {
  width: 100%; flex: 1 1 auto; min-height: 280px; border-radius: 14px;
  object-fit: cover; box-shadow: var(--shadow);
}
.media-text__img > figcaption {
  flex: 0 0 auto; margin-top: 0.55rem; font-size: 0.85rem; line-height: 1.4;
  font-style: italic; color: var(--ink-soft); text-align: left;
}
.media-text__body { align-self: center; }
.media-text__body > *:first-child { margin-top: 0; }
.media-text__body > *:last-child { margin-bottom: 0; }
.media-text--top .media-text__body { align-self: start; }
@media (max-width: 700px) {
  .media-text { grid-template-columns: 1fr; gap: 1.25rem; }
  .media-text__img > img { height: auto; aspect-ratio: 16 / 10; min-height: 0; }
}

/* ==========================================================================
   Dark page theme (e.g. Empowering Communities) — olive bg, cream text
   ========================================================================== */
.theme-dark { background: var(--ink); color: var(--cream-warm); }
.theme-dark .site-header {
  background: rgba(59, 58, 33, 0.92);
  border-bottom-color: rgba(255, 243, 235, 0.16);
}
.theme-dark .brand { color: var(--cream-warm); }
.theme-dark .brand .brand-accent { color: var(--sage); }
.theme-dark .nav-link { color: var(--cream-warm); }
.theme-dark .nav-link:hover,
.theme-dark .nav-link[aria-expanded="true"],
.theme-dark .nav-link[aria-current="page"] { color: var(--sage); }
.theme-dark .nav-toggle span { background: var(--cream-warm); }
.theme-dark .nav-menu { background: var(--ink); border-bottom-color: rgba(255, 243, 235, 0.16); }
.theme-dark .nav-menu > li { border-top-color: rgba(255, 243, 235, 0.16); }

.theme-dark h1, .theme-dark h2, .theme-dark h3,
.theme-dark h4, .theme-dark h5 { color: var(--cream-warm); }
.theme-dark .article-head .kicker,
.theme-dark .article-date { color: rgba(255, 243, 235, 0.72); }
.theme-dark .intro,
.theme-dark .article-body p,
.theme-dark .article-body li { color: var(--cream-warm); }
.theme-dark a { color: var(--cream-warm); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--sage); }
.theme-dark a:hover { color: var(--sage); }
.theme-dark hr { border-top-color: rgba(255, 243, 235, 0.18); }
.theme-dark .article-foot { border-top-color: rgba(255, 243, 235, 0.18); }
.theme-dark figure figcaption { color: rgba(255, 243, 235, 0.72); }

.theme-dark .callout {
  background: rgba(255, 243, 235, 0.07);
  border-left-color: var(--sage); color: var(--cream-warm);
}
.theme-dark .callout p { color: var(--cream-warm); }
.theme-dark .callout strong:first-child { color: var(--sage); }

.theme-dark .btn { border-color: var(--cream-warm); color: var(--cream-warm); }
.theme-dark .btn:hover { background: var(--cream-warm); color: var(--ink); }
.theme-dark .btn--sage { border-color: var(--sage); background: var(--sage); color: #fff; }
.theme-dark .btn--sage:hover { background: var(--sage-press); border-color: var(--sage-press); color: #fff; }
.theme-dark .site-footer { border-top: 1px solid rgba(255, 243, 235, 0.16); }

/* ==========================================================================
   Reversed media+text (photo on the right) + two-column article blocks
   ========================================================================== */
.media-text--reverse { grid-template-columns: 1fr 0.85fr; }
.media-text--reverse .media-text__img { order: 2; }
.media-text--reverse .media-text__body { order: 1; }

.econ-hero { margin: 0 0 clamp(2rem, 4vw, 3rem); }
.econ-hero img { width: 100%; border-radius: 16px; aspect-ratio: 16 / 7; object-fit: cover; box-shadow: var(--shadow); }
.econ-models { text-align: center; font-family: var(--serif); font-size: 1.15rem; line-height: 2; }
.econ-block { margin: clamp(2.5rem, 5vw, 4.5rem) 0; }
.econ-block h2 { margin-top: 0; font-size: clamp(1.7rem, 3vw, 2.2rem); }
@media (max-width: 700px) {
  .media-text--reverse { grid-template-columns: 1fr; }
  .media-text--reverse .media-text__img { order: 0; }
  .media-text--reverse .media-text__body { order: 0; }
}

/* ==========================================================================
   Split article header (title left, intro right) + compact photo gallery
   ========================================================================== */
.article-head--split { text-align: left; }
.head-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.head-split__title .kicker { margin-bottom: 0.9rem; }
.head-split__title h1 { max-width: none; margin: 0; }
.head-split__title .article-date { margin-top: 1rem; }
.head-split__intro .intro { margin: 0; }
@media (max-width: 820px) {
  .head-split { grid-template-columns: 1fr; gap: 1.4rem; align-items: start; }
}

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.1rem; margin: 2.4rem 0; }
.gallery-grid figure { margin: 0; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.gallery-grid figcaption { font-size: 0.82rem; line-height: 1.4; margin-top: 0.45rem; text-align: left; font-style: italic; color: var(--ink-soft); }

/* Full-width article helpers: two-column text, paired callouts, block spacing */
.media-block { margin: clamp(2rem, 4.5vw, 3.5rem) 0; }
/* larger photo (dominant, portrait-friendly) + more surrounding space */
.media-text--big-img { grid-template-columns: 1.55fr 0.65fr; gap: clamp(1.8rem, 4.4vw, 3.3rem); margin: clamp(2.4rem, 5.4vw, 4.2rem) 0; }
/* smaller photo: natural size, top-aligned (does not stretch to text height) */
.media-text--small-img { grid-template-columns: 0.62fr 1.38fr; align-items: start; }
.media-text--small-img .media-text__img { align-self: start; }
.media-text--small-img .media-text__img > img { flex: 0 0 auto; aspect-ratio: 3 / 4; min-height: 0; }
@media (max-width: 700px) {
  .media-text--big-img, .media-text--small-img { grid-template-columns: 1fr; }
  .media-text--small-img .media-text__img > img { aspect-ratio: 16 / 10; }
}
.text-cols { columns: 2; column-gap: clamp(2rem, 4vw, 3.5rem); }
.text-cols p { margin: 0 0 1.2em; break-inside: avoid; }
/* explicit two-column split (each side is its own column, no auto-flow) */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; margin: 2rem 0; }
.two-col > div > *:first-child { margin-top: 0; }
.two-col > div > *:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; gap: 1.25rem; } }

/* two-column lessons grid — reads left-to-right (1 | 2, then 3 | 4 …); photos fit the column width */
.lessons-cols {
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: clamp(2rem, 4vw, 3.5rem); row-gap: clamp(2rem, 4vw, 3rem);
  align-items: start; margin-top: clamp(2.75rem, 5vw, 4rem);
}
.lesson { margin: 0; }
.lesson > h2 { margin-top: 0; font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.lesson figure { margin: 1.1rem 0 0; }
.lesson figure img { width: 100%; border-radius: 12px; }
.lesson figure figcaption { text-align: left; font-size: 0.85rem; line-height: 1.4; margin-top: 0.5rem; }
.lesson .callout { margin: 1.2rem 0 0; }
@media (max-width: 760px) { .lessons-cols { grid-template-columns: 1fr; } }

/* 2x2 photo square inserted between lesson rows */
.photo-square {
  grid-column: 1 / -1;
  max-width: 640px; margin: clamp(1.5rem, 3vw, 2.75rem) auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.photo-square figure { margin: 0; }
.photo-square img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; }
.photo-square figcaption { font-size: 0.78rem; line-height: 1.35; text-align: left; margin-top: 0.4rem; font-style: italic; color: var(--ink-soft); }
@media (max-width: 760px) { .photo-square { max-width: none; } }
.callout-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 2rem 0; }
.callout-pair .callout { margin: 0; height: 100%; }
.section-heading { margin-top: clamp(2.5rem, 5vw, 4rem); }

/* text with a sidebar (callout and/or photo beside the reading column) */
.text-aside { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; margin: 2rem 0; }
.text-aside__main > *:first-child { margin-top: 0; }
.text-aside__aside { display: flex; flex-direction: column; gap: 1.2rem; }
.text-aside__aside .callout { margin: 0; }
.text-aside__aside figure { margin: 0; }
.text-aside__aside figure img { border-radius: 12px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* full-width banner image */
.img-band { margin: clamp(2rem, 4vw, 3rem) 0; }
.img-band img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow); }

/* full-width feature image (taller than a banner) */
.img-feature { margin: clamp(2rem, 4.5vw, 3.5rem) 0; }
.img-feature img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow); }

@media (max-width: 760px) {
  .text-cols { columns: 1; }
  .callout-pair { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .text-aside { grid-template-columns: 1fr; }
}
