/*
Theme Name: Lighthouse Local
Theme URI: https://lighthouselocalmarketing.com
Author: Lighthouse Local Marketing LLC
Description: Light, clean, outcome-first brand theme for Lighthouse Local Marketing — white canvas, honey-amber accent, the lighthouse in the mark and in the light.
Version: 2.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: lighthouse-local
*/

/* ============================================================
   1 · TOKENS
   Daylight direction: pure white canvas (the warmth lives in
   the amber accent, not the surface), ink near-black, honey
   amber as the single brand accent. OKLCH with hex fallbacks.
   ============================================================ */

:root {
  /* surfaces */
  --void: #ffffff;                    /* page canvas (name kept for template compat) */
  --void: oklch(1 0 0);
  --surface: #f6f5f3;                 /* alternating sections, panels */
  --surface: oklch(0.97 0.002 80);
  --surface-high: #efedea;
  --surface-high: oklch(0.945 0.004 80);
  /* text */
  --ink: #262320;
  --ink: oklch(0.24 0.008 80);
  --muted: #6b6660;
  --muted: oklch(0.50 0.012 80);
  --line: #e5e2dd;
  --line: oklch(0.91 0.005 80);
  /* the brand */
  --beam: #f39a52;                    /* decorative amber: glows, shapes, large fills */
  --beam: oklch(0.76 0.14 55);
  --beam-deep: #ea5c1f;               /* working amber: CTAs, kickers, colored text */
  --beam-deep: oklch(0.63 0.19 42);
  --night-water: #45789f;
  --night-water: oklch(0.55 0.09 220);
  --on-beam: #ffffff;                 /* text on beam-deep fills */
  --on-beam: oklch(1 0 0);
  /* amber glow alphas */
  --beam-glow-10: oklch(0.68 0.17 45 / 0.10);
  --beam-glow-20: oklch(0.68 0.17 45 / 0.18);
  --beam-glow-45: oklch(0.68 0.17 45 / 0.40);

  /* type */
  --font-sans: "Archivo", "Archivo-fallback", Arial, sans-serif;
  --font-mono: "Spline Sans Mono", Consolas, "Courier New", monospace;
  --text-display: clamp(2.75rem, 6vw, 5.25rem);
  --text-heading: clamp(1.875rem, 3.4vw, 3.125rem);
  --text-title: 1.3125rem;
  --text-body: 1.0625rem;
  --text-data: 0.875rem;

  /* rhythm */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 96px;
  --space-section: clamp(88px, 11vw, 160px);
  --wrap: 1200px;
  --wrap-narrow: 760px;

  /* radii */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* z scale */
  --z-nav: 100;
  --z-sheet: 200;
  --z-skip: 300;

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-med: 420ms;
  --dur-slow: 900ms;

  /* elevation (light canvas: soft neutral shadows) */
  --shadow-soft: 0 1px 2px oklch(0.24 0.008 80 / 0.05), 0 10px 30px oklch(0.24 0.008 80 / 0.07);
  --shadow-lift: 0 2px 6px oklch(0.24 0.008 80 / 0.06), 0 18px 50px oklch(0.24 0.008 80 / 0.10);
}

/* ============================================================
   2 · FONTS
   ============================================================ */

@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Spline Sans Mono";
  src: url("assets/fonts/spline-sans-mono-var-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo-fallback";
  src: local("Arial");
  size-adjust: 99%;
  ascent-override: 89%;
  descent-override: 22%;
}

