/* ============================================================
   KLOW Order — Risograph Zine Aesthetic
   Ground: #161647 ink-navy | Four spot inks: magenta/cyan/yellow/green
   ============================================================ */

/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Space+Grotesk:wght@400;500;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* ---- Custom Properties ---- */
:root {
  --primary:            #E63E85;
  --primary-50:         #FBE3EE;
  --primary-700:        #C01E66;
  --primary-900:        #7A0E3F;
  --secondary:          #0078BF;
  --secondary-700:      #005A91;
  --accent:             #FFE800;
  --accent-green:       #00A95C;
  --ink-navy:           #1C1C5E;
  --ink-navy-panel:     #232369;
  --ground:             #161647;
  --ground-deep:        #0F0F33;
  --surface:            #1C1C5E;
  --surface-panel:      #232369;
  --neutral-50:         #F4F3FB;
  --neutral-100:        #E4E3F2;
  --neutral-200:        #C7C6E0;
  --neutral-300:        #9C9AC4;
  --neutral-500:        #6E6CA0;
  --neutral-700:        #3C3B78;
  --bg:                 #161647;
  --bg-alt:             #1C1C5E;
  --text:               #F4F3FB;
  --text-strong:        #FFFFFF;
  --text-muted:         #B9B7DC;
  --text-inverse:       #161647;
  --rule:               #3C3B78;
  --rule-strong:        #FFE800;
  --overprint-purple:   #7A2C8C;
  --overprint-teal:     #0A7A6E;
  --halftone-dot:       rgba(244, 243, 251, 0.10);

  --max-width:          74rem;
  --container-px:       clamp(1rem, 3vw, 2.5rem);
  --font-display:       'Archivo Black', 'Arial Black', 'Helvetica Neue', Impact, sans-serif;
  --font-body:          'Space Grotesk', 'Space Mono', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:          'IBM Plex Mono', 'Space Mono', 'SF Mono', Menlo, Consolas, monospace;

  --h1:                 clamp(2rem, 4.25vw, 3.25rem);
  --h1-display:         clamp(2.5rem, 6vw, 5rem);
  --h2:                 clamp(1.5rem, 3vw, 2.125rem);
  --h3:                 1.25rem;
  --h4:                 1.0625rem;
  --body:               1.0625rem;
  --body-lead:          1.1875rem;
  --small:              0.875rem;
  --eyebrow:            0.8125rem;
  --folio:              0.75rem;
  --radius:             0;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--ground);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: 1.7;
  min-height: 100vh;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

ul, ol {
  list-style: none;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 180ms ease-out;
}

a:hover {
  color: var(--accent);
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 0;
}

/* ---- Layout ---- */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.container--narrow {
  max-width: 64ch;
  margin-inline: auto;
  padding-inline: var(--container-px);
}

/* ---- Typography ---- */
h1, .h1 {
  font-family: var(--font-body);
  font-size: var(--h1);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--text-strong);
}

h2, .h2 {
  font-family: var(--font-body);
  font-size: var(--h2);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}

h3, .h3 {
  font-family: var(--font-body);
  font-size: var(--h3);
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-strong);
}

h4, .h4 {
  font-family: var(--font-body);
  font-size: var(--h4);
  font-weight: 500;
  color: var(--text-strong);
}

p {
  font-size: var(--body);
  line-height: 1.7;
  color: var(--text);
}

.lead {
  font-size: var(--body-lead);
  line-height: 1.6;
  font-weight: 400;
  color: var(--text-muted);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.eyebrow--display {
  font-family: var(--font-display);
  font-size: var(--h1-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text-strong);
  position: relative;
  display: inline-block;
}

/* Misregistration ghost on display headings */
.eyebrow--display::before {
  content: attr(data-text);
  position: absolute;
  top: 2px;
  left: 3px;
  color: var(--secondary);
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
  z-index: -1;
}

.folio {
  font-family: var(--font-mono);
  font-size: var(--folio);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--folio);
  font-weight: 500;
  letter-spacing: 0.06em;
}

