/* =========================================================
   OWNAUTONOMI — editorial health journal
   (theme: sovereign-terminal)
   ========================================================= */

/* ── TOKENS ───────────────────────────────────────────── */
:root {
  --bg:        #F7F5F0;
  --bg-2:      #EFEDE6;
  --surface:   #FFFFFF;
  --fg:        #1C1C19;
  --fg-2:      #5A5A52;
  --accent:    #3D6B52;
  --accent-2:  #2F5641;
  --accent-lt: #CCDDD4;
  --rule:      #D9D6CE;
  --tag-bg:    #E8E4DC;
  --footer-bg: #1C1C19;
  --footer-fg: #F0EDE5;
  --error:     #B03A2E;

  --shadow-sm: 0 1px 2px rgba(28,28,25,.05), 0 4px 14px -6px rgba(28,28,25,.10);
  --shadow-md: 0 2px 4px rgba(28,28,25,.04), 0 18px 40px -18px rgba(28,28,25,.22);

  --ff-display: 'DM Serif Display', Georgia, serif;
  --ff-body:    'DM Sans', system-ui, sans-serif;
  --ff-mono:    'DM Mono', ui-monospace, monospace;

  --container-w: 1140px;
  --gutter:      24px;
  --header-h:    68px;
  --radius:      14px;
  --radius-sm:   8px;
  --section-py:  64px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #141412;
    --bg-2:      #1E1E1B;
    --surface:   #1A1A17;
    --fg:        #F0EDE5;
    --fg-2:      #A3A397;
    --accent:    #6BA585;
    --accent-2:  #84B99B;
    --accent-lt: #1E3328;
    --rule:      #2E2E28;
    --tag-bg:    #252520;
    --footer-bg: #0E0E0C;
    --footer-fg: #F0EDE5;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3), 0 4px 14px -6px rgba(0,0,0,.4);
    --shadow-md: 0 2px 4px rgba(0,0,0,.3), 0 18px 40px -18px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}

