/* VOLTA TYPE — kinetic type foundry — FABLE 50 site 2 */
:root {
  --ink: #0A0A0A;
  --acid: #C6FF00;
  --gray: #8A8A8A;
  --paper: #F2F2F2;
  --hair: rgba(242, 242, 242, 0.16);
  --font-display: "Anybody", sans-serif;
  --font-mono: "Space Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-variation-settings: "wght" 420, "wdth" 100;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--acid); color: var(--ink); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--acid); border: 2px solid var(--ink); }
html { scrollbar-color: var(--acid) var(--ink); scrollbar-width: thin; }

.mono { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; }
.acid { color: var(--acid); }

.bolt {
  display: inline-block;
  width: 0.62em;
  height: 0.82em;
  vertical-align: -0.08em;
  fill: var(--acid);
}
.marquee-acid .bolt { fill: var(--ink); }
.btn-ghost .bolt { fill: currentColor; width: 0.7em; }

a { color: inherit; text-decoration: none; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid var(--hair);
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(10px);
}
.topbar-brand {
  font-variation-settings: "wght" 850, "wdth" 120;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.topbar-brand .acid { font-size: 0.85em; }
.topbar-nav { display: flex; gap: 1.4rem; margin-left: auto; }
.topbar-nav a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.2s;
}
.topbar-nav a:hover { color: var(--acid); }
.topbar-meta { color: var(--gray); }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6rem 1.5rem 2rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--gray);
  border-bottom: 1px solid var(--hair);
  padding-bottom: 0.8rem;
}
.wordmark {
  font-size: clamp(5rem, 23.5vw, 22rem);
  line-height: 0.82;
  text-align: center;
  user-select: none;
  cursor: crosshair;
  letter-spacing: -0.02em;
  margin: auto 0;
  color: var(--paper);
}
.wordmark span {
  display: inline-block;
  font-variation-settings: "wght" 500, "wdth" 100;
  will-change: font-variation-settings;
  transition: color 0.3s;
}
.wordmark:hover span { color: var(--acid); }
.wordmark .wm-acid { color: var(--acid); }
.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--hair);
  padding-top: 1rem;
}
.hero-tag {
  max-width: 34rem;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-variation-settings: "wght" 480, "wdth" 96;
  line-height: 1.35;
  color: var(--paper);
}
.hero-scroll { color: var(--gray); white-space: nowrap; }

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: 0.7rem 0;
  background: var(--ink);
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  will-change: transform;
}
.marquee-chunk {
  font-variation-settings: "wght" 780, "wdth" 130;
  font-size: clamp(1.3rem, 3vw, 2.4rem);
  letter-spacing: 0.01em;
  color: var(--paper);
  flex-shrink: 0;
}
.marquee-acid { background: var(--acid); border-color: var(--acid); }
.marquee-acid .marquee-chunk { color: var(--ink); }

/* ---------- sections ---------- */
.section { padding: 8rem 1.5rem 6rem; max-width: 1400px; margin: 0 auto; }
.section-tight { padding-bottom: 8rem; }
.section-head { margin-bottom: 4rem; border-bottom: 1px solid var(--hair); padding-bottom: 2rem; }
.section-no {
  display: inline-block;
  color: var(--ink);
  background: var(--acid);
  padding: 0.15rem 0.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(2.4rem, 6.5vw, 5.5rem);
  line-height: 0.95;
  font-variation-settings: "wght" 860, "wdth" 118;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.section-sub {
  margin-top: 1.2rem;
  max-width: 38rem;
  color: var(--gray);
  font-variation-settings: "wght" 420, "wdth" 96;
  font-size: 1rem;
}

/* ---------- specimens ---------- */
.specimen {
  border: 1px solid var(--hair);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: border-color 0.25s;
}
.specimen:hover { border-color: var(--acid); }
.specimen-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.specimen-name {
  font-size: 1.4rem;
  font-variation-settings: "wght" 800, "wdth" 125;
  letter-spacing: 0.02em;
  color: var(--acid);
  cursor: default;
}
.specimen-axes { display: flex; gap: 1.5rem; color: var(--gray); }
.specimen-sample {
  font-size: clamp(2.6rem, 8.6vw, 8.2rem);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 1.4rem;
  will-change: font-variation-settings;
  overflow-wrap: anywhere;
}
.sample-wire { font-size: clamp(3.2rem, 11.5vw, 11rem); line-height: 1; }
.specimen-line { color: var(--gray); margin-bottom: 1.4rem; }
.specimen-abc {
  border-top: 1px solid var(--hair);
  padding-top: 1rem;
  font-size: clamp(1.1rem, 2.4vw, 1.8rem);
  color: var(--paper);
  opacity: 0.85;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

/* ---------- glyph grid ---------- */
.glyph-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  border: 1px solid var(--hair);
}
.glyph-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  font-size: clamp(1.6rem, 4.2vw, 3.6rem);
  font-variation-settings: "wght" 400, "wdth" 100;
  will-change: font-variation-settings;
  color: var(--paper);
  transition: color 0.4s, background 0.4s;
}
.glyph-cell:nth-child(12n) { border-right: none; }
.glyph-cell:nth-last-child(-n+12) { border-bottom: none; }
.glyph-cell:hover { background: var(--acid); color: var(--ink); }