/* ============================================================
   3 · BASE
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.7;
  letter-spacing: 0.002em;
  font-variation-settings: "wdth" 100;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 750;
  font-variation-settings: "wdth" 108;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: var(--text-display); font-weight: 800; line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: var(--text-heading); }
h3 { font-size: var(--text-title); font-variation-settings: "wdth" 106; letter-spacing: -0.005em; }

p { margin: 0 0 1em; max-width: 68ch; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--ink); text-decoration-color: var(--beam-deep); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--beam); }

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

:focus-visible {
  outline: 2px solid var(--beam-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: var(--z-skip);
  background: var(--beam-deep);
  color: var(--on-beam);
  padding: 12px 20px;
  border-radius: var(--r-md);
  font-weight: 650;
  text-decoration: none;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: 16px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: var(--space-section); position: relative; }

.data {
  font-family: var(--font-mono);
  font-size: var(--text-data);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
}

/* ============================================================
   4 · BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 30px;
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition:
    background-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-med) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.btn--beam {
  background: var(--beam-deep);
  color: var(--on-beam);
  box-shadow: 0 2px 8px var(--beam-glow-20), 0 12px 32px var(--beam-glow-20);
}
.btn--beam:hover {
  background: var(--ink);
  color: var(--void);
  box-shadow: 0 2px 8px oklch(0.24 0.008 80 / 0.12), 0 12px 32px oklch(0.24 0.008 80 / 0.18);
}
.btn--beam:active { transform: scale(0.98); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn--ghost:hover {
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--beam-deep);
}

/* ============================================================
   5 · HEADER / NAV
   ============================================================ */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-nav);
  background: oklch(1 0 0 / 0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px oklch(0.24 0.008 80 / 0.05);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand__mark { flex: none; }
.brand__name {
  font-weight: 800;
  font-variation-settings: "wdth" 118;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.brand__name small {
  display: block;
  font-weight: 500;
  font-variation-settings: "wdth" 100;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 36px); }
.site-nav a:not(.btn) {
  text-decoration: none;
  color: var(--muted);
  font-weight: 550;
  font-size: 1rem;
  transition: color var(--dur-fast) var(--ease-out);
}
.site-nav a:not(.btn):hover,
.site-nav a:not(.btn)[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { position: relative; }
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  border-radius: 1px;
  background: var(--beam-deep);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--ink);
  padding: 10px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .site-nav {
    display: none;
    position: fixed;
    inset: 72px 0 0;
    z-index: var(--z-sheet);
    background: var(--void);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-lg) clamp(20px, 6vw, 48px);
    gap: 0;
    overflow: auto;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) {
    font-size: 1.5rem;
    font-weight: 650;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
  }
  .site-nav a[aria-current="page"]::after { display: none; }
  .site-nav .btn { margin-top: var(--space-lg); }
  .nav-toggle { display: inline-flex; }
}

/* ============================================================
   6 · HERO — daylight, centered, outcome-first
   ============================================================ */

.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-block: 150px 72px;
  text-align: center;
}

/* the scene: soft dimensional shapes + one slow beam of light */
.hero__scene { position: absolute; inset: 0; pointer-events: none; }

.orb {
  position: absolute;
  border-radius: 50%;
}
.orb--a { /* big pale sphere, upper right (cool, dimensional) */
  width: clamp(280px, 34vw, 520px);
  aspect-ratio: 1;
  right: -6%;
  top: -12%;
  background: radial-gradient(circle at 32% 30%, oklch(0.99 0.002 240), oklch(0.93 0.006 240) 55%, oklch(0.885 0.010 240));
  box-shadow: 0 40px 90px oklch(0.24 0.008 80 / 0.08);
}
.orb--b { /* smaller warm sphere, lower left */
  width: clamp(160px, 18vw, 300px);
  aspect-ratio: 1;
  left: -4%;
  bottom: 4%;
  background: radial-gradient(circle at 35% 32%, oklch(0.99 0.008 80), oklch(0.945 0.02 80) 55%, oklch(0.90 0.035 80));
  box-shadow: 0 30px 70px var(--beam-glow-10);
}
.disc { /* orange quarter-disc bleeding off the top-left, Belkins-style */
  position: absolute;
  width: clamp(140px, 16vw, 260px);
  aspect-ratio: 1;
  left: max(-70px, -8vw);
  top: -60px;
  border-radius: 50%;
  background: radial-gradient(circle at 62% 62%, var(--beam) 0 34%, var(--beam-deep) 100%);
  opacity: 0.9;
}

