/*
Theme Name: Velle360
Theme URI: https://velle360.com
Author: Velle360
Author URI: https://velle360.com
Description: The Velle360 theme: Ghana and Africa news and everyday stories, with light/dark mode, filtering & search, per-article reading progress, and the Velle360 brand guide (Daylight ground, Midnight ink, Marigold signature, Fraunces / Instrument Sans / IBM Plex Mono).
Version: 1.3.5
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aurelia
Tags: blog, lifestyle, dark-mode, custom-menu, featured-images, translation-ready, two-columns, right-sidebar
*/

/* ============================================================
   Aurelia — Lifestyle Blog
   Design tokens, light/dark themes, layout & components
   ============================================================ */

:root {
  /* --- Velle360 core palette --- */
  --midnight:  #111C2E;   /* The primary */
  --daylight:  #F1F3EF;   /* The page neutral */
  --marigold:  #DFA02C;   /* The signature */
  --verdigris: #1F5C55;   /* Secondary */
  --afterglow: #B4574E;   /* Restricted — corrections, warnings */
  --slate:     #5B6675;   /* Blue-biased neutral */

  /* Brand accent.
     --accent is the fill/rule cut. --accent-ink is the *text* cut: Marigold
     on Daylight is 2.0:1 and unreadable, so type takes Burnish #8A5E0F (6.1:1). */
  --accent: var(--marigold);
  --accent-soft: #F0C673;
  --accent-ink: #8A5E0F;
  --link: var(--verdigris);   /* Secondary carries links — 6.9:1 on Daylight */
  --danger: var(--afterglow);

  /* Ground: Daylight — the page, at the guide's 60/26/9/5 proportion. */
  --bg: #F1F3EF;
  --bg-elev: #F8F9F6;
  --bg-subtle: #E8EBE5;
  --text: #111C2E;        /* Midnight on Daylight — 15.3:1, AAA */
  --text-soft: #3A4454;
  --text-muted: #5B6675;  /* Slate — 5.2:1, captions and metadata */
  --border: #D3D8CF;
  --border-strong: #B9C0B6;
  --focus: #2F5E8C;

  /* Flat editorial surfaces: the brand rules with hairlines, not shadows. */
  --shadow: 0 18px 44px -22px rgba(17, 28, 46, 0.28);
  --shadow-sm: 0 6px 18px -10px rgba(17, 28, 46, 0.18);
  --ring: rgba(47, 94, 140, 0.3);

  /* --- Type: the three voices --- */
  --font-serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --font-sans:  'Instrument Sans', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-mono:  'IBM Plex Mono', 'Cascadia Mono', Consolas, 'SFMono-Regular', ui-monospace, monospace;

  /* Layout */
  --max: 1180px;
  --measure: 68ch;
  --radius: 0;            /* The brand squares its corners. */
  --radius-sm: 0;
  --gutter: clamp(1.25rem, 5vw, 3rem);

  --transition: 0.28s cubic-bezier(0.2, 0.8, 0.3, 1);
}

/* The toggle drops to the brand's dark ground.
   On dark, Marigold lightens to #F0B443 (9.8:1) and is legible as text —
   so the fill cut and the ink cut converge. */
[data-theme="dark"] {
  --accent: #F0B443;
  --accent-ink: #F0B443;
  --link: #4FA396;
  --danger: #DE8A90;

  --bg: #0D1626;
  --bg-elev: #152134;
  --bg-subtle: #09111E;
  --text: #E7EAE4;
  --text-soft: #C7D0DC;
  --text-muted: #9BA6B4;
  --border: #26334A;
  --border-strong: #384763;
  --focus: #79AEE0;

  --shadow: 0 18px 44px -20px rgba(0, 0, 0, 0.65);
  --shadow-sm: 0 6px 18px -10px rgba(0, 0, 0, 0.5);
  --ring: rgba(121, 174, 224, 0.4);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;   /* 17px / 1.65 — the brand's default body */
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

/* Semibold carries emphasis — Bold never appears in running text. */
strong, b { font-weight: 600; }

/* Italic is Fraunces only; Instrument Sans never goes italic. */
em, i, cite { font-family: var(--font-serif); font-style: italic; }

:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

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

img { max-width: 100%; display: block; }

/* Fraunces at display optical size, WONK on — the soft g and the flick on the y. */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 96, 'WONK' 1;
  text-wrap: balance;
}
h1 { letter-spacing: -0.025em; }