/* Topic colours (tags, tiles). Unknown slugs fall back to the accent. */
.tag, .topic { --t: var(--accent); }
.tag--body      { --t: #3D6B52; }
.tag--mind      { --t: #59609A; }
.tag--nutrition { --t: #A86A2E; }
.tag--sleep     { --t: #3B5E80; }
.tag--beauty    { --t: #A84D66; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tag--body      { --t: #7CB896; }
  :root:not([data-theme="light"]) .tag--mind      { --t: #A3A8E0; }
  :root:not([data-theme="light"]) .tag--nutrition { --t: #E0A56B; }
  :root:not([data-theme="light"]) .tag--sleep     { --t: #8DB3D8; }
  :root:not([data-theme="light"]) .tag--beauty    { --t: #E897AC; }
}

/* ── RESET & BASE ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; height: 100%; }
html.nav-locked { overflow: hidden; }
body {
  font-family: var(--ff-body);
  font-size: 15.5px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
.site-main { flex: 1 0 auto; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-2); }
h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 400; line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 1000;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ── UTILITY ──────────────────────────────────────────── */
.container { max-width: var(--container-w); margin-inline: auto; padding-inline: var(--gutter); }
.container--article { max-width: 820px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-lt);
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px 26px;
  font-family: var(--ff-body);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--accent-2); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 20px -10px var(--accent); }
.btn--sm { padding: 9px 18px; font-size: .74rem; }

.dot { color: var(--rule); margin: 0 2px; }

/* Topic tag */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--t);
  background: var(--tag-bg);
  background: color-mix(in srgb, var(--t) 12%, transparent);
  padding: 4px 10px;
  border-radius: 999px;
  transition: background .2s, color .2s;
}
.tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.tag:hover { background: var(--t); color: #fff; }

/* Section heading: heavy rule + small caps title (as in the template) */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-top: 2px solid var(--fg);
  padding-top: 12px;
  margin-bottom: 28px;
  position: relative;
}
.section-head::before {
  content: "";
  position: absolute;
  left: 0; top: -2px;
  width: 48px; height: 2px;
  background: var(--accent);
}
.section-title {
  font-family: var(--ff-body);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg);
  line-height: 1.4;
}
.section-all {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.section-all:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── HEADER ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow .25s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header--scrolled { box-shadow: 0 8px 24px -16px rgba(28,28,25,.3); }

.header-inner {
  max-width: var(--container-w);
  margin-inline: auto;
  padding: 0 var(--gutter);
  min-height: var(--header-h);
  /* Logo | centred menu | actions — equal side columns keep the menu truly centred */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}
.header-logo { display: flex; align-items: center; flex-shrink: 0; }
.header-logo .custom-logo-link { display: flex; align-items: center; }
.header-logo img { max-height: 40px; width: auto; object-fit: contain; }
.site-title-text,
.nav-menu__brand,
.footer-logo__name {
  font-family: var(--ff-display);
  font-size: 1.35rem;
  letter-spacing: -.02em;
  color: var(--fg);
  white-space: nowrap;
}
.site-title-text:hover { color: var(--accent); }

.header-nav { justify-self: center; }
.header-nav .nav-list { display: flex; list-style: none; gap: 4px; }
.header-nav .nav-list a {
  display: block;
  position: relative;
  padding: 8px 12px;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.header-nav .nav-list > li > a::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .25s;
}
.header-nav .nav-list > li > a:hover,
.header-nav .nav-list > .current-menu-item > a,
.header-nav .nav-list > .current-category-ancestor > a { color: var(--fg); }
.header-nav .nav-list > li > a:hover::after,
.header-nav .nav-list > .current-menu-item > a::after { transform: scaleX(1); }

/* Desktop dropdown */
.header-nav .nav-list > li { position: relative; }
.header-nav .nav-list .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  list-style: none;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 200;
}
.header-nav .nav-list li:hover > .sub-menu,
.header-nav .nav-list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.header-nav .nav-list .sub-menu a { border-radius: var(--radius-sm); white-space: nowrap; }
.header-nav .nav-list .sub-menu a:hover { background: var(--bg-2); }

.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-shrink: 0; }
.burger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  margin-right: -8px;
  background: none;
  border: none;
  border-radius: 50%;
  color: var(--fg);
  cursor: pointer;
  transition: background .2s;
}
.burger-btn:hover { background: var(--bg-2); }

/* Mobile drawer */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 299;
  background: rgba(20,20,18,.45);
  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: 300;
  width: min(360px, 88vw);
  display: flex;
  flex-direction: column;
  background: var(--bg);
  box-shadow: -20px 0 50px -20px rgba(0,0,0,.35);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform .35s cubic-bezier(.4,0,.2,1), visibility .35s;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.nav-menu.is-open { transform: none; visibility: visible; }
.nav-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  padding: 0 12px 0 22px;
  border-bottom: 1px solid var(--rule);
  flex-shrink: 0;
}
.nav-menu__brand .custom-logo-link { display: block; line-height: 0; }
.nav-menu__brand .custom-logo { max-height: 36px; width: auto; }
.nav-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  background: var(--bg-2);
  border: none;
  border-radius: 50%;
  color: var(--fg);
  cursor: pointer;
}
.nav-close:hover { background: var(--accent-lt); color: var(--accent); }
.nav-menu__body { padding: 22px 12px 8px; }
.nav-menu__label {
  display: block;
  padding: 0 10px 8px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.nav-menu .menu { list-style: none; }
.nav-menu .menu a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 10px;
  font-family: var(--ff-display);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--fg);
  border-bottom: 1px solid var(--rule);
}
.nav-menu .menu > li > a::after { content: "→"; font-family: var(--ff-body); font-size: 1rem; color: var(--accent); opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s; }
.nav-menu .menu a:hover { color: var(--accent); }
.nav-menu .menu a:hover::after { opacity: 1; transform: none; }
.nav-menu .menu .sub-menu { display: none; list-style: none; padding-left: 14px; }
.nav-menu .menu li.is-open > .sub-menu { display: block; }
.nav-menu .menu .sub-menu a { font-family: var(--ff-body); font-size: 1rem; }
.nav-menu__subscribe {
  margin: auto 22px 26px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
}
.nav-menu__subscribe p { font-size: .9rem; margin-bottom: 14px; opacity: .9; }
.nav-menu__subscribe .btn { display: block; background: #fff; color: var(--accent); }

/* ── TICKER ───────────────────────────────────────────── */
.ticker {
  background: var(--fg);
  color: var(--bg);
  overflow: hidden;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker__track { display: inline-flex; animation: ticker 50s linear infinite; }
.ticker:hover .ticker__track,
.ticker:focus-within .ticker__track { animation-play-state: paused; }
.ticker__group { display: inline-flex; }
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 44px 11px 0;
  font-size: .8rem;
  font-weight: 500;
  color: inherit;
}
.ticker__item:hover { color: var(--accent-lt); }
.ticker__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.ticker__cat {
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .6;
}

/* ── HERO ─────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
/* Soft sage glow + dot grid behind the hero */
.hero::before {
  content: "";
  position: absolute;
  width: 640px; height: 640px;
  right: -160px; top: -260px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 320px; height: 220px;
  background-image: radial-gradient(color-mix(in srgb, var(--fg) 18%, transparent) 1px, transparent 1px);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(ellipse at 0% 100%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse at 0% 100%, #000, transparent 70%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: center;
}
.hero__title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.06;
  letter-spacing: -.028em;
  margin-bottom: 22px;
}
.hero__title em { font-style: italic; color: var(--accent); }
.hero__lead { font-size: 1.08rem; color: var(--fg-2); max-width: 52ch; margin-bottom: 26px; }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .8rem; color: var(--fg-2); }
.hero__meta span:not(.dot) {
  padding: 5px 12px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 999px;
}
.hero__meta .dot { display: none; }

