:root {
  --ink: #141414;
  --paper: #e8e0d2;
  --oxide: #a62b28;
  --dust: #7a786c;
  --display: "Anton", Impact, sans-serif;
  --type: "Special Elite", "Courier New", monospace;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --body: "Archivo", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 17px/1.55 var(--body);
  overflow-x: hidden;
}
/* Film grain over everything. */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 100;
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-1%, 3%); }
}
@media (prefers-reduced-motion: reduce) { body::after { animation: none; } }

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* ---------- labels, stamps ---------- */
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.stamp {
  display: inline-block;
  font-family: var(--type);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  padding: 4px 10px 3px;
  border: 2px solid currentColor;
  color: var(--oxide);
  transform: rotate(-4deg);
  mix-blend-mode: multiply;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.on-ink .stamp { mix-blend-mode: normal; }

/* ---------- masthead ---------- */
.ticker {
  background: var(--oxide);
  color: var(--paper);
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 2px solid var(--ink);
}
.ticker span { display: inline-block; padding: 6px 0; animation: tick 40s linear infinite; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker span { animation: none; } }

.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  flex-wrap: wrap;
}
.logo {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0.02em;
  text-decoration: none;
  line-height: 1;
}
.logo sup { font-size: 0.45em; vertical-align: top; position: relative; top: 2px; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a, .nav button {
  font: inherit;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  background: none;
  border: 1px solid transparent;
  padding: 6px 10px;
  cursor: pointer;
}
.nav a:hover, .nav button:hover { border-color: currentColor; }
.nav button[aria-pressed="true"] { background: var(--oxide); color: var(--paper); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 40px 0 120px; }
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(88px, 22vw, 300px);
  line-height: 0.82;
  margin: 0;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}
.hero h1 .l2 { display: block; padding-left: 0.6em; color: var(--paper); -webkit-text-stroke: 0; }
.hero h1 .l2 em { font-style: normal; color: var(--oxide); }
.walker {
  position: absolute;
  z-index: 1;
  right: 6%;
  top: 30px;
  width: min(26vw, 320px);
  aspect-ratio: 507 / 798;
  color: var(--paper);
}
/* Halftone oxide sun behind the walker. */
.walker::before {
  content: "";
  position: absolute;
  left: -45%;
  top: 6%;
  width: 120%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--oxide) 38%, transparent 40%) 0 0 / 8px 8px;
  opacity: 0.9;
}
.walker .art { position: relative; width: 100%; height: 100%; }
.hero .seal-wrap {
  position: absolute;
  z-index: 3;
  right: 8%;
  bottom: 40px;
  width: clamp(130px, 18vw, 200px);
  color: var(--paper);
  transform: rotate(-12deg);
}
.hero .tag {
  position: relative;
  z-index: 3;
  margin-top: 36px;
  max-width: 520px;
  display: grid;
  gap: 14px;
}
.hero .tag p { margin: 0; font-family: var(--type); font-size: 20px; line-height: 1.35; }
.hero .tag .slogan { font-family: var(--display); font-size: clamp(32px, 4vw, 48px); line-height: 1; text-transform: uppercase; }
.hero .tag .mono { font-size: 12px; line-height: 1.6; }
.hero h1.small { font-size: clamp(72px, 13vw, 190px); }
.hero h1.small .l2 { padding-left: 0.4em; }

/* ---------- linocut art (tinted with currentColor) ---------- */
.art {
  display: block;
  background: currentColor;
  -webkit-mask: var(--src) center / contain no-repeat;
  mask: var(--src) center / contain no-repeat;
}
.art-walk { --src: url(/assets/art/hobo-walk.png); }
.art-seal { --src: url(/assets/art/hobo-seal.png); }
.art-sit { --src: url(/assets/art/hobo-sit.png); }
.seal { position: relative; }
.seal svg { width: 100%; height: auto; }
.seal .art-seal { position: absolute; inset: 18%; }
.sitter { position: absolute; right: 2%; top: 150px; width: min(26vw, 320px); aspect-ratio: 511 / 618; color: var(--dust); z-index: 0; }

