/* ====================================================================
   The Daily Oracle — main.css
   One stylesheet for the entire WordPress front-end.
   - All design tokens are inlined here (no @import).
   - Mobile-first, fluid scale, dark default + light + high-contrast.
   - WCAG 2.1 AA: focus-visible rings, 16px inputs, ≥48px tap targets.
   - Class prefix `o-` (oracle) to avoid plugin-style collisions.
   ==================================================================== */

/* ============ 1 · TOKENS ============================================ */
:root {
  --brand-gold:#d9b75e; --brand-gold-light:#f0d79b; --brand-gold-deep:#a87f2c;
  --brand-violet:#a187ef; --brand-violet-light:#c9b6fb; --brand-violet-deep:#5a3fae;
  --brand-teal:#3fc9b8; --brand-rose:#e189a0;
  --paper:#f6efdf; --ink:#0a0616;

  --bg-0:#080414; --bg-1:#0c0720; --bg-2:#160d33; --bg-3:#22164d;
  --fg-1:#f6efdf;
  --fg-2:rgba(246,239,223,.90);
  --fg-3:rgba(246,239,223,.72);
  --fg-muted:rgba(246,239,223,.54);
  --line-1:rgba(217,183,94,.28);
  --line-2:rgba(246,239,223,.14);
  --panel:rgba(16,11,38,.78);
  --panel-strong:rgba(26,18,64,.92);
  --focus:#86dcff;
  --ok:#63d29a; --warn:#e8a851; --bad:#e26d80;

  --font-display:"Cormorant Garamond",Georgia,"Times New Roman",serif;
  --font-body:Georgia,"Iowan Old Style","Palatino Linotype","Times New Roman",serif;
  --font-ui:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --font-mono:"JetBrains Mono","SF Mono",Menlo,Consolas,monospace;

  --fs-xs:clamp(12px,.75rem + .1vw,13px);
  --fs-sm:clamp(13px,.82rem + .1vw,14px);
  --fs-base:clamp(16px,.95rem + .2vw,18px);
  --fs-lead:clamp(17px,1rem + .4vw,21px);
  --fs-h6:clamp(15px,.9rem + .2vw,17px);
  --fs-h5:clamp(17px,1rem + .3vw,20px);
  --fs-h4:clamp(20px,1.1rem + .6vw,25px);
  --fs-h3:clamp(22px,1.2rem + 1.2vw,32px);
  --fs-h2:clamp(28px,1.4rem + 2.2vw,46px);
  --fs-h1:clamp(38px,1.8rem + 4.2vw,72px);
  --fs-eyebrow:clamp(11px,.7rem + .1vw,13px);

  --r-xs:6px; --r-sm:10px; --r-md:16px; --r-lg:24px; --r-xl:32px; --r-pill:999px;
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px; --space-5:24px;
  --space-6:32px; --space-7:48px; --space-8:64px; --space-9:96px; --space-10:128px;
  --pad:clamp(16px,4.5vw,24px);
  --gutter:clamp(20px,5vw,40px);
  --maxw-prose:68ch;
  --maxw-page:1200px;
  --maxw-narrow:760px;

  --shadow-sm:0 4px 12px -4px rgba(0,0,0,.35);
  --shadow-md:0 10px 26px -10px rgba(0,0,0,.55);
  --shadow-lg:0 22px 60px -22px rgba(0,0,0,.75);
  --shadow-gold:0 10px 26px -10px rgba(217,183,94,.58);

  --ease:cubic-bezier(.22,.61,.36,1);
  --dur-fast:140ms; --dur-base:220ms; --dur-slow:420ms;
  --tap:48px;
}

/* The Daily Oracle is, by brand, the candle-lit dark parlour. We lock the
   dark palette as the single canonical look so the live site always matches
   the brand preview (no automatic OS-driven switch to a cream/paper theme). */
@media (prefers-contrast: more) {
  :root { --fg-2:var(--fg-1); --fg-3:var(--fg-1); --line-1:var(--brand-gold); --line-2:var(--fg-1); }
}
@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast:0ms; --dur-base:0ms; --dur-slow:0ms; }
}

