/*
 * Editorial layout layer
 * Keeps the existing content system intact while giving each page type a
 * distinct magazine composition. Shared colors and spacing live here so the
 * site can evolve without coupling presentation rules to the page generator.
 */
:root {
  /* Shared warm-paper palette; muted sage remains a supporting accent. */
  --bg: #fbf6ed;
  --card: #fffcf6;
  --ink: #3f3028;
  --ink-soft: #66564b;
  --ink-faint: #83766c;
  --line: #ebe1d5;
  --line-strong: #d9cabc;
  --brand: #c66a43;
  --brand-text: #fffcf6;
  --brand-teal: #77836c;
  --forest: #3f3028;
  --forest-hover: #59634f;
  --mint: #e9ece4;
  --orange-hover: #a95030;
  --orange-ink: #8f452a;
  --surface-soft: #e9ece4;
  --surface-warm: #f5e2d6;
  --paper: #fbf6ed;
  --paper-deep: #f2e8da;
  --mint-panel: #e9ece4;
  --mint-strong: #dce4d7;
  --forest-deep: #3f3028;
  --forest-mid: #77836c;
  --orange-pop: #c66a43;
  --orange-soft: #f5e2d6;
  --cream-white: #fffcf6;
  --editorial-shadow: 0 16px 42px rgba(63, 48, 40, 0.1);
  --editorial-border: rgba(63, 48, 40, 0.14);
}

html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--forest-deep);
  font-family: var(--sans);
}
body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(rgba(198, 106, 67, 0.055) 0.65px, transparent 0.65px);
  background-size: 9px 9px;
  content: "";
  pointer-events: none;
}

/* Override the legacy inverse-section default on light editorial sections. */
.section-head:not(.section-head-inverse) .sh-left .kicker { color: var(--orange-ink); }

/* A light masthead keeps the warm paper palette consistent across page types. */
.site-header {
  background: var(--cream-white);
  border: 0;
  border-bottom: 1px solid var(--editorial-border);
  box-shadow: 0 7px 20px rgba(63, 48, 40, 0.07);
}
.header-inner { height: 78px; }
.logo { gap: 12px; }
.logo img {
  width: 42px;
  height: 42px;
  padding: 3px;
  border-radius: 50%;
  background: var(--cream-white);
}
.logo-lockup { display: grid; gap: 0; line-height: 1.1; }
.logo .logo-name { color: var(--forest-deep); font-size: 1.28rem; }
.logo .logo-name em { color: var(--orange-pop); }
.logo-caption {
  margin-top: 4px;
  color: rgba(63, 48, 40, 0.62);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.main-nav { gap: 3px; }
.main-nav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
.main-nav a:hover {
  color: var(--forest-deep);
  background: var(--paper-deep);
  transform: translateY(-1px);
}
.main-nav a.active {
  color: var(--cream-white);
  background: var(--orange-pop);
}
.header-actions { gap: 12px; }
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--orange-pop);
  color: var(--cream-white);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}
.header-cta:hover { background: var(--orange-hover); transform: translateY(-1px); }
.header-cta svg { width: 15px; height: 15px; }
.hamburger {
  border-color: rgba(63, 48, 40, 0.22);
  background: transparent;
}
.hamburger span { background: var(--forest-deep); }
.mobile-nav.open {
  background: var(--cream-white);
  border-top-color: var(--editorial-border);
}
.mobile-nav a { color: var(--ink); border-bottom-color: var(--editorial-border); }
.mobile-nav a.active { color: var(--orange-pop); }

/* The compact cover spread places one lead story beside a small story stack. */
.home-hero { margin-top: 26px; }
.home-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 17px;
}
.home-intro-copy { min-width: 0; }
.home-intro .kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--orange-ink);
  font-size: 0.7rem;
  letter-spacing: 0.17em;
}
.home-intro h1 {
  max-width: none;
  margin: 0;
  color: var(--forest-deep);
  font-size: clamp(2.1rem, 3.7vw, 3.15rem);
  line-height: 1.02;
}
.hero-title-word { display: inline-block; }
.hero-jump {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-bottom: 3px;
  padding: 10px 14px;
  border: 1px solid var(--editorial-border);
  border-radius: 999px;
  background: var(--cream-white);
  color: var(--forest-deep);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.hero-jump:hover { border-color: var(--forest-mid); background: var(--mint-panel); transform: translateX(2px); }
.hero-jump svg { width: 16px; height: 16px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.64fr) minmax(270px, 0.86fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 15px;
  height: clamp(330px, 31vw, 382px);
  margin: 0;
}
.hero-side-stack {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 15px;
  min-height: 0;
}
.hero-card,
.card {
  border: 1px solid var(--editorial-border);
  border-radius: 24px;
  box-shadow: var(--editorial-shadow);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.hero-card:hover {
  border-color: rgba(198, 106, 67, 0.34);
  box-shadow: 0 20px 46px rgba(63, 48, 40, 0.15);
  transform: translateY(-3px);
}
.hero-main {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  grid-row: auto;
  min-height: 0;
  overflow: hidden;
  background: var(--forest-deep);
  border: 0;
  border-radius: 28px;
}
.hero-main .thumb {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: var(--mint-strong);
}
.hero-main .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hero-main:hover .thumb img { transform: scale(1.045); }
.hero-main .hero-body {
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(20px, 2.3vw, 32px);
  color: var(--cream-white);
  background: linear-gradient(145deg, var(--forest-deep), #704531);
}
.cover-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  color: #f3ddcf;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.cover-ribbon span { color: var(--orange-pop); font-size: 0.85rem; }
.hero-main .hero-meta { gap: 7px; color: rgba(255, 253, 248, 0.72); }
.hero-main .hero-meta .badge { color: var(--forest-deep) !important; background: var(--orange-pop); border-color: var(--orange-pop); }
.hero-main .date-line { color: rgba(255, 253, 248, 0.72); font-size: 0.62rem; }
.hero-main .hero-body h2 {
  margin: 12px 0 8px;
  color: var(--cream-white);
  font-size: clamp(1.52rem, 2.3vw, 2.15rem);
  line-height: 1.05;
}
.hero-main .hero-body p {
  max-width: 40ch;
  margin-bottom: 13px;
  color: rgba(255, 253, 248, 0.8);
  font-size: 0.86rem;
  line-height: 1.48;
}
.hero-read-link { color: #f3ddcf; font-size: 0.78rem; font-weight: 600; }
.hero-read-link span { display: inline-block; margin-left: 4px; transition: transform 180ms ease; }
.hero-main:hover .hero-read-link span { transform: translateX(4px); }
.hero-sticker {
  position: absolute;
  z-index: 2;
  right: 15px;
  bottom: 16px;
  display: grid;
  width: 84px;
  height: 84px;
  place-content: center;
  border: 3px solid var(--cream-white);
  border-radius: 50%;
  background: var(--orange-pop);
  color: var(--forest-deep);
  font-family: var(--serif);
  font-size: 0.84rem;
  line-height: 1.05;
  text-align: center;
  transform: rotate(8deg);
}
.hero-side {
  display: grid;
  grid-template-columns: minmax(112px, 0.82fr) minmax(0, 1.18fr);
  min-height: 0;
  overflow: hidden;
  background: var(--cream-white);
  text-decoration: none;
}
.hero-side .thumb { min-height: 0; height: 100%; overflow: hidden; background: var(--mint-panel); }
.hero-side .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.hero-side:hover .thumb img { transform: scale(1.05); }
.hero-side .hero-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 14px 16px;
}
.mini-story-number {
  margin-bottom: 7px;
  color: var(--orange-ink);
  font-size: 0.61rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}
.mini-story-number span { padding: 0 3px; color: var(--orange-pop); }
.hero-side .hero-body h2 { margin: 0; font-size: clamp(1rem, 1.3vw, 1.23rem); line-height: 1.15; }
.mini-story-read { margin-top: 10px; color: var(--forest-mid); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.mini-story-read span { margin-left: 3px; color: var(--orange-hover); }

/* Shared article cards follow the same readable, image-led editorial sequence. */
.card {
  --card-tilt-x: 0deg;
  --card-tilt-y: 0deg;
  --card-glow-x: 50%;
  --card-glow-y: 50%;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--editorial-border);
  border-radius: 23px;
  background: var(--cream-white);
  box-shadow: 0 9px 25px rgba(63, 48, 40, 0.075), 0 1px 2px rgba(63, 48, 40, 0.04);
  color: var(--ink);
  text-decoration: none;
  transform: translateY(0);
  transform-style: preserve-3d;
  transition: transform 240ms cubic-bezier(0.2, 0, 0, 1), box-shadow 240ms ease, border-color 200ms ease;
}
.card:hover {
  border-color: var(--editorial-border);
  box-shadow: 0 9px 25px rgba(63, 48, 40, 0.075), 0 1px 2px rgba(63, 48, 40, 0.04);
  transform: none;
}
.card .card-body {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  min-width: 0;
  padding: 19px 20px 15px;
  background: var(--cream-white);
}
.card .hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 9px;
  min-height: 23px;
  margin: 0 0 12px;
  color: var(--ink-faint);
}
.card .hero-meta .badge {
  flex: 0 1 auto;
  max-width: 100%;
  padding: 4px 9px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--orange-pop) 38%, var(--line-strong));
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange-ink);
  font-size: 0.65rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card .date-line { color: var(--ink-faint); font-size: 0.67rem; letter-spacing: 0.055em; }
