/*
Theme Name: Depends
Theme URI: https://depends.io
Author: Depends
Author URI: https://depends.io
Description: A dry, in-group myth-busting publication theme for PO/UX practitioners. Editorial type, warm-neutral surfaces, a dual light/manifesto-dark mode, and one reserved accent used only to mark a myth. Classic PHP theme.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.0
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: depends
Tags: blog, one-column, two-columns, custom-menu, editor-style, featured-images, translation-ready
*/

/* ==========================================================================
   DEPENDS — DESIGN TOKENS
   The whole brand lives here. Surfaces, type, spacing, radius, motion.
   Derived as a *system* (warm-neutral, editorial, dual-mode, dual-radius,
   scale-rotate hover) — not a clone of any source site.
   ========================================================================== */

:root {
  /* --- Ink & paper (neutral spine) --- */
  --ink:           #0B0B0C;   /* near-black: text, primary fills, dark mode bg */
  --ink-soft:      #6B6B6E;   /* muted text, secondary states */
  --ink-2:         #2A2A2C;   /* dark-mode hover / borders */
  --ink-3:         #3A3A3D;   /* dark-mode raised surfaces (buttons) */
  --paper:         #FFFFFF;   /* base background */

  /* --- Warm-neutral surface ramp (the only non-mono layer) --- */
  --surface:       #F4F1EC;   /* soft panels, cards, inputs */
  --surface-2:     #ECE7DF;   /* selection, deeper panel */
  --line:          #E5E1DA;   /* hairline borders */
  --line-2:        #DAD5CC;   /* stronger borders */

  /* --- Accent: RESERVED for myth/debunk semantics only. Never decorative. --- */
  --myth:          #C8442E;   /* "this is a myth" — debunk red */
  --myth-ink:      #FFFFFF;   /* text on myth */
  --verdict:       #1F6F4A;   /* "it depends / verified" — the brand's punchline green */

  /* --- Type families --- */
  --font-display:  "David Libre", Georgia, "Times New Roman", serif;
  --font-body:     "Chivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono:     "Chivo Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* --- Fluid type scale (editorial contrast, clamp-driven) --- */
  --fs-hero:    clamp(3.5rem, 11vw, 11.25rem);  /* 56 → 180 */
  --fs-display: clamp(2.5rem, 6vw, 5rem);       /* 40 → 80  */
  --fs-h1:      clamp(2.25rem, 5vw, 3.4rem);
  --fs-h2:      clamp(2rem, 4.5vw, 3.125rem);
  --fs-h3:      clamp(1.5rem, 3vw, 2.25rem);
  --fs-lead:    clamp(1.25rem, 2.2vw, 1.75rem);
  --fs-body:    1.125rem;   /* 18 — reading size */
  --fs-ui:      1rem;       /* 16 — controls */
  --fs-meta:    0.875rem;   /* 14 — tags, captions */
  --fs-micro:   0.75rem;    /* 12 — eyebrows */

  --lh-tight:   1.1;
  --lh-snug:    1.3;
  --lh-body:    1.7;

  /* --- Spacing rhythm (generous editorial vertical) --- */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --space-7: 10rem;   /* section gaps */

  /* --- Containers --- */
  --container:   1440px;
  --measure:     46rem;   /* prose max-width ~720px */
  --measure-wide: 62rem;

  /* --- Dual-radius system --- */
  --r-pill:  50px;   /* buttons, tags, inputs — the "sharp pill" world */
  --r-soft:  16px;   /* small cards, inputs in overlays */
  --r-card:  24px;   /* media, panels — the "soft" world */

  /* --- Shadow (used sparingly; depth comes from surface, not shadow) --- */
  --shadow-rise: 12px 12px 24px rgba(11, 11, 12, 0.12);
  --shadow-deck: 0 20px 50px -20px rgba(11, 11, 12, 0.28), 0 8px 20px -10px rgba(11, 11, 12, 0.10);

  /* --- Motion --- */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur:  0.3s;

  /* --- Active surface bindings (light mode defaults) --- */
  --bg:        var(--paper);
  --fg:        var(--ink);
  --fg-muted:  var(--ink-soft);
  --panel:     var(--surface);
  --border:    var(--line);
}

