:root {
  --bg-primary: #0B0D10;
  --bg-surface: #14171B;
  --border-hairline: #22262C;
  --text-primary: #EDEFF2;
  --text-muted: #8B93A1;
  --confirmed: #34D399;
  --inferred: #F5B84E;
  --assumed: #EF6461;
  --opaque: #4B5563;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
a:focus-visible { outline: 2px solid var(--confirmed); outline-offset: 2px; }

.nav { position: sticky; top: 0; z-index: 50; background: rgba(11, 13, 16, 0.85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border-hairline); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.btn {
  display: inline-block; font-family: var(--font-mono); font-size: 14px;
  padding: 10px 18px; border-radius: 6px; border: 1px solid var(--border-hairline);
  transition: opacity .15s ease;
}
.btn:hover { opacity: .85; }
.btn-primary { background: var(--confirmed); color: var(--bg-primary); border-color: transparent; font-family: var(--font-body); font-weight: 500; border-radius: 4px; }

.term-page { max-width: 720px; margin: 0 auto; padding: 48px 24px 30px; }
.breadcrumb {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .08em;
  color: var(--text-muted); margin-bottom: 22px;
}
.breadcrumb a { color: var(--confirmed); }
.breadcrumb a:hover { text-decoration: underline; }
h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.1rem, 4.5vw, 3.2rem); line-height: 1.1; letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.pos { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); margin-bottom: 26px; }

.definition {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.6; color: var(--text-primary);
  border-left: 3px solid var(--confirmed); padding-left: 20px; margin-bottom: 34px;
}

.specimen {
  background: var(--bg-surface); border: 1px solid var(--border-hairline);
  border-radius: 14px; padding: 26px 18px 14px; margin-bottom: 10px;
}
.specimen figcaption {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-muted);
  text-align: center; padding: 10px 8px 6px; letter-spacing: .03em;
}
.spec-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; fill: #8B93A1; }
.spec-label-strong { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; fill: #EF6461; }
.spec-label-green { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; fill: #34D399; }

h2 {
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem;
  margin: 38px 0 12px;
}
.term-page p { margin-bottom: 14px; color: #C9CFD8; font-size: 16px; }
.term-page p em { color: var(--text-primary); }
.term-page p strong { color: var(--text-primary); }

.live-box {
  background: var(--bg-surface); border: 1px solid var(--border-hairline);
  border-radius: 12px; padding: 18px 22px; margin: 6px 0 10px;
}
.live-box p { margin-bottom: 8px; font-size: 14.5px; }
.live-box a { color: var(--confirmed); font-family: var(--font-mono); font-size: 13.5px; }
.live-box a:hover { text-decoration: underline; }

.related { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.related a {
  font-family: var(--font-mono); font-size: 13px; color: var(--confirmed);
  border: 1px solid var(--border-hairline); border-radius: 999px; padding: 6px 16px;
}
.related a:hover { border-color: var(--confirmed); }

.coinage {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em;
  color: var(--text-muted); border-top: 1px solid var(--border-hairline);
  margin-top: 40px; padding-top: 18px;
}

.cta-strip { text-align: center; padding: 30px 0 64px; }
.cta-strip .btn { margin: 0 8px 12px; }

.footer { border-top: 1px solid var(--border-hairline); padding: 28px 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.footer-tagline { font-size: 13px; color: var(--text-muted); font-style: italic; }

/* Index page */
.vocab-index { max-width: 900px; margin: 0 auto; padding: 48px 24px 30px; }
.vocab-index .lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-muted); max-width: 62ch; margin-bottom: 40px; }
.term-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 700px) { .term-grid { grid-template-columns: 1fr 1fr; } }
.term-card {
  display: block; background: var(--bg-surface); border: 1px solid var(--border-hairline);
  border-radius: 14px; padding: 24px; transition: border-color .15s ease;
}
.term-card:hover { border-color: var(--confirmed); }
.term-card .t { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin-bottom: 8px; }
.term-card .d { font-size: 14.5px; color: var(--text-muted); margin-bottom: 12px; }
.term-card .go { font-family: var(--font-mono); font-size: 12.5px; color: var(--confirmed); }
.cite-note {
  font-size: 13.5px; color: var(--text-muted); margin-top: 34px;
  border-top: 1px solid var(--border-hairline); padding-top: 20px;
}

/* Copy-citation button on term pages */
.cite-btn {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--confirmed);
  background: none;
  border: 1px solid var(--border-hairline);
  border-radius: 999px;
  padding: 6px 16px;
  cursor: pointer;
  margin-top: 28px;
  transition: border-color 0.15s ease;
}
.cite-btn:hover { border-color: var(--confirmed); }