small {
  font-size: var(--small);
  line-height: 1.5;
}

strong {
  font-weight: 700;
  color: var(--text-strong);
}

em {
  font-weight: 500;
  font-style: normal;
  color: var(--text-strong);
}

/* ---- Halftone grain overlay ---- */
.grain {
  position: relative;
}

.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(244,243,251,0.10) 1px, transparent 1px);
  background-size: 6px 6px;
  pointer-events: none;
  z-index: 0;
}

.grain > * {
  position: relative;
  z-index: 1;
}

/* ---- Section rule ---- */
.section-rule {
  position: relative;
  width: 100%;
  height: 5px;
  background: var(--accent);
  margin: 2.5rem 0;
}

.section-rule::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  opacity: 0.6;
}

/* ---- Header / Masthead ---- */
.site-header {
  background-color: var(--ground-deep);
  position: relative;
  border-bottom: 3px solid var(--accent);
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  opacity: 0.5;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  position: relative;
}

.site-brand::before {
  content: attr(data-text);
  position: absolute;
  top: 2px;
  left: 2px;
  color: var(--primary);
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
}

.brand-swatches {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.brand-swatch {
  width: 7px;
  height: 7px;
  display: inline-block;
}

.brand-swatch--magenta { background: var(--primary); }
.brand-swatch--cyan    { background: var(--secondary); }
.brand-swatch--yellow  { background: var(--accent); }
.brand-swatch--green   { background: var(--accent-green); }

.brand-folio {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ---- Navigation ---- */
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  list-style: none;
}

.site-nav a {
  font-family: var(--font-mono);
  font-size: var(--eyebrow);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 3px solid transparent;
  transition: color 180ms ease-out, border-color 180ms ease-out;
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: width 200ms ease-out;
}

.site-nav a:hover {
  color: var(--primary);
}

.site-nav a:hover::after {
  width: 100%;
}

.site-nav a.active {
  color: var(--text-strong);
  border-bottom-color: var(--accent);
}

.site-nav a.active::after {
  width: 100%;
}

.nav-hamburger {
  display: none;
  background: none;
  border: 2px solid var(--neutral-500);
  color: var(--text);
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- Hero ---- */
.page-hero {
  background-color: var(--ground);
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(244,243,251,0.06) 1px, transparent 1px);
  background-size: 8px 8px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.hero-display {
  font-family: var(--font-display);
  font-size: var(--h1-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text-strong);
  position: relative;
  display: inline-block;
  margin-bottom: 1.25rem;
}

.hero-display::before {
  content: attr(data-text);
  position: absolute;
  top: 2px;
  left: 3px;
  color: var(--secondary);
  opacity: 0.4;
  pointer-events: none;
  user-select: none;
  z-index: -1;
}

.hero-h1 {
  font-family: var(--font-body);
  font-size: var(--h1);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--text-strong);
  max-width: 46ch;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: var(--body-lead);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 58ch;
  margin-bottom: 2rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-image-col {
  display: none;
}

.hero-image-col img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-folio {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-align: right;
}

/* Page-level hero (non-index) */
.page-hero--inner {
  padding: 2.5rem 0 2rem;
}

.page-hero--inner .hero-display {
  font-size: clamp(1.75rem, 4vw, 3.25rem);
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.875rem 1.625rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
  position: relative;
  transition: background-color 180ms ease-out, color 180ms ease-out;
  border-radius: 0;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
}

/* Misregistration ghost */
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--secondary);
  transform: translate(3px, 3px);
  pointer-events: none;
  transition: transform 180ms ease-out;
}

.btn-primary:hover {
  background-color: var(--primary-700);
  color: #fff;
}

.btn-primary:hover::before {
  transform: translate(4px, 4px);
}

.btn-primary:active::before {
  transform: translate(0, 0);
}

