:root {
  --ink: #0a0a0a;
  --paper: #f3f0df;
  --orange: #ff5c00;
  --yellow: #ffd500;
  --gray: #b9b8b0;
  --line: 2px solid var(--ink);
  --shaft-saturation: 1.15;
  --shaft-contrast: 1.1;
  --shaft-glow: 8px;
  --shaft-speed: 14.4s;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background:
    linear-gradient(rgba(10, 10, 10, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 10, 10, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  font-size: 16px;
  line-height: 1.55;
}

body::after {
  content: "";
  position: fixed;
  z-index: 90;
  inset: 0;
  border: 0 solid var(--orange);
  opacity: 0;
  pointer-events: none;
  transition: border-width .2s ease, opacity .2s ease;
}

button, input, a { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: -5rem;
  padding: .8rem 1rem;
  background: var(--yellow);
  border: var(--line);
  font-weight: 900;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  border-bottom: var(--line);
  background: var(--paper);
}

.brand, .site-header nav { display: flex; align-items: center; gap: .8rem; }
.brand { font-weight: 950; text-decoration: none; letter-spacing: -.03em; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.3rem;
  aspect-ratio: 1;
  border: var(--line);
  background: var(--orange);
  color: white;
  font: 950 .82rem/1 Arial, sans-serif;
  box-shadow: 3px 3px 0 var(--ink);
}
.site-header nav a { font-size: .9rem; font-weight: 800; text-underline-offset: .3rem; }
.site-header > .button { justify-self: end; }

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
  padding: clamp(3rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem);
  overflow: hidden;
  background: var(--orange);
  border-bottom: var(--line);
  transition: background-color .3s ease;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: .76rem;
  line-height: 1.2;
  font-weight: 950;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1, h2, h3, blockquote {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.035em;
  line-height: .88;
}

h1 { font-size: clamp(4.8rem, 11vw, 10rem); }
h1 span { display: block; }
h1 span:last-child {
  color: var(--paper);
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 5px 5px 0 var(--ink);
}

.hero-intro { max-width: 33rem; margin: 2rem 0; font-size: clamp(1.1rem, 1.8vw, 1.45rem); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: .8rem 1.15rem;
  border: var(--line);
  border-radius: 0;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 5px 5px 0 var(--ink);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.button:hover { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.button:active { transform: translate(5px, 5px); box-shadow: none; }
.button-small { min-height: 2.6rem; padding: .55rem .85rem; font-size: .78rem; }
.button-light { background: var(--paper); }
.button-dark { background: var(--ink); color: white; box-shadow: 4px 4px 0 var(--orange); }
.button-dark:hover { box-shadow: 1px 1px 0 var(--orange); }

.nsfw-badge { display: inline-flex; align-items: center; gap: .55rem; padding: .5rem; border: 1px dashed var(--ink); transform: rotate(-2deg); }
.nsfw-badge b { font-size: 1.05rem; }
.nsfw-badge small { max-width: 5rem; font-size: .62rem; line-height: 1.05; text-transform: uppercase; }

.hero-image {
  --hero-rotation: 1.25deg;
  position: relative;
  margin: 0;
  padding: 1rem;
  border: 3px solid var(--ink);
  background: var(--paper);
  box-shadow: 16px 16px 0 var(--ink);
  transform: rotate(var(--hero-rotation));
}
.hero-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: saturate(var(--shaft-saturation)) contrast(var(--shaft-contrast)); border: var(--line); transition: filter .25s ease; }
.hero-image figcaption, .registration-marks { display: flex; justify-content: space-between; gap: 1rem; font-size: .7rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.registration-marks { margin-bottom: .65rem; }
.hero-image figcaption { margin-top: .75rem; }

.ticker { overflow: hidden; border-bottom: var(--line); background: var(--yellow); }
.ticker div { width: max-content; display: flex; align-items: center; gap: 1.3rem; padding: .62rem 0; font-weight: 950; font-size: .83rem; letter-spacing: .1em; animation: crawl var(--shaft-speed) linear infinite; }
.ticker i { font-style: normal; }
@keyframes crawl { to { transform: translateX(-50%); } }

.archive { padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 5vw, 5rem); }
.section-heading {
  display: grid;
  grid-template-columns: 1.5fr .5fr;
  gap: 2rem;
  align-items: end;
  padding-bottom: 2rem;
  border-bottom: var(--line);
}
h2 { font-size: clamp(3.6rem, 8vw, 7.4rem); }
.section-note { max-width: 27rem; margin: 0 0 .35rem auto; font-weight: 700; }

.shaft-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: var(--line); }
.shaft-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, .75fr);
  min-height: 30rem;
  border-right: var(--line);
  border-bottom: var(--line);
  background: var(--paper);
  scroll-margin-top: 1rem;
}
.shaft-card.feature-card { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .7fr); background: var(--yellow); }
.card-number { position: absolute; z-index: 2; top: .65rem; left: .65rem; padding: .25rem .55rem; background: var(--yellow); border: var(--line); font-weight: 950; box-shadow: 3px 3px 0 var(--ink); }
.feature-card .card-number { background: var(--orange); color: white; }

