/* Open Whisperer — shared styles for subpages (changelog, faq, vs/*, use-cases).
   Design tokens mirror index.html so subpages read as one site. */

:root {
  --bg: #FAF7F1;
  --bg-warm: #F3EBDD;
  --ink: #2A2520;
  --ink-soft: #6A6157;
  --ink-faint: #978C7E;
  --gold: #C0A06A;
  --gold-deep: #98763F;
  --gold-soft: #EADFC8;
  --surface: #FFFFFF;
  --line: #ECE3D4;
  --green: #4E7A55;
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 50% -8%, rgba(192, 160, 106, 0.16) 0%, transparent 68%),
    radial-gradient(45% 40% at 88% 18%, rgba(152, 118, 63, 0.08) 0%, transparent 70%),
    radial-gradient(50% 45% at 6% 42%, rgba(192, 160, 106, 0.07) 0%, transparent 72%);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

::selection { background: var(--gold-soft); color: var(--gold-deep); }

a { color: var(--gold-deep); }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 5px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); border: 0;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

.reveal { opacity: 0; transform: translateY(16px); animation: rise 0.8s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* NAV */
nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1080px; margin: 0 auto; padding: 22px 24px;
}
nav .logo-mark { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; }
nav .logo-mark img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 3px 12px rgba(152,118,63,.22); }
nav .logo-mark span { font-weight: 600; font-size: 16px; letter-spacing: -0.2px; }
nav .nav-links { display: flex; gap: 26px; align-items: center; }
nav .nav-links a { text-decoration: none; color: var(--ink-soft); font-size: 14px; font-weight: 500; transition: color .2s; }
nav .nav-links a:hover { color: var(--ink); }
nav .nav-links .gh-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--ink); color: #fff; padding: 9px 17px;
  border-radius: 10px; font-size: 13px; font-weight: 600; transition: background .2s, transform .1s;
}
nav .nav-links .gh-btn:hover { background: #423b33; transform: translateY(-1px); }
nav .nav-links .gh-btn svg { width: 16px; height: 16px; fill: #fff; }

/* BUTTONS */
.btn-primary {
  display: inline-flex; align-items: center; gap: 9px;
  background: linear-gradient(180deg, #CBAE78 0%, var(--gold) 60%, #B2925C 100%);
  color: #fff; padding: 15px 30px; border-radius: 13px;
  font-size: 16px; font-weight: 700; text-decoration: none; letter-spacing: .1px;
  transition: transform .12s, box-shadow .22s, filter .2s;
  box-shadow: 0 10px 28px rgba(152,118,63,.36), 0 1px 0 rgba(255,255,255,.4) inset;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(152,118,63,.44); filter: brightness(1.03); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 4px 12px rgba(152,118,63,.3); }
.btn-primary svg { width: 20px; height: 20px; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.5); color: var(--ink-soft);
  padding: 15px 26px; border-radius: 13px; font-size: 16px; font-weight: 600;
  text-decoration: none; border: 1.5px solid var(--line); transition: border-color .2s, color .2s, background .2s;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--ink); background: #fff; }
.btn-secondary svg { width: 18px; height: 18px; }

/* SUBPAGE HERO */
.subhero { max-width: 820px; margin: 0 auto; padding: 40px 24px 20px; text-align: center; }
.breadcrumb { font-size: 13px; font-weight: 600; color: var(--ink-faint); margin-bottom: 22px; letter-spacing: .2px; }
.breadcrumb a { color: var(--gold-deep); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--ink-faint); margin: 0 8px; }
.subhero .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 14px; }
.subhero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-optical-sizing: auto;
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 500;
  letter-spacing: -1.2px;
  line-height: 1.06;
  margin-bottom: 20px;
}
.subhero h1 em, .subhero h1 .accent { font-style: italic; font-weight: 500; color: var(--gold-deep); }
.subhero .lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-soft); max-width: 640px; margin: 0 auto; line-height: 1.6; }
.subhero .meta { font-size: 13px; color: var(--ink-faint); margin-top: 16px; font-weight: 500; }

/* SECTION SHELL */
.section { max-width: 900px; margin: 0 auto; padding: 44px 24px; }
.section.tight { padding: 24px 24px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-head .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 12px; }
.section-head h2 { font-family:'Fraunces',serif; font-weight: 500; font-size: clamp(26px, 4vw, 38px); letter-spacing: -.6px; line-height: 1.1; }
.section-head h2 em { font-style: italic; color: var(--gold-deep); }
.section-head .lede { margin-top: 16px; font-size: 16px; line-height: 1.55; color: var(--ink-soft); }