.btn-primary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background-color: rgba(255, 232, 0, 0.12);
  color: var(--accent);
}

.btn-secondary:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.btn-ghost {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 0.25rem 0;
  border-bottom: 2px solid var(--primary);
  cursor: pointer;
  transition: border-width 180ms ease-out, color 180ms ease-out;
}

.btn-ghost:hover {
  border-bottom-width: 3px;
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---- Main content ---- */
main {
  padding: 3rem 0 4rem;
}

/* ---- Article body ---- */
.article-body h2 {
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.article-body h2::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 0.35em;
  background: var(--primary);
}

.article-body h2.ink-cyan::before    { background: var(--secondary); }
.article-body h2.ink-yellow::before  { background: var(--accent); }
.article-body h2.ink-green::before   { background: var(--accent-green); }
.article-body h2.ink-purple::before  { background: var(--overprint-purple); }

.article-body h3 {
  margin-top: 2rem;
  margin-bottom: 0.875rem;
}

.article-body p {
  margin-bottom: 1.25rem;
  max-width: 72ch;
}

.article-body ul,
.article-body ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  max-width: 72ch;
}

.article-body li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.article-body strong {
  font-weight: 700;
  color: var(--text-strong);
}

/* Citations */
.cite-link {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  vertical-align: super;
  line-height: 0;
  padding: 0 0.05em;
  transition: color 180ms ease-out;
}

.cite-link:hover {
  color: var(--accent);
}

/* ---- Callout blocks ---- */
.callout {
  background: var(--ink-navy-panel);
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  position: relative;
}

.callout::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 60px;
  background-image: radial-gradient(circle, rgba(230,62,133,0.12) 1px, transparent 1px);
  background-size: 5px 5px;
  pointer-events: none;
}

.callout--cyan    { border-left-color: var(--secondary); }
.callout--yellow  { border-left-color: var(--accent); }
.callout--green   { border-left-color: var(--accent-green); }
.callout--purple  { border-left-color: var(--overprint-purple); }

.callout__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.625rem;
}

.callout--cyan    .callout__eyebrow  { color: var(--secondary); }
.callout--yellow  .callout__eyebrow  { color: var(--accent); }
.callout--green   .callout__eyebrow  { color: var(--accent-green); }
.callout--purple  .callout__eyebrow  { color: var(--overprint-purple); }

.callout p {
  font-size: var(--body);
  color: var(--text);
  margin: 0;
  max-width: none;
}

/* ---- Component band (index page) ---- */
.component-band {
  background: var(--ground-deep);
  padding: 3rem 0;
  position: relative;
}

.component-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(244,243,251,0.05) 1px, transparent 1px);
  background-size: 7px 7px;
  pointer-events: none;
}

.component-band .container {
  position: relative;
  z-index: 1;
}

.band-eyebrow {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-strong);
  margin-bottom: 2rem;
}

.component-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.component-card {
  background: var(--ink-navy-panel);
  border: 2px solid var(--ink-navy);
  padding: 0;
  overflow: hidden;
  position: relative;
}

.component-card:hover .component-card__top-bar {
  opacity: 0.85;
}

.component-card__top-bar {
  height: 4px;
  width: 100%;
  background: var(--primary);
  transition: opacity 180ms ease-out;
}

.component-card--bpc157  .component-card__top-bar { background: var(--primary); }
.component-card--tb500   .component-card__top-bar { background: var(--secondary); }
.component-card--ghkcu   .component-card__top-bar { background: var(--accent); }
.component-card--kpv     .component-card__top-bar { background: var(--accent-green); }

.component-card__body {
  padding: 1.25rem 1.5rem;
  position: relative;
}

.component-card__dot-bleed {
  position: absolute;
  top: 0;
  right: 0;
  width: 70px;
  height: 70px;
  pointer-events: none;
  opacity: 0.12;
}