.card .card-body h3 {
  display: -webkit-box;
  margin: 0 0 9px;
  overflow: hidden;
  color: var(--forest-deep);
  font-family: var(--serif);
  font-size: clamp(1.18rem, 1.45vw, 1.48rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}
.card .card-body p {
  display: -webkit-box;
  max-width: 62ch;
  margin: 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.83rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}
.card .thumb {
  position: relative;
  flex: none;
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  margin: 0 14px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--paper-deep);
}
.card .thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
  transition: transform 480ms cubic-bezier(0.2, 0, 0, 1), filter 280ms ease;
}
.card:hover .thumb img { transform: none; filter: none; }
.card .thumb::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--card-glow-x) var(--card-glow-y), rgba(255, 252, 246, 0.46), transparent 42%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.card .card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  margin: 12px 20px 0;
  padding: 10px 0 12px;
  border-top: 1px solid var(--line);
  color: var(--orange-ink);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}
.card-foot-arrow {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--orange-ink);
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
/* The card action uses the site's paw mark instead of a generic arrow glyph. */
.paw-print-icon {
  display: block;
  width: 15px;
  height: 15px;
  fill: currentColor;
  transition: transform 180ms ease;
}
.card:focus-visible { outline-offset: 5px; }
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  /* Featured cards share the article cards' restrained pointer tilt. */
  .hero-card:hover {
    transform: translateY(-3px) perspective(1100px) rotateX(var(--card-tilt-x)) rotateY(var(--card-tilt-y));
  }
  .card:hover {
    border-color: color-mix(in srgb, var(--orange-pop) 40%, var(--line-strong));
    box-shadow: 0 20px 38px rgba(63, 48, 40, 0.17), 0 5px 12px rgba(63, 48, 40, 0.07);
    transform: translateY(-5px) perspective(1100px) rotateX(var(--card-tilt-x)) rotateY(var(--card-tilt-y));
  }
  .card:hover .thumb img { filter: saturate(1.04) contrast(1.02); transform: scale(1.035); }
  .card:hover .thumb::after { opacity: 0.8; }
  .card:hover .card-foot-arrow { transform: translate(2px, -1px); border-color: var(--orange-pop); background: var(--orange-pop); color: var(--cream-white); }
  .card:hover .paw-print-icon { transform: rotate(-8deg) scale(1.06); }
}

/* Keep featured cards neutral at rest and ready for pointer-driven tilt. */
.hero-card {
  --card-tilt-x: 0deg;
  --card-tilt-y: 0deg;
  transform-style: preserve-3d;
}
.hero-card:focus-visible { outline-offset: 5px; }

/* Department tiles move the site's navigation into the editorial flow. */
.home-departments.section { margin-top: 48px; }
.home-departments .section-head { border-bottom-color: transparent; padding-bottom: 0; margin-bottom: 17px; }
.home-departments .section-head::after { display: none; }
.home-departments .section-head h2 { font-size: clamp(1.45rem, 2.1vw, 1.8rem); }
.home-departments .section-head .kicker { margin-bottom: 2px; }
.cat-index {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  border: 0;
}
.cat-row {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 190px;
  padding: 16px 16px 18px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--cat-color) 22%, white);
  border-radius: 21px;
  background: color-mix(in srgb, var(--cat-color) 10%, white);
  color: var(--forest-deep);
  text-decoration: none;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}
