/* =====================================================================
   ElevateYourNest — Mobile-First Editorial Landing / Blog Template
   Standalone CSS. No framework, no build step. Optimized for speed + CLS.
   ===================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Warm minimalist palette (2026 niche aesthetic) */
  --bg:            #FBF8F3;  /* ivory / cloud dancer */
  --bg-card:       #FFFFFF;
  --bg-sunk:       #F2ECE2;  /* sunken sections / ad slots */
  --ink:           #2B2622;  /* warm near-black (not pure black) */
  --ink-soft:      #5A5048;  /* body text */
  --ink-faint:     #8C8175;  /* meta / captions */
  --line:          #E7DECF;  /* hairline borders */

  /* Accents */
  --terracotta:    #C06A4B;
  --terracotta-dk: #A0512F;
  --jade:          #3F6F5E;
  --walnut:        #5B4636;

  /* Typography */
  --serif: "Playfair Display", "Georgia", "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Rhythm */
  --maxw: 680px;          /* comfortable single-column reading width */
  --gutter: 20px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(43, 38, 34, 0.08);
  --shadow-sm: 0 2px 10px rgba(43, 38, 34, 0.06);

  --sticky-h: 64px;       /* reserved space for sticky bottom bar */
}

/* ---------- Dark mode tokens ---------- */
:root[data-theme="dark"] {
  --bg:        #17130F;
  --bg-card:   #211B16;
  --bg-sunk:   #2A221C;
  --ink:       #F3EBDF;
  --ink-soft:  #D6CABA;
  --ink-faint: #9C8E7E;
  --line:      #3A2F26;
  --terracotta:    #D5825F;
  --terracotta-dk: #C06A4B;
  --jade:          #6BA78F;
  --walnut:        #7A5E48;
  --shadow:    0 6px 24px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
}
:root { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;             /* >16px mobile minimum */
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* keep content clear of sticky bar */
  padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom, 0px));
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Layout container ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Top brand bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 248, 243, 0.86);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
:root[data-theme="dark"] .topbar {
  background: rgba(23, 19, 15, 0.9);   /* dark tint so text stays legible in dark mode */
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.2px;
  color: var(--ink);
  white-space: nowrap;   /* keep "The Estate Diary" on one line */
}
.brand span { color: var(--terracotta); }
/* Tighten the wordmark + controls on narrow phones so nothing wraps */
@media (max-width: 400px) {
  .brand { font-size: 1.02rem; }
  .topbar__cta { font-size: 0.72rem; }
  .controls { gap: 6px; }
}
/* Very narrow phones: drop the Subscribe quick-link so the wordmark stays clean
   (the newsletter is still reachable via the sticky bar and the page section). */
@media (max-width: 360px) {
  .topbar__cta { display: none; }
}
.topbar__cta {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--jade);
}

/* topbar right-side controls */
.controls { display: flex; align-items: center; gap: 8px; }
.nav-link {
  display: none;          /* hidden on mobile; shown on desktop */
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--ink);
}
.nav-link:hover { color: var(--terracotta); }

/* Language switcher */
.lang-wrap { position: relative; display: inline-flex; align-items: center; }
.lang-wrap svg { position: absolute; left: 8px; width: 15px; height: 15px; pointer-events: none; color: var(--ink-faint); }
.lang-select {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 26px 7px 28px;
  cursor: pointer;
  min-height: 36px;
}
.lang-select:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 1px; }
/* The native dropdown list — give options solid, theme-aware colors so
   they're never faint grey-on-white (or invisible in dark mode). */
.lang-select option {
  background-color: var(--bg-card);
  color: var(--ink);
  font-weight: 600;
}

/* Dark-mode toggle */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  transition: background-color .15s ease, color .15s ease;
}
.theme-toggle:hover { background: var(--bg-sunk); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

/* smooth, contained theme transition */
body, .topbar, .shop, .pcard, .adslot, .signup, .sticky-bar {
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

/* ---------- Hero (mobile = stacked card; desktop = full-bleed) ---------- */
.hero { padding-top: 22px; }
.hero__copy {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.hero__media { margin-top: 4px; }
.hero__media .figure { margin-inline: var(--gutter); }
.hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 12px;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 800;
  color: var(--ink);
  font-size: clamp(2rem, 8.5vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.5px;
  margin: 0 0 16px;
}
.hero__sub {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.byline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-bottom: 22px;
}
.byline__avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--walnut);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 0.85rem;
  flex: none;
}
.byline strong { color: var(--ink); font-weight: 600; }
.byline .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-faint); }