/* ============ 2 · RESET / BASE ===================================== */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.62;
  color: var(--fg-1);
  background: radial-gradient(125% 95% at 50% -8%, var(--bg-3) 0%, var(--bg-1) 44%, var(--bg-0) 100%) fixed;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);
}

/* Authoritative base colours. Scoped to `body.o-wrap` (specificity 0,1,1) so
   they outrank WordPress core's generated global styles, which target
   `:root :where(body)` (0,1,0). Without this, on block-capable installs the
   core default (dark text for a light ground) wins and leaves text nearly
   invisible on our dark parlour background. theme.json aligns the rest. */
body.o-wrap {
  color: var(--fg-1);
  background: radial-gradient(125% 95% at 50% -8%, var(--bg-3) 0%, var(--bg-1) 44%, var(--bg-0) 100%) fixed;
}

/* Candlelight + parlour grille overlay — fixed, decorative */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .4;
  background:
    radial-gradient(circle at 15% 12%, rgba(217,183,94,.10), transparent 24%),
    radial-gradient(circle at 85% 15%, rgba(161,135,239,.13), transparent 28%),
    repeating-linear-gradient(90deg, transparent 0 30px, rgba(217,183,94,.02) 31px 32px),
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(217,183,94,.016) 31px 32px);
}

img, svg, video { display: block; max-width: 100%; height: auto; }
img { font-style: italic; background-color: rgba(0,0,0,.08); }

a {
  color: var(--brand-gold-light);
  text-decoration: underline;
  text-decoration-color: rgba(217,183,94,.4);
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease), text-decoration-color var(--dur-fast) var(--ease);
}
a:hover { color: var(--brand-gold); text-decoration-color: currentColor; }
::selection { background: var(--brand-gold); color: var(--ink); }

/* Focus-visible — always, everywhere */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 5px; }

/* ============ 3 · ACCESSIBILITY ==================================== */
.screen-reader-text, .vh {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 50%; top: -120px; transform: translateX(-50%);
  background: var(--brand-gold); color: var(--ink);
  padding: 13px 24px; border-radius: 0 0 var(--r-md) var(--r-md);
  font-family: var(--font-ui); font-weight: 700;
  z-index: 2000; text-decoration: none;
  transition: top var(--dur-base) var(--ease);
}
.skip-link:focus { top: 0; outline: 3px solid var(--focus); outline-offset: 2px; }

/* ============ 4 · TYPOGRAPHY ======================================== */
/* Safety net: scope core text colours under `.o-wrap` (specificity ≥ 0,1,1)
   so they outrank any `:root :where(...)` global-style rule WordPress emits,
   even on installs where theme.json is ignored or a plugin injects defaults.
   This guarantees legible cream/gold text on the dark ground. */
.o-wrap, .o-wrap p, .o-wrap li, .o-wrap dd, .o-wrap dt, .o-wrap figcaption { color: var(--fg-1); }
.o-wrap p, .o-wrap li { color: var(--fg-2); }
.o-wrap h1, .o-wrap h2, .o-wrap h4, .o-wrap h5 { color: var(--fg-1); }
.o-wrap h3, .o-wrap h6 { color: var(--brand-gold-light); }
.o-wrap a { color: var(--brand-gold-light); }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 600; line-height: 1.16; color: var(--fg-1); text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -.01em; }
h2 { font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -.005em; }
h3 { font-size: var(--fs-h3); color: var(--brand-gold-light); }
h4 { font-size: var(--fs-h4); }
h5 { font-family: var(--font-ui); font-size: var(--fs-h5); font-weight: 700; }
h6 { font-family: var(--font-ui); font-size: var(--fs-h6); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--brand-gold-light); }

p { font-family: var(--font-body); font-size: var(--fs-base); line-height: 1.62; color: var(--fg-2); text-wrap: pretty; }
.lead { font-size: var(--fs-lead); color: var(--fg-1); line-height: 1.55; }

blockquote {
  border-left: 2px solid var(--brand-gold);
  padding: var(--space-3) var(--space-5);
  margin: var(--space-5) 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-h4);
  color: var(--fg-1);
}
blockquote cite { display: block; margin-top: var(--space-3); font-family: var(--font-ui); font-style: normal; font-size: var(--fs-sm); color: var(--fg-3); }
blockquote cite::before { content: "— "; color: var(--brand-gold); }

