
:root {
  --bg: #0a1428;
  --bg-deeper: #050b1c;
  --bg-raised: #142240;
  --text: #f3ede0;
  --text-dim: #c8cfdf;
  --text-faint: #8e96ad;
  --gold: #d4a96a;
  --gold-bright: #e8c585;
  --gold-deep: #8b6a3e;
  --gold-glow: rgba(212, 169, 106, 0.15);
  --circuit: #1e3560;
  --rule: rgba(212, 169, 106, 0.25);
  --rule-dim: rgba(168, 176, 196, 0.15);
}

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Archivo', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
  line-height: 1.55;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

::selection {
  background: rgba(212, 169, 106, 0.35);
  color: var(--text);
}

/* Consistent focus states for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 1px;
}

.btn-primary:focus-visible,
.retailer-btn:focus-visible {
  outline-offset: 4px;
}

/* Subtle noise grain (replaces previous circuit pattern) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  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.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: overlay;
}

/* Top vignette with subtle gold radial */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 1200px 600px at 50% -10%, rgba(212, 169, 106, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 800px 400px at 20% 100%, rgba(30, 53, 96, 0.4) 0%, transparent 60%),
    linear-gradient(180deg, transparent 0%, rgba(5, 11, 28, 0.5) 100%);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 76rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) { .container { padding: 3rem 2.5rem 4rem; } }
@media (min-width: 1100px) { .container { padding: 3.5rem 4rem 5rem; } }

/* Masthead */
.masthead {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.75rem;
  font-family: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.masthead-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--rule) 0%, transparent 100%);
}

.masthead-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.masthead-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--gold-glow);
}

@media (min-width: 768px) { .masthead { margin-bottom: 3.75rem; font-size: 0.72rem; } }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr);
    gap: 4.5rem;
  }
}

/* Cover */
.cover-wrap {
  position: relative;
  max-width: 28rem;
  margin: 0 auto;
  width: 100%;
  animation: fadeIn 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@media (min-width: 900px) {
  .cover-wrap { margin: 0 0 0 auto; max-width: 100%; }
}

.cover-wrap::before {
  content: "";
  position: absolute;
  inset: -8% -12%;
  background: radial-gradient(ellipse at center, rgba(212, 169, 106, 0.18) 0%, transparent 65%);
  filter: blur(20px);
  z-index: 0;
  opacity: 0;
  animation: glowIn 2s 0.3s ease-out forwards;
}

.cover-wrap a {
  display: block;
  text-decoration: none;
  outline: none;
}

.cover-wrap a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 8px;
}

.cover {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
  cursor: pointer;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.25),
    0 8px 16px rgba(0, 0, 0, 0.3),
    0 24px 48px rgba(0, 0, 0, 0.35),
    0 48px 96px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(212, 169, 106, 0.1);
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-origin: center bottom;
}

.cover-wrap:hover .cover { transform: translateY(-6px); }

/* Hero content */
.hero-content {
  animation: riseIn 1.2s 0.15s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  position: relative;
}

.title {
  font-family: 'Anton', 'Oswald', 'Arial Narrow', sans-serif;
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 5.25rem);
  /* Single line always: line-height 1 makes the box equal the em box, so the
     margins below are predictable instead of fighting negative half-leading. */
  line-height: 1;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  /* Both gaps scale with the title itself, so big type gets more air, not less. */
  margin-top: max(1.35rem, 0.3em);
  margin-bottom: max(0.15rem, 0.035em);
  background: linear-gradient(175deg, #f4deaf 0%, #e8c585 25%, #c99a52 55%, #a6782f 85%, #d4a96a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 24px rgba(212, 169, 106, 0.18));
  animation: riseIn 1.1s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.title a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  background: linear-gradient(175deg, #f4deaf 0%, #e8c585 25%, #c99a52 55%, #a6782f 85%, #d4a96a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: filter 0.3s ease, background 0.3s ease;
}

.title a:hover {
  background: linear-gradient(175deg, #fff4d6 0%, #fde19a 30%, #f3c571 60%, #d4a96a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: brightness(1.2) drop-shadow(0 0 28px rgba(232, 197, 133, 0.65));
}

/* Insurance: never let the most important element on the page render invisible. */
@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
  .title, .title a, .title a:hover {
    background: none;
    -webkit-text-fill-color: var(--gold-bright);
    color: var(--gold-bright);
  }
}

.subtitle {
  font-family: 'Archivo', sans-serif;
  font-weight: 300;
  font-size: clamp(0.95rem, 1.9vw, 1.35rem);
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: clamp(2.25rem, 3.4vw, 3.25rem);
  max-width: 28ch;
}

.subtitle .dim { color: var(--text-dim); font-weight: 300; }

.hero-thesis {
  font-family: 'Archivo', sans-serif;
  font-weight: 500;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  line-height: 1.35;
  color: var(--text);
  max-width: 40rem;
  margin-bottom: 1.1rem;
  text-wrap: balance;
}

.hero-thesis em {
  font-style: normal;
  color: var(--gold);
  font-weight: 500;
}

.hero-thesis em a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
  padding-bottom: 1px;
}