/* ---------- Aspect-locked, lazy image blocks (CLS-safe) ---------- */
.figure {
  margin: 0 0 8px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-sunk);   /* placeholder color before load */
  box-shadow: var(--shadow);
}
.figure img {
  width: 100%;
  display: block;
  object-fit: cover;
}
/* aspect ratios reserve space so images never shift layout */
.ar-45 { aspect-ratio: 4 / 5; }    /* tall, Pinterest-friendly hero */
.ar-32 { aspect-ratio: 3 / 2; }
.ar-11 { aspect-ratio: 1 / 1; }
.figure.ar-45 img,
.figure.ar-32 img,
.figure.ar-11 img { height: 100%; }
.caption {
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin: 8px 2px 0;
  font-style: italic;
}

/* ---------- Content core ---------- */
.article { padding-top: 10px; }
.article p { margin: 0 0 18px; }
.article h2 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink);
  font-size: clamp(1.5rem, 6vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.3px;
  margin: 38px 0 14px;
}
.article h3 {
  font-family: var(--sans);
  font-weight: 700;
  color: var(--ink);
  font-size: 1.1rem;
  margin: 26px 0 8px;
}
.lead { font-size: 1.15rem; color: var(--ink); }
.takeaway {
  display: block;
  font-weight: 700;
  color: var(--walnut);
}
/* scannable bullets */
.points {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.points li {
  position: relative;
  padding: 4px 0 4px 30px;
  margin-bottom: 6px;
}
.points li::before {
  content: "";
  position: absolute;
  left: 4px; top: 14px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--terracotta);
}
/* pull quote */
.pullquote {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--ink);
  border-left: 4px solid var(--jade);
  padding: 6px 0 6px 18px;
  margin: 28px 0;
}

/* ---------- "Get the Look" shop modules ---------- */
.shop {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 16px 22px;
  margin: 30px 0;
  box-shadow: var(--shadow-sm);
}
.shop__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.shop__kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--terracotta);
}
.shop__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ink);
  margin: 2px 0 16px;
}
.shop__note { font-size: 0.78rem; color: var(--ink-faint); }

/* 2-column grid on mobile */
.shop__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
/* horizontal swipe carousel variant */
.shop__carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 64%;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.shop__carousel::-webkit-scrollbar { display: none; }
.shop__carousel .pcard { scroll-snap-align: start; }

/* Product card */
.pcard {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.pcard__img {
  aspect-ratio: 1 / 1;
  background: var(--bg-sunk);
  overflow: hidden;
}
.pcard__img img { width: 100%; height: 100%; object-fit: cover; }
.pcard__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 12px 14px;
  flex: 1;
}
.pcard__title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.pcard__price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--jade);
}
.pcard__meta { font-size: 0.74rem; color: var(--ink-faint); }
.pcard .btn { margin-top: auto; }