/* ==========================================================================
   RESET / BASE
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--lh-snug);
  margin: 0;
}

a { color: inherit; }

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

button { font-family: inherit; }

::selection { background: var(--surface-2); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff;
  padding: 12px 20px; border-radius: var(--r-soft);
  z-index: 100000;
}
.skip-link:focus { left: var(--space-3); top: var(--space-3); }

.clearboth { clear: both; width: 100%; height: 0; }

/* ==========================================================================
   LAYOUT CONTAINERS
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-3) var(--space-4);
}

.section { margin-block: var(--space-6); }
.section--tight { margin-block: var(--space-4); }

.measure { max-width: var(--measure); margin-inline: auto; }

/* Bootstrap-free responsive grid (replaces vendor Bootstrap cols) */
.grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--split { grid-template-columns: 1fr 1fr; gap: var(--space-5); }

@media (max-width: 992px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .container { padding: var(--space-3) var(--space-3); }
}

/* ==========================================================================
   TYPOGRAPHY UTILITIES
   ========================================================================== */

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-snug);
}

/* ==========================================================================
   BUTTONS (3 variants — mirrors source's primary/secondary/ghost)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-size: var(--fs-ui);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  padding: 18px 26px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.btn:active { transform: scale(0.94); }

.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--ink-soft); }

.btn--ghost {
  background: var(--bg);
  color: var(--fg);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--panel); }

.btn--myth {            /* reserved: only on debunk CTAs */
  background: var(--myth);
  color: var(--myth-ink);
}
.btn--myth:hover { filter: brightness(0.92); }

.btn--block { display: flex; width: 100%; justify-content: center; }

/* ==========================================================================
   TAGS / PILLS
   ========================================================================== */

.tag {
  display: inline-block;
  font-size: var(--fs-meta);
  line-height: 1;
  text-decoration: none;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  padding: 12px 16px;
  margin: 0 8px 12px 0;
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.tag:hover { background: var(--panel); }
.tag:active { transform: scale(0.94); }

/* inline post tags (muted, no chrome) */
.post-tags a {
  font-size: var(--fs-meta);
  color: var(--fg-muted);
  text-decoration: none;
  margin-right: 10px;
}
.post-tags a:hover { color: var(--fg); }

/* ==========================================================================
   POST CARD (signature scale-rotate hover preserved)
   ========================================================================== */

.card { color: var(--fg); transition: transform var(--dur) var(--ease); }
.card a { text-decoration: none; color: inherit; }

.card__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  aspect-ratio: 4 / 5;
  background: var(--panel);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }

.card__cat {
  position: absolute;
  top: 14px; left: 16px;
  z-index: 1;
  background: var(--bg);
  color: var(--fg);
  font-size: var(--fs-meta);
  line-height: 1;
  padding: 9px 12px;
  border-radius: var(--r-soft);
  text-decoration: none;
}
.card__cat:hover { background: var(--ink); color: #fff; }

.card__body { padding-top: var(--space-2); }
.card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: var(--lh-snug);
  margin-top: 6px;
}

.card:hover { transform: scale(0.96) rotate(2deg); }

/* ==========================================================================
   STICKY "FLY" COLUMN (split posts layout)
   ========================================================================== */

.fly { position: sticky; top: 100px; align-self: start; }
@media (max-width: 992px) { .fly { position: static; } }

/* ==========================================================================
   MARQUEE (signature) — Depends voice fills this, not source content
   ========================================================================== */

.marquee {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  margin-block: var(--space-6) var(--space-3);
}
.marquee__track {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 8.5rem);
  line-height: 1.25;
  animation: marquee 90s linear infinite;
}
.marquee__track .myth { color: var(--myth); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; white-space: normal; }
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header { width: 100%; }
.site-header__inner {
  max-width: var(--container);
  margin: 30px auto;
  padding: 20px var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--fs-ui);
}
.site-header__avatar {
  display: inline-block;
  transition: transform 0.2s var(--ease);
}
.site-header__avatar img { border-radius: var(--r-soft); }
.site-header__avatar:hover { transform: rotate(-8deg); }

.switcher {
  text-decoration: none;
  color: var(--fg);
}
.switcher span { border-bottom: 2px solid transparent; padding-bottom: 2px; }
.switcher:hover span { border-bottom-color: var(--fg); }
.switcher.is-active span { border-bottom-color: var(--fg); }

.site-header__spacer { margin-left: auto; }

