/* ══════════════════════════════════════════════════════
   SOVEREIGN TERMINAL — "Evergreen" edition
   Forest-dark canvas · leaf green · fresh lime
   ══════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────── */
:root {
  --bg: #0c1611;
  --bg-deep: #08110c;
  --bg-light: #162a20;
  --bg-lighter: #1d3428;
  --surface: #15261d;
  --surface-2: #1c3127;
  --card-light: #20392c;
  --line: rgba(214, 240, 222, .09);
  --line-2: rgba(214, 240, 222, .17);

  --text: #eef6f0;
  --text-2: #c0d1c5;
  --muted: #8ba596;

  --green: #5fd38d;
  --green-hover: #7fe2a6;
  --green-soft: rgba(95, 211, 141, .14);
  --lime: #c8e66b;
  --lime-soft: rgba(200, 230, 107, .14);
  --on-green: #07200f;

  /* aliases kept for older markup */
  --teal: var(--green);
  --gold: var(--lime);

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 22px;
  --container: 1280px;
  --gutter: 24px;
  --sec-pad: 88px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, .65);
  --topo: url("../img/topo.svg");
}

/* ── Reset / base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.admin-bar { min-height: calc(100vh - 32px); }
@media (max-width: 782px) { body.admin-bar { min-height: calc(100vh - 46px); } }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-display); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; color: var(--text); }
em { font-style: italic; }
::selection { background: var(--green); color: var(--on-green); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
  clip: auto; clip-path: none; width: auto; height: auto; margin: 0;
  top: 12px; left: 12px; z-index: 10000; padding: 10px 18px;
  background: var(--green); color: var(--on-green); border-radius: 999px; font-weight: 700;
}

.ms {
  font-family: "Material Symbols Rounded";
  font-weight: normal; font-style: normal;
  font-size: 1.25em; line-height: 1;
  letter-spacing: normal; text-transform: none;
  display: inline-block; white-space: nowrap; word-wrap: normal; direction: ltr;
  -webkit-font-feature-settings: "liga"; font-feature-settings: "liga";
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  vertical-align: middle;
}
.ms--fill { font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }

/* ── Layout helpers ─────────────────────────────────── */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.container--narrow { max-width: 860px; }
.site-main { padding-top: calc(var(--header-h) + 40px); position: relative; flex: 1 0 auto; width: 100%; }
.front-main { padding-top: var(--header-h); }
.section-pad { padding-top: 40px; padding-bottom: 80px; }
.site-footer { flex-shrink: 0; width: 100%; }

.section--light {
  background: linear-gradient(180deg, var(--bg-light), #13251c);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.c-green, .c-teal { color: var(--green) !important; }
.c-lime, .c-gold { color: var(--lime) !important; }
.hl-green, .hl-teal { color: var(--green); }
.hl-lime, .hl-gold { color: var(--lime); }
em.hl-green, em.hl-lime { font-style: italic; }

.t-green, .t-teal { --tone: var(--green); --tone-soft: var(--green-soft); }
.t-lime, .t-gold { --tone: var(--lime); --tone-soft: var(--lime-soft); }

.mono-label {
  font-family: var(--f-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: .74rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.eyebrow .i-leaf { color: var(--lime); flex-shrink: 0; }

.sec-head { max-width: 760px; margin-bottom: 40px; }
.sec-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -.015em;
  margin-bottom: 0;
}
.sec-title--xl { font-size: clamp(2.1rem, 4vw, 3.4rem); }
.sec-lead { color: var(--text-2); font-size: 1.05rem; line-height: 1.7; max-width: 60ch; }

.row-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 40px; }
.row-head__lead { max-width: 44ch; font-size: 1rem; }
.row-head__side { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-family: var(--f-body); font-weight: 700; font-size: .94rem; line-height: 1.2;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn--primary { background: var(--green); color: var(--on-green); }
.btn--primary:hover { background: var(--green-hover); transform: translateY(-2px); }
.btn--ghost, .btn--outline { border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover, .btn--outline:hover { border-color: var(--green); color: var(--green); }

.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--green); font-size: .95rem; transition: gap .25s var(--ease), color .2s; white-space: nowrap; }
.text-link:hover { gap: 12px; color: var(--green-hover); }

.round-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; color: var(--text);
  transition: border-color .2s, color .2s, background .2s, opacity .2s;
}
.round-btn:hover:not(:disabled) { border-color: var(--green); color: var(--on-green); background: var(--green); }
.round-btn:disabled { opacity: .3; cursor: default; }

.chip {
  display: inline-flex; align-items: center; align-self: flex-start;
  font-family: var(--f-mono); font-size: .64rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  color: var(--green); background: var(--green-soft); border: 1px solid rgba(95, 211, 141, .28);
  transition: background .2s, color .2s;
}
.chip:hover { background: var(--green); color: var(--on-green); }
.chip--solid { background: var(--lime); color: var(--on-green); border-color: var(--lime); }
.chip--solid:hover { background: var(--green); border-color: var(--green); }

.pulse { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--green); animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(2); opacity: 0; } }