.component-card__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.component-card--bpc157  .component-card__label { color: var(--primary); }
.component-card--tb500   .component-card__label { color: var(--secondary); }
.component-card--ghkcu   .component-card__label { color: var(--accent); }
.component-card--kpv     .component-card__label { color: var(--accent-green); }

.component-card__name {
  font-family: var(--font-body);
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 0.375rem;
}

.component-card__mass {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 0.875rem;
}

.component-card__desc {
  font-size: var(--small);
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 1rem;
}

.component-card__link {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  text-decoration: none;
}

.component-card__link:hover {
  color: var(--accent);
}

/* Overprint card */
.overprint-card {
  background: var(--overprint-purple);
  padding: 1.5rem;
  position: relative;
  margin-top: 1.25rem;
}

.overprint-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(244,243,251,0.08) 1px, transparent 1px);
  background-size: 6px 6px;
  pointer-events: none;
}

.overprint-card__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244,243,251,0.75);
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.overprint-card p {
  font-size: var(--small);
  color: var(--text-strong);
  max-width: none;
  position: relative;
  z-index: 1;
  margin: 0;
}

/* ---- Evidence chip ---- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 2px solid var(--accent-green);
  padding: 0.2rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-green);
  background: transparent;
}

.chip--human        { border-color: var(--accent-green); color: var(--accent-green); }
.chip--preclinical  { border-color: var(--accent); color: var(--accent); }
.chip--no-data      { border-color: var(--primary); color: var(--primary); }

.chip__dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  background: currentColor;
  flex-shrink: 0;
}

/* ---- Tables ---- */
.zine-table-wrap {
  margin: 2rem 0;
  overflow-x: auto;
}

.zine-table-caption {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.zine-table {
  width: 100%;
  border-collapse: collapse;
  border: 2px solid var(--ink-navy);
  font-size: var(--small);
}

.zine-table thead tr {
  border-top: 3px solid var(--accent);
  position: relative;
}

.zine-table thead tr::after {
  content: '';
  position: absolute;
  top: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  opacity: 0.6;
}

.zine-table th {
  background: var(--ink-navy-panel);
  padding: 0.75rem 1rem;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-strong);
}

.zine-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--ink-navy);
  color: var(--text);
  vertical-align: top;
  line-height: 1.5;
}

.zine-table tr:hover td {
  background: var(--ink-navy-panel);
}

/* ---- FAQ ---- */
.faq-section {
  margin-bottom: 3rem;
}

.faq-section-heading {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--neutral-700);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

.faq-item {
  border-bottom: 1px solid var(--neutral-700);
  padding: 1.25rem 0;
}

.faq-item__q {
  font-family: var(--font-body);
  font-size: var(--body);
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.faq-item__a {
  font-size: var(--body);
  color: var(--text);
  line-height: 1.7;
  max-width: 72ch;
}

.faq-item__a p {
  margin: 0;
  max-width: none;
}

/* ---- References page ---- */
.references-list {
  list-style: none;
  padding: 0;
}

.references-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--neutral-700);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.ref-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 2rem;
  padding-top: 0.125rem;
}

.ref-body {
  flex: 1;
  font-size: var(--small);
  line-height: 1.6;
  color: var(--text);
}

.ref-link {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--secondary);
  margin-left: 0.5rem;
}

.ref-link:hover {
  color: var(--accent);
}

.ref-ink-chip {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.ref-ink-chip--bpc157  { background: var(--primary); }
.ref-ink-chip--tb500   { background: var(--secondary); }
.ref-ink-chip--ghkcu   { background: var(--accent); }
.ref-ink-chip--kpv     { background: var(--accent-green); }
.ref-ink-chip--combo   { background: var(--overprint-purple); }

/* DataTables overrides */
.dataTables_wrapper {
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--small);
}

.dataTables_filter input {
  background: var(--ink-navy-panel);
  border: 2px solid var(--ink-navy);
  color: var(--text-strong);
  padding: 0.4rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  transition: border-color 180ms ease-out;
}