a { color: inherit; text-decoration: none; }

/* ---------- Utility face ----------
   Degrees, dates, kickers, labels, data. Never carries a sentence. */
.eyebrow, .chip, .hero-card-tag, .footer-links h4, .footer-links h2,
.card-foot, .post-meta span, .hero-stats span,
.footer-bottom {
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.accent { color: var(--accent-ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0.78rem 1.5rem; border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

/* Midnight on Marigold — the approved CTA pair, 7.5:1. */
.btn-primary { background: var(--accent); color: var(--midnight); }
.btn-primary:hover { background: var(--daylight); color: var(--midnight); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--accent);
  z-index: 100; transition: width 0.1s linear;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; }
.brand-mark { color: var(--accent); font-size: 1.25rem; }
.brand-name { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; }
/* Site Identity logo — sized to the 68px header, any aspect ratio. */
.brand-logo { display: block; height: 40px; width: auto; max-width: 220px; object-fit: contain; }
/* Two logo cuts: white lettering for the dark ground, Midnight lettering for
   Daylight. Light is the no-attribute default, matching :root. */
.brand-logo.brand-logo--dark { display: none; }
[data-theme="dark"] .brand-logo.brand-logo--dark { display: block; }
[data-theme="dark"] .brand-logo.brand-logo--light { display: none; }

.nav { display: flex; align-items: center; }
/* The list carries the row layout; .nav stays the shell (it becomes the
   mobile drawer). list-style:none kills the browser's default bullets. */
.nav-list { display: flex; align-items: center; gap: 0.2rem; list-style: none; margin: 0; padding: 0; }
.nav-list > li { display: block; }
.nav-link {
  display: block;
  position: relative; padding: 0.5rem 0.9rem;
  font-family: var(--font-mono); font-weight: 400; font-size: 0.76rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav-link:hover { color: var(--text); border-bottom-color: var(--accent); }
.nav .current-menu-item > .nav-link,
.nav .current_page_item > .nav-link { color: var(--text); border-bottom-color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: var(--radius-sm); border: 1px solid var(--border); background: transparent;
  color: var(--text-muted); cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent-ink); }

/* Theme toggle icon swap */
.theme-toggle { position: relative; overflow: hidden; }
.theme-toggle svg { position: absolute; transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s; }
[data-theme="light"] .icon-moon { transform: translateY(150%) rotate(-90deg); opacity: 0; }
[data-theme="light"] .icon-sun { transform: none; opacity: 1; }
[data-theme="dark"] .icon-sun { transform: translateY(-150%) rotate(90deg); opacity: 0; }
[data-theme="dark"] .icon-moon { transform: none; opacity: 1; }

/* Menu toggle (mobile) */
.menu-toggle { display: none; flex-direction: column; gap: 4px; }
.menu-toggle span { width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem); overflow: hidden; }
/* Marigold is a spice, not a sauce — one restrained wash, no second gold mass. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(58% 58% at 84% 8%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 72%);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

.eyebrow {
  display: flex; align-items: center; gap: 0.6em;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 1rem;
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 0.98; letter-spacing: -0.03em; margin-bottom: 1.2rem; }
.hero h1 em { color: var(--accent-ink); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.2rem); line-height: 1.5; color: var(--text-soft); max-width: 46ch; margin-bottom: 2rem; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.6rem; }

.hero-stats { display: flex; gap: 2.2rem; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-serif); font-size: 1.7rem; }
.hero-stats span { font-size: 0.85rem; color: var(--text-muted); }

.hero-visual { display: flex; justify-content: center; }
.hero-card {
  position: relative; background: var(--bg-elev); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: 2rem; max-width: 340px;
  transition: border-color var(--transition);
}
.hero-card-glow { display: none; }   /* No gradients, glows, or bevels. */
.hero-card > * { position: relative; }
.hero-card-tag { display: inline-block; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 0.9rem; }
.hero-card h3, .hero-card h2 { font-size: 1.4rem; margin-bottom: 0.7rem; }
.hero-card p { color: var(--text-soft); font-size: 0.95rem; margin-bottom: 1.4rem; }
.hero-card-meta { font-size: 0.82rem; color: var(--text-muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head { margin-bottom: 2.6rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.section-sub { color: var(--text-muted); margin-top: 0.5rem; }

/* ---------- Featured ---------- */
.featured {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color var(--transition);
}
.featured:hover { border-color: var(--border-strong); }
.featured-media { min-height: 340px; background: var(--bg-subtle) var(--img) center/cover no-repeat; }
.featured-body { padding: clamp(1.6rem, 3vw, 2.6rem); display: flex; flex-direction: column; justify-content: center; }
.featured-body h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0.8rem 0 0.9rem; }
.featured-body p { color: var(--text-soft); margin-bottom: 1.6rem; max-width: 60ch; }

/* Domain-style label: a rule and a dot, not a filled pill. */
.chip {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-ink); background: none; padding: 0; border-radius: 0;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }

.post-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.4rem; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--midnight); font-family: var(--font-mono); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.04em; }
.post-meta strong { display: block; font-size: 0.92rem; font-weight: 600; }
.post-meta span { font-size: 0.7rem; color: var(--text-muted); }

