@font-face {
  font-family: "Bebas Neue";
  src: url("fonts/BebasNeue-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("fonts/SpaceMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #f4ead6;
  --paper-2: #efe3cc;
  --ink: #1d1a17;
  --pink: #ff2d7d;
  --aqua: #14b4c3;
  --yellow: #ffcd32;
  --blue: #1e46aa;
  --indigo: #372d78;
  --orange: #ffa03c;
  --muted: #6d6458;
  --line: #1d1a1722;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Space Mono", ui-monospace, monospace;
  line-height: 1.55;
  overflow-x: hidden;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.16;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(circle at 20% 30%, #0000000d 0 1px, transparent 1.5px),
    radial-gradient(circle at 70% 60%, #00000012 0 1px, transparent 1.5px),
    radial-gradient(circle at 40% 80%, #0000000f 0 1px, transparent 1.5px);
  background-size: 3px 3px, 4px 4px, 5px 5px;
}

/* registration marks */
.regmarks {
  position: absolute;
  inset: 14px 18px;
  pointer-events: none;
}
.regmarks span {
  position: absolute;
  width: 14px;
  height: 14px;
}
.regmarks span::before,
.regmarks span::after {
  content: "";
  position: absolute;
  background: var(--ink);
  opacity: 0.35;
}
.regmarks span::before { left: 0; right: 0; top: 50%; height: 1px; }
.regmarks span::after { top: 0; bottom: 0; left: 50%; width: 1px; }
.regmarks span:nth-child(1) { top: 0; left: 0; }
.regmarks span:nth-child(2) { top: 0; right: 0; }
.regmarks span:nth-child(3) { bottom: 0; left: 0; }
.regmarks span:nth-child(4) { bottom: 0; right: 0; }

/* ---------- masthead ---------- */
.masthead {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 96px 28px 64px;
  text-align: center;
}

.kicker {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 18px;
}

.masthead h1 {
  font-family: "Bebas Neue", "Space Mono", sans-serif;
  font-size: clamp(72px, 16vw, 168px);
  line-height: 0.86;
  letter-spacing: 0.02em;
  margin: 0 0 24px;
  color: var(--pink);
  text-shadow: 3px 3px 0 color-mix(in srgb, var(--aqua) 55%, transparent);
}

.lede {
  max-width: 54ch;
  margin: 0 auto 36px;
  color: var(--ink);
  font-size: 15px;
}

.scroll-cue {
  display: inline-block;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--pink);
  padding-bottom: 2px;
  font-size: 13px;
}
.scroll-cue:hover { color: var(--pink); }

/* ---------- sections ---------- */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 28px 80px; }

.section-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(40px, 7vw, 72px);
  letter-spacing: 0.03em;
  margin: 0 0 8px;
  color: var(--ink);
}

.section-note {
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 36px;
  font-size: 14px;
}

/* ---------- editions ---------- */
.editions { padding-top: 24px; }

.edition {
  position: relative;
  border: 1.5px solid var(--line);
  background: var(--paper-2);
  padding: 28px 28px 24px;
  margin-bottom: 36px;
  box-shadow: 6px 6px 0 color-mix(in srgb, var(--ink) 8%, transparent);
}

.edition.will-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.edition.is-in {
  opacity: 1;
  transform: none;
}

.edition[data-ink="dawn"] { --acc: var(--pink); --acc2: var(--aqua); }
.edition[data-ink="meridian"] { --acc: var(--yellow); --acc2: var(--blue); }
.edition[data-ink="gloaming"] { --acc: #f04678; --acc2: var(--indigo); }

.swatches {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.swatches i {
  width: 22px;
  height: 22px;
  background: var(--c);
  border: 1px solid var(--ink);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--paper);
}

.edition-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  margin-bottom: 16px;
}

.edition h3 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 48px;
  letter-spacing: 0.04em;
  margin: 0;
  color: var(--acc);
  text-shadow: 2px 2px 0 color-mix(in srgb, var(--acc2) 60%, transparent);
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.player {
  position: relative;
  background: #111;
  border: 1.5px solid var(--ink);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.player video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111;
}

.edition-blurb {
  margin: 16px 0 14px;
  font-size: 14px;
  max-width: 68ch;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.chips > div {
  display: flex;
  gap: 8px;
  align-items: baseline;
  border: 1px solid var(--line);
  padding: 6px 10px;
  background: var(--paper);
  font-size: 12px;
}

.chips dt {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
}

.chips dd { margin: 0; }

/* ---------- score ---------- */
.score { padding: 48px 0 24px; }

.score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

.score-card {
  border: 1.5px solid var(--line);
  padding: 16px;
  background: var(--paper-2);
}

.score-card h4 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 28px;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
  color: var(--aqua);
  text-shadow: 1.5px 1.5px 0 color-mix(in srgb, var(--pink) 55%, transparent);
}

.score-card p {
  margin: 0;
  font-size: 13px;
  color: var(--ink);
}

.listen {
  border: 1.5px solid var(--line);
  padding: 18px;
  background: var(--paper-2);
}

.listen h4 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 28px;
  margin: 0 0 10px;
  color: var(--pink);
}

.listen audio { width: 100%; }

.tiny {
  font-size: 11px;
  color: var(--muted);
  margin: 8px 0 0;
}

/* ---------- notes ---------- */
.notes { padding: 48px 0 24px; }

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.notes-grid p {
  margin: 0;
  font-size: 13.5px;
  border-left: 3px solid var(--pink);
  padding-left: 14px;
}

.notes-grid p:nth-child(2) { border-left-color: var(--aqua); }
.notes-grid p:nth-child(3) { border-left-color: var(--yellow); }

.notes-grid strong {
  font-family: "Bebas Neue", sans-serif;
  font-size: 20px;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 6px;
  font-weight: 400;
}

/* ---------- footer ---------- */
.footer {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 28px 48px;
  text-align: center;
  border-top: 1.5px solid var(--line);
}

.footer-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 40px;
  letter-spacing: 0.12em;
  margin: 0 0 12px;
  color: var(--indigo);
}

@media (max-width: 640px) {
  .masthead { padding-top: 72px; }
  .edition { padding: 18px; }
  .edition h3 { font-size: 36px; }
}