/* ── Decorative: topo lines, aurora, dot grid ───────── */
.topo {
  position: absolute; width: 900px; height: 900px; z-index: 0; pointer-events: none;
  background: var(--topo) center / contain no-repeat;
  opacity: .32;
  animation: topo-drift 40s ease-in-out infinite alternate;
}
@keyframes topo-drift { from { transform: translate(0, 0) rotate(0deg); } to { transform: translate(-30px, 20px) rotate(6deg); } }
.topo--hero { right: -260px; top: -220px; opacity: .3; }
.topo--left { left: -380px; top: -260px; opacity: .22; }
.topo--right { right: -280px; top: -260px; opacity: .3; }
.topo--footer { right: -300px; bottom: -420px; opacity: .2; }
.topo--panel { right: -360px; top: -380px; opacity: .25; }

.aurora {
  position: absolute; z-index: 0; pointer-events: none; border-radius: 50%;
  width: 560px; height: 560px; filter: blur(90px); opacity: .5;
}
.aurora--a { left: -180px; top: -120px; background: radial-gradient(circle, rgba(95, 211, 141, .45), transparent 65%); }
.aurora--b { right: 10%; bottom: -260px; background: radial-gradient(circle, rgba(200, 230, 107, .3), transparent 65%); }
.aurora--c { right: -200px; top: 10%; background: radial-gradient(circle, rgba(95, 211, 141, .28), transparent 65%); }
.aurora--panel { left: -160px; bottom: -260px; background: radial-gradient(circle, rgba(200, 230, 107, .28), transparent 65%); }

.dotgrid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(214, 240, 222, .14) 1px, transparent 1.3px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
  mask-image: linear-gradient(180deg, #000, transparent 70%);
}
section { position: relative; }
section > .container { z-index: 1; }

/* Reveal */
.js .reveal:not(.is-in) { opacity: 0; }
.js .reveal.is-in { animation: reveal .8s var(--ease) backwards; animation-delay: var(--rd, 0ms); }
@keyframes reveal { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ══════════════════════════════════════════════════════
   HEADER — full-width bar
   ══════════════════════════════════════════════════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(12, 22, 17, .82);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: background .3s, box-shadow .3s;
}
.admin-bar .site-header { top: 32px; }
.site-header--scrolled { background: rgba(9, 17, 12, .95); box-shadow: 0 14px 40px -24px rgba(0, 0, 0, .8); }
.header-shell { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.header-logo { flex-shrink: 0; display: flex; align-items: center; }
.header-logo .custom-logo-link { display: flex; align-items: center; }
.header-logo .custom-logo { height: 40px; width: auto; max-width: none; }
.site-title-text { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; color: var(--text); }

.header-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list > li { position: relative; }
.nav-list a {
  position: relative; display: block; padding: 10px 14px;
  font-size: .94rem; font-weight: 600; color: var(--text-2);
  transition: color .2s;
}
.nav-list > li > a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-list a:hover { color: var(--text); }
.nav-list > li > a:hover::after,
.nav-list > .current-menu-item > a::after,
.nav-list > .current-category-ancestor > a::after { transform: scaleX(1); }
.nav-list .current-menu-item > a, .nav-list .current-category-ancestor > a { color: var(--green); }
.header-nav .nav-list .sub-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; padding: 8px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.header-nav .nav-list li.menu-item-has-children:hover .sub-menu,
.header-nav .nav-list li.menu-item-has-children:focus-within .sub-menu { opacity: 1; visibility: visible; transform: none; }
.header-nav .nav-list .sub-menu a { border-radius: 8px; font-size: .88rem; }
.header-nav .nav-list .sub-menu a:hover { background: var(--green-soft); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-left: auto; }
.header-search-btn, .burger-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-2); border: 1px solid var(--line-2);
  transition: color .2s, border-color .2s, background .2s;
}
.header-search-btn:hover, .burger-btn:hover, .header-search-btn[aria-expanded="true"] { color: var(--green); border-color: var(--green); }
.burger-btn { display: none; }
.header-cta {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px;
  background: var(--green); color: var(--on-green); font-weight: 700; font-size: .9rem; white-space: nowrap;
  transition: background .2s, transform .2s;
}
.header-cta:hover { background: var(--green-hover); transform: translateY(-1px); }

