/* =====================================================================
   SkillVault — public marketing site

   The marketing site uses the SAME palette / fonts / radii as the
   dashboard. This file is *additive*: it never redefines a token.
   If you want a new color or font, stop and put it in
   `dashboard.css` so the dashboard and marketing site stay in sync.

   Section order:
     1.  Buttons (the .btn/.btn-primary primitives used everywhere)
     2.  Top-of-page layout (.site, .site-header, .site-main, .site-foot)
     3.  Hero
     4.  Three-surface grid + feature list
     5.  Pricing tiers + currency toggle
     6.  Install cards + copy button
     7.  Changelog + About prose
     8.  Closing CTA
     9.  FAQ
    10.  Responsive overrides
   ===================================================================== */

/* ---------- 1. Buttons ---------- */

/* The marketing site needs primary & secondary buttons. The
   dashboard doesn't currently render <a class="btn"> so this is
   defined here to keep dashboard.css focused on the app chrome. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);   /* sharp — register is square */
  background: transparent;
  color: var(--parchment);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  line-height: 1;
}
.btn:hover {
  border-color: var(--steel);
  color: var(--parchment);
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  border-color: var(--brass);
  color: var(--parchment);
  background: var(--brass-soft);    /* faint brass wash */
}
.btn-primary:hover {
  border-color: #ddc188;            /* lighter brass on hover */
  color: #f3e7c7;
  background: rgba(201, 168, 106, 0.18);
}

/* ---------- 2. Site chrome ---------- */

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1;
  padding-bottom: 4rem;
}

/* The site header sits above every marketing page. It's intentionally
   NOT the dashboard sidebar + topbar (those imply "signed-in app");
   this is just the brand + primary nav + auth CTAs. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ink);
  border-bottom: 1px solid var(--rule-strong);
  backdrop-filter: blur(8px);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
}
.site-brand {
  /* Same .brand class as the dashboard sidebar — reuses the
     brand-seal + the italic "SkillVault" wordmark. */
  padding: 0;
  border-bottom: 0;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.site-nav {
  display: flex;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
}
.site-nav a {
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: color 0.12s, border-color 0.12s;
}
.site-nav a:hover {
  color: var(--parchment);
  text-decoration: none;
  border-bottom-color: var(--steel);
}
.site-nav a.active {
  color: var(--parchment);
  border-bottom-color: var(--brass);
}
.site-nav-cta {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.site-foot {
  margin-top: 4rem;
  border-top: 1px solid var(--rule-strong);
  background: var(--ink-2);
}
.site-foot-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.25rem;
}
.site-foot-col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.site-foot-h {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--parchment);
  margin-bottom: 0.4rem;
}
.site-foot-col a {
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.12s;
}
.site-foot-col a:hover {
  color: var(--brass);
}
.site-foot-base {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--text-dim);
  font-size: 12px;
}

/* ---------- 3. Hero ---------- */

.hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  text-align: left;
}
.hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 500;
  margin-bottom: 1.25rem;
}
.hero-title {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  font-size: 3.4rem;
  letter-spacing: -0.015em;
  line-height: 1.07;
  max-width: 28ch;
  margin: 0 0 1.25rem;
  color: var(--parchment);
}
.hero-title em.display {
  /* Brass accent on the italic accent word, matching the auth-page
     "sealed" treatment so the brand voice is identical. */
  color: var(--brass);
  font-style: italic;
  font-weight: 500;
}
.hero-lede {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 0 2rem;
}
.hero-cta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}
.hero-cta-sub {
  margin-top: 1.4rem;
}

/* ---------- 4. Surfaces & features ---------- */

.surfaces,
.features {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--rule);
}
.surfaces-intro,
.features-intro {
  margin-bottom: 2rem;
}
.surfaces-intro h2,
.features-intro h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  font-size: 1.85rem;
  letter-spacing: -0.01em;
  margin: 0.5rem 0 0;
  color: var(--parchment);
  max-width: 32ch;
}

.surface-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.surface-card {
  background: var(--ink-2);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-card);
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.15s, transform 0.15s;
}
.surface-card:hover {
  border-color: var(--brass);
}
.surface-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--brass);
  margin-bottom: 0.5rem;
}
.surface-card h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  font-size: 1.15rem;
  margin: 0 0 0.3rem;
  color: var(--parchment);
}
.surface-card p {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0 0 1rem;
}
.surface-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  background: var(--ink);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.45rem 0.6rem;
  color: var(--brass);
  margin-top: auto;
  word-break: break-all;
}

/* Feature list — the "Register. Issue. Use." rows. */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--rule-strong);
}
.feature-list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  padding: 1.5rem 0.25rem;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.feature-step {
  /* stamp class handles the all-caps mono look — we re-declare
     the column width via the .feature-list grid above. */
  color: var(--brass);
}
.feature-list h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
  color: var(--parchment);
}
.feature-list p {
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
  max-width: 60ch;
}

/* ---------- 5. Pricing tiers ---------- */

/* Page banner — shared by /pricing, /install, /changelog, /about. */
.page-banner {
  border-bottom: 1px solid var(--rule);
}
.page-banner-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2.5rem;
}
.page-banner h1 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  font-size: 2.4rem;
  letter-spacing: -0.01em;
  margin: 0.6rem 0 1rem;
  color: var(--parchment);
}
.page-banner .lede {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 56ch;
  margin: 0;
}

.tiers {
  max-width: 1080px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
}
.tier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.tier {
  background: var(--ink-2);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-card);
  padding: 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  position: relative;
}
.tier.is-featured {
  /* "Most popular" gets a brass border instead of relying on a
     badge alone. Keeps the restraint — no glossy gradients. */
  border-color: var(--brass);
}
.tier-badge {
  position: absolute;
  top: -1px;
  right: 1rem;
  transform: translateY(-50%);
  background: var(--ink);
  border: 1px solid var(--brass);
  color: var(--brass);
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius);
}
.tier-head { margin-bottom: 1rem; }
.tier-price {
  margin-top: 0.4rem;
  font-family: 'Newsreader', Georgia, serif;
}
.tier-price-amount {
  font-weight: 500;
  font-size: 1.65rem;
  color: var(--parchment);
  letter-spacing: -0.005em;
}
.tier-desc {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 1.25rem;
}
.tier-stats {
  list-style: none;
  padding: 0.85rem 0;
  margin: 0 0 1rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.tier-stats li {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  font-size: 12.5px;
}
.tier-stats-k {
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-family: 'Inter', sans-serif;
}
.tier-stats-v {
  color: var(--parchment);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
}
.tier-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.tier-features li {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  padding: 0.35rem 0 0.35rem 1rem;
  position: relative;
}
.tier-features li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--brass);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
}
.tier-cta { margin-top: auto; }
.tier-cta .btn { width: 100%; }

.tiers-foot {
  margin: 1.5rem 0 0;
  color: var(--text-dim);
  font-size: 12px;
  font-style: italic;
  font-family: 'Newsreader', Georgia, serif;
}

.currency-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
}
.currency-btn {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  background: transparent;
  border: 1px solid var(--rule-strong);
  color: var(--text-muted);
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: color 0.12s, border-color 0.12s, background 0.12s;
}
.currency-btn:hover { color: var(--parchment); }
.currency-btn.is-active {
  border-color: var(--brass);
  color: var(--brass);
  background: var(--brass-soft);
}

/* ---------- 6. Install cards ---------- */

.install {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 1.5rem 2rem;
}
.install-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.install-card {
  background: var(--ink-2);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-card);
  padding: 1.4rem 1.5rem;
}
.install-card .stamp {
  display: block;
  margin-bottom: 0.75rem;
}
.install-cmd {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.install-cmd code {
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  background: var(--ink);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  color: var(--parchment);
  word-break: break-all;
  overflow-x: auto;
}
.copy-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  flex-shrink: 0;
  transition: color 0.12s, border-color 0.12s;
}
.copy-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}
.copy-btn.is-copied {
  color: var(--moss);
  border-color: var(--moss);
}
.install-note {
  color: var(--text-muted);
  font-size: 12.5px;
  margin: 0;
}

.install-after {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1rem 1.5rem 2rem;
}

/* ---------- 7. Changelog + About prose ---------- */

.log {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
}
.log-entry {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.log-entry:last-child { border-bottom: 0; }
.log-entry .stamp {
  margin-bottom: 0.5rem;
}
.log-entry h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: -0.005em;
  margin: 0 0 0.7rem;
  color: var(--parchment);
}
.log-body {
  color: var(--text);
  line-height: 1.6;
}
.log-body p { margin: 0 0 0.85rem; }
.log-body a { color: var(--brass); }

.prose {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  color: var(--text);
  line-height: 1.65;
}
.prose h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: -0.005em;
  margin: 2.25rem 0 0.85rem;
  color: var(--parchment);
}
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 1rem; }
.prose ul {
  padding-left: 1.5rem;
  margin: 0 0 1rem;
}
.prose li { margin-bottom: 0.4rem; }
.prose a { color: var(--brass); }

/* ---------- 8. Closing CTA ---------- */

.closing {
  max-width: 720px;
  margin: 4rem auto 0;
  padding: 3rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--rule);
}
.closing h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  font-size: 2rem;
  margin: 0 0 0.5rem;
  color: var(--parchment);
}
.closing-lede {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 1.5rem;
}
.closing-cta { font-size: 14px; }

/* ---------- 9. FAQ ---------- */

.faq {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 2rem;
}
.faq-intro { margin-bottom: 1.5rem; }
.faq-intro h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  font-size: 1.5rem;
  margin: 0.5rem 0 0;
  color: var(--parchment);
}
.faq-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.faq-list dt {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--parchment);
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
}
.faq-list dt:last-of-type { border-bottom: 1px solid var(--rule); }
.faq-list dd {
  margin: 0;
  padding: 0 0 1rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ---------- 10. Responsive ---------- */

@media (max-width: 900px) {
  .site-nav { display: none; }
  .site-nav-cta .btn:not(.btn-primary) { display: none; }
}
@media (max-width: 720px) {
  .hero { padding: 3rem 1rem 2.5rem; }
  .hero-title { font-size: 2.4rem; }
  .surfaces,
  .features,
  .tiers,
  .install,
  .install-after { padding-left: 1rem; padding-right: 1rem; }
  .surface-grid { grid-template-columns: 1fr; }
  .tier-grid { grid-template-columns: 1fr; }
  .feature-list li {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1.25rem 0;
  }
  .site-foot-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .page-banner h1 { font-size: 1.9rem; }
}
/* ---------- 11. Answer-first / definition block ---------- */

/* The Definition section appears immediately after the hero on
   the homepage. Front-loading the answer is the single most
   consistent AI-citation lever in the geo-kb. */
.answer-first {
  max-width: 1080px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  border-top: 1px solid var(--rule);
}
.answer-first-inner {
  max-width: 760px;
  margin: 0 auto;
}
.answer-first h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  font-size: 1.65rem;
  letter-spacing: -0.005em;
  margin: 0.5rem 0 1rem;
  color: var(--parchment);
}
.answer-first-lede {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0;
}
.answer-first-lede strong {
  color: var(--parchment);
  font-weight: 500;
}

/* The hero CTA gets a "ghost" link variant — a third button that
   acts as a tertiary navigation cue without competing for the
   primary attention. */
.hero-ghost {
  border-color: transparent;
  color: var(--brass);
  background: transparent;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.hero-ghost:hover {
  border-color: transparent;
  color: #ddc188;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- 12. Deeper prose block (homepage) ---------- */

.deep {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  border-top: 1px solid var(--rule);
}
.deep-inner .stamp {
  margin-bottom: 0.75rem;
}
.deep h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  font-size: 1.65rem;
  letter-spacing: -0.005em;
  margin: 0 0 1rem;
  color: var(--parchment);
}
.deep p {
  color: var(--text);
  line-height: 1.7;
  margin: 0 0 1rem;
}
.deep p:last-child { margin-bottom: 0; }

/* ---------- 13. Currency bar (pricing) ---------- */

.currency-bar {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem 1rem;
}
.currency-bar-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}

/* ---------- 14. Services index & detail ---------- */

.services-list {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}
.services-list-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.service-card {
  background: var(--ink-2);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-card);
  padding: 1.75rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color 0.15s, transform 0.15s;
}
.service-card:hover { border-color: var(--brass); }
.service-card.is-coming-soon { opacity: 0.65; }
.service-card-head .stamp {
  margin-bottom: 0.5rem;
}
.service-card h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  font-size: 1.45rem;
  margin: 0 0 0.4rem;
  color: var(--parchment);
}
.service-card h3 a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.12s;
}
.service-card h3 a:hover { border-bottom-color: var(--brass); }
.service-card-tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  font-style: italic;
}
.service-card-summary {
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}
.service-card-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}
.service-card-bullets li {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  padding: 0.3rem 0 0.3rem 1rem;
  position: relative;
}
.service-card-bullets li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--brass);
  font-family: 'JetBrains Mono', monospace;
}
.service-card-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  flex-wrap: wrap;
}
.service-card-link {
  color: var(--brass);
  font-size: 13px;
  text-decoration: none;
}
.service-card-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Service detail page */
.service-detail {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}
.service-detail-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: start;
}
.service-detail-summary {
  position: sticky;
  top: 5rem;
  background: var(--ink-2);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-card);
  padding: 1.5rem;
}
.service-summary-lede {
  color: var(--text);
  line-height: 1.6;
  margin: 0 0 1rem;
}
.service-detail-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
}
.service-detail-bullets li {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  padding: 0.3rem 0 0.3rem 1rem;
  position: relative;
}
.service-detail-bullets li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--brass);
  font-family: 'JetBrains Mono', monospace;
}
.service-detail-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

/* ---------- 15. Blog index & post ---------- */

