/* ============ tokens (dark = default) ============ */
.tm {
  --bg: #0a0a0a;
  --ink: #f2f0eb;
  --dim: #86827b;
  --acc: #ff5a1f;
  --acc-text: #ff5a1f;
  --on-acc: #0a0a0a;
  --line: rgba(242, 240, 235, 0.16);
  --grid: rgba(242, 240, 235, 0.045);
  --grain: 0.09;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  .tm:not([data-theme="dark"]) {
    --bg: #f2f1ec; --ink: #0a0a0a; --dim: #56534c;
    --acc: #ff5a1f; --acc-text: #c23500; --on-acc: #0a0a0a;
    --line: rgba(10, 10, 10, 0.18); --grid: rgba(10, 10, 10, 0.06); --grain: 0.06;
    color-scheme: light;
  }
}
.tm[data-theme="light"] {
  --bg: #f2f1ec; --ink: #0a0a0a; --dim: #56534c;
  --acc: #ff5a1f; --acc-text: #c23500; --on-acc: #0a0a0a;
  --line: rgba(10, 10, 10, 0.18); --grid: rgba(10, 10, 10, 0.06); --grain: 0.06;
  color-scheme: light;
}

html, body { margin: 0; padding: 0; background: #0a0a0a; }
@media (prefers-color-scheme: light) { html, body { background: #f2f1ec; } }
html:has(.tm[data-theme="dark"]), body:has(.tm[data-theme="dark"]) { background: #0a0a0a; }
html:has(.tm[data-theme="light"]), body:has(.tm[data-theme="light"]) { background: #f2f1ec; }

.tm *, .tm *::before, .tm *::after { box-sizing: border-box; }
.tm {
  position: relative;
  min-height: 100vh;
  overflow-x: clip;
  background-color: var(--bg);
  background-image: linear-gradient(to right, var(--grid) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  color: var(--ink);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* film grain */
.tm::before {
  content: "";
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 60;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  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(-2%, -1%); } 100% { transform: translate(0, 0); }
}
.tm ::selection { background: var(--acc); color: var(--on-acc); }
.tm a { color: inherit; text-decoration: none; }
.tm img { display: block; max-width: 100%; height: auto; }
.tm :focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }

.wrap { width: 100%; max-width: 90rem; margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 32px; } }

.anton { font-family: "Anton", Impact, "Arial Narrow Bold", sans-serif; font-weight: 400; text-transform: uppercase; line-height: 0.88; margin: 0; }
.mono { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.dim { color: var(--dim); }
.acc { color: var(--acc-text); }
.outline { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }

/* ============ top bar ============ */
.bar { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--ink); }
.bar .wrap { display: flex; align-items: stretch; height: 48px; }
.bar .logo { display: flex; align-items: center; font-weight: 800; font-size: 13px; letter-spacing: 0.08em; padding-right: 20px; border-right: 1px solid var(--line); }
.bar .logo b { background: var(--ink); color: var(--bg); padding: 2px 6px; margin-right: 4px; }
.bar .status { display: none; align-items: center; gap: 18px; padding: 0 20px; color: var(--dim); }
.live::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--acc); margin-right: 8px; animation: beat 0.46875s steps(1) infinite; }
@keyframes beat { 0% { opacity: 1; } 30% { opacity: 0.15; } }
.bar nav { display: none; margin-left: auto; }
.bar nav a { display: flex; align-items: center; padding: 0 16px; border-left: 1px solid var(--line); transition: background 0.15s, color 0.15s; }
.bar nav a:hover { background: var(--acc); color: var(--on-acc); }
.bar nav a span { color: var(--acc-text); margin-right: 6px; }
.bar nav a:hover span { color: var(--on-acc); }
@media (min-width: 720px) { .bar .status { display: flex; } }
@media (min-width: 1080px) { .bar nav { display: flex; } }
.theme {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  padding: 0 0 0 16px; border: 0; border-left: 1px solid var(--line);
  background: none; color: var(--ink); cursor: pointer;
  font: inherit; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
@media (min-width: 1080px) { .theme { margin-left: 0; padding: 0 16px; } }
.theme:hover { color: var(--acc-text); }
.theme i { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-radius: 50%; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.theme .to-dark { display: none; }
.tm[data-theme="light"] .theme .to-light { display: none; }
.tm[data-theme="light"] .theme .to-dark { display: inline; }
@media (prefers-color-scheme: light) {
  .tm:not([data-theme="dark"]) .theme .to-light { display: none; }
  .tm:not([data-theme="dark"]) .theme .to-dark { display: inline; }
}

/* ============ hero ============ */
.hero { position: relative; padding-top: 20px; border-bottom: 1px solid var(--ink); }
.file { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.mega {
  position: relative;
  display: block;
  font-family: "Anton", Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(96px, 21vw, 300px);
  line-height: 0.78;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin: 18px 0 0 -0.04em;
  white-space: nowrap;
  user-select: none;
}
.mega::before, .mega::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; }
.mega::before { color: var(--acc); mix-blend-mode: normal; clip-path: inset(50% 0 50% 0); animation: tear-a 3.2s steps(1) infinite; }
.mega::after { color: transparent; -webkit-text-stroke: 2px var(--ink); clip-path: inset(50% 0 50% 0); animation: tear-b 3.2s steps(1) infinite; }
@keyframes tear-a {
  0%, 78%, 100% { clip-path: inset(50% 0 50% 0); transform: none; }
  80% { clip-path: inset(12% 0 70% 0); transform: translateX(-2.5%); }
  83% { clip-path: inset(58% 0 22% 0); transform: translateX(3%); }
  86% { clip-path: inset(34% 0 52% 0); transform: translateX(-1%); }
  89% { clip-path: inset(80% 0 4% 0); transform: translateX(1.5%); }
}
@keyframes tear-b {
  0%, 79%, 100% { clip-path: inset(50% 0 50% 0); transform: none; }
  81% { clip-path: inset(40% 0 44% 0); transform: translateX(4%); }
  84% { clip-path: inset(6% 0 82% 0); transform: translateX(-3%); }
  88% { clip-path: inset(66% 0 20% 0); transform: translateX(2%); }
}
.mega-sub { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 14px; }
.mega-sub .anton { font-size: clamp(20px, 3.4vw, 44px); letter-spacing: 0.32em; line-height: 1; }

.hero-foot { display: grid; gap: 28px; padding: 36px 0 44px; margin-top: 28px; border-top: 1px solid var(--ink); }
@media (min-width: 980px) { .hero-foot { grid-template-columns: 1.3fr 1fr; align-items: end; gap: 64px; padding: 48px 0 56px; } }
.hero-foot h2 { font-size: clamp(54px, 8.5vw, 132px); }
.hero-foot h2 .strike { position: relative; display: inline-block; }
.hero-foot h2 .strike::after { content: ""; position: absolute; left: -2%; right: -2%; top: 52%; height: 0.09em; background: var(--acc); transform: rotate(-4deg); }
.hero-foot p { margin: 0 0 24px; max-width: 36em; color: var(--dim); }
.hero-foot p b { color: var(--ink); font-weight: 700; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 50px; padding: 0 22px;
  font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  border: 2px solid var(--ink); background: transparent; color: var(--ink);
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s, color 0.12s;
}
.btn:hover { transform: translate(-4px, -4px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: none; box-shadow: none; }
.tm .btn.hot { background: var(--acc); border-color: var(--acc); color: var(--on-acc); }
.tm .btn.hot:hover { box-shadow: 4px 4px 0 var(--ink); }

/* ============ hazard tapes ============ */
.tapes { position: relative; height: 150px; margin: 8px 0; }
@media (min-width: 760px) { .tapes { height: 190px; } }
.tape {
  position: absolute; left: -5%; width: 110%;
  overflow: hidden; white-space: nowrap;
  border-top: 2px solid var(--on-acc); border-bottom: 2px solid var(--on-acc);
}
.tape .run { display: inline-flex; animation: run 26s linear infinite; }
.tape span { font-family: "Anton", Impact, sans-serif; text-transform: uppercase; font-size: clamp(22px, 3.2vw, 36px); line-height: 1; padding: 12px 0; }
.tape span::after { content: "✕"; font-family: "JetBrains Mono", monospace; font-size: 0.6em; margin: 0 0.9em; vertical-align: 0.15em; }
.tape.a { top: 22px; background: var(--acc); color: var(--on-acc); transform: rotate(-3deg); z-index: 2; }
.tape.b { top: 70px; background: var(--ink); color: var(--bg); border-color: var(--ink); transform: rotate(2.2deg); }
@media (min-width: 760px) { .tape.a { top: 34px; } .tape.b { top: 92px; } }
.tape.b .run { animation-direction: reverse; animation-duration: 34s; }
@keyframes run { to { transform: translateX(-50%); } }

/* ============ section heads ============ */
.sec { padding: 72px 0 88px; border-bottom: 1px solid var(--ink); position: relative; }
@media (min-width: 980px) { .sec { padding: 104px 0 120px; } }
.head { display: grid; grid-template-columns: auto 1fr; gap: 0 20px; align-items: end; margin-bottom: 36px; }
.head .no { font-family: "Anton", Impact, sans-serif; font-size: clamp(88px, 16vw, 220px); line-height: 0.76; color: transparent; -webkit-text-stroke: 1.5px var(--acc); }
.head h2 { font-size: clamp(40px, 7vw, 104px); }
.head .meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--line); }
.head .meta p { margin: 0; max-width: 46em; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 13.5px; color: var(--dim); }

/* ============ index rows ============ */
.ix-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.ix {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  grid-template-areas: "thumb name price" "thumb desc price";
  gap: 4px 16px; align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--ink);
  background: linear-gradient(var(--acc), var(--acc)) no-repeat 0 0 / 0% 100%;
  transition: background-size 0.35s cubic-bezier(.7,0,.2,1), color 0.2s;
}
.ix img { grid-area: thumb; width: 64px; height: 64px; object-fit: cover; filter: grayscale(1) contrast(1.15); }
.ix .n { display: none; }
.ix .nm { grid-area: name; font-size: clamp(30px, 7vw, 104px); transition: transform 0.35s cubic-bezier(.7,0,.2,1); }
.ix .ds { grid-area: desc; color: var(--dim); font-size: 12.5px; line-height: 1.5; transition: color 0.2s; }
.ix .pr { grid-area: price; text-align: right; }
.ix .pr b { display: block; font-family: "Anton", Impact, sans-serif; font-weight: 400; font-size: clamp(22px, 3vw, 40px); line-height: 1; }
.ix .pr small { display: block; margin-top: 6px; color: var(--dim); transition: color 0.2s; }
.ix:hover, .ix:focus-visible { background-size: 100% 100%; color: var(--on-acc); }
.ix:hover .ds, .ix:hover .pr small, .ix:focus-visible .ds, .ix:focus-visible .pr small { color: var(--on-acc); }
.ix:hover .nm, .ix:focus-visible .nm { transform: translateX(14px) skewX(-6deg); }
@media (min-width: 900px) {
  .ix { grid-template-columns: 70px 1fr minmax(200px, 22em) 150px; grid-template-areas: "n name desc price"; padding: 14px 0; gap: 24px; }
  .ix .n { display: block; grid-area: n; align-self: start; padding-top: 10px; padding-left: 6px; }
  .ix img { display: none; }
}
@media (min-width: 900px) and (hover: none) { .ix img { display: none; } }

/* cursor preview */
.peek {
  position: fixed; left: 0; top: 0; z-index: 45;
  width: 300px; aspect-ratio: 1;
  pointer-events: none;
  opacity: 0; transform: translate(-50%, -50%) scale(0.85) rotate(-4deg);
  transition: opacity 0.2s, transform 0.25s cubic-bezier(.2,.9,.3,1.3);
  border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  background: #000;
}
.peek img { width: 100%; height: 100%; object-fit: cover; }
.peek.on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-4deg); }
.peek .tag { position: absolute; left: -2px; bottom: -30px; background: var(--acc); color: var(--on-acc); padding: 4px 8px; }
@media (hover: none), (max-width: 899px) { .peek { display: none; } }