.cat-row::before {
  position: absolute;
  top: -30px;
  right: -27px;
  width: 105px;
  height: 105px;
  border: 1px solid color-mix(in srgb, var(--cat-color) 36%, white);
  border-radius: 50%;
  background: color-mix(in srgb, var(--cat-color) 14%, white);
  content: "";
  transition: transform 220ms ease;
}
.cat-row:hover { background: color-mix(in srgb, var(--cat-color) 17%, white); box-shadow: var(--editorial-shadow); transform: translateY(-3px); }
/* Restore the circle dimensions overridden by the legacy category hover rule. */
.cat-row:hover::before { width: 105px; height: 105px; transform: scale(1.22); }
.cat-row-index {
  z-index: 1;
  align-self: flex-start;
  margin-bottom: auto;
  color: color-mix(in srgb, var(--cat-color) 85%, var(--forest-deep));
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}
.cat-row-main { z-index: 1; display: flex; flex-direction: column; gap: 6px; margin-top: 22px; }
.cat-row-name { color: var(--forest-deep); font-family: var(--serif); font-size: 1.28rem; line-height: 1.05; }
.cat-row-desc { display: -webkit-box; overflow: hidden; color: var(--ink-soft); font-size: 0.73rem; line-height: 1.42; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.cat-row-count { display: flex; align-items: baseline; gap: 5px; margin-top: 12px; }
.cat-row-count .n { color: var(--forest-deep); font-family: var(--serif); font-size: 1.2rem; }
.cat-row-count .label { color: var(--ink-faint); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; }
.cat-row-arrow { position: absolute; right: 13px; bottom: 15px; z-index: 1; width: 29px; height: 29px; border-color: color-mix(in srgb, var(--cat-color) 34%, white); background: var(--cream-white); color: var(--forest-deep); }
.cat-row-arrow svg { width: 14px; height: 14px; }

/* The latest feed uses the same three-column editorial card rhythm sitewide. */
.home-latest.section { margin-top: 68px; }
.home-latest .section-head { margin-bottom: 21px; }
.latest-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  align-items: stretch;
  gap: 18px;
}
.latest-grid .card { min-width: 0; }
.latest-grid .latest-lead .card-body h3 { font-size: clamp(1.25rem, 1.55vw, 1.55rem); }