.dataTables_filter input:focus {
  border-color: var(--primary);
  outline: none;
}

.dataTables_length select {
  background: var(--ink-navy-panel);
  border: 2px solid var(--ink-navy);
  color: var(--text-strong);
  padding: 0.3rem 0.5rem;
}

.dataTables_info {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
}

.dataTables_paginate .paginate_button {
  background: transparent;
  border: 2px solid var(--accent) !important;
  color: var(--accent) !important;
  padding: 0.35rem 0.75rem;
  margin: 0 0.2rem;
  cursor: pointer;
}

.dataTables_paginate .paginate_button.current,
.dataTables_paginate .paginate_button:hover {
  background: rgba(255,232,0,0.12) !important;
  color: var(--accent) !important;
}

table.dataTable thead th {
  cursor: pointer;
}

table.dataTable thead th.sorting:hover,
table.dataTable thead th.sorting_asc,
table.dataTable thead th.sorting_desc {
  color: var(--accent);
}

/* ---- Figure / Images ---- */
.page-figure {
  margin: 2.5rem 0;
}

.page-figure img {
  width: 100%;
  height: auto;
}

.page-figure figcaption {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-top: 0.625rem;
}

/* Divider figure */
.divider-figure {
  margin: 2rem 0;
  overflow: hidden;
}

.divider-figure img {
  width: 100%;
  height: 64px;
  object-fit: cover;
  object-position: center;
}

/* ---- Pull quote ---- */
.pull-quote {
  background: var(--ink-navy-panel);
  padding: 1.5rem;
  margin: 2rem 0;
  border: none;
  position: relative;
}

.pull-quote::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--secondary);
  opacity: 0.7;
}

.pull-quote::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--primary);
  opacity: 0.5;
}

.pull-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-strong);
  max-width: none;
  margin: 0;
}

/* ---- Contact form ---- */
.contact-form {
  max-width: 640px;
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  display: block;
  width: 100%;
  background: var(--ink-navy-panel);
  border: 2px solid var(--ink-navy);
  color: var(--text-strong);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: 1.5;
  transition: border-color 180ms ease-out;
  border-radius: 0;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary);
  outline: none;
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 0.375rem;
}

/* ---- Footer ---- */
.site-footer {
  background-color: var(--ground-deep);
  padding: 3rem 0 2rem;
  position: relative;
  border-top: 3px solid var(--accent);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  opacity: 0.5;
}

.site-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(244,243,251,0.04) 1px, transparent 1px);
  background-size: 8px 8px;
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
}

.footer-disclaimer {
  font-family: var(--font-body);
  font-size: var(--small);
  color: var(--text-muted);
  max-width: 64ch;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--neutral-700);
}

.footer-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col-heading {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-col-heading::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--primary);
  flex-shrink: 0;
}

.footer-col:nth-child(2) .footer-col-heading::before { background: var(--secondary); }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease-out;
}

.footer-links a:hover {
  color: var(--text-strong);
}

.footer-colophon {
  border-top: 3px solid var(--accent);
  padding-top: 1.25rem;
  position: relative;
}

.footer-colophon::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  opacity: 0.4;
}

.colophon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.colophon-swatches {
  display: flex;
  gap: 3px;
  align-items: center;
}

.colophon-swatch {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.colophon-swatch__dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  flex-shrink: 0;
}

.footer-copyright {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ---- 404 page ---- */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 4rem 0;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 1;
  color: var(--primary);
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.error-code::before {
  content: attr(data-text);
  position: absolute;
  top: 3px;
  left: 4px;
  color: var(--secondary);
  opacity: 0.4;
  pointer-events: none;
}

/* ---- About page ---- */
.about-content p {
  max-width: 72ch;
  margin-bottom: 1.25rem;
}

/* ---- Ink swatch inline ---- */
.ink-swatch-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ink-swatch-inline__block {
  width: 10px;
  height: 10px;
  display: inline-block;
  position: relative;
}

.ink-swatch-inline__block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: currentColor;
}

