/* Recordmo: a two-colour risograph show bill. */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("fonts/BigShouldersDisplay.woff2") format("woff2");
  font-weight: 700 900;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/SchibstedGrotesk.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/SchibstedGrotesk-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* Riso inks and stock */
  --yellow: #ffe45c;
  --blue: #2b4aa0;      /* riso Medium Blue, deep enough for text on yellow */
  --blue-bright: #0078bf;
  --red: #ff5a4e;       /* riso Bright Red, display and overprint only */
  --red-ink: #d1362b;   /* red for small text on paper */
  --paper: #fbfaf7;
  --ink: #18203a;
  --ink-soft: #3c4566;
  --rule: rgba(24, 32, 58, 0.18);
  --overprint: #2e1f3d;  /* blue printed over red: the third ink */

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --grain: 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%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.12 0 0 0 0 0.2 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--yellow); color: var(--blue); }
a { color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { color: var(--red-ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; display: block; }
html { scrollbar-color: var(--blue) var(--paper); }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* Printed stock: every inked field carries the same grain. */
.stock { position: relative; isolation: isolate; }
.stock::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image: var(--grain); mix-blend-mode: multiply; opacity: 0.2;
}
.stock > * { position: relative; z-index: 1; }

/* ---------- Header ---------- */
.site {
  background: var(--yellow);
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
}
.site .wrap { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--blue); }
.brand img { width: 30px; height: 30px; }
.brand span { font: 900 1.7rem/1 var(--display); letter-spacing: 0.01em; text-transform: uppercase; }
.site nav { margin-left: auto; display: flex; align-items: center; gap: clamp(12px, 2.5vw, 28px); }
.site nav a { color: var(--blue); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.site nav a:hover { text-decoration: underline; color: var(--blue); }
.rec-counter {
  display: inline-flex; align-items: center; gap: 7px;
  font: 600 0.85rem/1 var(--body); font-variant-numeric: tabular-nums;
  color: var(--red-ink); white-space: nowrap;
}
.rec-counter::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--red);
  animation: blink 1.6s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0.2; } }