/* Editor's pick card */
.pick {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.pick__media { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-2); }
.pick__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.pick:hover .pick__img { transform: scale(1.04); }
.pick__badge {
  position: absolute;
  left: 14px; top: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(20,20,18,.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.pick__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; }
.pick__title { font-size: 1.35rem; line-height: 1.2; }
.pick__title a { color: var(--fg); }
.pick__title a:hover { color: var(--accent); }
.pick__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 22px;
  background: var(--accent);
  color: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1rem;
  transition: background .2s;
}
.pick__bar:hover { background: var(--accent-2); color: #fff; }
.pick__bar span:last-child { font-family: var(--ff-body); font-style: normal; transition: transform .2s; }
.pick__bar:hover span:last-child { transform: translateX(4px); }

/* ── CARDS ────────────────────────────────────────────── */
.card { display: flex; flex-direction: column; gap: 16px; }
.card__media {
  display: block;
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-2);
}
.card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover .card__img { transform: scale(1.05); }
.card__ph {
  display: block;
  width: 100%; height: 100%;
  background:
    radial-gradient(circle at 30% 30%, var(--accent-lt), transparent 60%),
    var(--bg-2);
}
.card__body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card__title { font-size: 1.18rem; line-height: 1.25; }
.card__title a {
  color: var(--fg);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .35s, color .2s;
}
.card__title a:hover { color: var(--accent); background-size: 100% 1px; }
.card__excerpt {
  font-size: .9rem;
  color: var(--fg-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: .76rem; color: var(--fg-2); }

/* Large: image left, text right */
.card--large {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.card--large .card__media { aspect-ratio: 4/3; }
.card--large .card__title { font-size: 1.5rem; }
.card--large .card__meta { margin-top: 4px; }

.grid { display: grid; gap: 40px 32px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* Numbered list item */
.list { display: flex; flex-direction: column; counter-reset: none; }
.list-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.list-item:first-child { padding-top: 4px; }
.list-item:last-child { border-bottom: none; }
.list-item__num {
  flex-shrink: 0;
  min-width: 26px;
  padding-top: 2px;
  font-family: var(--ff-mono);
  font-size: .78rem;
  color: var(--accent);
}
.list-item__body { min-width: 0; }
.list-item__tag {
  display: block;
  margin-bottom: 4px;
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.list-item__tag:hover { color: var(--accent); }
.list-item__title { font-size: 1.02rem; line-height: 1.3; }
.list-item__title a { color: var(--fg); }
.list-item__title a:hover { color: var(--accent); }

/* ── HOME: main grid + sidebar ────────────────────────── */
.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  padding-block: var(--section-py);
  border-bottom: 1px solid var(--rule);
}
.latest__list { display: flex; flex-direction: column; }
.latest__list .card--large { padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--rule); }
.latest__list .card--large:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: none; }

.sidebar { display: flex; flex-direction: column; gap: 44px; }
.side-block .section-head { margin-bottom: 14px; }

/* Subscribe box */
.subscribe-box {
  position: relative;
  overflow: hidden;
  padding: 30px 26px 24px;
  border-radius: var(--radius);
  background: var(--accent);
  background: linear-gradient(150deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.subscribe-box::before {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  right: -90px; top: -90px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 0 0 26px rgba(255,255,255,.04), 0 0 0 27px rgba(255,255,255,.12);
  pointer-events: none;
}
.subscribe-box > * { position: relative; }
.subscribe-box__eyebrow {
  display: block;
  margin-bottom: 8px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .75;
}
.subscribe-box__title { font-size: 1.55rem; line-height: 1.15; margin-bottom: 10px; color: #fff; }
.subscribe-box__text { font-size: .88rem; line-height: 1.55; opacity: .88; margin-bottom: 20px; }
.subscribe-box__note { margin-top: 12px; font-size: .72rem; text-align: center; opacity: .65; }

/* Trust list */
.trust { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.trust__item { display: flex; gap: 14px; align-items: flex-start; font-size: .84rem; color: var(--fg-2); line-height: 1.5; }
.trust__item strong { display: block; margin-bottom: 2px; font-weight: 600; font-size: .86rem; color: var(--fg); }
.trust__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--accent-lt);
  color: var(--accent);
}
.trust__icon svg { width: 16px; height: 16px; }

/* ── TOPICS ───────────────────────────────────────────── */
.topics { padding-block: var(--section-py); border-bottom: 1px solid var(--rule); }
.topics__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
/* Icon card, tinted with the topic colour (--t) */
.topic {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px 18px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--fg);
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
/* Soft colour wash in the corner + coloured top edge */
.topic::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 180px; height: 180px;
  right: -70px; top: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--t) 18%, transparent), transparent 70%);
  transition: transform .5s;
}
.topic::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--t);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s;
}
.topic:hover { color: var(--fg); transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--t) 45%, var(--rule)); }
.topic:hover::before { transform: scale(1.25); }
.topic:hover::after { transform: scaleX(1); }
.topic__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 10px;
  border-radius: 16px;
  color: var(--t);
  background: color-mix(in srgb, var(--t) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t) 22%, transparent);
  transition: background .3s, color .3s, transform .3s;
}
.topic__icon svg { width: 26px; height: 26px; }
.topic:hover .topic__icon { background: var(--t); color: #fff; transform: rotate(-6deg); }
.topic__name { font-family: var(--ff-display); font-size: 1.4rem; line-height: 1.1; }
.topic__blurb { font-size: .82rem; line-height: 1.5; color: var(--fg-2); }
.topic__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--rule);
}
.topic__count { font-family: var(--ff-mono); font-size: .72rem; color: var(--t); }
.topic__arrow {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  font-size: .8rem;
  color: var(--fg-2);
  transition: background .25s, border-color .25s, color .25s, transform .25s;
}
.topic:hover .topic__arrow { background: var(--t); border-color: var(--t); color: #fff; transform: translateX(3px); }

/* ── ARCHIVE STRIP / RELATED ──────────────────────────── */
.strip { padding-block: var(--section-py) calc(var(--section-py) + 16px); }
.related { padding-block: var(--section-py); }
.single-main .related { border-top: 1px solid var(--rule); background: var(--bg-2); margin-top: var(--section-py); }

/* ── CONTACT FORM 7 (inside .subscribe-box) ───────────── */
.wpcf7-spinner { display: none; }
.wpcf7-not-valid-tip { display: none !important; }
.wpcf7 .form-fields p { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.wpcf7 .form-fields p br { display: none; }
.wpcf7 input[type="email"],
.wpcf7 input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 10px;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-family: var(--ff-body);
  font-size: .92rem;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.wpcf7 input[type="email"]::placeholder { color: rgba(255,255,255,.65); }
.wpcf7 input[type="email"]:focus { outline: none; background: rgba(255,255,255,.2); border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.18); }
.wpcf7 input.wpcf7-not-valid { border-color: #ffb4a8; box-shadow: 0 0 0 2px rgba(255,180,168,.35); }
.wpcf7 input[type="submit"] {
  width: 100%;
  padding: 13px 16px;
  border: none;
  border-radius: 10px;
  background: #fff;
  color: var(--accent-2);
  font-family: var(--ff-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.wpcf7 input[type="submit"]:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -10px rgba(0,0,0,.45); background: #F7F5F0; }
.wpcf7 input[type="submit"]:disabled { opacity: .6; transform: none; cursor: default; }
.wpcf7 .form-privacy { margin-top: 14px; }
.wpcf7 .form-privacy p { margin: 0; font-size: .74rem; line-height: 1.5; color: rgba(255,255,255,.85); }
.wpcf7 .form-privacy a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.wpcf7 .wpcf7-list-item { margin: 0; }
.wpcf7 .wpcf7-list-item label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.wpcf7 .wpcf7-list-item input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  flex-shrink: 0;
  width: 17px; height: 17px;
  margin-top: 1px;
  border: 1.5px solid rgba(255,255,255,.7);
  border-radius: 5px;
  background: transparent no-repeat center/11px;
  cursor: pointer;
  transition: background-color .15s;
}
.wpcf7 .wpcf7-list-item input[type="checkbox"]:checked {
  background-color: #fff;
  border-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%232F5641' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5'/%3E%3C/svg%3E");
}
.wpcf7 .wpcf7-list-item input[type="checkbox"]:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.wpcf7 .wpcf7-acceptance.wpcf7-not-valid .wpcf7-list-item-label { text-decoration: underline wavy #ffb4a8; text-underline-offset: 3px; }
.wpcf7 form .wpcf7-response-output {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: .82rem;
  text-align: center;
}
.wpcf7 form.sent .wpcf7-response-output { border-color: #fff; font-weight: 500; }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output { border-color: #ffb4a8; color: #ffe1db; }

/* ── SEARCH FORM ──────────────────────────────────────── */
.search-form {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 520px;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}
.search-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-lt); }
.search-form__icon { width: 18px; height: 18px; margin: 0 4px 0 14px; color: var(--fg-2); flex-shrink: 0; }
.search-form__input {
  flex: 1;
  min-width: 0;
  padding: 10px 8px;
  border: none;
  background: transparent;
  color: var(--fg);
  font-family: inherit;
  font-size: .95rem;
  outline: none;
}
.search-form__btn {
  padding: 10px 20px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}
.search-form__btn:hover { background: var(--accent-2); }

/* ── INNER PAGES: hero header ─────────────────────────── */
.page-hero {
  position: relative;
  padding: 56px 0 44px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  right: -140px; top: -260px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent), transparent 65%);
  pointer-events: none;
}
.page-hero > .container { position: relative; }
.page-hero__title { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05; letter-spacing: -.028em; }
.page-hero__title em { font-style: italic; color: var(--accent); }
.page-hero__desc { max-width: 60ch; margin-top: 14px; color: var(--fg-2); font-size: 1.05rem; }
.page-hero__count { margin-top: 12px; font-family: var(--ff-mono); font-size: .78rem; color: var(--fg-2); }
.page-hero .search-form { margin-top: 24px; }
.page-hero--page { margin-bottom: 40px; }

.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.topic-chips--center { justify-content: center; }
.topic-chip {
  padding: 8px 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg);
  font-size: .82rem;
  font-weight: 500;
  transition: border-color .2s, background .2s, color .2s;
}
.topic-chip:hover { border-color: var(--accent); color: var(--accent); }
.topic-chip.is-current { background: var(--fg); border-color: var(--fg); color: var(--bg); }