.ink-swatch-inline__block::after {
  content: '';
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0.5;
  transform: translate(1px, 1px);
}

/* ---- Responsive ---- */
@media (min-width: 640px) {
  .component-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .site-header .container {
    flex-wrap: nowrap;
  }

  .hero-inner {
    grid-template-columns: 7fr 5fr;
    align-items: center;
  }

  .hero-image-col {
    display: block;
    position: relative;
  }

  .component-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .page-hero {
    padding: 4.5rem 0 3.5rem;
  }

  .footer-columns {
    grid-template-columns: 2fr 1fr;
  }
}

/* ---- Mobile nav ---- */
@media (max-width: 767px) {
  .nav-hamburger {
    display: block;
  }

  .site-nav {
    display: none;
    width: 100%;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.75rem 0;
  }

  .site-nav li {
    border-bottom: 1px solid var(--neutral-700);
  }

  .site-nav a {
    display: block;
    padding: 0.625rem 0;
  }

  .site-header .container {
    flex-wrap: wrap;
  }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ---- Tippy.js theme overrides ---- */
.tippy-box[data-theme~='klow-zine'] {
  background: var(--ink-navy-panel);
  border: 2px solid var(--ink-navy);
  border-radius: 0;
  max-width: 360px;
}

.tippy-box[data-theme~='klow-zine'] .tippy-content {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text);
  padding: 0.875rem 1rem;
  line-height: 1.5;
}

.tippy-box[data-theme~='klow-zine'] .tippy-arrow {
  color: var(--ink-navy-panel);
}

.citation-tooltip-title {
  font-weight: 700;
  color: var(--text-strong);
  display: block;
  margin-bottom: 0.25rem;
}

.citation-tooltip-doi {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.375rem;
  word-break: break-all;
}

/* Ink top border on tooltips per component */
.tippy-box[data-component~='BPC-157']  { border-top: 2px solid var(--primary); }
.tippy-box[data-component~='TB-500']   { border-top: 2px solid var(--secondary); }
.tippy-box[data-component~='GHK-Cu']   { border-top: 2px solid var(--accent); }
.tippy-box[data-component~='KPV']      { border-top: 2px solid var(--accent-green); }
.tippy-box[data-component~='COMBINATION'] { border-top: 2px solid var(--overprint-purple); }

/* ---- Page section wrappers ---- */
.page-section {
  padding: 3rem 0;
}

.page-section--no-top {
  padding-top: 0;
}

.page-article {
  padding: 3rem 0;
}

.about-content-wrap {
  margin-top: 2.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 72rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-do-list {
  list-style: disc;
  padding-left: 1.5rem;
  color: var(--text);
  line-height: 1.7;
}

.contact-dont-list {
  list-style: disc;
  padding-left: 1.5rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.contact-dont-list li {
  margin-bottom: 0.375rem;
}

.contact-do-list li {
  margin-bottom: 0.375rem;
}

.h2-mt {
  margin-top: 2rem;
}

.callout-mt {
  margin-top: 2rem;
}

.table-mt {
  margin-top: 2.5rem;
}

.dt-full {
  width: 100%;
}

/* 404 specific */
.error-h1 {
  font-size: var(--h2);
  margin-bottom: 1rem;
  color: var(--text-strong);
}

.error-colophon {
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Colophon color swatches — static data, not style= */
.colophon-swatch__dot--magenta { background: #E63E85; }
.colophon-swatch__dot--cyan    { background: #0078BF; }
.colophon-swatch__dot--yellow  { background: #FFE800; }
.colophon-swatch__dot--green   { background: #00A95C; }

/* About page */
.pull-quote__lead {
  margin-bottom: 2rem;
}

/* ---- Utility ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