.header-search-bar { padding: 0 0 16px; }
.search-form {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 6px 6px 6px 20px;
}
.search-form__label { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.search-field { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; padding: 10px 6px; font-size: .98rem; color: var(--text); }
.search-field::placeholder { color: var(--muted); }
.search-submit { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; background: var(--green); color: var(--on-green); font-weight: 700; font-size: .88rem; }
.search-submit:hover { background: var(--green-hover); }

/* Mobile drawer */
.nav-backdrop { position: fixed; inset: 0; z-index: 1001; background: rgba(3, 8, 5, .65); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.nav-backdrop.is-open { opacity: 1; visibility: visible; }
.nav-menu {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1002; width: min(390px, 88vw);
  background: var(--bg-light); border-left: 1px solid var(--line-2);
  display: flex; flex-direction: column; padding: 20px 24px 28px;
  transform: translateX(100%); transition: transform .45s var(--ease); overflow-y: auto;
}
.nav-menu.is-open { transform: none; }
.nav-menu__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.nav-menu__brand { font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; color: var(--text); }
.nav-menu__brand--logo .custom-logo-link { display: flex; align-items: center; }
.nav-menu__brand--logo .custom-logo { height: 40px; width: auto; max-width: none; }
.nav-close { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; color: var(--text); flex-shrink: 0; }
.nav-close:hover { color: var(--green); border-color: var(--green); }
.nav-menu__label { display: block; margin-bottom: 8px; color: var(--green); }
.nav-menu .menu > li { border-bottom: 1px solid var(--line); }
.nav-menu .menu a { display: flex; align-items: center; justify-content: space-between; padding: 15px 2px; font-family: var(--f-display); font-weight: 600; font-size: 1.35rem; color: var(--text); }
.nav-menu .menu a:hover { color: var(--green); }
.nav-menu .menu .sub-menu { display: none; padding: 0 0 10px 14px; }
.nav-menu .menu li.menu-item-has-children.is-open > .sub-menu { display: block; }
.nav-menu .menu .sub-menu a { font-size: 1rem; padding: 9px 2px; color: var(--text-2); }
.nav-menu__subscribe { margin-top: auto; padding-top: 30px; }
.nav-menu__note { color: var(--text-2); font-size: .92rem; margin-bottom: 16px; }
.nav-menu__subscribe .btn { width: 100%; }

/* ══════════════════════════════════════════════════════
   FRONT PAGE
   ══════════════════════════════════════════════════════ */

/* 1. News hero */
.news-hero { padding: 34px 0 var(--sec-pad); overflow: hidden; }
.news-hero__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding-bottom: 18px; margin-bottom: 26px; border-bottom: 1px solid var(--line);
}
.news-hero__bar .eyebrow { margin-bottom: 0; }
.news-hero__date { display: inline-flex; align-items: center; gap: 10px; }
.news-hero__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; }

.feature {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 580px; border-radius: 26px; border: 1px solid var(--line);
  display: flex; align-items: flex-end;
  background: var(--surface);
}
.feature__media { position: absolute; inset: 0; z-index: -2; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature:hover .feature__media img { transform: scale(1.04); }
.feature::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 17, 12, 0) 25%, rgba(8, 17, 12, .65) 55%, rgba(8, 17, 12, .96) 100%);
}
.feature__body { padding: 40px; max-width: 760px; display: flex; flex-direction: column; gap: 14px; }
.feature__title { font-size: clamp(1.8rem, 3.2vw, 2.9rem); font-weight: 600; line-height: 1.1; letter-spacing: -.015em; }
.feature__title a { background-image: linear-gradient(var(--green), var(--green)); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .5s var(--ease); }
.feature:hover .feature__title a, .feature__title a:focus-visible { background-size: 100% 2px; }
.feature__excerpt { color: var(--text-2); font-size: 1.04rem; max-width: 62ch; }
.feature__meta { color: var(--text-2); }