/* ---------- torn paper transitions ---------- */
.tear { display: block; width: 100%; height: 40px; margin-bottom: -1px; }
.tear + section, section + .tear { margin-top: -1px; }

/* ---------- sections ---------- */
section { position: relative; }
.paper { background: var(--paper); color: var(--ink); }
.paper .mono, .paper .muted { color: #55534a; }
.oxide { background: var(--oxide); color: var(--paper); }
.sec-head {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 64px;
  margin-bottom: 40px;
}
.sec-head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(56px, 11vw, 140px);
  line-height: 0.85;
  margin: 0;
  text-transform: uppercase;
}
.sec-head .mono { padding-bottom: 10px; }

/* ---------- catalog: record sleeves ---------- */
.crate {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px 24px;
  padding-bottom: 96px;
}
.sleeve {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.25s ease;
}
.sleeve:nth-child(3n + 1) { grid-column: 1 / span 6; }
.sleeve:nth-child(3n + 2) { grid-column: 8 / span 5; margin-top: 80px; }
.sleeve:nth-child(3n + 3) { grid-column: 3 / span 5; margin-top: -40px; }
.sleeve .cover {
  position: relative;
  aspect-ratio: 1;
  box-shadow: 6px 8px 0 rgba(20, 20, 20, 0.85);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.25s ease;
}
.sleeve .cover svg { width: 100%; height: 100%; }
/* Record peeking out of the sleeve on hover. */
.sleeve .cover::before {
  content: "";
  position: absolute;
  inset: 4% 4% 4% 4%;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--oxide) 0 14%, var(--ink) 14.5% 16%, transparent 16.5%),
    repeating-radial-gradient(circle, #1d1d1d 0 2px, #0c0c0c 2px 4px);
  z-index: -1;
  transition: transform 0.35s ease;
}
.sleeve:hover .cover::before, .sleeve:focus-visible .cover::before { transform: translateX(22%) rotate(40deg); }
.sleeve:hover .cover, .sleeve:focus-visible .cover { transform: rotate(0deg) translateY(-4px); }
.sleeve .meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  align-items: baseline;
}
.sleeve h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}
.sleeve p { margin: 4px 0 0; }

/* ---------- dispatches ---------- */
.dispatches { list-style: none; margin: 0; padding: 0 0 96px; counter-reset: none; }
.dispatch {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 32px;
  padding: 28px 0;
  border-top: 1px dashed rgba(232, 224, 210, 0.35);
}
.dispatch:last-child { border-bottom: 1px dashed rgba(232, 224, 210, 0.35); }
.dispatch .no {
  font-family: var(--display);
  font-size: 64px;
  line-height: 0.9;
  color: var(--oxide);
}
.dispatch .no small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--dust); margin-top: 8px; }
.dispatch h3 { font-family: var(--type); font-weight: 400; font-size: 26px; margin: 0 0 6px; line-height: 1.2; }
.dispatch p { margin: 0; max-width: 60ch; color: #c9c1b3; }

/* ---------- manifesto (ransom note) ---------- */
.manifesto { padding: 72px 0 110px; }
.ransom { font-family: var(--display); font-size: clamp(34px, 6.5vw, 84px); line-height: 1.15; margin: 0; text-transform: uppercase; }
.ransom span {
  display: inline-block;
  padding: 0 0.12em;
  margin: 0.04em 0.03em;
  background: var(--ink);
  color: var(--paper);
}
.ransom span:nth-child(3n) { background: var(--oxide); transform: rotate(-2deg); }
.ransom span:nth-child(4n) { background: transparent; color: var(--ink); border: 3px solid var(--ink); transform: rotate(1.5deg); font-family: var(--type); }
.ransom span:nth-child(5n) { background: var(--dust); transform: rotate(2deg) translateY(4px); }
.manifesto .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; max-width: 900px; }
.manifesto .cols p { margin: 0; }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; margin: 40px 0 0; max-width: 560px; border-top: 2px solid var(--ink); padding-top: 16px; }
.facts dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: #55534a; padding-top: 3px; }
.facts dd { margin: 0; font-family: var(--type); }