code, pre {
  font-family: var(--font-mono); font-size: .92em;
  background: rgba(8,4,20,.6); border: 1px solid var(--line-1);
  border-radius: var(--r-sm); padding: .12em .45em; color: var(--brand-gold-light);
}
pre { padding: var(--space-4); overflow-x: auto; line-height: 1.55; }
hr { border: 0; height: 1px; background: var(--line-2); margin: var(--space-6) 0; }

.eyebrow {
  font-family: var(--font-ui); font-weight: 700;
  font-size: var(--fs-eyebrow); letter-spacing: .18em;
  text-transform: uppercase; color: var(--brand-gold-light);
}
.eyebrow::after {
  content: ""; display: block; width: 40px; height: 1px;
  background: var(--brand-gold); opacity: .6; margin-top: 8px;
}
.tagline { font-family: var(--font-display); font-style: italic; color: var(--brand-violet-light); font-size: var(--fs-lead); }

/* ============ 5 · LAYOUT ============================================ */
.o-wrap { position: relative; z-index: 1; }
.o-container { width: 100%; max-width: var(--maxw-page); margin-inline: auto; padding-inline: var(--pad); }
.o-narrow { max-width: var(--maxw-narrow); margin-inline: auto; padding-inline: var(--pad); }

.o-section { padding-block: clamp(48px, 8vw, 96px); position: relative; z-index: 1; }
.o-section + .o-section { padding-top: 0; }
.o-section--alt { background: linear-gradient(180deg, transparent, rgba(34,22,77,.32) 30%, transparent); }

/* Default page content frame */
.o-page { padding-block: clamp(40px, 7vw, 80px); }

/* Grid helpers */
.o-grid { display: grid; gap: var(--gutter); }
.o-grid-2 { grid-template-columns: 1fr; }
.o-grid-3 { grid-template-columns: 1fr; }
.o-grid-4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 760px) {
  .o-grid-2 { grid-template-columns: 1fr 1fr; }
  .o-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .o-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ============ 6 · HEADER / NAV ====================================== */
.o-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(12,7,32,.72);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-1);
}

.o-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-4);
}
.o-brand {
  display: inline-flex; align-items: center; gap: var(--space-3);
  text-decoration: none; color: var(--fg-1);
  font-family: var(--font-display);
}
.o-brand:hover { color: var(--brand-gold-light); }
.o-brand__mark { color: var(--brand-gold); width: 40px; height: 40px; display: inline-grid; place-items: center; }
.o-brand__mark svg { width: 40px; height: 40px; }
.o-brand__wm { display: inline-flex; flex-direction: column; line-height: 1; }
.o-brand__t { font-family: var(--font-ui); font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--brand-gold-light); font-weight: 700; }
.o-brand__n { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-top: 3px; letter-spacing: .005em; }
.custom-logo-link img { max-height: 56px; width: auto; }

.o-nav { display: none; align-items: center; gap: var(--space-5); }
@media (min-width: 880px) { .o-nav { display: flex; } }
.o-nav ul { list-style: none; display: flex; gap: var(--space-5); align-items: center; }
.o-nav a {
  color: var(--fg-1); text-decoration: none;
  font-family: var(--font-ui); font-size: 15px; font-weight: 600;
  padding: 8px 4px; border-bottom: 2px solid transparent;
}
.o-nav a:hover, .o-nav .current-menu-item > a, .o-nav .current_page_item > a {
  color: var(--brand-gold-light); border-bottom-color: var(--brand-gold);
}

