/* ==========================================================================
   VO Blog — visionoptimized.com/blog
   Source of truth: /design.md (v1.1). Do not invent values; change design.md first.
   ========================================================================== */

:root {
  /* §4 Color palette — exact hex recipes */
  --obsidian: #0A0A0A;        /* page background (the stage) */
  --charcoal-veil: #161616;   /* post cards, panels */
  --champagne: #CBBFA6;       /* signature metallic accent — jewelry, not wallpaper */
  --platinum: #F4F2EE;        /* headlines & primary text — never pure #FFFFFF */
  --ash: #9B9B98;             /* body copy, captions, secondary text */
  --smoke: #2A2A2A;           /* borders, hairlines */
  --champagne-glow: #E3D9C2;  /* hover/active states on dark buttons */

  --font: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 48px);
  --measure: 68ch;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--obsidian);
  color: var(--ash);                 /* §5 body copy: Ash Gray */
  font-family: var(--font);
  font-weight: 400;                  /* §5 Inter Regular */
  font-size: 17px;                   /* §5 16–18px */
  line-height: 1.6;                  /* §5 */
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

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

/* --------------------------------------------------------------------------
   §5 Typography
   -------------------------------------------------------------------------- */
h1, .vo-h1 {
  font-weight: 600;                          /* Inter SemiBold */
  font-size: clamp(44px, 6vw, 64px);         /* 44–64px */
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--platinum);
  text-wrap: balance;
}

h2, .vo-h2 {
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 36px);       /* 28–36px */
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--platinum);
}

.vo-eyebrow {
  font-weight: 300;                          /* Inter Light */
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.25em;                    /* tracking +0.25em */
  color: var(--champagne);
}

.vo-eyebrow--ash { color: var(--ash); }

.vo-tagline {
  font-weight: 300;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3em;                     /* tracking +0.3em */
  color: var(--ash);
}

.vo-stat {
  font-weight: 700;                          /* Inter Bold */
  font-size: clamp(56px, 7vw, 72px);         /* 56–72px */
  color: var(--platinum);
  line-height: 1;
}

/* --------------------------------------------------------------------------
   §7 Pill buttons
   -------------------------------------------------------------------------- */
.vo-btn {
  display: inline-block;
  border-radius: 999px;                      /* pill */
  font-weight: 500;                          /* Inter Medium */
  font-size: 14px;                           /* 13–14px */
  padding: 12px 26px;
  line-height: 1;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.vo-btn--primary {
  background: var(--platinum);
  color: var(--obsidian);
}
.vo-btn--primary:hover { background: var(--champagne-glow); }

.vo-btn--secondary {
  background: transparent;
  color: var(--platinum);
  border: 1px solid var(--smoke);
}
.vo-btn--secondary:hover { border-color: var(--champagne); }

/* --------------------------------------------------------------------------
   Header / navigation (mirrors the main site)
   -------------------------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--smoke);
  background: var(--obsidian);
}

.header-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.brand-lockup .vo-mark { width: 56px; height: auto; display: block; }

.brand-lockup .wm {
  font-weight: 300;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.25em;                    /* §5 wordmark */
  color: var(--platinum);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 26px;
  font-weight: 500;                          /* §5 nav: Inter Medium */
  font-size: 13px;
  color: var(--ash);
}

.nav-links a:hover { color: var(--platinum); }
.nav-links a[aria-current="page"] { color: var(--platinum); }

/* --------------------------------------------------------------------------
   §6 The Active O — one breath, then stillness.
   The crescent draws once (clockwise), the tick-marks complete the dial,
   and the arc rests at ~85%. Never loops, pulses, or repeats.
   -------------------------------------------------------------------------- */
.vo-crescent {
  stroke-dasharray: 158;                     /* half-circle length, r=50 */
  stroke-dashoffset: 158;
  animation: vo-draw 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes vo-draw { to { stroke-dashoffset: 0; } }

.vo-ticks line { opacity: 0; }

/* Ticks light in sequence, top-to-bottom (clockwise) */
.vo-ticks line { animation: vo-tick 0.16s ease-out forwards; }
.vo-ticks line:nth-child(1)  { animation-delay: 0.80s; }
.vo-ticks line:nth-child(2)  { animation-delay: 0.84s; }
.vo-ticks line:nth-child(3)  { animation-delay: 0.88s; }
.vo-ticks line:nth-child(4)  { animation-delay: 0.92s; }
.vo-ticks line:nth-child(5)  { animation-delay: 0.96s; }
.vo-ticks line:nth-child(6)  { animation-delay: 1.00s; }
.vo-ticks line:nth-child(7)  { animation-delay: 1.04s; }
.vo-ticks line:nth-child(8)  { animation-delay: 1.08s; }
.vo-ticks line:nth-child(9)  { animation-delay: 1.12s; }
.vo-ticks line:nth-child(10) { animation-delay: 1.16s; }
.vo-ticks line:nth-child(11) { animation-delay: 1.20s; }
.vo-ticks line:nth-child(12) { animation-delay: 1.24s; }
.vo-ticks line:nth-child(13) { animation-delay: 1.28s; }
.vo-ticks line:nth-child(14) { animation-delay: 1.32s; }
.vo-ticks line:nth-child(15) { animation-delay: 1.36s; }
.vo-ticks line:nth-child(16) { animation-delay: 1.40s; }
.vo-ticks line:nth-child(17) { animation-delay: 1.44s; }
.vo-ticks line:nth-child(18) { animation-delay: 1.48s; }
.vo-ticks line:nth-child(19) { animation-delay: 1.52s; }
.vo-ticks line:nth-child(20) { animation-delay: 1.56s; }
.vo-ticks line:nth-child(21) { animation-delay: 1.60s; }
.vo-ticks line:nth-child(22) { animation-delay: 1.64s; }
.vo-ticks line:nth-child(23) { animation-delay: 1.68s; }
.vo-ticks line:nth-child(24) { animation-delay: 1.72s; }
.vo-ticks line:nth-child(25) { animation-delay: 1.76s; }
.vo-ticks line:nth-child(26) { animation-delay: 1.80s; }
/* The dial completes fully, then stillness. (§6, amended July 12, 2026) */
@keyframes vo-tick { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .vo-crescent { animation: none; stroke-dashoffset: 0; }
  .vo-ticks line { animation: none; opacity: 1; }
}

/* --------------------------------------------------------------------------
   §7 Layout — single dark canvas, generous emptiness
   -------------------------------------------------------------------------- */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.blog-hero {
  padding: clamp(72px, 12vh, 130px) var(--gutter) clamp(48px, 8vh, 80px);
  max-width: 1200px;
  margin: 0 auto;
}

.blog-hero .vo-h1 { max-width: 18ch; margin-top: 18px; }

.blog-hero .lede {
  max-width: 58ch;
  margin-top: 24px;
  font-size: 18px;
  color: var(--ash);
}

/* §7 Blog cards: Charcoal Veil, title Platinum, summary Ash,
   date + reading time as eyebrow */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr));
  gap: 24px;
  padding-bottom: clamp(72px, 12vh, 130px);
}