/* ============ free tiles ============ */
.tiles { display: grid; gap: 40px 24px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { display: block; }
.tile .pic { position: relative; border: 2px solid var(--ink); transition: transform 0.15s, box-shadow 0.15s; background: #000; }
.tile .pic img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: grayscale(1) contrast(1.2); transition: filter 0.25s; }
.tile .stamp {
  position: absolute; top: 14px; right: -10px;
  background: var(--acc); color: var(--on-acc);
  font-family: "Anton", Impact, sans-serif; font-size: 30px; line-height: 1; padding: 6px 12px 8px;
  transform: rotate(6deg);
  border: 2px solid var(--on-acc);
}
.tile .big { position: absolute; left: 12px; bottom: 6px; font-family: "Anton", Impact, sans-serif; font-size: 110px; line-height: 0.85; color: transparent; -webkit-text-stroke: 2px #f2f0eb; }
.tile:hover .pic, .tile:focus-visible .pic { transform: translate(-6px, -6px); box-shadow: 6px 6px 0 var(--acc); }
.tile:hover .pic img, .tile:focus-visible .pic img { filter: none; }
.tile h3 { font-size: clamp(28px, 3vw, 40px); margin: 18px 0 8px; }
.tile p { margin: 0 0 12px; color: var(--dim); font-size: 13px; }
.tile .row { display: flex; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); }
.tile:hover .row .go { color: var(--acc-text); }

/* ============ vinyl ============ */
.vinyl { display: grid; gap: 56px; align-items: center; }
@media (min-width: 980px) { .vinyl { grid-template-columns: 1fr 1fr; gap: 72px; } }
.deck { position: relative; display: block; width: min(100%, 600px); aspect-ratio: 1.6 / 1; margin: 0 auto; }
.deck .sleeve { position: absolute; left: 0; top: 0; width: 62%; aspect-ratio: 1; z-index: 2; border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--acc); background: #000; }
.deck .sleeve img { width: 100%; height: 100%; object-fit: cover; }
.deck .disc {
  position: absolute; right: 0; top: 1%; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 31%, rgba(255,255,255,0.06) 31.5% 32%, transparent 32.5%),
    repeating-radial-gradient(circle, #111 0 1.5px, #1c1c1c 1.5px 3px),
    #111;
  box-shadow: inset 0 0 0 2px #000, 0 0 0 1px var(--line);
  animation: spin 1.8s linear infinite;
  transition: right 0.5s cubic-bezier(.2,.9,.2,1);
}
.deck:hover .disc { right: -6%; }
.deck .disc::before {
  content: ""; position: absolute; inset: 34%; border-radius: 50%;
  background: var(--acc);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.3);
}
.deck .disc::after {
  content: "TMPLT · THE VERGE · SIDE A · ";
  position: absolute; inset: 36%; border-radius: 50%;
  display: grid; place-items: center;
  font-family: "Anton", Impact, sans-serif; font-size: 14px; color: #0a0a0a; letter-spacing: 0.05em;
  background: radial-gradient(circle, #0a0a0a 0 5%, transparent 5.5%);
}
@keyframes spin { to { transform: rotate(360deg); } }
.vinyl h2 { font-size: clamp(64px, 11vw, 168px); margin: 16px 0 20px; }
.vinyl p { color: var(--dim); max-width: 34em; margin: 0 0 28px; }
.specs { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: 0 0 32px; border: 1px solid var(--ink); width: max-content; max-width: 100%; }
.specs div { padding: 10px 16px; border-right: 1px solid var(--ink); }
.specs div:last-child { border-right: 0; }
.specs dt { color: var(--dim); }
.specs dd { margin: 4px 0 0; font-family: "Anton", Impact, sans-serif; font-size: clamp(22px, 3vw, 34px); line-height: 1; }

/* ============ signup ============ */
.signup { background: var(--acc); color: var(--on-acc); padding: 72px 0 80px; position: relative; overflow: hidden; }
@media (min-width: 980px) { .signup { padding: 112px 0 120px; } }
.signup .ghost { position: absolute; right: -2vw; top: -4vw; font-family: "Anton", Impact, sans-serif; font-size: 34vw; line-height: 0.8; color: transparent; -webkit-text-stroke: 2px rgba(10,10,10,0.18); pointer-events: none; user-select: none; }
.signup .wrap { position: relative; display: grid; gap: 40px; }
@media (min-width: 980px) { .signup .wrap { grid-template-columns: 1.2fr 1fr; align-items: end; gap: 64px; } }
.signup h2 { font-size: clamp(60px, 11vw, 170px); margin-top: 14px; }
.signup p { margin: 18px 0 0; max-width: 30em; font-weight: 400; }
.follow { display: grid; gap: 14px; }
.follow label { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.follow .field { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 480px) { .follow .field { flex-direction: row; } }
.follow input {
  flex: 1; min-width: 0; min-height: 56px; padding: 0 2px;
  font: inherit; font-size: 18px; font-weight: 700; color: #0a0a0a;
  background: transparent; border: 0; border-bottom: 3px solid #0a0a0a; border-radius: 0;
}
.follow input::placeholder { color: rgba(10,10,10,0.5); }
.follow input:focus { outline: none; border-bottom-color: #f2f0eb; }
.tm .follow button { min-height: 56px; background: #0a0a0a; color: #ff5a1f; border-color: #0a0a0a; }
.tm .follow button:hover { box-shadow: 4px 4px 0 #f2f0eb; }
.signup :focus-visible { outline-color: #0a0a0a; }

/* ============ footer ============ */
.foot { padding: 32px 0 0; overflow: hidden; }
.foot .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.foot a:hover { color: var(--acc-text); }
.foot .brandmark { display: block; width: 180px; max-width: 50%; height: auto; margin: 32px 0 40px; filter: drop-shadow(3px 3px 0 var(--acc)); }
.tm[data-theme="light"] .foot .brandmark { filter: invert(1) drop-shadow(3px 3px 0 var(--acc)); }
@media (prefers-color-scheme: light) {
  .tm:not([data-theme="dark"]) .foot .brandmark { filter: invert(1) drop-shadow(3px 3px 0 var(--acc)); }
}

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .tm *, .tm *::before, .tm *::after { animation: none !important; transition: none !important; }
}

/* ============ coming soon ============ */
.hero-foot .soon { margin: 0; color: var(--ink); font-size: clamp(54px, 8.5vw, 132px); }
@media (min-width: 980px) { .hero-foot .soon { text-align: right; } }