.read-more {
  align-self: flex-start; font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink);
  border-bottom: 1px solid currentColor; padding-bottom: 0.2rem;
}
.read-more:hover { color: var(--text); }

/* ---------- Toolbar (filters + search) ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 2.4rem; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter {
  padding: 0.5rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: transparent; color: var(--text-muted);
  font-family: var(--font-mono); font-weight: 400; font-size: 0.74rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer; transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.filter:hover { border-color: var(--accent); color: var(--accent-ink); }
.filter.is-active { background: var(--accent); color: var(--midnight); border-color: var(--accent); }

.search { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: transparent; color: var(--text-muted); transition: border-color var(--transition), box-shadow var(--transition); }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.search input { border: none; background: transparent; color: var(--text); font-family: inherit; font-size: 0.92rem; outline: none; width: 190px; }
.search input::placeholder { color: var(--text-muted); }

/* ---------- Post grid ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem; }

.card {
  display: flex; flex-direction: column; background: var(--bg-elev);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: border-color var(--transition);
}
.card:hover { border-color: var(--border-strong); }
.card-link { display: flex; flex-direction: column; flex: 1; color: inherit; }
.card:hover .card-body h3 { color: var(--accent-ink); }
.card-body h3 { transition: color var(--transition); }
.card-media { aspect-ratio: 16/10; background-size: cover; background-position: center; position: relative; }
/* Over an image the label needs its own ground — Midnight, not a blur. */
.card-media .chip {
  position: absolute; top: 0; left: 0; backdrop-filter: none;
  background: var(--midnight); color: var(--accent);
  padding: 0.42rem 0.75rem;
}
.card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.28rem; line-height: 1.2; margin-bottom: 0.5rem; }
.card-body p { color: var(--text-soft); font-size: 0.94rem; flex: 1; margin-bottom: 1.1rem; }
.card-foot { display: flex; align-items: center; justify-content: space-between; font-size: 0.68rem; color: var(--text-muted); }
.card-foot .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); display: inline-block; margin: 0 0.5rem; vertical-align: middle; }

.no-results { text-align: center; color: var(--text-muted); padding: 3rem 0; font-size: 1.05rem; }

/* ---------- Topics ---------- */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
/* Hairline-gridded, like the domain table in the guide. */
.topic-grid { background: var(--border); border: 1px solid var(--border); gap: 1px; }
.topic {
  position: relative; padding: 1.5rem 1.4rem; border-radius: 0;
  border: 0; background: var(--bg-elev); cursor: pointer;
  overflow: hidden; transition: background var(--transition);
  text-align: left; font-family: inherit; color: inherit; width: 100%;
}
.topic:hover { background: var(--bg-subtle); }
.topic::after { display: none; }
.topic-emoji { font-size: 1.5rem; }
.topic h3 { font-size: 1.15rem; margin: 0.6rem 0 0.2rem; position: relative; }
.topic span { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); position: relative; }