/* ---------- Ticket button ---------- */
.ticket {
  --notch: 9px;
  display: inline-flex; flex-direction: column; justify-content: center; gap: 2px;
  padding: 14px 26px 14px 22px;
  background: var(--blue); color: var(--paper); text-decoration: none;
  font: 800 1.05rem/1.1 var(--body);
  border-right: 3px dashed var(--yellow);
  -webkit-mask: radial-gradient(circle at 0 50%, transparent var(--notch), #000 calc(var(--notch) + 0.5px)) left / 51% 100% no-repeat,
                radial-gradient(circle at 100% 50%, transparent var(--notch), #000 calc(var(--notch) + 0.5px)) right / 51% 100% no-repeat;
          mask: radial-gradient(circle at 0 50%, transparent var(--notch), #000 calc(var(--notch) + 0.5px)) left / 51% 100% no-repeat,
                radial-gradient(circle at 100% 50%, transparent var(--notch), #000 calc(var(--notch) + 0.5px)) right / 51% 100% no-repeat;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s;
}
.ticket small { font: 500 0.78rem/1.2 var(--body); opacity: 0.85; }
.ticket:hover { color: var(--paper); background: #213c87; transform: rotate(-1.5deg) translateY(-2px); }
.ticket.soon { cursor: default; }

/* ---------- Hero ---------- */
.hero { background: var(--yellow); color: var(--blue); overflow: hidden; }
.hero > .wrap {
  display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(24px, 4vw, 64px); align-items: center;
  padding-block: clamp(40px, 7vw, 96px) clamp(28px, 4vw, 48px);
}
.bill-title {
  position: relative; margin: 0;
  font: 900 clamp(3.6rem, 8.6vw, 6rem)/0.86 var(--display);
  text-transform: uppercase; letter-spacing: -0.01em;
  text-wrap: balance;
}
.bill-title .line { display: block; }
.bill-title .over { color: var(--red); mix-blend-mode: multiply; }
/* Second ink pass, a touch out of register. */
.bill-title .plate {
  position: absolute; inset: 0; color: var(--red); mix-blend-mode: multiply; pointer-events: none;
  transform: translate(2px, -2px); opacity: 0;
}
.bill-title .plate .line { visibility: hidden; }
.bill-title .plate .over { visibility: visible; }
.hero .lede { margin: 22px 0 28px; max-width: 34ch; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.45; color: var(--ink); }
.hero .lede strong { color: var(--blue); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.fineprint { font-size: 0.92rem; color: var(--ink-soft); }

.print {
  position: relative; margin: 0;
  /* bleed off the right edge so the window reads near native size */
  margin-right: calc((100vw - min(100vw - 2 * var(--gutter), var(--max))) / -2);
  background: var(--paper); padding: clamp(14px, 1.6vw, 22px) 0 clamp(14px, 1.6vw, 22px) clamp(14px, 1.6vw, 22px);
}
.shot { position: relative; }
.shot img { width: 100%; height: auto; transition: opacity 0.25s; }
.shot img.swapping { opacity: 0.15; }
/* the red pass lands on the app's own stop button, a touch off register */
.rec-dot {
  position: absolute; left: 3.7%; top: 13.7%; width: 5.4%; aspect-ratio: 1;
  border-radius: 50%; background: var(--red); mix-blend-mode: multiply;
  transform: translate(calc(-50% + 3px), calc(-50% - 2px)); z-index: 1;
}
.print figcaption { margin-top: 12px; padding-right: var(--gutter); font-size: 0.9rem; color: var(--ink-soft); }

/* Lineup bar = the source switch */
.lineup { border-top: 2px solid var(--blue); }
.lineup .wrap { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; padding: 0; }
.lineup-label {
  align-self: center; margin-right: 18px; padding-block: 12px;
  font: 800 1rem/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase;
}
.act {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  padding: 16px clamp(14px, 2.4vw, 30px);
  font: 900 clamp(1.5rem, 2.6vw, 2.2rem)/1 var(--display); text-transform: uppercase; color: var(--blue);
  border-left: 2px solid var(--blue);
  transition: background-color 0.2s, color 0.2s;
}
.act:last-of-type { border-right: 2px solid var(--blue); }
.act:hover { background: rgba(43, 74, 160, 0.1); }
.act[aria-pressed="true"] { background: var(--blue); color: var(--yellow); }

/* ---------- Sections ---------- */
section { scroll-margin-top: 24px; }
.band { padding-block: clamp(64px, 9vw, 120px); }
.band h2 {
  margin: 0 0 18px; color: var(--blue);
  font: 900 clamp(2.6rem, 5.4vw, 4.6rem)/0.9 var(--display); text-transform: uppercase; letter-spacing: -0.005em;
  text-wrap: balance;
}
.band .intro { max-width: 58ch; margin: 0 0 clamp(36px, 5vw, 56px); color: var(--ink-soft); font-size: 1.12rem; }

/* Lineup of sources: a bill, not cards */
.bill { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.bill li {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 12px clamp(20px, 4vw, 56px);
  padding-block: clamp(22px, 3vw, 34px); border-bottom: 2px solid var(--ink);
}
.bill .name {
  margin: 0; font: 900 clamp(2.4rem, 5vw, 4.2rem)/0.9 var(--display); text-transform: uppercase; color: var(--ink);
}
.bill .name em { font-style: normal; color: var(--red-ink); }
.bill p { margin: 0; max-width: 52ch; }
.bill .spec { display: block; margin-top: 10px; font-size: 0.92rem; color: var(--ink-soft); }
.callout {
  margin-top: 14px; padding: 14px 16px; background: var(--yellow); color: var(--ink);
  font-size: 0.98rem; max-width: 52ch;
}
.callout b { color: var(--blue); }

/* Three stations */
.stations { background: var(--blue); color: var(--paper); }
.stations h2 { color: var(--yellow); text-shadow: 2px -2px 0 rgba(255, 90, 78, 0.7); }
.buddies .intro { color: var(--ink); }
.stations .intro { color: rgba(251, 250, 247, 0.82); }
.route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: st; }
.route li { position: relative; padding: 22px clamp(16px, 2.4vw, 30px) 0 0; border-top: 3px dashed var(--yellow); counter-increment: st; }
.route li::before {
  content: counter(st); position: absolute; top: -26px; left: 0; width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--yellow); color: var(--blue); border-radius: 50%;
  font: 900 1.7rem/1 var(--display);
}
.route h3 { margin: 22px 0 8px; font: 800 1.9rem/1 var(--display); text-transform: uppercase; color: var(--yellow); }
.route p { margin: 0; max-width: 34ch; color: rgba(251, 250, 247, 0.88); }

/* Formats: a set list */
.setlist { width: 100%; border-collapse: collapse; }
.setlist caption { text-align: left; }
.setlist th, .setlist td { text-align: left; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.setlist thead th { font: 800 0.95rem/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 2px solid var(--ink); }
.setlist tbody th { font: 900 1.6rem/1 var(--display); text-transform: uppercase; color: var(--blue); white-space: nowrap; }
.setlist td.size { white-space: nowrap; font-weight: 600; }
.formats-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.auto h3 { margin: 0 0 12px; font: 900 2rem/1 var(--display); text-transform: uppercase; color: var(--red-ink); }
.auto dl { margin: 0; }
.auto dt { font-weight: 700; margin-top: 18px; }
.auto dd { margin: 4px 0 0; color: var(--ink-soft); }
.convert-note { margin-top: 26px; padding-top: 18px; border-top: 2px solid var(--ink); }

/* Buddies */
.buddies { background: var(--yellow); }
.parade { position: relative; height: 150px; margin-top: 12px; border-bottom: 3px dotted var(--blue); overflow: hidden; }
.walker {
  position: absolute; bottom: 4px; left: 0;
  animation: cross var(--dur, 22s) linear infinite; animation-delay: var(--delay, 0s);
  will-change: transform;
}
.sprite {
  width: calc(var(--w) * var(--px)); height: calc(var(--h) * var(--px));
  background-image: var(--src); background-repeat: no-repeat;
  background-size: calc(var(--w) * var(--px) * 2) 100%;
  image-rendering: pixelated;
  animation: step 0.5s steps(1) infinite;
}
@keyframes step { 50% { background-position: calc(var(--w) * var(--px) * -1) 0; } }
@keyframes cross { from { transform: translateX(-160px); } to { transform: translateX(calc(100vw + 40px)); } }
.walker.swim .sprite { animation: step 0.9s steps(1) infinite, bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.roster { display: flex; flex-wrap: wrap; gap: 14px 28px; margin: 30px 0 0; padding: 0; list-style: none; }
.roster li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.roster .tag { font: 800 0.72rem/1 var(--body); letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 7px; border: 1.5px solid currentColor; }
.roster .free { color: var(--blue); }
.roster .pro { color: var(--red-ink); }
.roster .mini { width: calc(var(--w) * 2px); height: calc(var(--h) * 2px); background-image: var(--src); background-size: calc(var(--w) * 4px) 100%; image-rendering: pixelated; }

/* Tickets */
.tickets { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 28px); align-items: stretch; }
.stub {
  --notch: 14px;
  position: relative; padding: 28px 26px 26px; background: var(--paper); border: 2px solid var(--ink);
}
.stub::before, .stub::after { /* punched notches */
  content: ""; position: absolute; top: 58%; width: 26px; height: 26px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--ink);
}
.stub::before { left: -15px; clip-path: inset(0 0 0 50%); }
.stub::after { right: -15px; clip-path: inset(0 50% 0 0); }
.stub h3 { margin: 0; font: 900 2rem/1 var(--display); text-transform: uppercase; }
.stub .price { margin: 12px 0 2px; font: 900 clamp(3.4rem, 6vw, 4.8rem)/0.9 var(--display); color: var(--blue); }
.stub .per { font-weight: 600; color: var(--ink-soft); }
.stub ul { margin: 18px 0 0; padding: 18px 0 0; border-top: 2px dashed var(--ink); list-style: none; }
.stub li { padding-left: 18px; position: relative; margin-bottom: 6px; }
.stub li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; background: currentColor; }
.stub.pro { background: var(--blue); color: var(--paper); border-color: var(--blue); }
.stub.pro::before, .stub.pro::after { border-color: var(--blue); }
.stub.pro h3, .stub.pro .price { color: var(--yellow); }
.stub.pro .per { color: rgba(251, 250, 247, 0.8); }
.stub.pro ul { border-top-color: var(--yellow); }
.stub.best { background: var(--red); border-color: var(--red); color: var(--ink); }
.stub.best::before, .stub.best::after { border-color: var(--red); }
.stub.best h3 { color: var(--ink); }
.stub.best .price { color: var(--overprint); }
.stub.best .per { color: var(--ink); }
.stub.best ul { border-top-color: var(--ink); }
.tickets-note { margin-top: 22px; color: var(--ink-soft); font-size: 0.95rem; max-width: 70ch; }

/* Privacy pull */
.privacy-pull { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding-block: clamp(44px, 6vw, 72px); }
.privacy-pull p.big { margin: 0; max-width: 22ch; font: 900 clamp(2.4rem, 5vw, 4.2rem)/0.95 var(--display); text-transform: uppercase; color: var(--ink); }
.privacy-pull p.big span { color: var(--red-ink); }
.privacy-pull .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.privacy-pull .small { margin: 0; max-width: 46ch; color: var(--ink-soft); }

/* Closing bill */
.encore { background: var(--red); color: var(--ink); }
.encore .wrap { padding-block: clamp(64px, 9vw, 112px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: end; }
.encore h2 { margin: 0; font: 900 clamp(3rem, 7vw, 6rem)/0.86 var(--display); text-transform: uppercase; color: var(--overprint); max-width: 12ch; }
.encore p { margin: 14px 0 0; font-weight: 500; }
.encore .ticket { background: var(--ink); border-right-color: var(--red); }

/* Footer */
.foot { background: var(--ink); color: rgba(251, 250, 247, 0.78); font-size: 0.92rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 26px; padding-block: 28px 36px; align-items: center; }
.foot a { color: var(--yellow); }
.foot .spacer { margin-left: auto; }

/* ---------- Document pages (privacy, support) ---------- */
.doc-head { background: var(--yellow); color: var(--blue); }
.doc-head .wrap { padding-block: clamp(48px, 7vw, 88px) clamp(28px, 4vw, 40px); }
.doc-head h1 { margin: 0; font: 900 clamp(3.4rem, 8vw, 6rem)/0.86 var(--display); text-transform: uppercase; }
.doc-head p { margin: 16px 0 0; max-width: 52ch; color: var(--ink); font-size: 1.15rem; }
.doc { padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 104px); }
.doc .wrap { display: grid; grid-template-columns: minmax(160px, 220px) minmax(0, 68ch); gap: clamp(24px, 5vw, 72px); }
.doc aside { position: sticky; top: 24px; align-self: start; font-size: 0.92rem; }
.doc aside ol { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.doc aside li { border-bottom: 1px solid var(--rule); }
.doc aside a { display: block; padding: 9px 0; text-decoration: none; color: var(--ink); font-weight: 600; }
.doc aside a:hover { color: var(--blue); }
.doc article h2 { margin: 48px 0 10px; font: 900 2rem/1 var(--display); text-transform: uppercase; color: var(--blue); scroll-margin-top: 24px; }
.doc article h2:first-child { margin-top: 0; }
.doc article p, .doc article li { max-width: 68ch; }
.doc article ul { padding-left: 1.2em; }
.doc article li { margin-bottom: 6px; }
.doc .summary { margin: 0 0 8px; padding: 18px 20px; background: var(--blue); color: var(--paper); font-size: 1.12rem; }
.doc .summary strong { color: var(--yellow); }
.doc .updated { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Motion: the second ink pass lands once ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .bill-title .plate { animation: register 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards; }
  @keyframes register {
    from { opacity: 0; transform: translate(-28px, 14px); }
    to { opacity: 0.85; transform: translate(2px, -2px); }
  }
  .js .bill-title .over { transition: opacity 0.2s; }
  .js .bill-title.reinked .plate { animation: reink 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
  @keyframes reink {
    from { opacity: 0.2; transform: translate(-14px, 8px); }
    to { opacity: 0.85; transform: translate(2px, -2px); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .bill-title .plate { opacity: 1; }
  .walker, .sprite, .rec-counter::before { animation: none !important; }
  .walker { position: static; display: inline-block; margin-right: 24px; }
  .parade { display: flex; align-items: flex-end; gap: 24px; height: auto; padding: 20px 0; }
  html { scroll-behavior: auto; }
}
.no-js .bill-title .plate, html:not(.js) .bill-title .plate { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero > .wrap { grid-template-columns: 1fr; }
  .print { margin-right: calc(-1 * var(--gutter)); }
  .bill li { grid-template-columns: 1fr; }
  .route { grid-template-columns: 1fr; gap: 54px; }
  .formats-grid { grid-template-columns: 1fr; }
  .tickets { grid-template-columns: 1fr; align-items: stretch; }
  .privacy-pull .wrap, .encore .wrap { grid-template-columns: 1fr; }
  .doc .wrap { grid-template-columns: 1fr; }
  .doc aside { position: static; }
}
@media (max-width: 620px) {
  .site nav a.hide-sm { display: none; }
  .brand span { font-size: 1.4rem; }
  .brand img { width: 26px; height: 26px; }
  .site nav { gap: 14px; }
  .rec-counter { display: none; }
  .parade { height: 110px; }
  .parade .sprite { --px: 3px !important; }
  .parade .walker:nth-child(2), .parade .walker:nth-child(4), .parade .walker:nth-child(6) { display: none; }
  .doc aside { display: none; }
  .lineup-label { width: 100%; margin: 0; padding-bottom: 0; }
  .act { flex: 1 1 0; padding: 14px 6px; font-size: 1.35rem; border-left-width: 0; }
  .act + .act { border-left-width: 2px; }
  .act:last-of-type { border-right: 0; }
  .setlist thead { display: none; }
  .setlist tr { display: grid; grid-template-columns: 1fr auto; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .setlist th, .setlist td { border: 0; padding: 2px 0; }
  .setlist td.depth { grid-column: 1 / -1; color: var(--ink-soft); font-size: 0.95rem; }
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