.o-nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--r-pill);
  background: linear-gradient(180deg, var(--brand-gold-light), var(--brand-gold) 58%, var(--brand-gold-deep));
  color: #241500 !important;
  font-family: var(--font-ui); font-weight: 700; font-size: 14px;
  text-decoration: none !important;
  box-shadow: var(--shadow-gold);
  border: 0;
}
.o-nav-cta:hover { color: #241500 !important; transform: translateY(-1px); }

/* Mobile menu toggle */
.o-nav-toggle {
  display: inline-grid; place-items: center;
  width: var(--tap); height: var(--tap);
  background: transparent; border: 1px solid var(--line-1); border-radius: var(--r-md);
  color: var(--fg-1); cursor: pointer;
}
@media (min-width: 880px) { .o-nav-toggle { display: none; } }
.o-nav-toggle svg { width: 24px; height: 24px; }
.o-mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 90;
  background: var(--bg-1); padding: 80px var(--pad) var(--pad);
  flex-direction: column; gap: var(--space-4);
  overflow-y: auto;
}
.o-mobile-nav.is-open { display: flex; }
.o-mobile-nav ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.o-mobile-nav a {
  display: block; padding: 16px 4px;
  font-family: var(--font-display); font-size: 28px; color: var(--fg-1);
  text-decoration: none; border-bottom: 1px solid var(--line-2);
}
.o-mobile-nav a:hover, .o-mobile-nav .current-menu-item > a { color: var(--brand-gold-light); }
.o-mobile-close {
  position: absolute; top: 16px; right: 16px;
  width: var(--tap); height: var(--tap);
  background: transparent; border: 1px solid var(--line-1); border-radius: var(--r-md);
  color: var(--fg-1); cursor: pointer; display: grid; place-items: center;
}

/* ============ 7 · BUTTONS =========================================== */
.o-btn, .button, button.wp-element-button, input[type="submit"], .wp-block-button__link {
  -webkit-appearance: none; appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  cursor: pointer;
  font-family: var(--font-ui); font-weight: 700; font-size: 16px; letter-spacing: .02em;
  min-height: var(--tap); padding: 14px 28px;
  border-radius: var(--r-pill);
  border: 1px solid transparent; line-height: 1.1;
  text-decoration: none;
  touch-action: manipulation;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-base), background var(--dur-base);
}
.o-btn:active, .button:active { transform: translateY(1px) scale(.995); }
.o-btn--primary, .button, input[type="submit"], .wp-block-button__link {
  background: linear-gradient(180deg, var(--brand-gold-light), var(--brand-gold) 58%, var(--brand-gold-deep));
  color: #241500 !important; box-shadow: var(--shadow-gold);
}
.o-btn--primary:hover, .button:hover { box-shadow: 0 14px 34px -10px rgba(217,183,94,.78); color: #241500; }
.o-btn--ghost {
  background: transparent; border-color: var(--line-1); color: var(--fg-1) !important;
  box-shadow: none;
}
.o-btn--ghost:hover { background: rgba(217,183,94,.08); color: var(--fg-1); }
.o-btn--quiet {
  background: transparent; color: var(--brand-gold-light) !important;
  min-height: 44px; padding: 10px 14px; font-size: 15px;
  text-decoration: underline; text-underline-offset: 4px;
  box-shadow: none;
}

/* ============ 8 · FORMS ============================================= */
input[type="text"], input[type="email"], input[type="url"], input[type="search"],
input[type="tel"], input[type="number"], input[type="password"], input[type="date"],
textarea, select {
  width: 100%; min-height: var(--tap); font-size: 16px;
  font-family: var(--font-ui); color: var(--fg-1);
  background: rgba(8,4,20,.5);
  border: 1px solid var(--line-1); border-radius: var(--r-md);
  padding: 12px 16px;
  transition: border-color var(--dur-base), background var(--dur-base);
}

textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus {
  outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--brand-gold);
}
label {
  display: block; font-family: var(--font-ui); font-weight: 600; font-size: 14px;
  margin-bottom: 7px; color: var(--fg-1);
}
.o-field + .o-field { margin-top: var(--space-4); }
.o-field__hint { font-size: 13px; color: var(--fg-3); margin-top: 5px; font-family: var(--font-ui); }
.o-field--invalid input, .o-field--invalid textarea, .o-field--invalid select { border-color: var(--bad); }
.o-error { color: var(--bad); font-size: 13.5px; margin-top: 6px; font-family: var(--font-ui); }

/* ============ 9 · CARDS / SURFACES ================================== */
.o-card {
  background: var(--panel);
  border: 1px solid var(--line-1);
  border-radius: var(--r-lg);
  padding: clamp(20px, 5.6vw, 32px);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px);
}
.o-card--quiet { background: var(--panel-strong); }
.o-card--bare  { background: transparent; box-shadow: none; }