/* ---------- Newsletter ---------- */
.newsletter-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center;
  padding: clamp(2rem, 4vw, 3.4rem); border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
}
.newsletter-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.6rem; }
.newsletter-copy p { color: var(--text-soft); max-width: 46ch; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.newsletter-form input {
  flex: 1; min-width: 200px; padding: 0.82rem 1.1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--bg); color: var(--text);
  font-family: inherit; font-size: 0.95rem; outline: none; transition: border-color var(--transition), box-shadow var(--transition);
}
.newsletter-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.form-msg { flex-basis: 100%; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; min-height: 1.2em; color: var(--accent-ink); }
.form-msg.error { color: var(--danger); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-subtle); padding-top: 3rem; margin-top: 2rem; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-brand { display: flex; flex-direction: column; }
.footer-brand .brand-name { margin-left: 0.4rem; }
.footer-brand .brand-logo { height: 36px; align-self: flex-start; margin-bottom: 0.35rem; }
.footer-brand p { color: var(--text-muted); margin-top: 0.6rem; font-size: 0.92rem; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-links h4, .footer-links h2 { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-muted); margin-bottom: 0.9rem; }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-links a { display: block; color: var(--text-soft); font-size: 0.92rem; padding: 0.25rem 0; transition: color var(--transition); }
.footer-links a:hover { color: var(--accent-ink); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 1.4rem 0; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--text-muted); }
.to-top { background: none; border: none; color: var(--text-soft); font-weight: 600; cursor: pointer; font-family: inherit; transition: color var(--transition); }
.to-top:hover { color: var(--accent-ink); }

/* ---------- Article (post page) ---------- */
.article-loading { padding: 6rem 0; text-align: center; color: var(--text-muted); }

.article-head { padding: clamp(2.2rem, 5vw, 3.5rem) 0 1.5rem; }
.article-head-inner { max-width: 760px; }
.back-link { display: inline-block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1.4rem; transition: color var(--transition); }
.back-link:hover { color: var(--accent-ink); }
.article-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.08; letter-spacing: -0.025em; margin: 0.9rem 0 1rem; }
/* Deck — Instrument 400, Slate-toned, under the title. */
.article-excerpt { font-size: clamp(1.1rem, 2vw, 1.2rem); line-height: 1.5; color: var(--text-muted); margin-bottom: 1.8rem; }

.article-hero { max-width: 900px; margin: 0 auto; aspect-ratio: 16/8; border-radius: var(--radius); background: var(--bg-subtle) center/cover no-repeat; border: 1px solid var(--border); }

/* Measure stays at 62–70 characters. */
.article-body { max-width: var(--measure); margin: clamp(2rem, 5vw, 3.2rem) auto 0; font-size: 1.0625rem; line-height: 1.65; }
.article-body p { margin-bottom: 1.4rem; color: var(--text-soft); }
.article-body .lead-para { font-size: 1.19rem; line-height: 1.55; color: var(--text); }
/* Drop cap: first paragraph of the lead story only, once per issue. */
.article-body .lead-para::first-letter {
  font-family: var(--font-serif); font-weight: 600; font-size: 3.1em;
  float: left; line-height: 0.82; padding: 0.06em 0.12em 0 0; color: var(--accent-ink);
}
.article-body h2 { font-size: 1.75rem; letter-spacing: -0.02em; margin: 2.6rem 0 0.9rem; color: var(--text); }
.article-body h3 { font-size: 1.3rem; letter-spacing: -0.015em; margin: 2rem 0 0.7rem; color: var(--text); }
/* Pull quote — Fraunces 500 italic, Marigold rule above. */
.article-body blockquote {
  margin: 2.4rem 0; padding: 1.2rem 0 0;
  border-top: 2px solid var(--accent); border-left: 0;
  font-family: var(--font-serif); font-weight: 500;
  font-size: 1.625rem; font-style: italic; line-height: 1.3;
  letter-spacing: -0.015em; color: var(--text);
}
/* Links are Verdigris — the guide's secondary carries links and confirmations. */
.article-body a { color: var(--link); border-bottom: 1px solid color-mix(in srgb, var(--link) 45%, transparent); }
.article-body a:hover { border-bottom-color: currentColor; }