.image-shell { position: relative; min-height: 20rem; overflow: hidden; background: var(--ink); border-right: var(--line); }
.image-shell img { width: 100%; height: 100%; object-fit: cover; filter: saturate(var(--shaft-saturation)) contrast(var(--shaft-contrast)); transition: opacity .18s ease, transform .35s ease, filter .25s ease; }
.shaft-card:hover .image-shell img { transform: scale(1.025); }
.view-switch {
  position: absolute;
  right: .75rem;
  bottom: .75rem;
  padding: .45rem .65rem;
  border: var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
}

.card-copy { display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(1.2rem, 3vw, 2.25rem); }
.card-copy h3 { font-size: clamp(2.1rem, 4vw, 4rem); }
.card-copy > p { font-weight: 650; }
.card-copy dl { margin: auto 0 1.25rem; border-top: 1px solid var(--ink); }
.card-copy dl div { display: grid; grid-template-columns: .8fr 1.2fr; gap: .5rem; padding: .55rem 0; border-bottom: 1px solid var(--ink); font-size: .78rem; }
.card-copy dt { font-weight: 900; text-transform: uppercase; }
.card-copy dd { margin: 0; text-align: right; }
.text-button { align-self: flex-start; padding: .35rem 0; border: 0; border-bottom: 2px solid; background: transparent; font-weight: 950; cursor: pointer; }
.warning-label { align-self: flex-start; margin-bottom: .8rem; padding: .25rem .45rem; background: var(--ink); color: white; font-size: .68rem; font-weight: 900; text-transform: uppercase; }
.shaft-card.is-selected { animation: selected .8s ease 2; }
@keyframes selected { 50% { background: var(--orange); } }