.o-badge {
  display: inline-flex; align-items: center;
  font-family: var(--font-ui); font-size: 11px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 10px; border-radius: var(--r-pill);
  background: rgba(217,183,94,.18); color: var(--brand-gold-light);
  border: 1px solid var(--line-1);
}

/* Status pills (BUY/HOLD/SELL etc.) */
.o-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--r-pill); font-family: var(--font-ui); font-weight: 800; font-size: 13px; letter-spacing: .05em; }
.o-pill--ok   { background: rgba(99,210,154,.16); color: var(--ok);   border: 1px solid rgba(99,210,154,.5); }
.o-pill--warn { background: rgba(232,168,81,.16);  color: var(--warn); border: 1px solid rgba(232,168,81,.5); }
.o-pill--bad  { background: rgba(226,109,128,.16); color: var(--bad);  border: 1px solid rgba(226,109,128,.5); }

/* ============ 10 · HERO ============================================= */
.o-hero {
  padding: clamp(56px, 11vw, 130px) 0 clamp(40px, 7vw, 80px);
  position: relative; overflow: hidden; text-align: center;
}
.o-hero__crest {
  width: clamp(80px, 14vw, 116px); height: clamp(80px, 14vw, 116px);
  margin: 0 auto var(--space-5);
  display: grid; place-items: center; border-radius: 50%;
  border: 2px solid var(--line-1); color: var(--brand-gold);
  background: radial-gradient(circle at 50% 34%, rgba(217,183,94,.16), transparent 70%);
}
.o-hero__crest svg { width: 64%; height: 64%; }
.o-hero__eyebrow { display: inline-block; }
.o-hero__eyebrow::after { margin: 8px auto 0; }
.o-hero h1 {
  margin: var(--space-4) auto;
  max-width: 18ch;
}
.o-hero__lead { max-width: 56ch; margin: var(--space-4) auto var(--space-6); color: var(--fg-1); }
.o-hero__ctas {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.o-hero__bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(161,135,239,.18), transparent 55%),
    radial-gradient(circle at 20% 100%, rgba(217,183,94,.12), transparent 50%);
}

/* ============ 11 · POSTS / CARDS ==================================== */
.o-post-card {
  display: flex; flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line-1);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--dur-base), box-shadow var(--dur-base), border-color var(--dur-base);
  text-decoration: none; color: inherit;
}
.o-post-card:hover {
  transform: translateY(-3px); border-color: var(--brand-gold);
  box-shadow: var(--shadow-lg);
}
.o-post-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); position: relative; }
.o-post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.o-post-card:hover .o-post-card__media img { transform: scale(1.04); }
.o-post-card__media--placeholder { background: linear-gradient(135deg, var(--bg-2), var(--bg-3)); display: grid; place-items: center; color: var(--brand-gold); }
.o-post-card__media--placeholder svg { width: 64px; height: 64px; opacity: .6; }
.o-post-card__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.o-post-card__cat { display: inline-block; font-family: var(--font-ui); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-gold-light); text-decoration: none; }
.o-post-card__title { font-family: var(--font-display); font-size: clamp(20px,2.4vw,26px); font-weight: 600; line-height: 1.2; color: var(--fg-1); margin: 0; text-decoration: none; }
.o-post-card:hover .o-post-card__title { color: var(--brand-gold-light); }
.o-post-card__excerpt { color: var(--fg-2); font-size: var(--fs-sm); line-height: 1.55; }
.o-post-card__meta { margin-top: auto; font-family: var(--font-ui); font-size: 12px; color: var(--fg-3); display: flex; gap: 10px; align-items: center; }