.article-foot { display: flex; align-items: center; gap: 1rem; max-width: var(--measure); margin: 3rem auto 0; padding: 1.6rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); }
.avatar-lg { width: 56px; height: 56px; font-size: 1.05rem; }
.article-foot strong { display: block; font-family: var(--font-serif); font-size: 1.15rem; }
.article-foot p { color: var(--text-muted); font-size: 0.92rem; margin-top: 0.2rem; }

.related { padding-top: clamp(2.5rem, 6vw, 4rem); }

/* Floating reading-progress ring */
.reading-ring {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  width: 60px; height: 60px; display: grid; place-items: center;
  border: none; border-radius: 50%; cursor: pointer; padding: 0;
  background: var(--bg-elev); border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--text);
  z-index: 80; opacity: 0; transform: translateY(16px) scale(0.85); pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
.reading-ring.visible { opacity: 1; transform: none; pointer-events: auto; }
.reading-ring:hover { transform: translateY(-3px); }
.reading-ring svg { position: absolute; transform: rotate(-90deg); }
.reading-ring .ring-track { fill: none; stroke: var(--border); stroke-width: 3; }
/* The index hand on the dial — butt cap, not rounded. */
.reading-ring .ring-fill { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: butt; transition: stroke-dashoffset 0.12s linear; }
.reading-ring .ring-label { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.reading-ring.is-done { color: var(--accent-ink); }
.reading-ring.is-done .ring-label { font-size: 1rem; }

.not-found { max-width: 620px; margin: 0 auto; text-align: center; padding: clamp(4rem, 12vw, 8rem) 0; }
.not-found h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 1rem 0 0.8rem; }
.not-found p { color: var(--text-soft); margin-bottom: 2rem; }
.not-found .chip { display: inline-flex; align-self: center; }

/* WordPress pagination */
.pagination { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 0.6rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: transparent;
  color: var(--text-muted); font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500;
  font-variant-numeric: tabular-nums;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current { background: var(--accent); color: var(--midnight); border-color: var(--accent); }

/* WordPress core helpers */
.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;
}
.aligncenter { margin-inline: auto; }
.alignright { float: right; margin-left: 1.4rem; }
.alignleft { float: left; margin-right: 1.4rem; }
.wp-caption-text { font-size: 0.85rem; color: var(--text-muted); }
.sticky, .bypostauthor { }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg-elev); border-bottom: 1px solid var(--border);
    padding: 0.5rem var(--gutter) 1rem; transform: translateY(-120%);
    transition: transform var(--transition); box-shadow: var(--shadow);
  }
  .nav.open { transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-link { padding: 0.9rem 0.4rem; border-bottom: 1px solid var(--border); }
  .nav-link:hover { border-bottom-color: var(--accent); }
  .menu-toggle { display: flex; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-card { transform: none; }

  .featured { grid-template-columns: 1fr; }
  .featured-media { min-height: 220px; }

  .newsletter-card { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .hero-stats { gap: 1.3rem; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search input { width: 100%; }
  .search { flex: 1; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}

/* Velle360: hero top-story headline is a link */
.hero-card h3 a, .hero-card h2 a { color: inherit; text-decoration: none; }
.hero-card h3 a:hover, .hero-card h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Velle360 SEO: real <img> elements for cards and article hero (indexable by Google Images). */
.card-media { overflow: hidden; }
.card-media .card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.card-media .chip { z-index: 1; }
.article-hero-figure { max-width: 900px; margin: 0 auto; }
img.article-hero { display: block; width: 100%; height: auto; object-fit: cover; }
.article-hero-credit { margin-top: 0.55rem; font-size: 0.78rem; line-height: 1.4; color: var(--text-soft); text-align: right; }
.article-hero-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.section-head h1.archive-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }