/* Shared CSS for stub / detail pages — same palette + typography as champagne home. */
:root {
  --bg:          #faf6ea;
  --bg-deep:     #f3ecd6;
  --ink:         #1f1b14;
  --ink-soft:    #4a4131;
  --muted:       #8a7d5e;
  --accent:      #a87f3e;
  --accent-soft: #ead9b0;
  --accent-deep: #7a5b27;
  --card:        #fcfaf3;
  --border:      #e8dec5;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --shadow-rest:  0 1px 3px rgba(58,42,12,0.04), 0 16px 40px rgba(58,42,12,0.05);
  --shadow-lift:  0 4px 14px rgba(58,42,12,0.07), 0 32px 64px rgba(58,42,12,0.08);
  --ease: cubic-bezier(.2,.7,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.3  0 0 0 0 0.24  0 0 0 0 0.12  0 0 0 0.65 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.35;
  mix-blend-mode: multiply;
}
nav, main, footer { position: relative; z-index: 2; }

/* topbar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(250,246,234,0.74);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1100px; margin: 0 auto; padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.back-link {
  font-size: 14px; color: var(--ink-soft); text-decoration: none;
  padding: 7px 14px; border-radius: 10px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.back-link:hover { color: var(--accent-deep); background: rgba(168,127,62,0.08); }

/* main */
main {
  flex: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 32px;
  width: 100%;
}
.page-kicker {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 18px;
}
h1 {
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 24px;
}
h1 em { font-style: italic; color: var(--accent-deep); font-weight: 800; }
.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 48px;
  max-width: 600px;
}
h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 56px 0 14px;
}
p { font-size: 16px; line-height: 1.65; color: var(--ink-soft); margin: 0 0 16px; max-width: 660px; }
p strong, ul strong { color: var(--ink); font-weight: 600; }

/* Content links inside <main>: champagne accent, not browser default purple.
   Topbar/footer link colors are scoped via .brand / .back-link / .footer-links. */
main a, .callout a, .module a, main p a, main li a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-color: var(--accent-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color .15s var(--ease), text-decoration-color .15s var(--ease);
}
main a:hover, .callout a:hover, .module a:hover {
  color: var(--ink);
  text-decoration-color: var(--accent);
}
main a:visited { color: var(--accent-deep); }
/* Module cards: the card IS the anchor (a.module). Strip underline so
   description text doesn't look like a link inside a link. */
a.module, a.module:hover, .module a, .module a:hover {
  text-decoration: none;
}
a.module:hover .name { color: var(--accent-deep); }
.module .name a, .module-card-title a { font-weight: 700; color: var(--ink); }
ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
ul li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}
ul li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute; left: 4px; top: 9px;
}
code, .mono {
  font-family: var(--mono);
  font-size: 14px;
  background: var(--bg-deep);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--accent-deep);
}
.callout {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 20px 24px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 28px 0;
}
.callout strong { color: var(--ink); }

/* coverage detail page modules */
.module-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0 40px;
}
@media (max-width: 560px) { .module-grid { grid-template-columns: 1fr; } }
.module {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.module:hover {
  transform: translateY(-2px);
  border-color: var(--accent-soft);
  box-shadow: var(--shadow-lift);
}
.module .name { font-weight: 700; color: var(--ink); margin: 0 0 4px; font-size: 15px; }
.module .desc { font-size: 13.5px; color: var(--ink-soft); margin: 0; line-height: 1.45; }

/* footer */
footer {
  padding: 28px 32px;
  border-top: 1px solid var(--border);
  background: rgba(250,246,234,0.5);
  backdrop-filter: blur(8px);
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; font-size: 13px; color: var(--muted);
}
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--ink-soft); text-decoration: none; transition: color .2s var(--ease); }
.footer-links a:hover { color: var(--accent-deep); }

@media (max-width: 640px) {
  .topbar-inner { padding: 14px 20px; }
  main { padding: 48px 20px; }
  footer { padding: 22px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}