.archive-main { padding-bottom: calc(var(--section-py) + 16px); }
.archive-lead { padding-bottom: 44px; margin-bottom: 44px; border-bottom: 1px solid var(--rule); }
.archive-lead .card--large { grid-template-columns: 1.2fr 1fr; gap: 40px; }
.archive-lead .card__title { font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* Pagination (WP outputs nav.navigation.pagination) */
.pagination { margin-top: 56px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px; height: 42px;
  padding: 0 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg);
  font-size: .85rem;
  font-weight: 500;
  transition: border-color .2s, color .2s, background .2s;
}
.pagination .page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination .page-numbers.dots { border: none; background: none; min-width: auto; }

.no-results { text-align: center; padding: 40px 0 72px; }
.no-results p { color: var(--fg-2); font-size: 1.05rem; margin-bottom: 8px; }

/* ── SINGLE POST ──────────────────────────────────────── */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 9999;
  width: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent-lt), var(--accent));
}
.single-main { padding-bottom: 0; }
.article-header { position: relative; padding: 48px 0 32px; text-align: center; overflow: hidden; }
.article-header::before {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  left: 50%; top: -380px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent), transparent 65%);
  pointer-events: none;
}
.article-header > .container { position: relative; }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.page-hero .breadcrumbs { justify-content: flex-start; }
.breadcrumbs a { color: var(--fg-2); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span[aria-hidden] { color: var(--rule); }
.article-header__title { font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.08; letter-spacing: -.025em; }
.article-header__dek { max-width: 62ch; margin: 18px auto 0; font-size: 1.12rem; color: var(--fg-2); }
.article-header__meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 22px; }
.article-header__meta .tag { align-self: center; }