.hero-thesis em a:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
}

.hero-statement {
  font-family: 'Archivo', sans-serif;
  font-weight: 400;
  font-size: clamp(0.95rem, 1.15vw, 1.02rem);
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 40rem;
  margin-bottom: 1.9rem;
  text-wrap: balance;
}

.hero-statement em {
  font-style: normal;
  color: var(--gold);
  font-weight: 500;
}

.hero-audience {
  font-family: 'Archivo', sans-serif;
  font-size: 0.94rem;
  font-weight: 400;
  color: var(--text-dim);
  max-width: 40rem;
  margin-bottom: 2.5rem;
  line-height: 1.55;
}

/* Byline */
.byline {
  margin-bottom: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule-dim);
}

.byline-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.55rem;
  display: block;
  font-weight: 500;
}

.byline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 0;
}

.byline-author {
  min-width: 0;
}

.byline-name {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--text);
}

.byline-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease, filter 0.3s ease;
}

.byline-name a:hover {
  color: var(--gold);
  filter: drop-shadow(0 0 28px rgba(232, 197, 133, 0.65));
}

.byline-affil {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 0.4rem;
  line-height: 1.5;
  font-weight: 400;
}

@media (max-width: 480px) {
  .byline-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
}

/* CTAs */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 1.75rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(180deg, #e8c585 0%, #d4a96a 55%, #b88845 100%);
  color: var(--bg);
  border: none;
  padding: 1.05rem 1.8rem;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  border-radius: 0;
  white-space: nowrap;
  position: relative;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 -1px 0 rgba(0, 0, 0, 0.15) inset,
    0 4px 20px rgba(212, 169, 106, 0.2);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 -1px 0 rgba(0, 0, 0, 0.15) inset,
    0 8px 32px rgba(212, 169, 106, 0.4);
}

.btn-primary:active { transform: translateY(0); }

.btn-primary .arrow {
  display: inline-block;
  transition: transform 0.25s ease;
  font-weight: 400;
}

.btn-primary:hover .arrow { transform: translateX(4px); }


.retailer-label-line {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 0;
  margin-bottom: 0.85rem;
  font-weight: 500;
}

.retailer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

/* Caption to the retailer list, not a free-floating paragraph. */
.format-note {
  margin-top: 0;
  font-size: 0.83rem;
  line-height: 1.6;
  color: var(--text-faint);
  max-width: 46rem;
}

.format-note a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.format-note a:hover { color: var(--gold-bright); border-bottom-color: var(--gold-bright); }

.retailer-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 0.95rem;
  font-family: 'Archivo', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--rule-dim);
  background: transparent;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.retailer-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 169, 106, 0.06);
  box-shadow: 0 4px 16px rgba(212, 169, 106, 0.12);
}

/* Pub metadata grid */
.pub-meta-strip {
  margin-top: 4rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule-dim);
  border-bottom: 1px solid var(--rule-dim);
  animation: riseIn 1.1s 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.pub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 1.5rem;
}

@media (min-width: 500px) { .pub-grid { grid-template-columns: repeat(4, 1fr); } }

.pub-cell .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.4rem;
  display: block;
  font-weight: 500;
}

.pub-cell .value {
  font-family: 'Archivo', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.pub-cell .value-accent {
  color: var(--gold);
}

/* SSRN Introduction callout */
.ssrn-section {
  padding: 4rem 0 0;
  animation: riseIn 1.2s 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.ssrn-callout {
  position: relative;
  padding: 2.25rem 1.75rem;
  background: linear-gradient(180deg, rgba(20, 34, 64, 0.5) 0%, rgba(20, 34, 64, 0.2) 100%);
  border: 1px solid var(--rule-dim);
  border-left: 2px solid var(--gold);
  max-width: 62rem;
}

@media (min-width: 600px) { .ssrn-callout { padding: 2.75rem 3rem; } }
@media (min-width: 900px) { .ssrn-callout { padding: 3rem 3.5rem; } }

.ssrn-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1.4rem;
}

.ssrn-pulse {
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(212, 169, 106, 0.55);
  animation: pulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(212, 169, 106, 0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(212, 169, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 169, 106, 0); }
}

.ssrn-title {
  font-family: 'Anton', 'Oswald', 'Arial Narrow', sans-serif;
  font-weight: 400;
  font-size: clamp(1.85rem, 3.8vw, 2.85rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.ssrn-title .accent {
  background: linear-gradient(180deg, #e8c585 0%, #d4a96a 60%, #b88845 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ssrn-desc {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.62;
  color: var(--text-dim);
  margin-bottom: 2rem;
  max-width: 64ch;
  font-weight: 400;
}

.ssrn-desc em {
  font-style: normal;
  color: var(--gold);
  font-weight: 500;
}

.ssrn-desc em a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
  padding-bottom: 1px;
}

.ssrn-desc em a:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
}

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

.ssrn-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
}

@media (max-width: 480px) {
  .ssrn-cta-row { flex-direction: column; align-items: stretch; gap: 1rem; }
  .ssrn-cta-row .btn-primary { justify-content: center; }
  .ssrn-meta { text-align: center; }
}

/* Thesis section */
.thesis-section {
  padding: 3.5rem 0 0;
  animation: riseIn 1.2s 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.section-title {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--text);
  margin-bottom: 2rem;
}

.section-title .accent {
  color: var(--gold);
  background: linear-gradient(180deg, #e8c585 0%, #d4a96a 60%, #b88845 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.thesis {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(1.1rem, 1.45vw, 1.25rem);
  line-height: 1.65;
  font-weight: 400;
  max-width: 62ch;
  color: var(--text);
}

.thesis-subhead {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.thesis-subhead:first-child { margin-top: 0; }

.thesis-coda {
  margin-top: 2.75rem !important;
  padding-top: 2rem;
  border-top: 1px solid var(--rule-dim);
}

.thesis p + p { margin-top: 1.25rem; }

.thesis em {
  font-style: normal;
  color: var(--gold);
  font-weight: 500;
}

.thesis em a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease, text-shadow 0.2s ease;
  padding-bottom: 1px;
}

.thesis p > a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: color 0.2s ease, border-color 0.2s ease;
  padding-bottom: 1px;
}

.thesis p > a:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--gold-bright);
}

.thesis em a:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
  text-shadow: 0 0 12px rgba(212, 169, 106, 0.4);
}

/* Thesis list with gold dash markers */
.thesis-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.thesis-list li {
  padding-left: 1.75rem;
  position: relative;
  margin-bottom: 0.85rem;
  font-family: 'Archivo', sans-serif;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--text);
}

.thesis-list li::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(180deg, #e8c585 0%, #d4a96a 60%, #b88845 100%);
  box-shadow: 0 0 8px rgba(212, 169, 106, 0.35);
}

/* Authors section */
.authors-section {
  padding: 3.5rem 0 0;
  animation: riseIn 1.2s 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.authors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 2.5rem;
}

@media (min-width: 800px) {
  .authors-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.author-name {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.author-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease, filter 0.3s ease;
}

.author-name a:hover {
  color: var(--gold);
  filter: drop-shadow(0 0 28px rgba(232, 197, 133, 0.65));
}

.author-affiliation {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.author-bio {
  font-family: 'Archivo', sans-serif;
  font-size: 1.02rem;
  line-height: 1.68;
  color: var(--text-dim);
  font-weight: 400;
  max-width: 52ch;
}

.lineage-note {
  margin-top: 3.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule-dim);
  font-family: 'Archivo', sans-serif;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-dim);
  font-weight: 400;
  max-width: 76ch;
}

.author-bio a,
.lineage-note a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-dim);
  transition: color 0.2s ease, border-color 0.2s ease;
  padding-bottom: 1px;
}

.author-bio a:hover,
.lineage-note a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Footer */
footer {
  margin-top: 6rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule-dim);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  font-family: 'Archivo', sans-serif;
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.65;
}

@media (min-width: 640px) {
  footer { grid-template-columns: 1fr 1fr; gap: 2.5rem 3rem; }
}

footer a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-dim);
  transition: color 0.2s ease, border-color 0.2s ease;
  padding-bottom: 1px;
}