/* Single-post layout */
.o-article { padding-block: clamp(40px, 6vw, 72px); }
.o-article__head { text-align: center; margin-bottom: var(--space-6); }
.o-article__head .eyebrow { display: inline-block; }
.o-article__head .eyebrow::after { margin: 8px auto 0; }
.o-article__head h1 { margin: var(--space-3) auto var(--space-4); max-width: 26ch; }
.o-article__lead { max-width: 56ch; margin: 0 auto var(--space-4); color: var(--fg-2); font-size: var(--fs-lead); }
.o-article__byline { font-family: var(--font-ui); font-size: 14px; color: var(--fg-3); }
.byline__author { color: var(--brand-gold-light); text-decoration: none; }
.o-article__hero { margin: var(--space-6) auto; max-width: var(--maxw-page); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 9; }
.o-article__hero img { width: 100%; height: 100%; object-fit: cover; }

.o-article__body { max-width: var(--maxw-prose); margin-inline: auto; }
.o-article__body p, .o-article__body ul, .o-article__body ol, .o-article__body blockquote, .o-article__body pre, .o-article__body figure {
  margin-block: var(--space-4);
}
.o-article__body h2 { margin-top: var(--space-7); margin-bottom: var(--space-3); }
.o-article__body h3 { margin-top: var(--space-6); margin-bottom: var(--space-2); }
.o-article__body ul, .o-article__body ol { padding-left: var(--space-5); }
.o-article__body li { margin-block: var(--space-2); color: var(--fg-2); }
.o-article__body img { border-radius: var(--r-md); }

.o-article__foot { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--line-1); display: flex; flex-direction: column; gap: var(--space-4); }
.o-tags a { display: inline-block; padding: 4px 12px; margin: 3px; background: rgba(217,183,94,.1); border: 1px solid var(--line-1); border-radius: var(--r-pill); font-family: var(--font-ui); font-size: 12px; color: var(--brand-gold-light); text-decoration: none; }
.o-tags a:hover { background: rgba(217,183,94,.2); }

/* AEO/GEO summary block on posts */
.o-tldr {
  margin: var(--space-6) auto;
  padding: var(--space-5);
  border: 1px solid var(--line-1);
  border-radius: var(--r-md);
  background: rgba(217,183,94,.06);
  max-width: var(--maxw-prose);
}
.o-tldr__title {
  font-family: var(--font-ui); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--brand-gold-light); font-weight: 700;
  margin-bottom: var(--space-2);
}
.o-tldr p { color: var(--fg-1); font-size: var(--fs-base); margin: 0; }

/* ============ 12 · ARCHIVE GRID ===================================== */
.o-archive-head { text-align: center; padding-block: var(--space-7) var(--space-5); }
.o-archive-head h1 { margin-bottom: var(--space-3); }
.o-archive-head .lead { max-width: 56ch; margin: 0 auto; color: var(--fg-2); }
.o-posts {
  display: grid; gap: var(--gutter);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .o-posts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .o-posts { grid-template-columns: repeat(3, 1fr); } }

/* Pagination */
.o-pagination { display: flex; justify-content: center; gap: var(--space-2); margin: var(--space-7) 0; flex-wrap: wrap; }
.o-pagination a, .o-pagination span {
  min-width: 44px; min-height: 44px; padding: 10px 14px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--line-1); border-radius: var(--r-md);
  font-family: var(--font-ui); font-weight: 600; font-size: 14px;
  color: var(--fg-1); text-decoration: none;
}
.o-pagination a:hover { background: rgba(217,183,94,.08); }
.o-pagination .current { background: var(--brand-gold); color: var(--ink); border-color: var(--brand-gold); }