.ray { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .js-anims .orb--a { animation: orb-float 16s var(--ease-out) infinite alternate; }
  .js-anims .orb--b { animation: orb-float 13s var(--ease-out) infinite alternate-reverse; }
}
@keyframes orb-float {
  from { transform: translateY(0); }
  to   { transform: translateY(26px); }
}

@media (max-width: 720px) {
  .orb--a { right: -30%; top: -8%; }
  .orb--b { left: -22%; }
  .disc { left: -50px; top: -50px; }
}

.hero__content { position: relative; max-width: 860px; margin-inline: auto; }

/* entrance choreography — transform+blur only, content visible throughout */
@media (prefers-reduced-motion: no-preference) {
  .js-anims .hero__content > * {
    animation: hero-rise 0.95s var(--ease-out-expo) both;
    animation-delay: calc(var(--hi, 0) * 110ms);
  }
  .js-anims .hero__content > :nth-child(1) { --hi: 0; }
  .js-anims .hero__content > :nth-child(2) { --hi: 1; }
  .js-anims .hero__content > :nth-child(3) { --hi: 2; }
  .js-anims .hero__content > :nth-child(4) { --hi: 3; }
  .js-anims .hero__content > :nth-child(5) { --hi: 4; }
  .js-anims .hero__content > :nth-child(6) { --hi: 5; }
  .js-anims .hero__content > :nth-child(7) { --hi: 6; }
}
@keyframes hero-rise {
  from { transform: translateY(28px); filter: blur(6px); }
}

/* the swash — a hand underline drawn beneath the accent word */
.hero__em { position: relative; display: inline-block; }
.hero__swash {
  position: absolute;
  left: 2%;
  bottom: -0.14em;
  width: 96%;
  height: 0.16em;
  color: var(--beam);
  overflow: visible;
}
.hero__swash path {
  stroke-dasharray: 230;
  stroke-dashoffset: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .js-anims .hero__swash path {
    stroke-dashoffset: 230;
    animation: swash-draw 0.8s var(--ease-out-expo) 1.15s forwards;
  }
}
@keyframes swash-draw {
  to { stroke-dashoffset: 0; }
}

/* the finder — a customer search, typing itself, answered */
.finder {
  margin: var(--space-lg) auto 0;
  max-width: 540px;
  display: grid;
  gap: 10px;
  justify-items: center;
}
.finder__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 15px 22px;
  background: var(--void);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-lift);
  text-align: left;
}
.finder__icon { color: var(--muted); flex: none; }
.finder__q {
  font-size: 1.0625rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.js-anims .finder__q::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: text-bottom;
  background: var(--beam-deep);
}
@media (prefers-reduced-motion: no-preference) {
  .js-anims .finder__q::after { animation: caret-blink 1.05s steps(1) infinite; }
}
@keyframes caret-blink { 50% { opacity: 0; } }

.finder__a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.9375rem;
  font-weight: 550;
  color: var(--ink);
}
.finder__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--beam-deep);
  box-shadow: 0 0 12px var(--beam-glow-45);
  flex: none;
}
@media (prefers-reduced-motion: no-preference) {
  .js-anims .finder__a {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
    transition: opacity var(--dur-med) var(--ease-out-expo), transform var(--dur-med) var(--ease-out-expo);
  }
  .js-anims .finder__a.is-on {
    opacity: 1;
    transform: none;
  }
}

.hero__kicker {
  display: block;
  margin: 0 0 var(--space-md);
  color: var(--beam-deep);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0.06em;
}

.hero h1 { margin-inline: auto; margin-bottom: 0.35em; max-width: 14ch; }
.hero h1 em {
  font-style: normal;
  color: var(--beam-deep);
}