footer a:hover { color: var(--gold); border-bottom-color: var(--gold); }

.footer-label {
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.62rem;
  color: var(--gold);
  display: block;
  margin-bottom: 0.7rem;
  font-weight: 500;
}


.copyright {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule-dim);
  grid-column: 1 / -1;
  text-transform: uppercase;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes glowIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (max-width: 480px) {
  .masthead { gap: 0.9rem; font-size: 0.62rem; }
  .cta-row { width: 100%; flex-direction: column; align-items: stretch; }
  .btn-primary { justify-content: center; white-space: normal; letter-spacing: 0.16em; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Contents, CRISPR-J, and candour sections */
.contents-section { padding: 3.5rem 0 0; }
.contents-lede { color: var(--text-dim); font-size: 1rem; margin: 1.4rem 0 2rem; }
.contents-lede a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--rule); }
.contents-lede a:hover { color: var(--gold-bright); }
.contents-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 820px) { .contents-grid { grid-template-columns: 1fr; } }
.contents-part { background: var(--bg-raised); border: 1px solid var(--rule-dim); padding: 1.3rem 1.4rem; }
.part-num { display: block; font-family: 'JetBrains Mono', monospace; font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.4rem; }
.contents-part-title { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 0.98rem; line-height: 1.35; margin-bottom: 0.9rem; color: var(--text); }
.contents-list { list-style: none; counter-reset: chap; margin: 0; padding: 0; }
.contents-list li { counter-increment: chap; position: relative; padding: 0.42rem 0 0.42rem 2rem; border-top: 1px solid var(--rule-dim); color: var(--text-dim); font-size: 0.9rem; }
.contents-list li::before { content: counter(chap, decimal-leading-zero); position: absolute; left: 0; top: 0.5rem; font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; color: var(--gold-deep); }
.contents-coda { margin-top: 1.6rem; color: var(--text-dim); font-size: 0.95rem; }
.contents-coda em { color: var(--gold); font-style: italic; }

.toc-note { margin-top: 1.6rem; padding-top: 1.1rem; border-top: 1px solid var(--rule-dim); color: var(--text-dim); font-size: 0.98rem; }
.toc-note strong { color: var(--gold); }


/* Availability chip */
.avail-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  border: 1px solid var(--rule);
  /* Right pad trimmed: 0.2em tracking already adds space after the last letter. */
  padding: 0.45rem 0.68rem 0.45rem 0.85rem;
  margin-bottom: 0;
}
.avail-chip .sep { color: var(--gold-deep); }
@media (max-width: 480px) { .avail-chip { font-size: 0.56rem; letter-spacing: 0.16em; } }

/* Docket: talks, press, and events */
.docket-section { padding: 3.5rem 0 0; }
.docket-lede { color: var(--text-dim); font-size: 1rem; margin: 1.4rem 0 2.2rem; max-width: 48rem; }
.docket-group + .docket-group { margin-top: 2.6rem; }
.docket-group-label { display: flex; align-items: baseline; gap: 0.8rem; font-family: 'JetBrains Mono', monospace; font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 0.9rem; }
.docket-group-label .count { color: var(--text-faint); letter-spacing: 0.12em; }
.docket-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-dim); }
.docket-row { display: grid; grid-template-columns: 8.75rem 1fr; gap: 0 1.25rem; align-items: baseline; padding: 0.68rem 0; border-bottom: 1px solid var(--rule-dim); }
@media (max-width: 640px) { .docket-row { grid-template-columns: 1fr; gap: 0.35rem 0; padding: 0.8rem 0; } }
.docket-date { font-family: 'JetBrains Mono', monospace; font-size: 0.69rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--gold-deep); white-space: nowrap; }
.docket-group.is-published .docket-date { color: var(--gold); }
.docket-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.7rem; }
.docket-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.55rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); border: 1px solid var(--rule-dim); padding: 0.1rem 0.38rem; white-space: nowrap; }
.docket-name { font-family: 'Archivo', sans-serif; font-weight: 600; font-size: 0.95rem; color: var(--text); }
.docket-name a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--rule); }
.docket-name a:hover { color: var(--gold-bright); border-bottom-color: var(--gold-bright); }
.docket-detail { font-size: 0.85rem; color: var(--text-dim); }
.docket-detail .tbc { font-family: 'JetBrains Mono', monospace; font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); }
.docket-note { margin-top: 1.7rem; padding-top: 1.1rem; border-top: 1px solid var(--rule-dim); color: var(--text-dim); font-size: 0.92rem; }
.docket-note a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--rule); }
.docket-note a:hover { color: var(--gold-bright); }