.lab {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(2rem, 7vw, 8rem);
  align-items: center;
  padding: clamp(4rem, 9vw, 9rem) clamp(1rem, 5vw, 5rem);
  background: var(--ink);
  color: var(--paper);
}
.lab-copy h2 { color: var(--orange); font-size: clamp(3.8rem, 7vw, 7rem); }
.lab-copy > p:last-child { max-width: 34rem; font-size: 1.1rem; }
.meter-panel { padding: clamp(1.25rem, 4vw, 3rem); border: 2px solid var(--paper); background: #171717; box-shadow: 0 0 var(--shaft-glow) rgba(255, 92, 0, .72), 12px 12px 0 var(--orange); transition: box-shadow .25s ease; }
.meter-panel label { display: block; margin-bottom: 1rem; font-weight: 900; text-transform: uppercase; }
#shaftometer { width: 100%; accent-color: var(--orange); cursor: ew-resize; }
.meter-scale { display: flex; justify-content: space-between; margin-top: .6rem; font-size: .65rem; font-weight: 900; letter-spacing: .08em; }
#shaft-result { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 1rem; margin-top: 3rem; border-top: 1px solid #626262; padding-top: 1.5rem; }
#shaft-result strong { font: 900 clamp(4rem, 9vw, 8rem)/.8 Impact, sans-serif; color: var(--yellow); }
#shaft-result span { font-size: clamp(1rem, 2vw, 1.4rem); font-weight: 850; text-transform: uppercase; }

body[data-shaft-stage="warming"] .hero { background: #f74b00; }
body[data-shaft-stage="loaded"] .hero { background: #df3a00; }
body[data-shaft-stage="rumble"] .hero,
body[data-shaft-stage="critical"] .hero { background: #b72600; }

body[data-shaft-stage="loaded"] .shaft-card:nth-child(odd),
body[data-shaft-stage="rumble"] .shaft-card:nth-child(odd),
body[data-shaft-stage="critical"] .shaft-card:nth-child(odd) { box-shadow: inset 0 0 var(--shaft-glow) rgba(255, 92, 0, .35); }

body[data-shaft-stage="rumble"] .hero-image,
body[data-shaft-stage="rumble"] .meter-panel { animation: shaft-rumble .26s steps(2, end) infinite; }

body[data-shaft-stage="critical"]::after {
  border-width: 10px;
  opacity: .9;
  animation: warning-pulse .6s steps(2, end) infinite;
}
body[data-shaft-stage="critical"] .site-header,
body[data-shaft-stage="critical"] .hero-image,
body[data-shaft-stage="critical"] .meter-panel,
body[data-shaft-stage="critical"] .shaft-card:nth-child(odd) { animation: shaft-rumble .12s steps(2, end) infinite; }

@keyframes shaft-rumble {
  0%, 100% { transform: translate(0, 0) rotate(var(--hero-rotation, 0deg)); }
  25% { transform: translate(-2px, 1px) rotate(var(--hero-rotation, 0deg)); }
  50% { transform: translate(2px, -1px) rotate(var(--hero-rotation, 0deg)); }
  75% { transform: translate(-1px, -2px) rotate(var(--hero-rotation, 0deg)); }
}

@keyframes warning-pulse {
  50% { opacity: .35; }
}

.manifesto { padding: clamp(5rem, 10vw, 10rem) 1rem; text-align: center; background: var(--yellow); border-bottom: var(--line); }
.manifesto blockquote { margin: 2rem auto; font-size: clamp(3rem, 8vw, 7rem); max-width: 75rem; }
.legal-note {
  max-width: 56rem;
  margin: 3rem auto 0;
  padding: 1rem;
  border: var(--line);
  background: var(--paper);
  box-shadow: 5px 5px 0 var(--ink);
  font-size: .78rem;
  text-align: left;
}
.legal-note strong { display: block; text-transform: uppercase; letter-spacing: .035em; }
.legal-note p { margin: .45rem 0 0; }

footer { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2rem clamp(1rem, 5vw, 5rem); background: var(--paper); font-size: .8rem; font-weight: 800; }
footer > div { display: flex; align-items: center; gap: .75rem; }
footer p { text-align: center; }
footer a { text-underline-offset: .25rem; }

dialog {
  width: min(1000px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: clamp(1rem, 4vw, 2.5rem);
  border: 3px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 14px 14px 0 var(--orange);
}
dialog::backdrop { background: rgba(0, 0, 0, .82); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; top: .7rem; right: .8rem; border: 0; background: transparent; font-size: 2.5rem; line-height: 1; cursor: pointer; }
.dialog-images { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1.5rem; }
.dialog-images img { width: 100%; border: var(--line); }
.dialog-verdict { margin: 1rem 0 0; font-weight: 800; }

:focus-visible { outline: 4px solid #2f64ff; outline-offset: 3px; }

@media (max-width: 1050px) {
  .shaft-grid { grid-template-columns: 1fr; }
  .shaft-card.feature-card { grid-column: auto; grid-template-columns: minmax(0, 1.25fr) minmax(220px, .75fr); }
}

@media (max-width: 820px) {
  .site-header { grid-template-columns: 1fr auto; gap: 1rem; }
  .site-header nav { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-bottom: 4rem; }
  .hero-image { --hero-rotation: 0deg; box-shadow: 9px 9px 0 var(--ink); }
  .section-heading, .lab { grid-template-columns: 1fr; }
  .section-note { margin-left: 0; }
}

@media (max-width: 650px) {
  .brand > span:last-child { display: none; }
  .hero { padding-top: 3.5rem; }
  h1 { font-size: clamp(4.3rem, 23vw, 7rem); }
  h1 span:last-child { -webkit-text-stroke-width: 1.5px; text-shadow: 3px 3px 0 var(--ink); }
  .shaft-card, .shaft-card.feature-card { grid-template-columns: 1fr; }
  .image-shell { min-height: 15rem; border-right: 0; border-bottom: var(--line); }
  .card-copy { min-height: 19rem; }
  .dialog-images { grid-template-columns: 1fr; }
  #shaft-result { grid-template-columns: 1fr; }
  footer { align-items: flex-start; flex-direction: column; }
  footer p { text-align: left; }
}

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