.news-hero__side { display: flex; flex-direction: column; gap: 14px; }
.side-story {
  flex: 1; display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 18px; align-items: center;
  padding: 12px; border-radius: 20px; border: 1px solid var(--line);
  background: rgba(21, 38, 29, .75);
  transition: border-color .3s, background .3s;
}
.side-story:hover { border-color: rgba(95, 211, 141, .35); background: var(--surface-2); }
.side-story__thumb { display: block; height: 100%; min-height: 100px; max-height: 124px; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.side-story__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.side-story:hover .side-story__thumb img { transform: scale(1.06); }
.side-story__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding-right: 6px; }
.side-story__cat { color: var(--green); font-size: .62rem; }
.side-story__text > .mono-label:last-child { font-size: .62rem; }
.side-story__title { font-size: 1.06rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.side-story__title a:hover { color: var(--green); }

/* 2. Ribbon */
.ribbon { background: var(--green); color: var(--on-green); overflow: hidden; padding: 14px 0; position: relative; }
.ribbon__track { display: flex; width: max-content; animation: ribbon 50s linear infinite; }
.ribbon:hover .ribbon__track { animation-play-state: paused; }
.ribbon__set { display: flex; align-items: center; flex-shrink: 0; }
.ribbon__item { display: inline-flex; align-items: center; gap: 10px; padding: 0 30px; font-family: var(--f-display); font-weight: 600; font-size: 1.12rem; white-space: nowrap; }
.ribbon__item .ms { font-size: 1.3rem; }
.ribbon__item:hover { text-decoration: underline; text-underline-offset: 4px; }
.ribbon__sep { display: inline-flex; color: var(--on-green); opacity: .7; }
@keyframes ribbon { to { transform: translateX(-50%); } }

/* 3. Topics */
.topics { padding: var(--sec-pad) 0; }
.topic-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.topic-tile {
  position: relative; isolation: isolate; overflow: hidden;
  aspect-ratio: 3 / 4; border-radius: 22px; border: 1px solid var(--line-2);
  background: var(--surface-2);
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s;
}
.topic-tile:hover { transform: translateY(-6px); border-color: var(--green); box-shadow: 0 26px 50px -26px rgba(0, 0, 0, .8); }
.topic-tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .9s var(--ease); }
.topic-tile:hover .topic-tile__img { transform: scale(1.08); }
.topic-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 17, 12, .1) 30%, rgba(8, 17, 12, .9) 100%); }
.topic-tile__num {
  position: absolute; top: 14px; left: 14px; padding: 4px 10px; border-radius: 999px;
  background: rgba(8, 17, 12, .65); color: var(--lime); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.topic-tile__body { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.topic-tile__name { font-family: var(--f-display); font-weight: 600; font-size: 1.4rem; line-height: 1.15; color: #fff; }
.topic-tile__foot { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .16); }
.topic-tile__foot .mono-label { color: rgba(238, 246, 240, .8); }
.topic-tile__go { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .12); color: #fff; transition: background .3s, color .3s, transform .4s var(--ease); }
.topic-tile:hover .topic-tile__go { background: var(--green); color: var(--on-green); transform: rotate(-45deg); }

/* 4. Latest grid */
.latest { padding: var(--sec-pad) 0; overflow: hidden; }
.latest__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card {
  display: flex; flex-direction: column;
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  background: var(--surface);
  transition: transform .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(95, 211, 141, .35); }
.card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__title { font-size: 1.25rem; font-weight: 600; line-height: 1.28; }
.card__title a:hover { color: var(--green); }
.card__excerpt { color: var(--text-2); font-size: .94rem; line-height: 1.6; }
.card__meta { margin-top: auto; padding-top: 4px; }
.card--wide { grid-column: span 2; display: grid; grid-template-columns: 1.3fr 1fr; }
.card--wide .card__media { aspect-ratio: auto; height: 100%; min-height: 300px; }
.card--wide .card__body { padding: 30px; justify-content: center; }
.card--wide .card__title { font-size: clamp(1.4rem, 1.9vw, 1.7rem); line-height: 1.2; }
.card--wide .card__excerpt { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card--wide .card__excerpt { font-size: .98rem; }

/* 5. Promise */
.promise { padding: var(--sec-pad) 0; overflow: hidden; }
.promise__layout { display: grid; grid-template-columns: .95fr 1.05fr; gap: 72px; align-items: center; }
.promise__intro { position: relative; }
.promise__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 34px; }
.promise__list li { padding-top: 22px; border-top: 1px solid var(--line-2); }
.promise__num { display: block; font-family: var(--f-display); font-style: italic; font-size: 1.15rem; color: var(--lime); margin-bottom: 10px; }
.promise__list h3 { font-size: 1.32rem; margin-bottom: 10px; }
.promise__list p { color: var(--text-2); font-size: .97rem; }

/* 6. In focus */
.focus { padding: var(--sec-pad) 0; }
.focus__layout { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.focus__main { display: flex; flex-direction: column; gap: 22px; }
.hcard {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface);
  transition: border-color .3s;
}
.hcard:hover { border-color: rgba(95, 211, 141, .35); }
.hcard__media { display: block; min-height: 270px; overflow: hidden; background: var(--surface-2); }
.hcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.hcard:hover .hcard__media img { transform: scale(1.05); }
.hcard__body { padding: 28px 30px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.hcard__title { font-size: clamp(1.3rem, 1.9vw, 1.6rem); line-height: 1.22; }
.hcard__title a:hover { color: var(--green); }
.hcard__excerpt { color: var(--text-2); font-size: .96rem; }

.quick-reads {
  position: sticky; top: calc(var(--header-h) + 24px);
  padding: 26px 26px 10px; border-radius: var(--r-lg);
  background: var(--bg-lighter); border: 1px solid var(--line-2);
}
.quick-reads__title { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: .76rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); margin-bottom: 6px; }
.quick-reads__list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 16px 0; border-top: 1px solid var(--line); }
.quick-reads__list li:first-child { border-top: 0; }
.quick-reads__num { font-family: var(--f-display); font-style: italic; font-size: 1.7rem; line-height: 1; color: var(--green); }
.quick-reads__list div { display: flex; flex-direction: column; gap: 4px; }
.quick-reads__list .mono-label { font-size: .6rem; }
.quick-reads__list a { font-family: var(--f-display); font-weight: 600; font-size: 1.04rem; line-height: 1.3; transition: color .2s; }
.quick-reads__list a:hover { color: var(--green); }

/* 7. Habits */
.habits { padding: var(--sec-pad) 0; }
.habit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.habit {
  padding: 28px 26px; border-radius: var(--r-lg); border: 1px solid var(--line);
  background: var(--card-light);
  transition: border-color .3s, transform .35s var(--ease);
}
.habit:hover { border-color: color-mix(in srgb, var(--tone) 45%, transparent); transform: translateY(-4px); }
.habit__icon { width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--tone-soft); color: var(--tone); }
.habit__num { display: block; font-family: var(--f-display); font-weight: 600; font-size: clamp(2.3rem, 3.4vw, 3rem); line-height: 1; color: var(--tone); margin: 22px 0 14px; }
.habit__title { font-size: 1.18rem; margin-bottom: 8px; }
.habit__text { color: var(--text-2); font-size: .93rem; }