/* ---------- tester ---------- */
.tester { border: 1px solid var(--hair); display: grid; grid-template-columns: 1fr 320px; }
.tester-stage {
  padding: 3rem 2rem;
  display: flex;
  align-items: center;
  min-height: 380px;
  overflow: hidden;
  background: var(--ink);
  transition: background 0.3s, color 0.3s;
}
.tester-stage.inverted { background: var(--acid); }
.tester-stage.inverted .tester-text { color: var(--ink); }
.tester-text {
  width: 100%;
  font-size: 96px;
  line-height: 1.02;
  font-variation-settings: "wght" 560, "wdth" 112;
  letter-spacing: -0.02em;
  outline: none;
  overflow-wrap: anywhere;
  caret-color: var(--acid);
}
.tester-panel {
  border-left: 1px solid var(--hair);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}
.tester-control label {
  display: flex;
  justify-content: space-between;
  color: var(--gray);
  margin-bottom: 0.5rem;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: var(--hair);
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px; height: 16px;
  background: var(--acid);
  border: none;
  cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px;
  background: var(--acid);
  border: none; border-radius: 0;
  cursor: grab;
}
input[type="range"]:hover::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(198, 255, 0, 0.25); }
.tester-buttons { display: flex; gap: 0.8rem; }
.btn-ghost {
  flex: 1;
  background: none;
  border: 1px solid var(--hair);
  color: var(--paper);
  padding: 0.7rem 0.5rem;
  cursor: pointer;
  letter-spacing: 0.08em;
  transition: all 0.2s;
}
.btn-ghost:hover { border-color: var(--acid); color: var(--acid); }
.tester-css {
  margin-top: auto;
  border: 1px solid var(--hair);
  padding: 0.9rem;
  color: var(--acid);
  white-space: pre-wrap;
  font-size: 0.68rem;
}

/* ---------- license ---------- */
.license-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--paper);
}
.license-table th, .license-table td {
  border: 1px solid var(--hair);
  padding: 1rem 1.2rem;
  text-align: left;
  font-variation-settings: "wght" 450, "wdth" 98;
}
.license-table thead th {
  border-bottom: 1px solid var(--paper);
  color: var(--gray);
  text-transform: uppercase;
  vertical-align: top;
}
.license-table .price {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 3rem);
  font-variation-settings: "wght" 880, "wdth" 130;
  color: var(--paper);
  margin-top: 0.4rem;
  letter-spacing: 0;
}
.license-table tbody tr { transition: background 0.15s, color 0.15s; }
.license-table tbody tr:hover { background: var(--acid); color: var(--ink); }
.license-table tbody tr:hover .mono { color: var(--ink); }
.license-table td.mono { color: var(--gray); font-size: 0.8rem; }
.license-buy td { border-top: 1px solid var(--paper); }
.license-buy:hover { background: transparent !important; }
.buy-btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  border: 1px solid var(--paper);
  padding: 0.65rem 1.1rem;
  transition: all 0.2s;
}
.buy-btn:hover { background: var(--acid); border-color: var(--acid); color: var(--ink); }
.buy-hot { background: var(--acid); border-color: var(--acid); color: var(--ink); }
.buy-hot:hover { background: var(--paper); border-color: var(--paper); }
.license-note { margin-top: 1.5rem; color: var(--gray); }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--hair);
  padding: 4rem 1.5rem 2.5rem;
  overflow: hidden;
}
.footer-word {
  font-size: clamp(2.2rem, 8.6vw, 8.5rem);
  white-space: nowrap;
  line-height: 0.9;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px var(--gray);
  font-variation-settings: "wght" 900, "wdth" 140;
  user-select: none;
  margin-bottom: 3.5rem;
  transition: -webkit-text-stroke-color 0.4s;
}
.footer-word:hover { -webkit-text-stroke-color: var(--acid); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid var(--hair);
  padding-top: 2rem;
}
.footer-blurb { color: var(--gray); max-width: 26rem; font-variation-settings: "wght" 420, "wdth" 96; font-size: 0.95rem; }
.footer-links, .footer-meta { display: flex; flex-direction: column; gap: 0.7rem; color: var(--gray); }
.footer-links a:hover, .footer-meta a:hover { color: var(--acid); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .tester { grid-template-columns: 1fr; }
  .tester-panel { border-left: none; border-top: 1px solid var(--hair); }
  .tester-text { font-size: 56px; }
  .glyph-grid { grid-template-columns: repeat(6, 1fr); }
  .glyph-cell:nth-child(12n) { border-right: 1px solid var(--hair); }
  .glyph-cell:nth-child(6n) { border-right: none; }
  .glyph-cell:nth-last-child(-n+12) { border-bottom: 1px solid var(--hair); }
  .glyph-cell:nth-last-child(-n+6) { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-meta { display: none; }
}
@media (max-width: 600px) {
  .topbar { gap: 1rem; padding: 0.8rem 1rem; }
  .topbar-nav { gap: 0.9rem; }
  .hero { padding: 5.5rem 1rem 1.5rem; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .section { padding: 5rem 1rem 3.5rem; }
  .specimen { padding: 1.2rem; }
  .license-table th, .license-table td { padding: 0.6rem 0.5rem; font-size: 0.85rem; }
  .license-table .price { font-size: 1.3rem; }
  .buy-btn { padding: 0.5rem 0.6rem; font-size: 0.6rem; letter-spacing: 0.04em; }
  .tester-text { font-size: 40px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { transform: none !important; }
  * { transition-duration: 0.01ms !important; }
}