/* ---------- late-night TV ---------- */
.bars { display: grid; grid-template-columns: repeat(7, 1fr); height: 14px; max-width: 420px; margin-top: 64px; }
.bars i:nth-child(1) { background: var(--paper); }
.bars i:nth-child(2) { background: #c9b98f; }
.bars i:nth-child(3) { background: var(--dust); }
.bars i:nth-child(4) { background: #4d4b44; }
.bars i:nth-child(5) { background: var(--oxide); }
.bars i:nth-child(6) { background: #6b1c1a; }
.bars i:nth-child(7) { background: #000; }
.bars.big { height: 56px; max-width: none; margin: 0 0 32px; }
.guide-sec .sec-head { padding-top: 20px; }
.guide { list-style: none; margin: 0; padding: 0 0 96px; font-family: var(--mono); font-size: 15px; }
.guide li { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid #2e2e2c; }
.guide time { color: var(--oxide); font-weight: 600; }
.bug {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  font-family: var(--display); font-size: 15px; letter-spacing: 0.06em;
  color: var(--paper); opacity: 0.55; mix-blend-mode: difference; pointer-events: none;
  display: flex; align-items: center; gap: 8px;
}
.bug b { width: 8px; height: 8px; border-radius: 50%; background: var(--oxide); animation: blink 1.6s steps(1) infinite; mix-blend-mode: normal; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bug b { animation: none; } }

/* ---------- footer ---------- */
footer { padding: 64px 0 40px; }
.foot { display: grid; grid-template-columns: 160px 1fr auto; gap: 32px; align-items: end; }
.foot .seal-wrap { color: var(--oxide); transform: rotate(8deg); }
.foot h4 { font-family: var(--display); font-weight: 400; font-size: 44px; margin: 0; line-height: 1; }
.foot a { text-decoration: none; border-bottom: 1px solid var(--dust); }

/* ---------- game page ---------- */
.release { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; padding: 40px 0 100px; align-items: start; }
.release .cover { box-shadow: 10px 12px 0 rgba(0, 0, 0, 0.6); transform: rotate(var(--tilt, 0deg)); }
.release .cover svg { width: 100%; height: auto; }
.liner { background: var(--paper); color: var(--ink); padding: 32px; position: relative; transform: rotate(0.6deg); }
.liner .stamp { position: absolute; top: 20px; right: 20px; }
.liner h1 { font-family: var(--display); font-weight: 400; font-size: clamp(48px, 7vw, 88px); line-height: 0.9; margin: 12px 0 8px; text-transform: uppercase; }
.liner .sub { font-family: var(--type); font-size: 20px; margin: 0 0 20px; }
.liner dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 24px 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 14px 0; }
.liner dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: #55534a; padding-top: 3px; }
.liner dd { margin: 0; }
.liner h2 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; margin: 24px 0 8px; }
.liner ol { margin: 0; padding-left: 0; list-style: none; font-family: var(--type); }
.liner ol li { padding: 4px 0; border-bottom: 1px dotted var(--dust); }
.back { display: inline-block; margin-top: 8px; }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .hero { display: flex; flex-direction: column; padding-bottom: 60px; }
  .walker { position: relative; order: 3; top: auto; right: auto; align-self: flex-end; width: 46vw; margin-right: 6vw; margin-top: 32px; }
  .sitter { position: relative; top: auto; right: auto; width: 50vw; margin: 24px 0 0 auto; }
  .hero .seal-wrap { right: auto; left: 0; bottom: 40px; }
  .crate { grid-template-columns: 1fr; gap: 56px; }
  .sleeve:nth-child(n) { grid-column: auto; margin-top: 0; }
  .sleeve:nth-child(2n) { padding-left: 12%; }
  .sleeve:nth-child(2n + 1) { padding-right: 12%; }
  .dispatch { grid-template-columns: 1fr; }
  .guide li { grid-template-columns: 64px 1fr; }
  .bug { font-size: 12px; right: 12px; bottom: 12px; }
  .manifesto .cols { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 100px 1fr; }
  .foot > :last-child { grid-column: 1 / -1; }
  .release { grid-template-columns: 1fr; gap: 40px; }
  .liner { padding: 24px 18px; }
}