/* AI-agent banner */
.ai-banner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.55rem 2.6rem 0.55rem 1rem;
  background: var(--bg-deeper);
  border-bottom: 1px solid var(--rule);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-align: center;
}
.ai-banner a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--rule); }
.ai-banner a:hover { color: var(--gold-bright); border-bottom-color: var(--gold-bright); }
.ai-banner-close {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: var(--text-faint);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}
.ai-banner-close:hover { color: var(--gold); }
@media (max-width: 600px) { .ai-banner { font-size: 0.6rem; padding-right: 2.3rem; } }

/* ==========================================================
   Safety rails. An image must never exceed its container and
   must never force a grid column wider than its share, even if
   a component rule is missing or a stylesheet is served stale.
   ========================================================== */

img { max-width: 100%; height: auto; }

.kit-cell,
.media-card,
.onward-card,
.author,
.book-head-cover { min-width: 0; }


/* ==========================================================
   Multi-page additions: site navigation, page heads,
   homepage latest strip, media cards, press kit.
   All tokens inherited from the single-page design system.
   ========================================================== */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--gold);
  color: var(--bg-deeper);
  padding: 0.6rem 1rem;
  font-family: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* Sticky site navigation */
.sitenav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 11, 28, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule-dim);
}

.sitenav-inner {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas: "brand buy" "links links";
  align-items: center;
  gap: 0.65rem 1rem;
  justify-content: space-between;
}

.sitenav-brand {
  grid-area: brand;
  font-family: 'Anton', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  line-height: 1;
}
.sitenav-brand:hover { color: var(--gold-bright); }
.sitenav-brand .brand-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--gold-glow);
  flex: none;
}

.sitenav-links {
  grid-area: links;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.sitenav-link {
  font-family: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
  font-size: 0.63rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.sitenav-link:hover { color: var(--text-dim); border-bottom-color: var(--rule); }
.sitenav-link[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }

.sitenav-buy {
  grid-area: buy;
  font-family: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--bg-deeper);
  background: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.5rem 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, transform 0.18s ease;
}
.sitenav-buy:hover { background: var(--gold-bright); transform: translateY(-1px); }

@media (min-width: 760px) {
  .sitenav-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand links buy";
    padding: 0.85rem 2.5rem;
    gap: 2rem;
  }
  .sitenav-links { justify-content: center; gap: 1.9rem; }
  .sitenav-link { font-size: 0.67rem; }
  .sitenav-buy { font-size: 0.65rem; padding: 0.55rem 1.15rem; }
  .sitenav-brand { font-size: 1.15rem; }
}
@media (min-width: 1100px) { .sitenav-inner { padding: 0.85rem 4rem; } }

html { scroll-padding-top: 6.5rem; }

/* Interior page head */
.page-head {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule-dim);
}
.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.page-title {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  color: var(--text);
  margin-bottom: 1.1rem;
}
.page-title .accent { color: var(--gold); }
.page-lede {
  max-width: 52rem;
  color: var(--text-dim);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.68;
}
.page-lede a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--rule); }
.page-lede a:hover { color: var(--gold-bright); }

@media (min-width: 768px) { .page-head { margin-bottom: 4rem; } }

/* Homepage: latest media + next events */
.latest-section { margin-top: 4.5rem; }
.latest-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.75rem;
  margin-top: 2rem;
}
@media (min-width: 860px) { .latest-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }

.latest-col-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-family: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0.35rem;
}
.latest-col-label .count { color: var(--text-faint); letter-spacing: 0.1em; }

.latest-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-family: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.2rem;
}
.latest-more:hover { color: var(--gold-bright); border-bottom-color: var(--gold); }

/* Media page: coverage cards */
.media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (min-width: 700px) { .media-grid { grid-template-columns: 1fr 1fr; } }

.media-card {
  border: 1px solid var(--rule-dim);
  background: linear-gradient(180deg, rgba(20, 34, 64, 0.55) 0%, rgba(20, 34, 64, 0.2) 100%);
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.media-card:hover { border-color: var(--rule); transform: translateY(-2px); }
.media-card-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.media-card-type { color: var(--gold); }
.media-card-title { font-size: 1.15rem; font-weight: 600; line-height: 1.3; color: var(--text); }
.media-card-title a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--rule); }
.media-card-title a:hover { color: var(--gold-bright); }
.media-card-desc { color: var(--text-dim); font-size: 0.95rem; line-height: 1.6; }
.media-card-flag {
  align-self: flex-start;
  font-family: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  border: 1px solid var(--rule-dim);
  padding: 0.2rem 0.45rem;
}