/* ============ 13 · COMMENTS ========================================= */
.o-comments { margin-top: var(--space-7); }
.o-comments h2 { margin-bottom: var(--space-5); }
.o-comments ol { list-style: none; }
.o-comments .comment {
  background: var(--panel); border: 1px solid var(--line-1); border-radius: var(--r-md);
  padding: var(--space-5); margin-bottom: var(--space-4);
}
.o-comments .comment-author { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.o-comments .comment-meta { font-family: var(--font-ui); font-size: 12px; color: var(--fg-3); margin-bottom: var(--space-3); }
.o-comments .reply a { font-family: var(--font-ui); font-size: 13px; color: var(--brand-gold-light); }
.o-comments .children { margin-top: var(--space-3); padding-left: var(--space-4); border-left: 1px solid var(--line-2); }

/* ============ 14 · BREADCRUMBS ====================================== */
.o-breadcrumbs {
  padding: var(--space-3) 0; font-family: var(--font-ui); font-size: 13px; color: var(--fg-3);
}
.o-breadcrumbs a { color: var(--brand-gold-light); text-decoration: none; }
.o-breadcrumbs a:hover { text-decoration: underline; }
.o-breadcrumbs__sep { margin: 0 8px; color: var(--fg-muted); }

/* ============ 15 · FOOTER =========================================== */
.o-foot {
  margin-top: var(--space-9);
  padding: var(--space-8) 0 var(--space-5);
  border-top: 1px solid var(--line-1);
  background: linear-gradient(180deg, transparent, rgba(8,4,20,.5));
}
.o-foot__cols { display: grid; grid-template-columns: 1fr; gap: var(--space-7); }
@media (min-width: 760px) { .o-foot__cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.o-foot__brand p { color: var(--fg-3); font-size: var(--fs-sm); max-width: 38ch; }
.o-foot__title { margin-bottom: var(--space-3); }
.o-foot__col ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.o-foot__col a { font-family: var(--font-ui); font-size: 14px; color: var(--fg-2); text-decoration: none; }
.o-foot__col a:hover { color: var(--brand-gold-light); }
/* Footer widget titles (Archives, Categories, etc.) match the eyebrow caption
   so block/legacy widgets don't render as big display headings. */
.o-foot__col .widget-title,
.o-foot__col .widgettitle,
.o-foot__col .wp-block-heading,
.o-foot__col h1,
.o-foot__col h2,
.o-foot__col h3,
.o-foot__col h5,
.o-foot__col h6 {
  font-family: var(--font-ui); font-weight: 700;
  font-size: var(--fs-eyebrow); letter-spacing: .18em;
  text-transform: uppercase; color: var(--brand-gold-light);
  line-height: 1.25; margin: 0 0 var(--space-3);
}

/* Bottom site-wide navigation — full page width, equal-stretch cells.
   Editable in WP → Appearance → Menus → "Legal / compliance" location. */
.o-foot__legal {
  margin-top: var(--space-7);
  padding: var(--space-6) 0 var(--space-5);
  border-top: 1px solid var(--line-1);
  display: flex; flex-direction: column; gap: var(--space-4);
  align-items: stretch; text-align: left;
}
.o-foot__legal p { color: var(--fg-3); font-family: var(--font-ui); font-size: 12.5px; max-width: none; margin: 0; }
.o-foot__legal nav,
.o-foot__legal .legal-nav {
  width: 100%;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0;
  font-family: var(--font-ui); font-size: 13px;
  background: rgba(8,4,20,.4);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
}
@media (max-width: 720px) {
  .o-foot__legal nav,
  .o-foot__legal .legal-nav {
    grid-auto-flow: row;
    grid-auto-columns: 1fr;
    grid-template-columns: 1fr 1fr;
  }
}
.o-foot__legal nav a,
.o-foot__legal .legal-nav a {
  color: var(--fg-2);
  text-decoration: none;
  text-align: center;
  padding: 16px 12px;
  border-left: 1px solid var(--line-2);
  font-weight: 500;
  letter-spacing: .02em;
  display: flex; align-items: center; justify-content: center;
  transition: color .14s var(--ease), background .14s var(--ease);
}
.o-foot__legal nav a:first-child,
.o-foot__legal .legal-nav a:first-child { border-left: 0; }
@media (max-width: 720px) {
  .o-foot__legal nav a:nth-child(odd),
  .o-foot__legal .legal-nav a:nth-child(odd) { border-left: 0; }
  .o-foot__legal nav a:nth-child(n+3),
  .o-foot__legal .legal-nav a:nth-child(n+3) { border-top: 1px solid var(--line-2); }
}
.o-foot__legal nav a:hover,
.o-foot__legal nav a:focus-visible,
.o-foot__legal .legal-nav a:hover,
.o-foot__legal .legal-nav a:focus-visible {
  color: var(--brand-gold-light);
  background: rgba(217,183,94,.06);
  text-decoration: none;
}
.o-foot__legal-meta {
  display: flex; gap: 24px; justify-content: space-between; align-items: center;
  flex-wrap: wrap; padding-top: 8px;
}
.o-foot__legal-meta p + p { color: var(--fg-muted); white-space: nowrap; }

/* ============ 16 · 404 ============================================== */
.o-404 { text-align: center; padding-block: clamp(64px, 12vw, 140px); }
.o-404__num { font-family: var(--font-display); font-size: clamp(80px, 18vw, 180px); line-height: 1; color: var(--brand-gold-light); letter-spacing: -0.02em; }
.o-404 h1 { margin: var(--space-3) auto var(--space-4); }
.o-404 p { max-width: 50ch; margin: 0 auto var(--space-5); }

/* ============ 17 · SEARCH FORM ====================================== */
.search-form {
  display: flex; gap: var(--space-2); align-items: stretch;
  max-width: 540px;
}
.search-form input[type="search"] {
  flex: 1; min-height: 48px;
}
.search-form button {
  min-height: 48px; padding: 10px 22px;
}

/* ============ 18 · TIER GRID (homepage pricing teaser) ============= */
.o-tiers { display: grid; gap: var(--gutter); grid-template-columns: 1fr; margin-top: var(--space-6); }
@media (min-width: 880px) { .o-tiers { grid-template-columns: repeat(3, 1fr); } }
.o-tier {
  background: var(--panel-strong);
  border: 1px solid var(--line-1);
  border-radius: var(--r-lg);
  padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-3);
}
.o-tier--feat { border-color: var(--brand-gold); box-shadow: 0 0 0 1px rgba(217,183,94,.4); }
.o-tier__name { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--brand-gold-light); }
.o-tier__price { font-family: var(--font-ui); font-weight: 800; font-size: 22px; color: var(--fg-1); }
.o-tier__price small { font-weight: 500; color: var(--fg-3); font-size: 14px; }
.o-tier ul { list-style: none; }
.o-tier li { position: relative; padding-left: 24px; margin: 8px 0; color: var(--fg-2); font-size: 15px; }
.o-tier li::before { content: "\2726"; position: absolute; left: 3px; color: var(--brand-gold); }

/* ============ 19 · CONTACT PAGE =====================================
   (continued)
   And: integration polish for the Daily Oracle plugin's [daily_oracle]
   iframe embed — the plugin wraps its iframe in .daily-oracle-embed.
   ==================================================================== */
.daily-oracle-embed {
  background: var(--panel);
  border: 1px solid var(--line-1);
  border-radius: var(--r-lg);
  padding: var(--space-3);
  margin-block: var(--space-5);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.daily-oracle-embed iframe {
  border-radius: calc(var(--r-lg) - var(--space-3));
  width: 100% !important;
  display: block;
  background: transparent;
}

.o-contact {
  display: grid; gap: var(--gutter);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 880px) { .o-contact { grid-template-columns: 1.2fr 1fr; } }
.o-contact__form { background: var(--panel); border: 1px solid var(--line-1); border-radius: var(--r-lg); padding: var(--space-6); }
.o-contact__form .o-field + .o-field { margin-top: var(--space-4); }
.o-contact__aside p { color: var(--fg-2); margin-bottom: var(--space-4); }
.o-contact__aside dl { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
.o-contact__aside dt { font-family: var(--font-ui); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-gold-light); }
.o-contact__aside dd { font-family: var(--font-body); font-size: var(--fs-base); color: var(--fg-1); margin-top: 2px; }

/* ============ 20 · OEMBED + UTILITY ================================ */
.alignwide { max-width: var(--maxw-page); margin-inline: auto; }
.alignfull { width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.alignleft { float: left; margin: 0 var(--space-4) var(--space-3) 0; }
.alignright { float: right; margin: 0 0 var(--space-3) var(--space-4); }
.aligncenter { display: block; margin-inline: auto; }

.wp-caption, figure { margin-block: var(--space-4); }
.wp-caption-text, figcaption { font-family: var(--font-ui); font-size: 13px; color: var(--fg-3); text-align: center; margin-top: var(--space-2); }

/* Print */
@media print {
  body { background: white; color: black; }
  .o-header, .o-foot, .o-nav-toggle, .o-mobile-nav, nav.o-pagination { display: none !important; }
  a { color: black; text-decoration: underline; }
}