.article-hero { margin: 0 auto 48px; }
.article-hero__img { width: 100%; max-height: 620px; object-fit: cover; border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow-md); }
.article-hero__caption { margin-top: 10px; font-size: .8rem; color: var(--fg-2); text-align: center; font-style: italic; }

.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 64px;
  align-items: start;
}
.single-main-col { max-width: 720px; }
.single-sidebar { position: sticky; top: calc(var(--header-h) + 24px); }
.admin-bar .single-sidebar { top: calc(var(--header-h) + 56px); }

.entry-content { font-size: 1.08rem; line-height: 1.8; overflow-wrap: break-word; }
.entry-content > * + * { margin-top: 1.25em; }
.entry-content > p:first-child::first-letter {
  float: left;
  margin: .08em .1em 0 0;
  font-family: var(--ff-display);
  font-size: 3.6em;
  line-height: .8;
  color: var(--accent);
}
.entry-content h2,
.entry-content h3,
.entry-content h4 { margin-top: 1.7em; margin-bottom: -.2em; line-height: 1.2; }
.entry-content h2 { font-size: 1.9rem; }
.entry-content h3 { font-size: 1.5rem; }
.entry-content h4 { font-size: 1.2rem; }
.entry-content ul,
.entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .45em; }
.entry-content li::marker { color: var(--accent); }
.entry-content a { text-decoration: underline; text-decoration-color: var(--accent-lt); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.entry-content a:hover { text-decoration-color: var(--accent); }
.entry-content img { margin-block: 1.6em; border-radius: var(--radius); height: auto; }
.entry-content figure { margin-inline: 0; max-width: 100%; }
.entry-content blockquote {
  position: relative;
  margin-block: 2em;
  padding: 26px 30px 26px 34px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--ff-display);
  font-size: 1.35rem;
  line-height: 1.4;
}
.entry-content blockquote p { margin: 0; }
.entry-content hr { border: none; height: 1px; background: var(--rule); margin-block: 2.5em; }
.entry-content code { padding: 2px 6px; border-radius: 5px; background: var(--bg-2); font-family: var(--ff-mono); font-size: .88em; }
.entry-content table { width: 100%; display: block; overflow-x: auto; border-collapse: collapse; font-size: .95rem; }
.entry-content th,
.entry-content td { padding: 10px 12px; border: 1px solid var(--rule); text-align: left; }
.entry-content th { background: var(--bg-2); }
.entry-content iframe,
.entry-content video { max-width: 100%; }