/* Press kit */
.kit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule-dim);
  border: 1px solid var(--rule-dim);
  margin-top: 2rem;
}
@media (min-width: 620px) { .kit-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .kit-grid { grid-template-columns: repeat(3, 1fr); } }

.kit-cell {
  background: var(--bg);
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.kit-cell h3 {
  font-family: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.kit-cell p { color: var(--text-dim); font-size: 0.92rem; line-height: 1.62; }
.kit-cell a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--rule); }
.kit-cell a:hover { color: var(--gold-bright); }
.kit-cell .mono-val {
  font-family: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
  font-size: 0.82rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

/* Related work list */
.related-list { list-style: none; margin-top: 1.75rem; }
.related-list li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule-dim);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.3rem;
}
@media (min-width: 720px) {
  .related-list li { grid-template-columns: 6rem 1fr; gap: 0 1.5rem; align-items: baseline; }
}
.related-year {
  font-family: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--gold);
}
.related-title { font-size: 1.02rem; font-weight: 600; color: var(--text); }
.related-title a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--rule); }
.related-title a:hover { color: var(--gold-bright); }
.related-detail { color: var(--text-faint); font-size: 0.88rem; margin-top: 0.2rem; }

/* Cross-page footer navigation */
.page-onward {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule-dim);
  border-top: 1px solid var(--rule-dim);
  border-bottom: 1px solid var(--rule-dim);
  margin-top: 4.5rem;
}
@media (min-width: 700px) { .page-onward { grid-template-columns: repeat(3, 1fr); } }
.onward-card {
  background: var(--bg);
  padding: 1.4rem 1.5rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: background 0.2s ease;
}
.onward-card:hover { background: var(--bg-raised); }
.onward-label {
  font-family: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.onward-title { color: var(--text); font-weight: 600; font-size: 1rem; }
.onward-desc { color: var(--text-faint); font-size: 0.85rem; line-height: 1.5; }

/* Compact buy row for the homepage */
.buy-compact { margin-top: 1.5rem; }
.buy-all-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-family: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-dim);
  padding-bottom: 0.15rem;
}
.buy-all-link:hover { color: var(--gold); border-bottom-color: var(--rule); }

.section-lede {
  max-width: 52rem;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.68;
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
}
.section-lede a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--rule); }

@media (prefers-reduced-motion: reduce) {
  .sitenav-buy:hover, .media-card:hover { transform: none; }
}

/* ==========================================================
   Imagery: book cover on interior pages, author portraits,
   press-kit thumbnails.
   ========================================================== */

/* Book page head: cover alongside the title */
.book-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: center;
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule-dim);
}
@media (min-width: 780px) {
  .book-head {
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
    gap: 3.5rem;
    margin-bottom: 4rem;
  }
}
.book-head-cover { max-width: 15rem; margin: 0 auto; width: 100%; position: relative; }
@media (min-width: 780px) { .book-head-cover { margin: 0; } }
.book-head-cover a { display: block; text-decoration: none; }
.book-head-cover a:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
.book-head-cover img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule-dim);
  box-shadow: 0 2px 4px rgba(0,0,0,0.25), 0 12px 28px rgba(0,0,0,0.35);
  transition: transform 0.3s cubic-bezier(0.2,0.8,0.2,1);
}
.book-head-cover a:hover img { transform: translateY(-3px); }
.book-head .page-head { margin: 0; padding: 0; border: 0; }

/* Author portraits */
.author-portrait {
  display: block;
  width: 100%;
  height: auto;
  max-width: 15rem;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--rule-dim);
  margin-bottom: 1.5rem;
  filter: saturate(0.92);
  transition: filter 0.3s ease, border-color 0.3s ease;
}
.author:hover .author-portrait { filter: saturate(1); border-color: var(--rule); }

/* Press kit thumbnails */
.kit-thumb {
  display: block;
  width: 100%;
  max-width: 8rem;
  height: auto;
  border: 1px solid var(--rule-dim);
  margin-bottom: 0.35rem;
}
.kit-thumb-wide { max-width: 12rem; }

@media (prefers-reduced-motion: reduce) {
  .book-head-cover a:hover img { transform: none; }
}
