@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap");

:root {
  --bg: #0c0b0a;
  --bg-elevated: #141210;
  --fg: #f4f0ea;
  --muted: #a89f92;
  --accent: #d4a054;
  --accent-dim: #8a6a3a;
  --safe: #3ecf8e;
  --leak: #ff5c5c;
  --unsure: #f0c14b;
  --border: #2a2622;
  --card: #181614;
  --radius: 12px;
  --max: 46rem;
  font-size: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  min-height: 100vh;
  background-image: radial-gradient(
      ellipse 120% 80% at 50% -30%,
      rgba(212, 160, 84, 0.12),
      transparent 55%
    ),
    linear-gradient(180deg, var(--bg) 0%, #0a0908 100%);
}

a {
  color: var(--accent);
  text-decoration-color: var(--accent-dim);
  text-underline-offset: 3px;
}

a:hover {
  color: #e8b96a;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(12, 11, 10, 0.85);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: calc(var(--max) + 3rem);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--fg);
  cursor: pointer;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-toggle-icon {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor;
}

.brand {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--fg);
}

@media (max-width: 40rem) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    padding: 0.35rem 1.5rem 0.85rem;
    background: rgba(12, 11, 10, 0.98);
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  }

  .site-nav.nav-open .nav-links {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    border-top: 1px solid var(--border);
  }

  .nav-links li:first-child {
    border-top: none;
  }

  .nav-links a {
    display: block;
    padding: 0.7rem 0;
  }
}

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.hero {
  padding: 2.5rem 0 2rem;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 38ch;
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: #1a1208;
  font-weight: 600;
  text-decoration: none;
  border: none;
  font-size: 1rem;
}

.btn-primary:hover {
  background: #e8b96a;
  color: #1a1208;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--fg);
  text-decoration: none;
  font-size: 1rem;
}

.btn-ghost:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
}

.section {
  margin-top: 2.75rem;
}

.section h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  margin: 0 0 1rem;
  font-weight: 600;
}

.cards-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.tile h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.tile a.stretch {
  display: block;
  margin-top: 0.75rem;
  font-weight: 600;
  text-decoration: none;
}

.verdict-pills {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pill {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.pill:last-child {
  border-bottom: none;
}

.badge {
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 5.75rem;
  flex-shrink: 0;
}

.badge.safe {
  color: var(--safe);
}
.badge.leak {
  color: var(--leak);
}
.badge.unsure {
  color: var(--unsure);
}

.demo-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.demo-note {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0;
}

.story-cards {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.story-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
  min-height: 3rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.story-card:hover,
.story-card:focus-visible {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 1px var(--accent-dim);
  outline: none;
}

.verdict-panel {
  margin-top: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.verdict-badge {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.85rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.verdict-badge.safe {
  color: var(--safe);
}
.verdict-badge.leak {
  color: var(--leak);
}
.verdict-badge.unsure {
  color: var(--unsure);
}

.verdict-sentence {
  font-size: 1.05rem;
}

.btn {
  margin-top: 1rem;
  padding: 0.65rem 1rem;
  font-size: 1rem;
  min-height: 48px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}

.hidden {
  display: none;
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 2.5rem;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0.35rem 0;
}

/* Docs pages */
.doc-page h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
}

.doc-lede {
  color: var(--muted);
  margin-bottom: 2rem;
}

.doc-prose h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
}

.doc-prose h3 {
  font-size: 1rem;
  margin: 1.5rem 0 0.5rem;
}

.doc-prose p,
.doc-prose li {
  color: var(--muted);
}

.doc-prose li {
  margin-bottom: 0.35rem;
}

.doc-prose strong {
  color: var(--fg);
}

.code {
  background: #0a0908;
  border: 1px solid var(--border);
  padding: 1rem 1.15rem;
  overflow-x: auto;
  border-radius: var(--radius);
  font-size: 0.82rem;
  line-height: 1.45;
}

.code code {
  font-family: ui-monospace, "Cascadia Code", monospace;
  color: #e8dfd3;
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--fg);
  font-weight: 600;
}

td {
  color: var(--muted);
}

.callout {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1rem;
  background: var(--card);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.25rem 0;
  font-size: 0.95rem;
  color: var(--muted);
}