/* 8. Explore carousel */
.explore { padding: var(--sec-pad) 0; }
.explore__track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))) 10px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  scrollbar-width: none;
}
.explore__track::-webkit-scrollbar { display: none; }
.ocard {
  position: relative; isolation: isolate; overflow: hidden;
  flex: 0 0 300px; aspect-ratio: 4 / 5; scroll-snap-align: start;
  border-radius: 22px; border: 1px solid var(--line);
  background: var(--surface-2);
  display: flex; align-items: flex-end;
}
.ocard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .9s var(--ease); }
.ocard:hover .ocard__img { transform: scale(1.07); }
.ocard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 17, 12, 0) 30%, rgba(8, 17, 12, .92) 100%); }
.ocard__body { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.ocard__cat { color: var(--lime); }
.ocard__body > .mono-label:last-child { color: rgba(238, 246, 240, .7); font-size: .62rem; }
.ocard__title { font-size: 1.2rem; line-height: 1.28; color: #fff; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ocard__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ocard:hover .ocard__title { color: var(--green-hover); }

/* 9. About + newsletter */
.join { padding: var(--sec-pad) 0 calc(var(--sec-pad) + 10px); }
.join__panel {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 32px; border: 1px solid var(--line-2);
  background: linear-gradient(150deg, var(--bg-lighter), var(--bg-light) 60%);
}
.join__panel > .topo, .join__panel > .aurora { z-index: -1; }
.join__top { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; padding: 56px; align-items: center; }
.join__about .sec-lead { margin: 18px 0 24px; }
.check-list { display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; align-items: center; gap: 12px; color: var(--text-2); }
.check-list .ms { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; background: var(--green-soft); color: var(--green); flex-shrink: 0; }
.form-card {
  padding: 34px; border-radius: 24px; border: 1px solid var(--line-2);
  background: rgba(8, 17, 12, .72);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}
.form-card__badge { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--lime-soft); color: var(--lime); margin-bottom: 16px; }
.form-card__title { font-size: 1.8rem; margin-bottom: 8px; }
.form-card__text { color: var(--text-2); font-size: .96rem; margin-bottom: 22px; }
.form-card__note { margin-top: 16px; text-align: center; font-size: .8rem; color: var(--muted); }
.join__stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); background: rgba(8, 17, 12, .35); }
.trust-stat { padding: 28px 34px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.trust-stat:last-child { border-right: 0; }
.trust-stat__num { font-family: var(--f-display); font-weight: 600; font-size: 2.4rem; line-height: 1.05; color: var(--tone, var(--text)); }
.trust-stat__label { font-size: .9rem; color: var(--text-2); }

/* Contact Form 7 */
.wpcf7-spinner { display: none !important; }
.wpcf7 form .form-fields p { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.wpcf7 form .form-fields p br { display: none; }
.wpcf7 form .form-fields .wpcf7-form-control-wrap { width: 100%; }
.wpcf7 form input[type="email"],
.wpcf7 form input[type="text"] {
  width: 100%; background: rgba(214, 240, 222, .05); border: 1px solid var(--line-2); border-radius: 14px;
  padding: 15px 18px; font-family: var(--f-body); font-size: .98rem; color: var(--text);
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.wpcf7 form input[type="email"]:focus,
.wpcf7 form input[type="text"]:focus { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.wpcf7 form input::placeholder { color: var(--muted); }
.wpcf7 form input[type="submit"] {
  width: 100%; background: var(--green); color: var(--on-green); border: none; border-radius: 999px;
  padding: 15px 28px; font-family: var(--f-body); font-weight: 700; font-size: .98rem;
  cursor: pointer; transition: background .2s, transform .2s;
}
.wpcf7 form input[type="submit"]:hover { background: var(--green-hover); transform: translateY(-1px); }
.wpcf7 form .form-privacy p { margin: 16px 0 0; font-size: .78rem; color: var(--muted); line-height: 1.55; }
.wpcf7 form .form-privacy label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.wpcf7 form .form-privacy input[type="checkbox"] { accent-color: var(--green); width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; }
.wpcf7 form .form-privacy a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.wpcf7 .wpcf7-list-item { margin: 0; }
.wpcf7-not-valid-tip { display: none !important; }
.wpcf7 form input.wpcf7-not-valid { border-color: var(--lime); box-shadow: 0 0 0 4px var(--lime-soft); }
.wpcf7-acceptance.wpcf7-not-valid .wpcf7-list-item-label { text-decoration: underline; text-decoration-color: var(--lime); text-underline-offset: 3px; }
.wpcf7 form .wpcf7-response-output { margin: 16px 0 0 !important; padding: 11px 14px !important; border-radius: 12px; font-size: .85rem; border: 1px solid var(--line-2) !important; background: rgba(8, 17, 12, .5); color: var(--text-2); }
.wpcf7 form.sent .wpcf7-response-output { border-color: rgba(95, 211, 141, .5) !important; color: var(--green); }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output { border-color: rgba(200, 230, 107, .5) !important; color: var(--lime); }

/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */
.site-footer { position: relative; isolation: isolate; overflow: hidden; background: var(--bg-deep); border-top: 1px solid var(--line); }
.site-footer > .topo { z-index: -1; }
.footer-sprout { position: absolute; right: 8%; top: 40px; opacity: .85; pointer-events: none; animation: sway 6s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.footer-top { padding: 80px 0 56px; }
.footer-grid { display: grid; grid-template-columns: 1.15fr 2fr; gap: 72px; }
.footer-brand__logo .custom-logo-link { display: inline-flex; }
.footer-brand__logo .custom-logo { height: 40px; width: auto; max-width: none; }
.footer-brand__logo--custom img { height: 40px; width: auto; }
.footer-brand__name { font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; color: var(--text); }
.footer-brand__desc { color: var(--text-2); margin: 22px 0 18px; max-width: 44ch; font-size: .96rem; }
.footer-brand__note { font-size: .82rem; color: var(--muted); max-width: 46ch; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(214, 240, 222, .03); }
.footer-brand__note .mono-label { color: var(--lime); margin-right: 6px; }
.footer-menus { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); justify-content: end; gap: 30px 60px; }
.footer-col__title { font-family: var(--f-mono); font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: 20px; }
.footer-col__list { display: flex; flex-direction: column; gap: 12px; }
.footer-col__list a { color: var(--text-2); font-size: .96rem; transition: color .2s, padding .25s var(--ease); }
.footer-col__list a:hover { color: var(--text); padding-left: 4px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 22px 0; }
.footer-bottom__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-copy { font-size: .86rem; color: var(--muted); }
.footer-copy a { color: var(--green); }
.footer-tag { font-size: .64rem; }

/* ══════════════════════════════════════════════════════
   ARCHIVE / SEARCH
   ══════════════════════════════════════════════════════ */
.archive-main { padding-top: var(--header-h); }
.archive-header {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 72px 0 64px; margin-bottom: 48px;
  background: linear-gradient(180deg, var(--bg-light), var(--bg));
  border-bottom: 1px solid var(--line);
}
.archive-header > .topo, .archive-header > .aurora { z-index: -1; }
.archive-header__inner { display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: center; }
.archive-header__title { font-weight: 600; font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.04; margin-bottom: 18px; }
.archive-header__title span { color: var(--green); font-style: italic; }
.archive-header__desc { color: var(--text-2); font-size: 1.08rem; max-width: 58ch; margin-bottom: 16px; }
.archive-header__count { display: inline-flex; align-items: center; gap: 10px; color: var(--lime); }
.archive-header__count::before { content: ""; width: 18px; height: 2px; background: var(--lime); }
.archive-header__image { width: 280px; aspect-ratio: 1; border-radius: 50% 50% 22px 50%; overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.archive-header__image-img { width: 100%; height: 100%; object-fit: cover; }

.recipes-grid, .post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.related-section .recipes-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.recipe-card, .post-tile {
  display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
  transition: transform .35s var(--ease), border-color .35s;
}
.recipe-card:hover, .post-tile:hover { transform: translateY(-4px); border-color: rgba(95, 211, 141, .35); }
.recipe-card__img-wrap { position: relative; }
.recipe-card__img-link, .post-tile__thumb-link { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.recipe-card__img, .post-tile__thumb { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.recipe-card:hover .recipe-card__img, .post-tile:hover .post-tile__thumb { transform: scale(1.05); }
.recipe-card__img-placeholder { width: 100%; height: 100%; background: var(--topo) center / 160% no-repeat, linear-gradient(160deg, var(--surface-2), var(--bg-light)); }
.recipe-card__cat {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--f-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; color: var(--on-green); background: var(--lime);
}
.recipe-card__cat:hover { background: var(--green); }
.recipe-card__body, .post-tile__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.recipe-card__date { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.recipe-card__title, .post-tile__title { font-size: 1.22rem; font-weight: 600; line-height: 1.28; }
.recipe-card__title a:hover, .post-tile__title a:hover { color: var(--green); }
.recipe-card__excerpt, .post-tile__excerpt { color: var(--text-2); font-size: .93rem; line-height: 1.6; }
.recipe-card__more { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 700; font-size: .9rem; color: var(--green); display: inline-flex; align-items: center; gap: 8px; }
.recipe-card__more::after { content: "→"; transition: transform .3s var(--ease); }
.recipe-card__more:hover::after { transform: translateX(5px); }
.post-tile__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.post-tile__meta { margin-top: auto; display: flex; gap: 8px; font-size: .8rem; color: var(--muted); }

.mini-search { display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 5px 5px 18px; transition: border-color .2s; }
.mini-search:focus-within { border-color: var(--green); }
.mini-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 9px 0; font-size: .95rem; color: var(--text); }
.mini-search input::placeholder { color: var(--muted); }
.mini-search button { width: 42px; height: 42px; border-radius: 50%; background: var(--green); color: var(--on-green); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mini-search button:hover { background: var(--green-hover); }
.mini-search--wide { max-width: 460px; margin: 26px auto; }

.pagination { margin: 48px 0 90px; }
.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { min-width: 46px; height: 46px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); color: var(--text-2); font-weight: 600; font-size: .9rem; transition: border-color .2s, color .2s, background .2s; }
.pagination .page-numbers:hover { border-color: var(--green); color: var(--green); }
.pagination .page-numbers.current { background: var(--green); border-color: var(--green); color: var(--on-green); }
.pagination .page-numbers.dots { border: 0; }

.no-results { text-align: center; padding: 40px 0 100px; color: var(--text-2); font-size: 1.05rem; }
.no-results > p { max-width: 52ch; margin: 0 auto 26px; }

/* ══════════════════════════════════════════════════════
   SINGLE ARTICLE
   ══════════════════════════════════════════════════════ */
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 1003; background: linear-gradient(90deg, var(--green), var(--lime)); }
.admin-bar .reading-progress { top: 32px; }
.single-main { padding-top: calc(var(--header-h) + 48px); }
.single-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 60px; align-items: start; padding-bottom: 80px; }
.article-header { margin-bottom: 30px; }
.article-header__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.article-header__title { font-weight: 600; font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height: 1.08; letter-spacing: -.015em; margin-bottom: 20px; text-wrap: balance; }
.article-header__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.article-header__meta .ms { font-size: 1.05rem; color: var(--green); }
.article-header__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--lime); margin: 0 8px; }
.article-hero { margin: 0 0 40px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); }
.article-hero__img { width: 100%; max-height: 560px; object-fit: cover; }
.article-hero__caption { padding: 12px 16px; font-size: .8rem; color: var(--muted); }

.entry-content { color: #d0ddd3; font-size: 1.08rem; line-height: 1.85; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--text); margin: 1.9em 0 .6em; }
.entry-content h2 { font-size: 1.9rem; }
.entry-content h3 { font-size: 1.45rem; }
.entry-content h4 { font-size: 1.18rem; }
.entry-content p { margin-bottom: 1.35em; }
.entry-content strong { color: var(--text); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin-bottom: 1.4em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: .55em; padding-left: .2em; }
.entry-content ul li::marker { color: var(--green); }
.entry-content ol li::marker { color: var(--lime); font-weight: 600; }
.entry-content a { color: var(--green); text-decoration: underline; text-decoration-color: rgba(95, 211, 141, .4); text-underline-offset: 4px; }
.entry-content a:hover { text-decoration-color: var(--green); }
.entry-content img { border-radius: 18px; margin: 1.8em 0; }
.entry-content figure { margin: 1.8em 0; }
.entry-content blockquote { margin: 2em 0; padding: 22px 26px; border-left: 3px solid var(--green); background: var(--bg-light); border-radius: 0 16px 16px 0; font-family: var(--f-display); font-style: italic; font-size: 1.25rem; line-height: 1.5; color: var(--text); }
.entry-content blockquote p { margin: 0; }
.entry-content code { background: var(--green-soft); color: var(--green); padding: 2px 7px; border-radius: 6px; font-family: var(--f-mono); font-size: .86em; }
.entry-content pre { background: var(--bg-deep); border: 1px solid var(--line); border-radius: 14px; padding: 18px; overflow-x: auto; margin-bottom: 1.6em; }
.entry-content pre code { background: none; padding: 0; color: var(--text-2); }
.entry-content hr { border: none; height: 1px; background: var(--line-2); margin: 2.5em 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.6em; font-size: .94rem; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--bg-light); color: var(--text); font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.entry-content iframe, .entry-content video { max-width: 100%; border-radius: 16px; }

.single-sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 18px; }
.sidebar-panel { padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--bg-light); }
.sidebar-panel__heading { display: flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: .74rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: 8px; }
.side-article { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.side-article:first-of-type { border-top: 0; }
.side-article__thumb-link { flex: 0 0 68px; height: 68px; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.side-article__thumb { width: 100%; height: 100%; object-fit: cover; }
.side-article__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.side-article__cat { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); }
.side-article__title { font-size: 1rem; line-height: 1.3; }
.side-article__title a:hover { color: var(--green); }
.side-article__date { font-size: .76rem; color: var(--muted); }
.sidebar-sub { border-radius: var(--r-lg); border: 1px solid var(--line-2); background: linear-gradient(160deg, var(--bg-lighter), var(--bg-light)); overflow: hidden; position: relative; }
.sidebar-sub__inner { padding: 26px; }
.sidebar-sub .eyebrow { margin-bottom: 10px; font-size: .66rem; }
.sidebar-sub__title { font-size: 1.4rem; margin-bottom: 10px; }
.sidebar-sub__desc { color: var(--text-2); font-size: .9rem; margin-bottom: 18px; }

.related-section { padding: 80px 0 90px; background: var(--bg-light); border-top: 1px solid var(--line); position: relative; }
.related-section__header { margin-bottom: 34px; }
.related-section .sec-title span { font-style: italic; }

/* ══════════════════════════════════════════════════════
   PAGE + 404
   ══════════════════════════════════════════════════════ */
.page-main { padding-top: calc(var(--header-h) + 56px); padding-bottom: 90px; }
.page-header { margin-bottom: 34px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.page-header__title { font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.06; }
.page-hero { margin: 0 0 40px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); }
.page-hero__img { width: 100%; }

.error-main { padding-top: calc(var(--header-h) + 56px); padding-bottom: 90px; }
.error-page { text-align: center; }
.error-page__boat { display: inline-block; margin-bottom: 6px; animation: sway 5s ease-in-out infinite; transform-origin: 50% 100%; }
.error-page__boat .i-sprout { width: 84px; height: 84px; }
.error-page__code { font-family: var(--f-display); font-weight: 600; font-size: clamp(6rem, 18vw, 11rem); line-height: .9; color: var(--text); margin-bottom: 18px; }
.error-page__code span { color: var(--green); font-style: italic; }
.error-page__title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 14px; }
.error-page__desc { color: var(--text-2); max-width: 52ch; margin: 0 auto 30px; }
.error-page__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.error-recent { margin: 64px auto 0; max-width: 640px; text-align: left; padding: 26px 28px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--bg-light); }
.error-recent__heading { font-family: var(--f-mono); font-size: .74rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: 8px; }
.error-recent__list li { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); }
.error-recent__list li:first-child { border-top: 0; }
.error-recent__list a { font-weight: 600; }
.error-recent__list a:hover { color: var(--green); }
.error-recent__list time { font-family: var(--f-mono); font-size: .72rem; color: var(--muted); white-space: nowrap; }