.page-links { margin-top: 2em; font-size: .9rem; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.article-tags a {
  padding: 6px 13px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--fg-2);
  font-size: .78rem;
}
.article-tags a::before { content: "#"; color: var(--accent); margin-right: 2px; }
.article-tags a:hover { border-color: var(--accent); color: var(--accent); }

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
}
.article-nav__link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.article-nav__link:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.article-nav__link--next { text-align: right; grid-column: 2; }
.article-nav__label { font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.article-nav__title { font-family: var(--ff-display); font-size: 1.08rem; line-height: 1.3; color: var(--fg); }

/* ── STATIC PAGE ──────────────────────────────────────── */
.page-main { padding-bottom: calc(var(--section-py) + 16px); }
.page-figure { margin: 0 0 40px; }
.page-figure__img { width: 100%; border-radius: var(--radius); }

/* ── 404 ──────────────────────────────────────────────── */
.error-main { padding: 72px 0 calc(var(--section-py) + 16px); }
.error-page { text-align: center; max-width: 640px; margin: 0 auto 24px; }
.error-page__code {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(6rem, 18vw, 10rem);
  line-height: 1;
  color: var(--accent);
  opacity: .25;
  user-select: none;
}
.error-page__title { font-size: clamp(2rem, 5vw, 3rem); margin: 4px 0 14px; }
.error-page__desc { color: var(--fg-2); margin-bottom: 28px; }
.error-page__search .search-form { margin: 0 auto; }

/* ── FOOTER ───────────────────────────────────────────── */
.site-footer {
  position: relative;
  background: var(--footer-bg);
  color: var(--footer-fg);
  padding: 64px 0 32px;
}
/* Accent rule across the top */
.site-footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: linear-gradient(90deg, #3D6B52, #59609A, #A86A2E, #3B5E80, #A84D66);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  margin-bottom: 26px;
  border-bottom: 1px solid rgba(240,237,229,.12);
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.footer-logo .custom-logo-link { display: block; }
.footer-logo img { max-height: 40px; width: auto; }
.footer-logo__name { color: var(--footer-fg); font-size: 1.5rem; }
.footer-tagline { font-size: .88rem; line-height: 1.55; opacity: .65; max-width: 30ch; }
.footer-cta {
  margin-top: 4px;
  padding: 9px 16px;
  border: 1px solid rgba(240,237,229,.25);
  border-radius: 999px;
  color: var(--footer-fg);
  font-size: .8rem;
  font-weight: 500;
  transition: background .2s, border-color .2s, color .2s;
}
.footer-cta:hover { background: var(--footer-fg); border-color: var(--footer-fg); color: var(--footer-bg); }
.footer-col h4 {
  margin-bottom: 16px;
  font-family: var(--ff-body);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .5;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--footer-fg); opacity: .78; font-size: .88rem; transition: opacity .15s, color .15s; }
.footer-col a:hover { opacity: 1; color: #9FD0B4; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: .76rem;
  opacity: .5;
}
.footer-bottom a { color: inherit; text-decoration: underline; }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1080px) {
  .topics__grid { grid-template-columns: repeat(3, 1fr); }
  .single-layout { grid-template-columns: 1fr; gap: 56px; }
  .single-main-col { max-width: 760px; margin-inline: auto; width: 100%; }
  .single-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; max-width: 760px; margin-inline: auto; width: 100%; }
}