.blog-list {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}
.blog-list-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.blog-card {
  background: var(--ink-2);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-card);
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.15s;
}
.blog-card:hover { border-color: var(--brass); }
.blog-card-meta .stamp { margin: 0; }
.blog-card h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  font-size: 1.35rem;
  margin: 0;
  color: var(--parchment);
}
.blog-card h3 a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.12s;
}
.blog-card h3 a:hover { border-bottom-color: var(--brass); }
.blog-card p {
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
  font-size: 14px;
}
.blog-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
}
.blog-card-author {
  color: var(--text-dim);
  font-size: 12px;
}
.blog-card-tags,
.post-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  background: transparent;
  border: 1px solid var(--rule-strong);
  color: var(--text-muted);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius);
}

/* Individual blog post */
.post {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
.post-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.post-author .stamp { margin: 0; }
.post-body {
  margin-top: 1rem;
}
.post-body h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.005em;
  margin: 2.25rem 0 0.85rem;
  color: var(--parchment);
}
.post-body h2:first-child { margin-top: 0; }
.post-body p {
  margin: 0 0 1rem;
  line-height: 1.7;
}
.post-body ul,
.post-body ol {
  padding-left: 1.5rem;
  margin: 0 0 1rem;
  line-height: 1.7;
}
.post-body li { margin-bottom: 0.4rem; }
.post-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9em;
  background: var(--ink-2);
  border: 1px solid var(--rule);
  padding: 0.05rem 0.35rem;
  border-radius: var(--radius);
  color: var(--parchment);
}
.post-body pre {
  background: var(--ink-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 1rem 1.1rem;
  overflow-x: auto;
  margin: 0 0 1rem;
}
.post-body pre code {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 13px;
  color: var(--text);
}
.post-body blockquote {
  border-left: 2px solid var(--brass);
  margin: 0 0 1rem;
  padding: 0.25rem 0 0.25rem 1rem;
  color: var(--text-muted);
  font-style: italic;
}
.post-body hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2rem 0;
}
.post-body a {
  color: var(--brass);
  border-bottom: 1px solid transparent;
}
.post-body a:hover { border-bottom-color: var(--brass); }
.post-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
}
.prose-empty {
  color: var(--text-dim);
  font-style: italic;
  text-align: center;
  padding: 3rem 1rem;
}

/* ---------- 16. Freshness stamp ---------- */

.freshness {
  margin: 0 0 0.5rem;
}
.freshness .stamp { margin: 0; }

/* ---------- 17. Legal pages ---------- */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
}
.legal-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.legal-meta {
  color: var(--text-dim);
  font-style: italic;
  font-size: 12px;
  margin: 0 0 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}
.legal h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -0.005em;
  margin: 2rem 0 0.6rem;
  color: var(--parchment);
}
.legal h2:first-of-type { margin-top: 1rem; }
.legal p,
.legal ul,
.legal ol {
  color: var(--text);
  line-height: 1.7;
  margin: 0 0 0.85rem;
}
.legal ul,
.legal ol {
  padding-left: 1.5rem;
}
.legal li { margin-bottom: 0.4rem; }
.legal a {
  color: var(--brass);
  border-bottom: 1px solid transparent;
}
.legal a:hover { border-bottom-color: var(--brass); }
.legal code.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9em;
  background: var(--ink-2);
  border: 1px solid var(--rule);
  padding: 0.05rem 0.35rem;
  border-radius: var(--radius);
}

/* ---------- 18. Contact page ---------- */

.contact {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
.contact-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-aside h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  font-size: 1.15rem;
  margin: 0 0 0.85rem;
  color: var(--parchment);
}
.contact-aside h2:not(:first-child) { margin-top: 2rem; }
.contact-direct {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.contact-direct li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.contact-direct .stamp { margin: 0; }
.contact-direct a {
  color: var(--brass);
  text-decoration: none;
  font-size: 14px;
}
.contact-direct a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-aside p {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  font-size: 13.5px;
}
.contact-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background: var(--ink-2);
  padding: 1.75rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--rule-strong);
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.contact-form span {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  background: var(--ink);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  color: var(--parchment);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 0.6rem 0.75rem;
  transition: border-color 0.12s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brass);
}
.contact-form textarea {
  resize: vertical;
  font-family: 'Inter', sans-serif;
  line-height: 1.55;
  min-height: 8rem;
}
.contact-form button[type="submit"] {
  align-self: flex-start;
}
.flash {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--moss);
  background: rgba(90, 122, 94, 0.12);
  color: var(--moss);
  font-size: 14px;
}
.flash-ok { border-color: var(--moss); color: var(--moss); }

/* ---------- 19. Responsive additions for new pages ---------- */

@media (max-width: 900px) {
  .services-list-inner { grid-template-columns: 1fr; }
  .blog-list-inner { grid-template-columns: 1fr; }
  .service-detail-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .service-detail-summary { position: static; }
  .contact-inner { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 720px) {
  .site-foot-inner { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .answer-first h2,
  .deep h2 { font-size: 1.35rem; }
}