/* Thumb-friendly CTA button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;             /* generous touch target */
  padding: 11px 16px;
  border: none;
  border-radius: 999px;
  background: var(--terracotta);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.2px;
  transition: background-color 0.15s ease, transform 0.05s ease;
}
.btn:hover { background: var(--terracotta-dk); }
.btn:active { transform: scale(0.98); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--jade { background: var(--jade); }
.btn--jade:hover { background: #335749; }

/* ---------- Ad placeholders (fixed height, zero CLS) ---------- */
.adslot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  margin: 28px 0;
  background: var(--bg-sunk);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-faint);
  text-align: center;
  overflow: hidden;
}
.adslot__label {
  font-size: 0.62rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.adslot--leaderboard { min-height: 100px; }  /* 320x100 mobile */
.adslot--rectangle   { min-height: 280px; }  /* 300x250 MPU */

/* ---------- Newsletter band ---------- */
.signup {
  background: var(--walnut);
  color: #F4EBDD;
  border-radius: var(--radius);
  padding: 28px 22px;
  margin: 34px 0;
  text-align: center;
}
.signup h2 {
  font-family: var(--serif);
  color: #fff;
  font-size: 1.5rem;
  margin: 0 0 8px;
}
.signup p { color: #E3D6C4; font-size: 0.95rem; margin: 0 0 18px; }
.signup__form { display: flex; flex-direction: column; gap: 10px; }
.signup__form input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  background: #fff;
  /* Fixed dark ink: the field background is always white, so the typed text
     must stay dark in BOTH themes (var(--ink) turns light in dark mode and
     would be near-invisible on white). */
  color: #2B2622;
}
.signup__form input::placeholder { color: #8C8175; }

/* ---------- Related grid ---------- */
.related { margin: 36px 0 20px; }
.related h2 {
  font-family: var(--serif);
  color: var(--ink);
  font-size: 1.5rem;
  margin: 0 0 16px;
}
.related__grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.rcard {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
}
.rcard__img {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-sunk);
}
.rcard__img img { width: 100%; height: 100%; object-fit: cover; }
.rcard__title {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.25;
}
.rcard__meta { font-size: 0.78rem; color: var(--ink-faint); margin-top: 4px; }

/* ---------- Footer ---------- */
.foot {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding: 26px 0 10px;
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.82rem;
}
.foot__brand {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.foot a { color: var(--jade); }
.disclosure {
  font-size: 0.72rem;
  color: var(--ink-faint);
  background: var(--bg-sunk);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 18px 0;
  line-height: 1.5;
}

/* ---------- Sticky global value bar ---------- */
.sticky-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: rgba(43, 38, 34, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
}
.sticky-bar__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: var(--maxw);
  margin-inline: auto;
}
.sticky-bar__text {
  flex: 1;
  min-width: 0;
  color: #F4EBDD;
  line-height: 1.25;
}
.sticky-bar__text b { color: #fff; font-size: 0.92rem; display: block; }
.sticky-bar__text small { color: #C9BCAB; font-size: 0.74rem; }
.sticky-bar .btn { width: auto; min-height: 42px; padding: 9px 18px; white-space: nowrap; }

/* ---------- Contact page ---------- */
.page-head {
  text-align: center;
  padding: 30px 0 6px;
}
.page-head .hero__eyebrow { text-align: center; }
.page-head h1 {
  font-family: var(--serif);
  font-weight: 800;
  color: var(--ink);
  font-size: clamp(2rem, 8vw, 2.8rem);
  line-height: 1.08;
  margin: 0 0 14px;
}
.page-head p { color: var(--ink-soft); margin: 0 auto; max-width: 52ch; }

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 18px 26px;
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  min-height: 48px;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(192, 106, 75, 0.15);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #C0492F; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }  /* honeypot */
.form-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}
.form-status--ok  { display: block; background: rgba(63, 111, 94, 0.12);  color: var(--jade); }
.form-status--err { display: block; background: rgba(192, 73, 47, 0.12);  color: #C0492F; }
.contact-alt {
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-faint);
  margin: 8px 0 4px;
}
.contact-alt a { color: var(--jade); font-weight: 600; }

/* ---------- Inspiration gallery (masonry) ---------- */
.gallery-wrap { max-width: 1160px; }
.gallery-grid {
  column-count: 2;
  column-gap: 12px;
  margin: 22px 0 8px;
}
.gallery-item {
  break-inside: avoid;
  margin: 0 0 12px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-sunk);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease, filter 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

/* Home teaser: horizontal swipe strip */
.gal-teaser { margin: 34px auto; }
.gal-teaser__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 6px;
}
.gal-teaser__kicker {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--terracotta);
}
.gal-teaser__title { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: var(--ink); margin: 2px 0 4px; }
.gal-teaser__sub { font-size: 0.95rem; color: var(--ink-soft); margin: 0 0 14px; }
.gal-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 46%;
  gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; padding-bottom: 6px; scrollbar-width: none;
}
.gal-strip::-webkit-scrollbar { display: none; }
.gal-strip a { scroll-snap-align: start; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 3 / 4; background: var(--bg-sunk); box-shadow: var(--shadow-sm); }
.gal-strip img { width: 100%; height: 100%; object-fit: cover; }
.gal-teaser__cta { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--jade); }

/* Lightbox overlay */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center;
  background: rgba(15, 12, 9, 0.92);
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: 92vw; max-height: 86vh;
  border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  object-fit: contain;
}
.lightbox__close {
  position: absolute; top: 16px; right: 20px;
  width: 44px; height: 44px; border: none; border-radius: 999px;
  background: rgba(255,255,255,0.12); color: #fff; font-size: 1.8rem; line-height: 1;
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border: none; border-radius: 999px;
  background: rgba(255,255,255,0.12); color: #fff; font-size: 2rem; line-height: 1;
}
.lightbox__prev { left: 14px; }
.lightbox__next { right: 14px; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,0.25); }

/* ---------- Tablet / desktop refinements (secondary) ---------- */
@media (min-width: 720px) {
  body { font-size: 18px; }
  .shop__grid { grid-template-columns: repeat(3, 1fr); }
  .shop__carousel { grid-auto-columns: 32%; }
  .related__grid { grid-template-columns: 1fr 1fr; }
  .signup__form {
    flex-direction: row;
    max-width: 460px;
    margin-inline: auto;
  }
  .signup__form .btn { width: auto; padding-inline: 26px; }
  .nav-link { display: inline-block; }
  .gallery-grid { column-count: 3; column-gap: 16px; }
  .gallery-item { margin-bottom: 16px; }
  .gal-strip { grid-auto-columns: 30%; }
}