.nav-toggle, .index-toggle {
  cursor: pointer;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  font-size: var(--fs-ui);
  border: 1px solid;
  background: none;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.nav-toggle { background: var(--ink); color: #fff; border-color: var(--ink); }
.nav-toggle:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.index-toggle { background: var(--bg); color: var(--fg); border-color: var(--border); }
.index-toggle:hover { background: var(--panel); }
.nav-toggle:active, .index-toggle:active { transform: scale(0.92); }

@media (max-width: 768px) {
  .switcher, .index-toggle { display: none; }
  .site-header__inner { margin: 0 auto; padding: 20px var(--space-3); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: #fff;
  margin-top: var(--space-7);
}
.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-6) var(--space-4) var(--space-4);
}
.site-footer__claim {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.125rem);
  line-height: 1.3;
  max-width: 24ch;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer__claim a { color: var(--ink-soft); }
.site-footer__claim a:hover { color: #fff; }
.site-footer__label {
  font-size: var(--fs-meta);
  color: var(--ink-soft);
  margin-bottom: 8px;
  display: block;
}
.site-footer__contacts a:hover { opacity: 0.5; }

.site-footer__switcher {
  margin-top: var(--space-6);
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.site-footer__switcher a {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  line-height: 1;
  color: var(--ink-soft);
}
.site-footer__switcher a.is-active,
.site-footer__switcher a:hover { color: #fff; }

.site-footer__tirage {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  font-size: var(--fs-meta);
  color: var(--ink-soft);
  border-top: 1px solid var(--ink-2);
}

/* ==========================================================================
   NEWSLETTER PANEL
   ========================================================================== */

.subscribe {
  background: var(--panel);
  border-radius: var(--r-card);
  text-align: center;
  padding: var(--space-5) var(--space-4) var(--space-6);
}
.subscribe__badge {
  display: inline-block;
  font-size: 2.25rem;
  line-height: 1;
  background: var(--bg);
  padding: 20px;
  border-radius: var(--r-soft);
  margin-bottom: var(--space-3);
}
.subscribe h2 {
  font-size: var(--fs-h3);
  max-width: 22ch;
  margin: 0 auto var(--space-3);
}
.subscribe form {
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.subscribe input[type="email"] {
  width: 100%;
  padding: 14px 20px;
  font-size: var(--fs-ui);
  font-family: inherit;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--bg);
}
.subscribe input[type="email"]:focus { outline: none; border-color: var(--ink); }
.subscribe__consent {
  font-size: var(--fs-meta);
  color: var(--fg-muted);
  margin-top: var(--space-2);
}
.subscribe__consent a { color: var(--fg); }

/* ==========================================================================
   BANNER / BOOK SLIDESHOW
   ========================================================================== */

.shelf {
  position: relative;
  background: var(--panel);
  border-radius: var(--r-card);
  padding: var(--space-4) var(--space-3);
}
.shelf__title {
  display: block;
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  margin-bottom: var(--space-3);
}
.shelf__item { display: none; text-align: center; }
.shelf__item.is-active { display: block; }
.shelf__cover {
  max-width: 240px;
  margin: 0 auto var(--space-3);
  border-radius: 4px;
  box-shadow: var(--shadow-rise);
}
.shelf__meta { font-size: var(--fs-lead); }
.shelf__meta span { display: block; color: var(--fg-muted); font-size: var(--fs-ui); }
.shelf__nav { display: flex; justify-content: center; gap: 10px; margin-top: var(--space-3); }
.shelf__btn {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  cursor: pointer;
  font-size: 1.25rem;
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.shelf__btn:hover { background: var(--ink); color: #fff; }
.shelf__btn:active { transform: scale(0.94); }

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.pagination { margin-block: var(--space-5); text-align: center; }
.page-numbers {
  display: inline-block;
  font-size: var(--fs-ui);
  text-decoration: none;
  color: var(--fg);
  padding: 16px 20px;
  margin: 0 4px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-soft);
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.page-numbers:hover { background: var(--panel); }
.page-numbers:active { transform: scale(0.94); }
.page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */

.breadcrumbs { font-size: var(--fs-meta); margin-bottom: var(--space-2); }
.breadcrumbs a { text-decoration: none; color: var(--fg); border-bottom: 2px solid transparent; }
.breadcrumbs a:hover { border-bottom-color: var(--fg); }
.breadcrumbs .sep { color: var(--fg-muted); padding: 0 6px; }

/* ==========================================================================
   ARCHIVE / CATEGORY HEADER
   ========================================================================== */

.archive-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-3); }
.archive-head h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: var(--lh-snug);
  flex: 1 1 100%;
}
.archive-head p { font-size: var(--fs-lead); flex: 1 1 60%; color: var(--fg-muted); }

/* ==========================================================================
   PROSE (single post content)
   ========================================================================== */

.prose { font-size: var(--fs-body); line-height: var(--lh-body); }
.prose > * { max-width: var(--measure); margin-inline: auto; margin-bottom: var(--space-3); }
.prose h1, .prose h2, .prose h3, .prose h4 { font-family: var(--font-display); }
.prose h2 { font-size: var(--fs-h2); margin-top: var(--space-5); margin-bottom: var(--space-3); }
.prose h3 { font-size: var(--fs-h3); margin-top: var(--space-4); margin-bottom: var(--space-2); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: 12px; }
.prose a {
  color: var(--fg);
  text-decoration: none;
  background: var(--surface-2);
  padding: 2px 3px;
}
.prose a:hover { background: var(--ink); color: #fff; }
.prose blockquote {
  max-width: var(--measure-wide);
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
  margin-block: var(--space-5);
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.95em;
  background: var(--panel);
  padding: 0.15em 0.4em;
  border-radius: 6px;
}
.prose pre {
  font-family: var(--font-mono);
  background: var(--panel);
  border: 1px solid var(--line);
  padding: var(--space-3);
  border-radius: var(--r-soft);
  overflow-x: auto;
}
.prose pre code { background: none; padding: 0; }
.prose img { border-radius: var(--r-card); }

/* "It depends" verdict callout — the brand's signature content device */
.verdict {
  max-width: var(--measure);
  margin: var(--space-4) auto;
  border-left: 4px solid var(--verdict);
  background: var(--panel);
  padding: var(--space-3);
  border-radius: 0 var(--r-soft) var(--r-soft) 0;
}
.verdict .eyebrow { color: var(--verdict); }

/* Myth callout */
.myth-call {
  max-width: var(--measure);
  margin: var(--space-4) auto;
  border-left: 4px solid var(--myth);
  background: var(--panel);
  padding: var(--space-3);
  border-radius: 0 var(--r-soft) var(--r-soft) 0;
}
.myth-call .eyebrow { color: var(--myth); }

/* ==========================================================================
   POST HERO (single)
   ========================================================================== */

.post-hero { max-width: var(--measure); margin: 0 auto var(--space-4); }
.post-hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: var(--lh-snug);
  margin-top: var(--space-2);
}
.post-hero__meta { margin-top: var(--space-3); font-size: var(--fs-meta); color: var(--fg-muted); }
.post-hero__thumb { max-width: 480px; margin: var(--space-4) auto var(--space-2); }
.post-hero__thumb img { border-radius: var(--r-card); }

/* ==========================================================================
   DUAL MODE — "manifesto" dark page (mirrors source's is-author)
   Applied to the About/Manifesto page via body.is-manifesto
   ========================================================================== */

body.is-manifesto {
  --bg:       var(--ink);
  --fg:       #FFFFFF;
  --fg-muted: var(--ink-soft);
  --panel:    var(--ink-3);
  --border:   var(--ink-2);
}
body.is-manifesto .switcher { color: #fff; }
body.is-manifesto .switcher:hover span,
body.is-manifesto .switcher.is-active span { border-bottom-color: #fff; }
body.is-manifesto .nav-toggle { background: #fff; color: var(--ink); border-color: #fff; }
body.is-manifesto .nav-toggle:hover { background: var(--ink-2); color: #fff; border-color: var(--ink-2); }
body.is-manifesto .index-toggle { background: var(--ink); color: #fff; border-color: var(--ink-2); }
body.is-manifesto .card__title a { color: #fff; }

.manifesto-hero {
  text-align: center;
  padding: var(--space-6) 0 var(--space-4);
}
.manifesto-hero__headline {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
}
.manifesto-hero__years {
  max-width: var(--measure);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  color: var(--fg-muted);
}
.manifesto-hero__portrait {
  max-width: 420px;
  margin: var(--space-4) auto;
  border-radius: var(--r-card);
}
.manifesto-body { max-width: var(--measure-wide); margin: 0 auto var(--space-6); text-align: center; }
.manifesto-body h1 {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: var(--lh-snug);
  margin-bottom: var(--space-3);
}
.manifesto-body h1 .muted { color: var(--fg-muted); }
.manifesto-body p { max-width: var(--measure); margin: 0 auto var(--space-3); font-size: var(--fs-lead); line-height: var(--lh-body); }

.manifesto-cta { display: flex; gap: var(--space-2); justify-content: center; flex-wrap: wrap; margin-top: var(--space-4); }
body.is-manifesto .btn--ghost { background: transparent; color: #fff; border-color: var(--ink-2); }
body.is-manifesto .btn--ghost:hover { background: var(--ink-3); }

/* ==========================================================================
   TESTIMONIALS (quote deck — simplified, accessible, no 3D dependency)
   ========================================================================== */

.quotes { max-width: var(--measure-wide); margin: 0 auto var(--space-6); }
.quotes__deck { position: relative; }
.quote-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r-soft);
  padding: var(--space-4);
  box-shadow: var(--shadow-deck);
  display: none;
}
.quote-card.is-active { display: block; }
.quote-card__text { font-size: var(--fs-lead); line-height: var(--lh-snug); margin: 0 0 var(--space-3); }
.quote-card__divider { height: 1px; background: var(--line); margin-bottom: var(--space-2); }
.quote-card__footer { display: flex; justify-content: space-between; align-items: center; }
.quote-card__name { font-weight: 700; }
.quote-card__org { font-size: var(--fs-meta); color: var(--ink-soft); }
.quotes__nav { display: flex; gap: var(--space-2); justify-content: center; margin-top: var(--space-3); }

/* ==========================================================================
   OVERLAYS (nav + index) — slide-in white panel over warm backdrop
   ========================================================================== */

.overlay {
  position: fixed; inset: 0;
  background: var(--surface);
  z-index: 9999;
  display: none;
  overflow: hidden;
}
.overlay.is-open { display: block; }
.overlay__panel {
  position: absolute; right: 0; top: 0;
  height: 100%;
  width: min(640px, 100%);
  background: var(--paper);
  color: var(--ink);
  padding: 52px;
  overflow-y: auto;
  border-top-left-radius: 52px;
  border-bottom-left-radius: 52px;
}
.overlay__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-4); }
.overlay__head span { font-family: var(--font-display); font-size: 1.5rem; }
.overlay__close {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--ink); color: #fff;
  border: none; cursor: pointer; font-size: 1.25rem;
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.overlay__close:hover { background: var(--ink-soft); }
.overlay__close:active { transform: scale(0.92); }

.overlay nav a, .overlay__link {
  display: inline-block;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.375rem;
  margin-top: var(--space-3);
}
.overlay nav a:hover { opacity: 0.4; }
.overlay ul { list-style: none; padding: 0; margin: var(--space-2) 0 0; }
.overlay ul li { margin-bottom: 10px; }
.overlay ul li a { font-size: 1.25rem; text-decoration: none; color: var(--ink); }
.overlay ul li a:hover { opacity: 0.4; }

.overlay__search { margin-top: var(--space-4); display: flex; gap: 8px; }
.overlay__search input {
  flex: 1;
  padding: 14px 20px;
  font-family: inherit; font-size: var(--fs-ui);
  border: none; border-radius: var(--r-soft);
  background: var(--surface);
}
.overlay__search input:focus { outline: none; }
.overlay__search button {
  padding: 14px 18px;
  background: var(--ink); color: #fff;
  border: none; border-radius: var(--r-soft); cursor: pointer;
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.overlay__search button:hover { background: var(--ink-soft); }
.overlay__search button:active { transform: scale(0.92); }

@media (max-width: 560px) {
  .overlay__panel { padding: 32px; border-radius: 0; }
}

/* ==========================================================================
   404 / SEARCH EMPTY
   ========================================================================== */

.notice {
  max-width: var(--measure);
  margin: var(--space-6) auto;
  text-align: center;
}
.notice h1 {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  margin-bottom: var(--space-3);
}
.notice p { font-size: var(--fs-lead); color: var(--fg-muted); margin-bottom: var(--space-4); }

/* ==========================================================================
   WP CORE ALIGNMENTS
   ========================================================================== */

.alignwide { max-width: var(--measure-wide); }
.alignfull { max-width: none; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { font-size: var(--fs-meta); color: var(--fg-muted); text-align: center; margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