.hero__lead {
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  color: var(--muted);
  max-width: 56ch;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  justify-content: center;
}

.hero__not {
  margin-top: var(--space-md);
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* platform strip — the "where you get found" trust bar */
.hero__where {
  margin: var(--space-xl) 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
}
.hero__where li {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  color: var(--muted);
}
.hero__where li strong { color: var(--beam-deep); font-weight: 600; }

/* ============================================================
   7 · SECTIONS & PATTERNS
   ============================================================ */

.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { max-width: 22ch; }
.section-head .lead { color: var(--muted); font-size: 1.125rem; max-width: 58ch; }

/* scan rule — divider a light pulse traverses when found */
.scan-rule {
  border: 0;
  height: 1px;
  margin: 0;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.scan-rule::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 18%;
  left: -20%;
  background: linear-gradient(90deg, transparent, var(--beam-deep), transparent);
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .js-anims .scan-rule.is-found::after {
    opacity: 0.9;
    animation: scan-traverse 1.4s var(--ease-out-expo) forwards;
  }
}
@keyframes scan-traverse {
  from { left: -20%; }
  to   { left: 105%; opacity: 0; }
}

/* light reveals — transform-only, content always visible */
@media (prefers-reduced-motion: no-preference) {
  .js-anims .reveal { transform: translateY(16px); transition: transform var(--dur-slow) var(--ease-out-expo); }
  .js-anims .reveal.is-found { transform: none; }
  .js-anims .reveal-item { transform: translateY(14px); transition: transform var(--dur-slow) var(--ease-out-expo); transition-delay: calc(var(--ri, 0) * 90ms); }
  .js-anims .is-found .reveal-item { transform: none; }
}

/* the ledger — services as full-width rows */
.ledger { border-top: 1px solid var(--line); }
.ledger__row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) auto;
  gap: var(--space-md) var(--space-lg);
  align-items: start;
  padding-block: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: background-color var(--dur-med) var(--ease-out);
}
.ledger__row:hover { background: linear-gradient(90deg, var(--surface) 0%, transparent 70%); }
.ledger__row h3 { margin: 0; font-size: clamp(1.375rem, 2.2vw, 1.75rem); }
.ledger__row .data { margin-bottom: 8px; display: block; color: var(--beam-deep); }
.ledger__desc { color: var(--muted); margin: 0; }
.ledger__go {
  align-self: center;
  font-size: 1.5rem;
  color: var(--line);
  transition: color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.ledger__row:hover .ledger__go { color: var(--beam-deep); transform: translateX(6px); }
@media (max-width: 720px) {
  .ledger__row { grid-template-columns: 1fr; }
  .ledger__go { display: none; }
}

/* proof panel */
.proof {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 860px) { .proof { grid-template-columns: 1fr; } }

.proof__visual {
  background: var(--void);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.proof__visual img { width: 100%; }

.proof__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  margin-top: var(--space-lg);
}
.metric { min-width: 120px; }
.metric__num {
  font-weight: 800;
  font-variation-settings: "wdth" 108;
  font-size: clamp(2rem, 3.6vw, 2.875rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--beam-deep);
  display: block;
}
.metric__label { display: block; margin-top: 6px; }

/* how it works — a real sequence */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
  counter-reset: step;
}
.step { counter-increment: step; position: relative; padding-top: var(--space-md); }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--beam-deep);
  display: block;
  margin-bottom: 12px;
}
.step::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 44px; height: 2px;
  background: var(--beam);
}
.step h3 { font-size: 1.1875rem; }
.step p { color: var(--muted); font-size: 1rem; }

/* keeper's log teaser */
.log-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.log-list li { border-bottom: 1px solid var(--line); }
.log-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-md);
  align-items: baseline;
  padding: 22px 4px;
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.log-list a:hover { background: var(--surface); }
.log-list h3 { margin: 0; font-size: 1.1875rem; font-variation-settings: "wdth" 104; }
.log-list time { color: var(--muted); font-family: var(--font-mono); font-size: 0.8125rem; white-space: nowrap; }