/* ---------- Desktop: full-bleed cinematic hero + roomier layout ---------- */
@media (min-width: 900px) {
  :root { --gutter: 32px; }
  .topbar__inner { max-width: 1140px; }

  .hero { padding-top: 0; display: grid; }
  .hero__copy,
  .hero__media { grid-area: 1 / 1; }      /* stack in the same cell */

  .hero__media {
    width: 100vw;
    margin-left: calc(50% - 50vw);          /* break out to full viewport width */
    height: min(82vh, 820px);
    margin-top: 0;
  }
  .hero__media .figure {
    margin: 0;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    aspect-ratio: auto;
  }
  .hero__media .figure img { height: 100%; width: 100%; }
  .hero__media .figure { position: relative; }
  /* legibility scrim: darker, and rising higher so it sits behind the copy
     even when the photo is bright. Two layers = even darkening + stronger base. */
  .hero__media .figure::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg,
        rgba(18,14,10,0.18) 0%,
        rgba(18,14,10,0.20) 35%,
        rgba(18,14,10,0.62) 72%,
        rgba(18,14,10,0.86) 100%);
  }
  .hero__media .caption { display: none; }

  .hero__copy {
    position: relative;
    z-index: 2;
    align-self: end;
    max-width: 980px;
    padding-bottom: 6vh;
    color: #fff;
    text-shadow: 0 1px 20px rgba(0,0,0,0.45), 0 1px 3px rgba(0,0,0,0.35);
  }
  .hero__copy .hero__title { color: #fff; font-size: clamp(2.8rem, 5vw, 4.2rem); max-width: 16ch; }
  .hero__copy .hero__eyebrow { color: #F6C3AB; text-shadow: 0 1px 8px rgba(0,0,0,0.5); }
  .hero__copy .hero__sub { color: #F4ECE1; font-size: 1.2rem; max-width: 50ch; }
  .hero__copy .byline { color: #ECE0D0; }
  .hero__copy .byline strong { color: #fff; }

  /* roomier reading + footer/topbar centering */
  .foot { max-width: 1140px; }
  .page-head { padding-top: 56px; }
  .form-card { padding: 34px 32px 36px; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .gallery-grid { column-count: 4; }
}

/* Extra-wide screens: keep article readable, center everything */
@media (min-width: 1180px) {
  .article, .related, #newsletter > .signup, .page-head, .form-wrap, .gal-teaser {
    max-width: 760px;
    margin-inline: auto;
  }
}

/* Stack story-card title above its meta line */
.rcard__title, .rcard__meta { display: block; }

/* ---------- Category chips ---------- */
.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.cat-chip:hover { border-color: var(--terracotta); color: var(--terracotta); }
.cat-chip.is-active { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.cat-chip__count { color: var(--ink-faint); font-weight: 700; font-size: 0.75rem; }
.cat-chip.is-active .cat-chip__count { color: #fff; }
.cat-chip--sm { padding: 4px 10px; min-height: 26px; font-size: 0.72rem; }
.gallery-filters { margin: 18px 0 4px; justify-content: center; }

/* ---------- Save-to-Pinterest overlay ---------- */
.figure, .gallery-item { position: relative; }
.pin-save {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: #E60023;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  opacity: 0;
  transition: opacity .15s ease, transform .05s ease;
}
.pin-save:active { transform: scale(0.96); }
.figure:hover .pin-save,
.gallery-item:hover .pin-save,
.pin-save:focus-visible { opacity: 1; }
@media (hover: none) { .pin-save { opacity: 1; } }

/* ---------- Gallery item captions ---------- */
.gallery-item figure, .gallery-item { cursor: zoom-in; }
.gallery-item__cap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 10px 12px 12px;
  background: var(--bg-card);
  cursor: default;
}
.gallery-item__caption { font-size: 0.82rem; font-style: italic; color: var(--ink-soft); }
.gallery-item__links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.gallery-item__story { font-size: 0.78rem; font-weight: 700; color: var(--jade); }
.gallery-item__story:hover { color: var(--terracotta); }

/* ---------- Homepage featured hero button ---------- */
.hero__btn { width: auto; padding-inline: 24px; margin-top: 2px; }

/* ---------- Newsletter status line ---------- */
.signup__status { margin-top: 12px; text-align: center; }
.signup .form-status--ok  { background: rgba(255, 255, 255, 0.14); color: #DFF3EA; }
.signup .form-status--err { background: rgba(0, 0, 0, 0.22); color: #FFD9CD; }
.signup__status a { color: #fff; text-decoration: underline; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