.post-card {
  display: block;
  background: var(--charcoal-veil);
  border: 1px solid var(--smoke);
  border-radius: 14px;
  padding: 36px;
  transition: border-color 0.25s ease;
}

.post-card:hover { border-color: var(--champagne); }

.post-card .card-eyebrow {
  font-weight: 300;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--ash);
}

.post-card h3 {
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--platinum);
  margin-top: 14px;
}

.post-card p {
  margin-top: 12px;
  font-size: 16px;
  color: var(--ash);
}

/* Empty state (pre-first-post) */
.empty-state {
  background: var(--charcoal-veil);
  border: 1px solid var(--smoke);
  border-radius: 14px;
  padding: clamp(40px, 6vw, 64px);
  max-width: 640px;
}

.empty-state h3 {
  font-weight: 600;
  font-size: 24px;
  color: var(--platinum);
  margin-top: 14px;
}

.empty-state p { margin-top: 12px; max-width: 46ch; }

/* --------------------------------------------------------------------------
   Post pages
   -------------------------------------------------------------------------- */
.post {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(56px, 9vh, 96px) var(--gutter) 0;
}

.post .vo-h1 { margin-top: 18px; font-size: clamp(44px, 5vw, 56px); }

/* §3.4 Byline block: author name · date · reading time */
.byline {
  margin-top: 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--smoke);
  font-weight: 300;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--ash);
}

.byline .byline-author { color: var(--platinum); font-weight: 400; }
.byline .dot { color: var(--champagne); padding: 0 10px; }

/* §3.5 Lead paragraph — the helpful answer first */
.post .lead {
  margin-top: 34px;
  font-size: 20px;
  line-height: 1.6;
  color: var(--platinum);
  font-weight: 400;
}

.post h2 { margin-top: 64px; }

.post p { margin-top: 22px; max-width: var(--measure); }

.post ul, .post ol { margin: 22px 0 0 22px; }
.post li { margin-top: 10px; }

.post strong { color: var(--platinum); font-weight: 600; }

.post a {
  color: var(--platinum);
  border-bottom: 1px solid var(--champagne);
  transition: color 0.25s ease;
}
.post a:hover { color: var(--champagne-glow); }

/* §3.7 First-hand proof — real client situation, honest tradeoffs.
   The champagne hairline is the one champagne moment of its screen-view. */
.field-note {
  margin-top: 36px;
  background: var(--charcoal-veil);
  border-left: 2px solid var(--champagne);
  border-radius: 0 14px 14px 0;
  padding: 30px 34px;
}

.field-note .card-eyebrow {
  font-weight: 300;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--champagne);
}

.field-note p { margin-top: 14px; }

/* Big stat, used sparingly (§5 Big Stats) */
.stat-block { margin-top: 44px; text-align: center; }
.stat-block .stat-caption { margin-top: 10px; font-size: 15px; }

/* §3.8 Author credential bio box */
.author-bio {
  margin-top: 72px;
  background: var(--charcoal-veil);
  border: 1px solid var(--smoke);
  border-radius: 14px;
  padding: 34px;
}

.author-bio .card-eyebrow {
  font-weight: 300;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--ash);
}

.author-bio h3 {
  font-weight: 600;
  font-size: 20px;
  color: var(--platinum);
  margin-top: 12px;
}

.author-bio .credentials { font-size: 14px; color: var(--ash); margin-top: 4px; }

.author-bio p { margin-top: 14px; font-size: 16px; }

.author-bio a {
  color: var(--platinum);
  border-bottom: 1px solid var(--champagne);
}

/* §3.9 Internal links */
.keep-reading { margin-top: 64px; padding-bottom: clamp(72px, 12vh, 120px); }

.keep-reading h2 { font-size: 24px; margin-top: 0; }

.keep-reading ul { list-style: none; margin: 20px 0 0 0; }

.keep-reading li {
  border-top: 1px solid var(--smoke);
  padding: 16px 0;
  margin: 0;
}

.keep-reading a { color: var(--platinum); }
.keep-reading a:hover { color: var(--champagne-glow); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--smoke);
  padding: 56px var(--gutter) 64px;
  text-align: center;
}

.site-footer .vo-tagline { margin-top: 18px; }

.site-footer .anchor-line {
  margin-top: 26px;
  font-size: 14px;
  color: var(--ash);
}

.site-footer .copyright { margin-top: 8px; font-size: 13px; color: var(--ash); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
}