/* PROSE (faq / long-form) */
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { font-family:'Fraunces',serif; font-weight: 500; font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -.5px; line-height: 1.12; margin: 40px 0 14px; }
.prose h2 em { font-style: italic; color: var(--gold-deep); }
.prose h3 { font-size: 18px; font-weight: 700; margin: 28px 0 8px; letter-spacing: -.2px; }
.prose p { font-size: 16px; color: var(--ink-soft); line-height: 1.68; margin-bottom: 16px; }
.prose ul { margin: 0 0 16px 22px; color: var(--ink-soft); line-height: 1.8; font-size: 16px; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--gold-deep); font-weight: 600; }
.prose code {
  background: var(--bg-warm); border: 1px solid var(--line); border-radius: 6px;
  padding: 1px 7px; font-family: 'SF Mono','Menlo','Consolas',monospace; font-size: .88em; color: var(--gold-deep);
}

/* COMPARISON TABLE */
.cmp { max-width: 860px; margin: 0 auto; overflow-x: auto; }
.cmp table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 560px; }
.cmp th, .cmp td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14.5px; vertical-align: middle; }
.cmp thead th { background: var(--bg-warm); font-weight: 700; color: var(--ink); font-size: 13px; letter-spacing: .2px; }
.cmp thead th.us { color: var(--gold-deep); }
.cmp tbody tr:last-child td { border-bottom: none; }
.cmp td.dim { color: var(--ink-soft); font-weight: 600; }
.cmp td.us { background: rgba(192,160,106,.07); font-weight: 600; color: var(--ink); }
.cmp .yes { color: var(--green); font-weight: 700; }
.cmp .no { color: var(--ink-faint); font-weight: 600; }
.cmp .yes svg, .cmp .no svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 5px; }
.cmp caption { caption-side: bottom; font-size: 12px; color: var(--ink-faint); padding-top: 12px; text-align: left; line-height: 1.5; }

/* FEATURE / POINT GRID */
.points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 820px; margin: 0 auto; }
.point {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: box-shadow .3s, border-color .3s, transform .3s;
}
.point:hover { box-shadow: 0 16px 40px rgba(152,118,63,.14); border-color: var(--gold-soft); transform: translateY(-3px); }
.point .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(150deg, var(--gold-soft), #F6EFE1);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(192,160,106,.2), 0 1px 0 #fff inset;
}
.point .icon svg { width: 22px; height: 22px; stroke: var(--gold-deep); }
.point h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 6px; letter-spacing: -.2px; }
.point p { font-size: 14px; color: var(--ink-soft); line-height: 1.58; }

/* STEP LIST (terminal / setup) */
.steplist { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 4px; }
.stepline { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px dashed var(--line); }
.stepline:last-child { border-bottom: none; }
.stepline .n {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(160deg, #CBAE78, var(--gold-deep)); color: #fff;
  font-family:'Fraunces',serif; font-weight: 600; font-size: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px rgba(152,118,63,.3);
}
.stepline h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.stepline p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }
.stepline code {
  background: #2A2520; color: #E7D9BE; padding: 2px 8px; border-radius: 6px;
  font-family: 'SF Mono','Menlo','Consolas',monospace; font-size: 13px;
}