.widget { margin-bottom: 24px; }
.widget-title { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */
@media (max-width: 1180px) {
  .habit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-section .recipes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .topic-tile { aspect-ratio: 4 / 4; }
  .join__stats { grid-template-columns: repeat(2, 1fr); }
  .trust-stat:nth-child(2) { border-right: 0; }
  .trust-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 1080px) {
  :root { --sec-pad: 72px; --header-h: 70px; }
  .header-nav { display: none; }
  .burger-btn { display: inline-flex; }
  .news-hero__grid { grid-template-columns: 1fr; }
  .feature { min-height: 500px; }
  .news-hero__side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .latest__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card--wide { grid-column: span 2; }
  .promise__layout { grid-template-columns: 1fr; gap: 40px; }
  .focus__layout { grid-template-columns: 1fr; }
  .quick-reads { position: static; }
  .join__top { grid-template-columns: 1fr; gap: 36px; padding: 40px; }
  .single-layout { grid-template-columns: 1fr; gap: 48px; }
  .single-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 44px; }
  .footer-menus { justify-content: start; }
  .recipes-grid, .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .archive-header__image { width: 210px; }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
@media (max-width: 600px) {
  .admin-bar .site-header { top: 0; }
}

@media (max-width: 780px) {
  :root { --sec-pad: 52px; --gutter: 16px; --header-h: 64px; }
  .header-inner { gap: 10px; }
  .header-cta { display: none; }
  .row-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 26px; }
  .row-head__lead { max-width: none; }

  .news-hero { padding-top: 22px; }
  .news-hero__bar { margin-bottom: 18px; padding-bottom: 14px; }
  .news-hero__date { display: none; }
  .feature { min-height: 440px; border-radius: 22px; }
  .feature__body { padding: 22px; gap: 10px; }
  .feature__excerpt { display: none; }
  .news-hero__side { grid-template-columns: 1fr; gap: 12px; }
  .side-story { grid-template-columns: 100px minmax(0, 1fr); gap: 14px; padding: 10px; }
  .side-story__thumb { min-height: 88px; max-height: 96px; }
  .ribbon__item { font-size: 1rem; padding: 0 22px; }

  .topic-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; scrollbar-width: none; }
  .topic-row::-webkit-scrollbar { display: none; }
  .topic-tile { flex: 0 0 62vw; max-width: 260px; aspect-ratio: 3 / 4; scroll-snap-align: start; }

  .latest__grid { grid-template-columns: 1fr; gap: 18px; }
  .card--wide { grid-column: auto; grid-template-columns: 1fr; }
  .card--wide .card__media { min-height: 0; aspect-ratio: 16 / 10; }
  .card--wide .card__body { padding: 22px; }

  .promise__list { grid-template-columns: 1fr; gap: 26px; }
  .hcard { grid-template-columns: 1fr; }
  .hcard__media { min-height: 0; aspect-ratio: 16 / 10; }
  .hcard__body { padding: 22px; }
  .quick-reads { padding: 22px 20px 6px; }

  .habit-grid { grid-template-columns: 1fr; gap: 14px; }
  .habit { padding: 22px; }
  .ocard { flex-basis: 74vw; max-width: 300px; }

  .join__top { padding: 26px 20px; }
  .form-card { padding: 24px 20px; }
  .join__stats { grid-template-columns: 1fr 1fr; }
  .trust-stat { padding: 20px; }
  .trust-stat__num { font-size: 1.9rem; }

  .footer-top { padding: 60px 0 40px; }
  .footer-menus { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-bottom__inner { flex-direction: column; align-items: flex-start; }
  .footer-sprout { display: none; }

  .archive-header { padding: 44px 0 40px; margin-bottom: 32px; }
  .archive-header__inner { grid-template-columns: 1fr; gap: 26px; }
  .archive-header__image { width: 150px; }
  .recipes-grid, .post-grid, .related-section .recipes-grid { grid-template-columns: 1fr; }
  .single-main { padding-top: calc(var(--header-h) + 28px); }
  .single-sidebar { grid-template-columns: 1fr; }
  .single-layout { padding-bottom: 50px; }
  .related-section { padding: 52px 0 60px; }
  .entry-content { font-size: 1.03rem; }
  .pagination { margin: 36px 0 60px; }
  .page-main, .error-main { padding-top: calc(var(--header-h) + 32px); padding-bottom: 60px; }
}

@media (max-width: 420px) {
  .footer-menus { grid-template-columns: 1fr; }
  .join__stats { grid-template-columns: 1fr; }
  .trust-stat { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .trust-stat:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal:not(.is-in) { opacity: 1; }
}