@media (max-width: 960px) {
  :root { --section-py: 52px; }
  .header-inner { display: flex; }
  .header-nav { display: none; }
  .burger-btn { display: inline-flex; }
  .header-actions { margin-left: auto; }

  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { max-width: 520px; }
  .main-grid { grid-template-columns: 1fr; gap: 48px; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
  .sidebar .subscribe-box { grid-column: 1 / -1; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --section-py: 44px; --header-h: 60px; }
  body { font-size: 15px; }
  .header-cta { display: none; }

  .ticker__item { padding-block: 9px; font-size: .76rem; }
  .hero { padding: 36px 0 40px; }
  .hero__title { font-size: clamp(2.1rem, 9.5vw, 2.6rem); }
  .hero__lead { font-size: 1rem; }
  .hero__meta { font-size: .74rem; gap: 6px; }

  .card--large,
  .archive-lead .card--large { grid-template-columns: 1fr; gap: 16px; }
  .card--large .card__media { aspect-ratio: 3/2; }
  .card--large .card__title { font-size: 1.3rem; }
  .latest__list .card--large { padding-bottom: 28px; margin-bottom: 28px; }

  .sidebar { grid-template-columns: 1fr; gap: 40px; }
  .grid--3 { grid-template-columns: 1fr; gap: 36px; }

  .topics__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .topic { padding: 16px 14px 14px; }
  .topic:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .topic__icon { width: 44px; height: 44px; border-radius: 13px; margin-bottom: 6px; }
  .topic__icon svg { width: 22px; height: 22px; }
  .topic__name { font-size: 1.2rem; }
  .topic__blurb { font-size: .78rem; }

  .page-hero { padding: 36px 0 30px; margin-bottom: 32px; }
  .topic-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .topic-chips::-webkit-scrollbar { display: none; }
  .topic-chips--center { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .topic-chip { flex-shrink: 0; }
  .archive-lead { padding-bottom: 32px; margin-bottom: 32px; }

  .article-header { padding: 32px 0 24px; }
  .article-header__dek { font-size: 1.02rem; }
  .article-hero { margin-bottom: 32px; padding-inline: 0; }
  .article-hero__img { border-radius: 0; max-height: 380px; }
  .entry-content { font-size: 1.04rem; }
  .entry-content blockquote { padding: 20px 20px 20px 22px; font-size: 1.15rem; }
  .single-sidebar { grid-template-columns: 1fr; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav__link--next { grid-column: auto; }

  .search-form__btn { padding: 10px 14px; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