/* TERMINAL SNIPPET */
.terminal {
  max-width: 720px; margin: 28px auto 0; border-radius: 14px; overflow: hidden;
  background: #2A2520; box-shadow: 0 24px 60px rgba(42,33,20,.28); border: 1px solid #3A322A;
}
.terminal .bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #332C25; }
.terminal .bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.terminal .bar i:nth-child(1){ background:#E06C5B } .terminal .bar i:nth-child(2){ background:#E4B95B } .terminal .bar i:nth-child(3){ background:#7FB37A }
.terminal .bar span { margin-left: 8px; font-size: 12px; color: #9C907C; font-family:'SF Mono',monospace; }
.terminal pre { margin: 0; padding: 20px 22px; overflow-x: auto; }
.terminal code { font-family: 'SF Mono','Menlo','Consolas',monospace; font-size: 13.5px; line-height: 1.7; color: #E7D9BE; }
.terminal .c-you { color: #C0A06A; } .terminal .c-ai { color: #8FB98A; } .terminal .c-dim { color: #8A7E6C; }

/* CHANGELOG TIMELINE */
.timeline { max-width: 760px; margin: 0 auto; position: relative; }
.rel { position: relative; padding: 0 0 40px 34px; border-left: 2px solid var(--line); }
.rel:last-child { border-left-color: transparent; padding-bottom: 8px; }
.rel::before {
  content: ""; position: absolute; left: -8px; top: 4px; width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(160deg, #CBAE78, var(--gold-deep)); box-shadow: 0 0 0 4px var(--bg), 0 4px 10px rgba(152,118,63,.4);
}
.rel.latest::before { animation: relping 2.4s ease-out infinite; }
@keyframes relping { 0%{ box-shadow: 0 0 0 4px var(--bg), 0 0 0 0 rgba(192,160,106,.5) } 100%{ box-shadow: 0 0 0 4px var(--bg), 0 0 0 14px rgba(192,160,106,0) } }
.rel .rel-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.rel .ver { font-family:'Fraunces',serif; font-weight: 600; font-size: 24px; letter-spacing: -.4px; color: var(--ink); text-decoration: none; }
.rel .ver:hover { color: var(--gold-deep); }
.rel .tag-new { background: var(--gold); color: #2A2520; font-size: 11px; font-weight: 700; letter-spacing: .4px; padding: 2px 9px; border-radius: 100px; text-transform: uppercase; }
.rel .date { font-size: 13px; color: var(--ink-faint); font-weight: 600; }
.rel .title { font-size: 15.5px; font-weight: 700; color: var(--gold-deep); margin-bottom: 12px; }
.rel ul { margin: 0 0 0 18px; color: var(--ink-soft); font-size: 15px; line-height: 1.72; }
.rel ul strong { color: var(--ink); font-weight: 700; }

/* CTA BAND */
.cta-band { max-width: 900px; margin: 20px auto 0; padding: 0 24px 80px; }
.cta-inner {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(135deg, #2E2823 0%, #3A322A 100%);
  color: #F4ECDD; border-radius: 24px; padding: 48px 40px;
  box-shadow: 0 28px 70px rgba(42,33,20,.3);
}
.cta-inner::before { content:""; position:absolute; inset:0; opacity:.5; background: radial-gradient(50% 90% at 50% 0%, rgba(192,160,106,.28) 0%, transparent 70%); pointer-events:none; }
.cta-inner h2 { position: relative; font-family:'Fraunces',serif; font-weight: 500; font-size: clamp(26px, 4vw, 38px); letter-spacing: -.5px; line-height: 1.1; margin-bottom: 12px; color: #FBF5EA; }
.cta-inner h2 em { font-style: italic; color: var(--gold); }
.cta-inner p { position: relative; font-size: 15px; color: #CDBFA8; max-width: 460px; margin: 0 auto 26px; }
.cta-inner .cta-row { position: relative; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-inner .btn-secondary { background: rgba(255,255,255,.08); color: #E7D9BE; border-color: rgba(231,217,190,.25); }
.cta-inner .btn-secondary:hover { background: rgba(255,255,255,.14); color: #fff; border-color: var(--gold); }

/* FOOTER */
footer { text-align: center; padding: 48px 24px 56px; border-top: 1px solid var(--line); margin-top: 20px; }
footer .f-logo { display:inline-flex; align-items:center; gap:9px; margin-bottom: 18px; text-decoration:none; color: var(--ink); }
footer .f-logo img { width: 26px; height: 26px; border-radius: 7px; }
footer .f-logo span { font-family:'Fraunces',serif; font-weight: 600; font-size: 17px; }
footer .links { display: flex; gap: 22px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }
footer .links a { text-decoration: none; color: var(--ink-soft); font-size: 14px; font-weight: 600; transition: color .2s; }
footer .links a:hover { color: var(--gold-deep); }
footer .copy { font-size: 13px; color: var(--ink-faint); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .points { grid-template-columns: 1fr; }
  nav { flex-wrap: wrap; justify-content: center; gap: 10px; padding: 18px; }
  nav .nav-links { gap: 16px; }
  .subhero { padding: 28px 20px 16px; }
  .cta-inner { padding: 38px 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .rel.latest::before { animation: none; }
  html { scroll-behavior: auto; }
}