/* Editor's picks become a contrasting field-notes panel. */
.picks-band {
  position: relative;
  overflow: hidden;
  padding: 34px 38px 30px;
  border: 0;
  border-radius: 28px;
  background: var(--forest-deep);
  box-shadow: var(--editorial-shadow);
}
.picks-band::after {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 253, 248, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(255, 253, 248, 0.035), 0 0 0 48px rgba(255, 253, 248, 0.025);
  content: "";
  pointer-events: none;
}
.picks-band .section-head { position: relative; z-index: 1; border-bottom-color: rgba(255, 253, 248, 0.25); }
.picks-band .section-head::after { background: rgba(255, 253, 248, 0.2); }
.picks-band .section-head h2 { color: var(--cream-white); }
.picks-band .section-head .kicker { color: #f3ddcf; }
.picks-band .pick { position: relative; z-index: 1; border-bottom-color: rgba(255, 253, 248, 0.18); }
.picks-band .pick h3 { color: var(--cream-white); }
.picks-band .pick-cat,
.picks-band .pick-side { color: rgba(255, 253, 248, 0.68); }
.picks-band .pick-num { color: #f3ddcf; }
.picks-band .pick-arrow { border-color: rgba(255, 253, 248, 0.25); background: rgba(255, 253, 248, 0.08); color: var(--cream-white); }
.picks-band .pick:hover { background: rgba(255, 253, 248, 0.06); }
.picks-band .pick:hover h3 { color: #f3ddcf; }
.picks-band .pick:hover .pick-arrow { border-color: var(--orange-pop); background: var(--orange-pop); color: var(--forest-deep); }

/* The photo desk uses image-led cards with a paper caption shelf. */
.carousel { overflow: hidden; }
.car-track { gap: 15px; padding: 2px 2px 15px; }
.car-slide { overflow: hidden; border: 1px solid var(--editorial-border); border-radius: 22px; background: var(--cream-white); box-shadow: 0 8px 22px rgba(63, 48, 40, 0.08); }
.car-thumb { border-radius: 0; }
.car-caption { min-height: 116px; padding: 14px 16px 16px; }
.car-cat { color: var(--orange-ink) !important; font-size: 0.62rem; letter-spacing: 0.13em; text-transform: uppercase; }
.car-slide h3 { margin-top: 5px; color: var(--forest-deep); font-size: 1.08rem; line-height: 1.13; }
.car-slide:hover h3 { color: var(--orange-ink); }

/* Category headers use a colored field-guide panel and lead story. */
.cat-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(230px, 0.8fr);
  align-items: center;
  min-height: 255px;
  margin-top: 28px;
  padding: 31px clamp(22px, 4vw, 52px);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--cat-color) 24%, white);
  border-bottom: 1px solid color-mix(in srgb, var(--cat-color) 24%, white);
  border-radius: 28px;
  background: linear-gradient(105deg, color-mix(in srgb, var(--cat-color) 12%, white), var(--cream-white) 66%);
  box-shadow: var(--editorial-shadow);
}
.cat-hero-copy { position: relative; z-index: 1; max-width: 660px; }
.cat-overline { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; color: var(--forest-mid); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; }
.cat-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cat-color); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cat-color) 18%, white); }
.cat-hero h1 { color: var(--forest-deep); font-size: clamp(2.55rem, 5vw, 4.2rem); line-height: 0.98; }
.cat-hero p { max-width: 56ch; margin: 14px 0 13px; color: var(--ink-soft); font-size: 0.96rem; line-height: 1.55; }
.cat-count-line { display: inline-flex; align-items: baseline; gap: 6px; margin: 0; color: var(--ink-faint); font-size: 0.69rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.cat-count-line strong { color: var(--forest-deep); font-family: var(--serif); font-size: 1.3rem; font-weight: 400; letter-spacing: 0; }
.cat-rule { display: none; }
.cat-hero-art { position: relative; justify-self: end; width: min(100%, 305px); height: 190px; }
.cat-art-orbit { position: absolute; inset: 4px 36px 0 25px; border: 1px solid color-mix(in srgb, var(--cat-color) 48%, white); border-radius: 50%; transform: rotate(-16deg); }
.cat-art-orbit::before,
.cat-art-orbit::after { position: absolute; border-radius: 50%; background: color-mix(in srgb, var(--cat-color) 15%, white); content: ""; }
.cat-art-orbit::before { top: 20px; right: -20px; width: 68px; height: 68px; }
.cat-art-orbit::after { bottom: -10px; left: 11px; width: 34px; height: 34px; }
.cat-art-letter { position: absolute; inset: 12px 54px 15px 42px; display: grid; place-items: center; color: color-mix(in srgb, var(--cat-color) 70%, var(--forest-deep)); font-family: var(--serif); font-size: 9rem; line-height: 1; }
.cat-art-sticker { position: absolute; right: 1px; bottom: 10px; display: grid; width: 83px; height: 83px; place-content: center; border: 3px solid var(--cream-white); border-radius: 50%; background: var(--orange-pop); color: var(--forest-deep); font-family: var(--serif); font-size: 0.84rem; line-height: 1.02; text-align: center; transform: rotate(8deg); }
.category-feature-section { margin-top: 45px; }
.category-feature-section .section-head { margin-bottom: 16px; }
.category-feature-section .section-head h2 { font-size: clamp(1.55rem, 2.5vw, 2rem); }
.category-section-note { color: var(--ink-faint); font-size: 0.76rem; }
.category-section-note span { color: var(--orange-ink); font-size: 1rem; }
.category-feature-card {
  width: min(100%, 820px);
}
.category-feature-card .card-body { padding: 22px 24px 16px; }
.category-feature-card .card-body h3 { font-size: clamp(1.35rem, 2vw, 1.8rem); }
.category-feature-card .thumb { aspect-ratio: 2.1 / 1; }
.category-feature-card .card-foot { margin-right: 24px; margin-left: 24px; }
.category-feed { margin-top: 54px; }
.category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.category-grid .card-body { padding: 18px 18px 14px; }
.category-grid .card-body h3 { font-size: clamp(1.12rem, 1.3vw, 1.32rem); }
.category-grid .card-foot { margin-right: 18px; margin-left: 18px; }
.btn-outline { border-color: var(--forest-mid); border-radius: 999px; color: var(--forest-deep); }
.btn-outline:hover { border-color: var(--orange-pop); background: var(--orange-pop); color: var(--cream-white); }

/* Article pages pair a readable story column with a compact details rail. */
.breadcrumb { margin-top: 17px; color: var(--ink-faint); font-size: 0.78rem; }
.breadcrumb a { color: var(--ink-soft); }
.back-home {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 7px 11px;
  border: 1px solid var(--editorial-border);
  border-radius: 999px;
  background: var(--cream-white);
  color: var(--forest-deep);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
}
.back-home:hover { background: var(--mint-panel); }
.article-head {
  max-width: 1040px;
  margin-top: 25px;
  margin-bottom: 24px;
  padding-top: 0;
}
.article-head-kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--orange-ink); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; }
.article-spark { color: var(--orange-pop); font-size: 1.05rem; }
.article-head h1 { max-width: 24ch; color: var(--forest-deep); font-size: clamp(2.3rem, 4.6vw, 3.65rem); line-height: 1.02; }
.article-head .standfirst { max-width: 70ch; margin: 13px 0 0; color: var(--ink-soft); font-size: 1.08rem; line-height: 1.55; }
.article-cover { margin: 0; overflow: hidden; border: 8px solid var(--cream-white); border-radius: 28px; background: var(--cream-white); box-shadow: var(--editorial-shadow); }
.article-cover img { width: 100%; max-height: 570px; aspect-ratio: 16 / 8.5; object-fit: cover; }
.article-cover figcaption { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px 4px; color: var(--ink-faint); font-size: 0.66rem; letter-spacing: 0.09em; text-transform: uppercase; }
.article-layout { display: grid; grid-template-columns: 205px minmax(0, 740px); justify-content: center; align-items: start; gap: clamp(30px, 5vw, 68px); margin-top: 38px; }
.article-aside { position: sticky; top: 100px; padding: 19px; border: 1px solid rgba(198, 106, 67, 0.28); border-radius: 20px; background: var(--orange-soft); }
.article-aside-kicker { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; color: var(--orange-ink); font-size: 0.65rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; }
.article-aside-kicker span { color: var(--orange-pop); font-size: 0.95rem; }
.article-detail { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid rgba(63, 48, 40, 0.14); }
.article-detail span { color: var(--ink-faint); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.article-detail strong { color: var(--forest-deep); font-family: var(--serif); font-size: 1rem; font-weight: 400; }
.article-category-link { display: flex; justify-content: space-between; gap: 8px; margin-top: 9px; padding-top: 11px; border-top: 1px solid rgba(63, 48, 40, 0.14); color: var(--forest-deep); font-size: 0.74rem; font-weight: 600; text-decoration: none; }
.article-category-link span { color: var(--orange-ink); }
.article-layout .prose { width: 100%; max-width: 740px; margin: 0; padding: 0; color: var(--ink); font-size: 1.04rem; line-height: 1.82; }
.prose h2 { margin-top: 2.1em; margin-bottom: 0.55em; color: var(--forest-deep); font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.12; }
.prose h3 { margin-top: 1.7em; margin-bottom: 0.45em; color: var(--forest-deep); font-size: 1.35rem; }
.prose blockquote { padding: 17px 21px; border-left: 4px solid var(--orange-pop); border-radius: 0 14px 14px 0; background: var(--mint-panel); color: var(--forest-deep); }
.prose a, .page-body a, .contact-block a { color: var(--orange-hover); text-underline-offset: 3px; }
.prose strong { color: var(--forest-deep); font-weight: 600; }
/* Keep numbered references readable below the sticky header after a citation
   jump. Long publisher names must wrap within the article on narrow screens. */
.article-sources { margin-top: 2.5rem; padding-top: 0.5rem; border-top: 1px solid var(--line); }
.article-sources ol { padding-left: 1.5em; }
.article-sources li { scroll-margin-top: 180px; overflow-wrap: anywhere; }
.article-sources li:target { outline: 2px solid currentColor; outline-offset: 6px; }
.pager { gap: 16px; margin-top: 48px; padding-top: 20px; border-top-color: var(--editorial-border); }
.pager a { border-radius: 19px; background: var(--cream-white); }
.pager .pager-label { color: var(--orange-ink); }
.pager .pager-title { color: var(--forest-deep); font-family: var(--serif); font-size: 1.05rem; font-weight: 400; }
.article-related .section-head { margin-bottom: 20px; }
.article-related .card { overflow: hidden; background: var(--cream-white); }

/* Long-form static pages inherit the same paper-and-field-notes language. */
.page-hero { max-width: 980px; margin-top: 26px; padding: clamp(24px, 4vw, 42px); border: 1px solid var(--editorial-border); border-radius: 26px; background: var(--mint-panel); }
.page-hero h1 { color: var(--forest-deep); }
.page-hero .lede { color: var(--ink-soft); }
.page-body { max-width: 780px; padding-top: 22px; }
.page-body h2 { margin-top: 1.8em; color: var(--forest-deep); }
.contact-form { border: 1px solid var(--editorial-border); border-radius: 22px; background: var(--cream-white); box-shadow: var(--editorial-shadow); }
.contact-form input, .contact-form textarea { border-color: var(--editorial-border); border-radius: 12px; background: #fffefa; }
.contact-form input:focus, .contact-form textarea:focus { outline-color: rgba(198, 106, 67, 0.25); border-color: var(--orange-pop); }
.notfound { padding-top: 70px; }

/* The shared footer closes the page with a warm dark-paper anchor. */
.site-footer { margin-top: 80px; border: 0; background: var(--forest-deep); color: var(--cream-white); }
.disclaimer-strip { border-bottom-color: rgba(255, 252, 246, 0.16); background: #342720; color: rgba(255, 252, 246, 0.86); }
.footer-brand span { color: var(--cream-white); }
.footer-legal a { color: rgba(255, 253, 248, 0.78); }
.footer-legal a:hover { color: var(--orange-pop); background: rgba(255, 253, 248, 0.08); }
.footer-copyright { border-top-color: rgba(255, 253, 248, 0.16); color: rgba(255, 253, 248, 0.62); }

/* Keep the new compositions intact as cards and grids collapse for tablets. */
@media (max-width: 1050px) {
  .main-nav { gap: 0; }
  .main-nav a { padding: 8px 9px; font-size: 0.78rem; }
  .header-cta { padding: 9px 11px; font-size: 0.75rem; }
  .hero { grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.9fr); height: 340px; }
  .hero-main { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
  .hero-main .hero-body { padding: 21px; }
  .hero-sticker { width: 72px; height: 72px; font-size: 0.73rem; }
  .cat-index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-row { min-height: 175px; }
  .article-layout { grid-template-columns: 175px minmax(0, 740px); gap: 28px; }
}

@media (max-width: 820px) {
  .header-inner { gap: 12px; }
  .main-nav { display: none; }
  .header-cta { margin-left: auto; }
  .hamburger { display: flex; }
  .home-hero { margin-top: 22px; }
  .home-intro h1 { font-size: clamp(2rem, 5.3vw, 2.8rem); }
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; height: auto; }
  .hero-main { min-height: 300px; }
  .hero-side-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(150px, 1fr); }
  .hero-side { grid-template-columns: minmax(100px, 0.78fr) minmax(0, 1.22fr); min-height: 150px; }
  .hero-main .hero-body h2 { font-size: clamp(1.45rem, 3.1vw, 2rem); }
  .home-departments.section { margin-top: 40px; }
  .latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .latest-grid .latest-lead { grid-column: auto; grid-row: auto; min-height: 0; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-hero { grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.8fr); min-height: 225px; }
  .cat-hero-art { width: 220px; height: 170px; }
  .cat-art-letter { font-size: 7.8rem; }
  .cat-art-sticker { width: 70px; height: 70px; font-size: 0.72rem; }
  .category-feature-card { min-height: 0; }
  .article-layout { grid-template-columns: 1fr; gap: 20px; }
  .article-aside { position: static; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: 10px; }
  .article-aside-kicker { grid-column: 1 / -1; margin: 0; }
  .article-detail { border: 0; }
  .article-category-link { align-self: stretch; align-items: center; margin: 0; padding: 10px 0; border-top: 0; }
  .article-layout .prose { max-width: 100%; }
}

@media (max-width: 640px) {
  .header-inner { height: 68px; }
  .logo img { width: 38px; height: 38px; }
  .logo .logo-name { font-size: 1.12rem; }
  .logo-caption { font-size: 0.52rem; }
  .header-cta { display: none; }
  .home-hero { margin-top: 18px; }
  .home-intro { align-items: flex-end; gap: 8px; margin-bottom: 12px; }
  .home-intro-copy { flex: 1; }
  .home-intro .kicker { max-width: 24ch; margin-bottom: 5px; font-size: 0.58rem; }
  .home-intro h1 { max-width: 13ch; font-size: clamp(1.8rem, 7.4vw, 2.25rem); line-height: 1.02; }
  .hero-jump { width: 32px; height: 32px; justify-content: center; gap: 0; margin-bottom: 1px; padding: 0; }
  .hero-jump span { display: none; }
  .hero-jump svg { width: 15px; height: 15px; }
  .hero { gap: 10px; }
  .hero-main { grid-template-columns: minmax(105px, 0.72fr) minmax(0, 1.28fr); min-height: 200px; border-radius: 22px; }
  .hero-main .thumb { grid-column: 1; grid-row: 1; }
  .hero-main .hero-body { grid-column: 2; grid-row: 1; padding: 11px 12px; }
  .cover-ribbon { gap: 4px; margin-bottom: 6px; font-size: 0.53rem; }
  .hero-main .hero-meta { gap: 4px; }
  .hero-main .hero-meta .badge { padding: 2px 6px; font-size: 0.51rem; }
  .hero-main .date-line { font-size: 0.5rem; letter-spacing: 0.05em; }
  .hero-main .hero-body h2 { margin: 7px 0 5px; font-size: clamp(1rem, 4.3vw, 1.2rem); line-height: 1.1; }
  .hero-main .hero-body p { display: -webkit-box; overflow: hidden; margin-bottom: 5px; font-size: 0.69rem; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
  .hero-read-link { font-size: 0.62rem; }
  .hero-sticker { right: auto; bottom: 7px; left: 20px; width: 52px; height: 52px; border-width: 2px; font-size: 0.56rem; }
  .hero-side-stack { gap: 9px; }
  .hero-side { grid-template-columns: 82px minmax(0, 1fr); min-height: 96px; border-radius: 18px; }
  .hero-side .hero-body { padding: 9px 10px; }
  .mini-story-number { margin-bottom: 4px; font-size: 0.5rem; letter-spacing: 0.07em; }
  .hero-side .hero-body h2 { font-size: 0.89rem; line-height: 1.12; }
  .mini-story-read { margin-top: 5px; font-size: 0.51rem; }
  .home-departments.section { margin-top: 36px; }
  .home-departments .section-head { margin-bottom: 12px; }
  .home-departments .section-head h2 { font-size: 1.45rem; }
  .cat-index { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .cat-row { min-height: 156px; padding: 13px 12px 13px; border-radius: 17px; }
  .cat-row-main { gap: 5px; margin-top: 14px; }
  .cat-row-name { font-size: 1.13rem; }
  .cat-row-desc { font-size: 0.65rem; }
  .cat-row-count { margin-top: 8px; }
  .cat-row-count .n { font-size: 1.05rem; }
  .cat-row-count .label { font-size: 0.52rem; }
  .cat-row-arrow { right: 8px; bottom: 8px; width: 25px; height: 25px; }
  .home-latest.section { margin-top: 49px; }
  .latest-grid { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 11px; }
  .latest-grid .latest-lead { grid-column: auto; grid-row: auto; min-height: 0; }
  .latest-grid .latest-lead .card-body { padding: 18px 16px 14px; }
  .latest-grid .latest-lead .card-body h3 { margin: 0 0 9px; font-size: 1.22rem; }
  .section { margin-top: 48px; }
  .section-head { margin-bottom: 17px; }
  .section-head h2 { font-size: 1.5rem; }
  .picks-band { padding: 22px 17px; border-radius: 22px; }
  .pick { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; padding: 13px 0; }
  .pick-side { display: none; }
  .pick h3 { font-size: 0.95rem; }
  .car-track { gap: 11px; }
  .car-slide { flex-basis: 78vw; }
  .car-caption { min-height: 100px; padding: 12px; }
  .cat-hero { grid-template-columns: minmax(0, 1fr) 95px; min-height: 0; margin-top: 17px; padding: 22px 17px; border-radius: 22px; }
  .cat-overline { gap: 6px; margin-bottom: 8px; font-size: 0.53rem; letter-spacing: 0.1em; }
  .cat-hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .cat-hero p { margin: 9px 0 10px; font-size: 0.78rem; line-height: 1.45; }
  .cat-count-line { font-size: 0.57rem; }
  .cat-count-line strong { font-size: 1.1rem; }
  .cat-hero-art { width: 100px; height: 110px; }
  .cat-art-orbit { inset: 8px 8px 7px 3px; }
  .cat-art-orbit::before { top: 8px; right: -7px; width: 35px; height: 35px; }
  .cat-art-orbit::after { bottom: 0; left: 2px; width: 20px; height: 20px; }
  .cat-art-letter { inset: 8px 17px 7px 7px; font-size: 5.1rem; }
  .cat-art-sticker { right: -4px; bottom: 0; width: 50px; height: 50px; border-width: 2px; font-size: 0.5rem; }
  .category-feature-section { margin-top: 32px; }
  .category-feature-section .section-head { margin-bottom: 12px; }
  .category-section-note { display: none; }
  .category-feature-card { width: 100%; min-height: 0; }
  .category-feature-card .thumb { min-height: 0; aspect-ratio: 16 / 9; }
  .category-feature-card .card-body { padding: 18px 17px 14px; }
  .category-feature-card .card-body h3 { margin: 0 0 9px; font-size: 1.4rem; }
  .category-feature-card .card-body p { margin-bottom: 0; font-size: 0.83rem; }
  .category-feature-card .card-foot { margin-right: 17px; margin-left: 17px; }
  .category-feed { margin-top: 38px; }
  .category-grid { grid-template-columns: 1fr; gap: 12px; }
  .category-grid .card { display: flex; flex-direction: column; min-height: 0; }
  .category-grid .card .thumb { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .category-grid .card .thumb img { height: 100%; object-fit: cover; }
  .category-grid .card-body { display: flex; flex-direction: column; justify-content: flex-start; padding: 18px 16px 14px; }
  .category-grid .card-body h3 { margin: 0 0 9px; font-size: 1.12rem; }
  .category-grid .card-body p { display: -webkit-box; }
  .category-grid .card-foot { margin-right: 16px; margin-left: 16px; }
  .article-head { margin-top: 20px; margin-bottom: 18px; }
  .article-head-kicker { margin-bottom: 8px; font-size: 0.59rem; }
  .article-head h1 { font-size: clamp(1.9rem, 8vw, 2.55rem); line-height: 1.04; }
  .article-head .standfirst { margin-top: 9px; font-size: 0.92rem; line-height: 1.48; }
  .article-cover { border-width: 5px; border-radius: 21px; }
  .article-cover img { aspect-ratio: 4 / 3; }
  .article-cover figcaption { padding: 8px 9px 2px; font-size: 0.55rem; }
  .article-layout { gap: 16px; margin-top: 22px; }
  .article-aside { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 7px 12px; padding: 14px; border-radius: 17px; }
  .article-aside-kicker { grid-column: 1 / -1; margin-bottom: 2px; }
  .article-detail { padding: 6px 0; }
  .article-detail strong { font-size: 0.9rem; }
  .article-category-link { grid-column: 1 / -1; padding-top: 7px; border-top: 1px solid rgba(63, 48, 40, 0.14); }
  .article-layout .prose { font-size: 0.98rem; line-height: 1.76; }
  .prose h2 { margin-top: 1.8em; font-size: 1.55rem; }
  .pager { grid-template-columns: 1fr; gap: 10px; margin-top: 30px; }
  .pager a, .pager .next { text-align: left; }
  .page-hero { margin-top: 17px; padding: 22px 18px; border-radius: 21px; }
  .page-hero h1 { font-size: 2rem; }
  .page-body { padding-top: 14px; }
  .contact-form { padding: 19px 16px; }
  .site-footer { margin-top: 54px; }
  .footer-inner { gap: 14px; padding: 22px 0; }
  .footer-legal { gap: 5px 8px; }
}

@media (max-width: 640px) {
  .latest-grid { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 14px; }
  .category-grid { grid-template-columns: 1fr; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .card:hover { transform: none; }
  .card:hover .thumb img { transform: none; filter: none; }
  .card:hover .thumb::after { opacity: 0; }
}

/* Playful pet-brand masthead: soft shapes, clear states and a friendly mobile menu. */
.site-header {
  background: rgba(255, 252, 246, 0.94);
  border-bottom: 1px solid rgba(198, 106, 67, 0.18);
  box-shadow: 0 10px 26px rgba(63, 48, 40, 0.08);
  backdrop-filter: blur(16px);
}
.header-inner {
  position: relative;
  min-height: 82px;
  height: auto;
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo { gap: 11px; }
.logo-mark {
  position: relative;
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(198, 106, 67, 0.32);
  border-radius: 16px 16px 20px 16px;
  background: var(--orange-soft);
  transform: rotate(-3deg);
}
.logo-mark img {
  width: 40px;
  height: 40px;
  padding: 4px;
  border-radius: 50%;
  background: var(--cream-white);
  transform: rotate(3deg);
}
.logo-mark-spark {
  position: absolute;
  top: -9px;
  right: -7px;
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border: 2px solid var(--cream-white);
  border-radius: 50%;
  background: var(--orange-pop);
  color: var(--cream-white);
  font-size: 0.65rem;
  line-height: 1;
  transform: rotate(8deg);
}
.logo-lockup { position: relative; z-index: 1; }
.logo .logo-name { font-size: 1.25rem; }
.nav-dock {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 4px 5px 4px 11px;
  border: 1px solid rgba(119, 131, 108, 0.28);
  border-radius: 999px;
  background: rgba(233, 236, 228, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 252, 246, 0.76);
}
.nav-dock-label {
  flex: 0 0 auto;
  color: var(--forest-mid);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.main-nav { gap: 2px; }
.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 10px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
.main-nav a::before {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  opacity: 0.38;
  transition: transform 180ms ease, opacity 180ms ease;
}
.main-nav a:hover {
  color: var(--forest-deep);
  background: var(--cream-white);
  transform: translateY(-1px);
}
.main-nav a:hover::before,
.main-nav a.active::before { opacity: 0.9; transform: scale(1.25); }
.main-nav a.active {
  color: var(--cream-white);
  background: var(--orange-pop);
  box-shadow: 0 5px 12px rgba(198, 106, 67, 0.24);
}
.header-actions { gap: 10px; }
.header-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px 11px 13px;
  border: 1px solid rgba(169, 80, 48, 0.26);
  border-radius: 15px 15px 18px 15px;
  background: var(--orange-pop);
  box-shadow: 0 6px 14px rgba(198, 106, 67, 0.2);
  color: var(--cream-white);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.header-cta::before {
  content: "✦";
  color: #ffe8d9;
  font-size: 0.72rem;
}
.header-cta:hover {
  background: var(--orange-hover);
  box-shadow: 0 9px 18px rgba(198, 106, 67, 0.26);
  transform: translateY(-2px) rotate(-1deg);
}
.header-cta svg { width: 15px; height: 15px; }
.hamburger {
  display: none;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-width: 84px;
  height: 44px;
  padding: 8px 12px;
  border: 1px solid rgba(198, 106, 67, 0.28);
  border-radius: 15px 15px 18px 15px;
  background: var(--orange-soft);
  color: var(--forest-deep);
  cursor: pointer;
}
.hamburger-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
  height: auto;
  background: transparent;
}
.hamburger .hamburger-lines { display: flex; height: auto; background: transparent; }
.hamburger-lines span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 3px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}
.hamburger-label {
  display: block;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.hamburger .hamburger-label { display: block; height: auto; background: transparent; }
.hamburger[aria-expanded="true"] .hamburger-lines span:first-child { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] .hamburger-lines span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] .hamburger-lines span:last-child { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { display: none; }
.mobile-nav.open {
  display: block;
  border-top: 1px solid rgba(198, 106, 67, 0.16);
  background: var(--cream-white);
  box-shadow: 0 18px 28px rgba(63, 48, 40, 0.1);
  transform-origin: top center;
  animation: mobile-nav-in 220ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.mobile-nav-inner { padding-top: 18px; padding-bottom: 22px; }
.mobile-nav-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
  color: var(--orange-ink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.mobile-nav-heading span:last-child { font-size: 1rem; letter-spacing: 0; }
.mobile-nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--editorial-border);
  border-radius: 15px;
  background: #fffaf3;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}
.mobile-nav a::before {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--forest-mid);
  content: "";
}
.mobile-nav a:hover { border-color: rgba(198, 106, 67, 0.35); background: var(--orange-soft); transform: translateY(-1px); }
.mobile-nav a.active { border-color: var(--orange-pop); background: var(--orange-pop); color: var(--cream-white); }
.mobile-nav a.active::before { background: var(--cream-white); }
.mobile-nav-cta {
  justify-content: space-between;
  margin-top: 12px;
  border-color: var(--orange-pop) !important;
  background: var(--orange-pop) !important;
  color: var(--cream-white) !important;
}
.mobile-nav-cta::before { display: none; }
/* Footer browsing is separate from legal navigation, with wrapping hit areas. */
.footer-browse {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  padding-bottom: 22px;
}
.footer-browse a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px;
  color: inherit;
  text-underline-offset: 4px;
}
/* Hide an inert trigger until JS has successfully initialized this header. */
.site-header:not(.nav-enhanced) .hamburger { display: none; }
@media (max-width: 1160px) {
  /* The masthead stays visible while only the link panel scrolls. dvh follows
     mobile browser chrome; vh is retained for engines without dvh support. */
  .nav-enhanced .mobile-nav.open {
    max-height: calc(100vh - 100px);
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
  }
  /* Without enhancement, show the same links in document flow, not in a tall
     sticky masthead. This also covers a failed main.js download, not just a
     deliberately disabled JavaScript setting. */
  .site-header:not(.nav-enhanced) { position: static; }
  .site-header:not(.nav-enhanced) .mobile-nav { display: block !important; }
}
/* Reveal the menu without animating its layout or shifting surrounding content. */
@keyframes mobile-nav-in {
  from { opacity: 0; transform: scale(0.985); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 1050px) {
  .nav-dock { gap: 4px; padding-left: 7px; }
  .nav-dock-label { display: none; }
  .main-nav a { gap: 5px; padding-right: 8px; padding-left: 8px; font-size: 0.75rem; }
  .header-cta { padding-right: 12px; padding-left: 11px; font-size: 0.73rem; }
}

@media (max-width: 1160px) {
  .nav-dock { display: none; }
  .header-actions { margin-left: auto; }
  .header-cta { display: none; }
  .hamburger { display: flex; }
}

@media (min-width: 821px) and (max-width: 1160px) {
  .mobile-nav.open { display: block !important; }
}

@media (max-width: 820px) {
  .header-inner { min-height: 74px; padding-top: 8px; padding-bottom: 8px; }
  .nav-dock { display: none; }
  .header-actions { margin-left: auto; }
  .header-cta { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 520px) {
  .logo-mark { flex-basis: 42px; width: 42px; height: 42px; }
  .logo-mark img { width: 36px; height: 36px; }
  .logo .logo-name { font-size: 1.12rem; }
  .logo-caption { margin-top: 3px; font-size: 0.5rem; letter-spacing: 0.13em; }
  .hamburger { min-width: 78px; padding-right: 10px; padding-left: 10px; }
  .mobile-nav-links { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .main-nav a,
  .header-cta,
  .mobile-nav a,
  .hamburger-lines span { transition: none; }
  .mobile-nav.open { animation: none; }
}

@media (max-width: 380px) {
  .container { padding-right: 15px; padding-left: 15px; }
  .logo { gap: 8px; }
  .header-cta { gap: 4px; padding: 7px 8px; font-size: 0.6rem; }
  .hero-jump { font-size: 0; }
  .hero-jump svg { width: 16px; height: 16px; }
  .hero-main { grid-template-columns: minmax(92px, 0.7fr) minmax(0, 1.3fr); }
  .hero-main .hero-body { padding: 9px; }
  .hero-main .hero-meta .badge { font-size: 0.46rem; }
  .hero-main .date-line { font-size: 0.45rem; }
  .hero-side-stack { grid-template-columns: 1fr; grid-template-rows: repeat(2, minmax(94px, auto)); }
  .hero-side { grid-template-columns: 84px minmax(0, 1fr); min-height: 94px; }
  .hero-side .thumb { min-height: 94px; }
  .hero-side .hero-body { padding: 8px; }
  .hero-side .hero-body h2 { font-size: 0.94rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

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

/* Scroll reveals use individual transform properties so card hover transforms
   and the existing 3D pointer treatment continue to work independently. */
.viewport-reveal {
  --viewport-reveal-x: 0px;
  --viewport-reveal-y: 28px;
  --viewport-reveal-tilt: 1.4deg;
  --viewport-reveal-scale: 0.988;
  --viewport-reveal-origin: 50% 78%;

  opacity: 0;
  translate: var(--viewport-reveal-x) var(--viewport-reveal-y);
  rotate: x var(--viewport-reveal-tilt);
  scale: var(--viewport-reveal-scale);
  transform-origin: var(--viewport-reveal-origin);
  transition:
    opacity 0.48s linear,
    translate 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    rotate 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    scale 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0ms;
}

.viewport-reveal.is-visible,
.viewport-reveal:focus-visible {
  opacity: 1;
  translate: 0 0;
  rotate: x 0deg;
  scale: 1;
  transition-delay: var(--viewport-reveal-delay, 0ms);
}

.viewport-reveal--content {
  --viewport-reveal-y: 18px;
  --viewport-reveal-tilt: 0.7deg;
  --viewport-reveal-scale: 0.996;
  --viewport-reveal-origin: 50% 84%;
}

.viewport-reveal--from-left {
  --viewport-reveal-x: -24px;
  --viewport-reveal-y: 18px;
  --viewport-reveal-origin: 72% 78%;
}

.viewport-reveal--from-right {
  --viewport-reveal-x: 24px;
  --viewport-reveal-y: 18px;
  --viewport-reveal-origin: 28% 78%;
}

@media (max-width: 760px) {
  /* Keep the entrance inside the narrow page gutter to prevent sideways scroll. */
  .viewport-reveal--from-left { --viewport-reveal-x: -12px; }
  .viewport-reveal--from-right { --viewport-reveal-x: 12px; }
}

@media (min-width: 761px) and (prefers-reduced-motion: no-preference) {
  .viewport-reveal {
    filter: blur(6px) saturate(0.9);
    transition:
      opacity 0.48s linear,
      translate 0.9s cubic-bezier(0.16, 1, 0.3, 1),
      rotate 0.9s cubic-bezier(0.16, 1, 0.3, 1),
      scale 0.9s cubic-bezier(0.16, 1, 0.3, 1),
      filter 0.68s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .viewport-reveal.is-visible,
  .viewport-reveal:focus-visible {
    filter: none;
  }
}

/* Keep pointer tilt responsive while hovered, then smoothly return card transforms on leave. */
.viewport-reveal.card:not(:hover),
.viewport-reveal.hero-card:not(:hover),
.viewport-reveal.cat-row:not(:hover) {
  transition:
    opacity 0.48s linear,
    translate 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    rotate 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    scale 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.2, 0, 0, 1);
}

.viewport-reveal.card:not(:hover).is-visible,
.viewport-reveal.hero-card:not(:hover).is-visible,
.viewport-reveal.cat-row:not(:hover).is-visible {
  /* Stagger entrance motion, but let a pointer-driven return start at once. */
  transition-delay:
    var(--viewport-reveal-delay, 0ms),
    var(--viewport-reveal-delay, 0ms),
    var(--viewport-reveal-delay, 0ms),
    var(--viewport-reveal-delay, 0ms),
    0ms;
}

@media (min-width: 761px) and (prefers-reduced-motion: no-preference) {
  .viewport-reveal.card:not(:hover),
  .viewport-reveal.hero-card:not(:hover),
  .viewport-reveal.cat-row:not(:hover) {
    transition:
      opacity 0.48s linear,
      translate 0.9s cubic-bezier(0.16, 1, 0.3, 1),
      rotate 0.9s cubic-bezier(0.16, 1, 0.3, 1),
      scale 0.9s cubic-bezier(0.16, 1, 0.3, 1),
      filter 0.68s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.4s cubic-bezier(0.2, 0, 0, 1);
  }

  .viewport-reveal.card:not(:hover).is-visible,
  .viewport-reveal.hero-card:not(:hover).is-visible,
  .viewport-reveal.cat-row:not(:hover).is-visible {
    transition-delay:
      var(--viewport-reveal-delay, 0ms),
      var(--viewport-reveal-delay, 0ms),
      var(--viewport-reveal-delay, 0ms),
      var(--viewport-reveal-delay, 0ms),
      var(--viewport-reveal-delay, 0ms),
      0ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  .viewport-reveal,
  .viewport-reveal.is-visible,
  .viewport-reveal:focus-visible {
    opacity: 1 !important;
    translate: none !important;
    rotate: none !important;
    scale: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* Shared footer: brand and two clearly named navigation groups. The page
   generator owns the link data; this layer owns only layout and interaction. */
.site-footer .footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 1.65fr);
  align-items: start;
  gap: 48px;
  padding-top: 44px;
  padding-bottom: 38px;
}
.footer-identity { max-width: 310px; }
.footer-identity .footer-brand { width: fit-content; text-decoration: none; }
.footer-identity .footer-brand img { width: 42px; height: 42px; }
.footer-identity .footer-brand span { font-size: 1.35rem; }
.footer-tagline { margin: 16px 0 9px; font-size: 0.69rem; letter-spacing: 0.14em; text-transform: uppercase; color: #e9b498; }
.footer-summary { margin: 0; color: #dfd2c7; font-size: 0.88rem; line-height: 1.7; }
.footer-navigation { display: grid; grid-template-columns: 1.35fr 1fr; gap: 36px; min-width: 0; }
.site-footer .footer-browse,
.site-footer .footer-legal { display: block; padding: 0; }
.footer-navigation h2 { margin: 0 0 12px; color: #e9b498; font-family: var(--sans); font-size: 0.75rem; line-height: 1.5; font-weight: 600; letter-spacing: 0.06em; }
.footer-link-list { display: grid; align-content: start; }
.site-footer .footer-link-list a {
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  padding: 9px 0;
  color: #fffcf6;
  font-size: 0.87rem;
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
  border-radius: 3px;
}
.site-footer .footer-link-list a:hover { color: #e9b498; background: transparent; text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 820px) {
  .site-footer .footer-inner { grid-template-columns: 1fr; gap: 30px; padding-top: 30px; padding-bottom: 28px; }
  .footer-navigation { gap: 24px; }
}
@media (max-width: 520px) {
  .footer-navigation { grid-template-columns: 1fr; gap: 26px; }
}

/* Native scrollbars preserve wheel, touch and keyboard behavior. Firefox uses
   standard properties; WebKit/Blink receive rounded, inset thumb treatment.
   Scope to the document and menu so the continuous photo track stays hidden. */
html,
.mobile-nav { scrollbar-color: #b45b38 #f2e8da; scrollbar-width: auto; }
html::-webkit-scrollbar,
.mobile-nav::-webkit-scrollbar { width: 12px; height: 12px; }
html::-webkit-scrollbar-track,
.mobile-nav::-webkit-scrollbar-track { background: #f2e8da; }
html::-webkit-scrollbar-thumb,
.mobile-nav::-webkit-scrollbar-thumb { background: #b45b38; border: 3px solid #f2e8da; border-radius: 999px; min-height: 44px; }
html::-webkit-scrollbar-thumb:hover,
.mobile-nav::-webkit-scrollbar-thumb:hover { background: #8f452a; }
/* Let Blink apply the pseudo-element shape when both APIs are supported. */
@supports selector(::-webkit-scrollbar) {
  html, .mobile-nav { scrollbar-color: auto; scrollbar-width: auto; }
}
@media (forced-colors: active) {
  html, .mobile-nav { scrollbar-color: auto; }
  html::-webkit-scrollbar-thumb, .mobile-nav::-webkit-scrollbar-thumb { background: ButtonText; border-color: Canvas; }
  html::-webkit-scrollbar-track, .mobile-nav::-webkit-scrollbar-track { background: Canvas; }
}