/* final CTA — the light pools here */
.cta-final {
  position: relative;
  text-align: center;
  padding-block: var(--space-section);
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(52rem 26rem at 50% 115%, var(--beam-glow-20), transparent 62%);
  pointer-events: none;
}
.cta-final h2 { max-width: 20ch; margin-inline: auto; }
.cta-final .lead { color: var(--muted); max-width: 46ch; margin: 0 auto var(--space-lg); }

/* ============================================================
   8 · BLOG — The Keeper's Log
   ============================================================ */

.page-hero { padding: 180px 0 var(--space-xl); }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { color: var(--muted); font-size: 1.1875rem; max-width: 54ch; }

.post-list { list-style: none; margin: 0; padding: 0; }
.post-card {
  border-top: 1px solid var(--line);
  padding-block: clamp(28px, 4vw, 40px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-sm) var(--space-lg);
}
.post-card time { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); min-width: 110px; padding-top: 6px; }
.post-card h2 { font-size: clamp(1.375rem, 2.4vw, 1.875rem); margin-bottom: 0.4em; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a:hover { color: var(--beam-deep); }
.post-card .excerpt { color: var(--muted); }
@media (max-width: 640px) { .post-card { grid-template-columns: 1fr; } .post-card time { min-width: 0; padding: 0; } }

.prose { max-width: var(--wrap-narrow); margin-inline: auto; }
.prose > * { max-width: 68ch; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose img { border-radius: var(--r-md); border: 1px solid var(--line); }
.prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 24px;
  border-left: 1px solid var(--beam);
  color: var(--muted);
  font-size: 1.125rem;
}
.prose pre {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.6;
}
.prose code { font-family: var(--font-mono); font-size: 0.9em; background: var(--surface); border-radius: 4px; padding: 2px 6px; }
.prose pre code { background: none; padding: 0; }
.prose a { color: var(--beam-deep); text-decoration-color: var(--beam); }

.post-meta { display: flex; gap: 14px; align-items: center; color: var(--muted); font-family: var(--font-mono); font-size: 0.8125rem; margin-bottom: var(--space-lg); }

.pager { display: flex; justify-content: space-between; gap: var(--space-md); margin-top: var(--space-xl); }
.pager a { text-decoration: none; color: var(--muted); font-weight: 550; }
.pager a:hover { color: var(--beam-deep); }

/* ============================================================
   9 · FOOTER
   ============================================================ */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: var(--space-xl) 0 var(--space-lg);
  margin-top: var(--space-section);
}
.cta-final + .site-footer { margin-top: 0; }
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}
@media (max-width: 720px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.site-footer__blurb { color: var(--muted); max-width: 36ch; }
.site-footer__fine {
  border-top: 1px solid var(--line);
  padding-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.875rem;
}
.site-footer__audit { font-family: var(--font-mono); font-size: 0.8125rem; }
.site-footer__audit a { color: var(--beam-deep); }
.site-footer__audit a:hover { color: var(--ink); }

/* ============================================================
   10 · UTILITIES / STATES
   ============================================================ */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.glow-num { text-shadow: 0 0 0 transparent; }
@media (prefers-reduced-motion: no-preference) {
  .js-anims .glow-num.is-lit { animation: num-ignite 1.1s var(--ease-out-expo); }
}
@keyframes num-ignite {
  0%   { text-shadow: 0 0 0 transparent; }
  35%  { text-shadow: 0 0 30px var(--beam-glow-45); }
  100% { text-shadow: 0 0 0 transparent; }
}

/* WordPress core alignment sanity */
.alignwide { max-width: var(--wrap); }
.alignfull { width: 100%; max-width: none; }
.wp-block-image img { border-radius: var(--r-md); }
