@font-face {
  font-family: "Patrick Hand";
  src: url("fonts/patrick-hand.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rubik Bubbles";
  src: url("fonts/rubik-bubbles.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Silkscreen";
  src: url("fonts/silkscreen.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* sk8 studio — the cover. tokens come straight from the brand guide. */

:root {
  /* colours: every one is a natural dye */
  --cream: #ede4d0; /* hemp cream — backgrounds */
  --ink: #2a221d; /* walnut ink — lines, text (never pure black) */
  --clay: #a4472f; /* madder clay — headlines */
  --ember: #c46a2c; /* onion ember — shapes only, not small text */
  --gold: #d8a93f; /* dandelion gold — patches, level-up moments */
  --blush: #dda7a0; /* avocado blush — soft fills */
  --moss: #6f7843; /* yarrow moss — shapes only, not small text */
  --dusk: #2f4a6b; /* indigo dusk — night, baked chronicles */

  /* lettering: placeholders until the handwriting font exists */
  --hand: "Patrick Hand", "Comic Sans MS", cursive;
  --bubble: "Rubik Bubbles", "Patrick Hand", cursive;
  --pixel: "Silkscreen", ui-monospace, monospace;

  --line: 3px solid var(--ink);
  --wobble: 255px 18px 225px 18px / 18px 225px 18px 255px;
  --wobble-2: 18px 225px 18px 255px / 255px 18px 225px 18px;
  --edge: clamp(16px, 5vw, 48px);
  --wide: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--hand);
  font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.4rem);
  line-height: 1.5;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

h1,
h2 {
  font-family: var(--bubble);
  font-weight: 400;
  color: var(--clay);
  line-height: 1;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.4rem, 13vw, 8rem);
}

h2 {
  font-size: clamp(2.4rem, 7vw, 4rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5em;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 0.4rem;
}

p,
li {
  text-wrap: pretty;
  max-width: 62ch;
}

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--clay);
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
  border-radius: 6px;
}

img,
canvas {
  display: block;
  max-width: 100%;
}

.pixel {
  font-family: var(--pixel);
  font-size: 0.875rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.lead {
  font-size: 1.25em;
  line-height: 1.35;
}

.soft {
  color: var(--clay);
}

.note {
  font-size: 0.9em;
  margin-top: 1rem;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.skip {
  position: absolute;
  left: var(--edge);
  top: -4rem;
  background: var(--ink);
  color: var(--cream);
  padding: 0.6rem 1rem;
  z-index: 10;
}

.skip:focus {
  top: 0.5rem;
}

.skip:hover,
.skip:focus {
  color: var(--cream);
}

/* ---------- top bar ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem var(--edge);
  background: var(--cream);
  border-bottom: var(--line);
}

.home {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--bubble);
  font-size: 1.5rem;
  color: var(--clay);
  text-decoration: none;
  white-space: nowrap;
}

.home img {
  width: 30px;
  height: 40px;
}

.top nav {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  white-space: nowrap;
  font-size: 1.05rem;
}

.top nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.2rem;
  text-decoration: none;
}

.top nav a:hover,
.top nav a[aria-current="page"] {
  text-decoration: underline wavy 2px;
}

/* the cover's radio link while the ride shows the tower on air (entrance.js):
   a gold patch that comes and goes for 5s (4 × 1.25s = entrance.js AIR_MS — change both), then holds;
   held from the start when motion is reduced, and when the studio comes back into view after the run */
.top nav a.onAir {
  padding-inline: 0.6rem;
  border-radius: 999px;
  background: var(--gold);
  animation: onAirBlink 1.25s steps(1, end) 4;
}

.top nav a.onAir.airStill {
  animation: none;
}

@keyframes onAirBlink {
  0% { background: var(--gold); }
  50% { background: transparent; }
}

@media (prefers-reduced-motion: reduce) {
  .top nav a.onAir {
    animation: none;
  }
}

/* ---------- sections ---------- */

main > section {
  max-width: var(--wide);
  margin-inline: auto;
  padding: clamp(2.5rem, 8vw, 5rem) var(--edge);
}

main > section + section:not(.ride):not(.nightBand):not(.bookmarks) {
  border-top: 3px dashed var(--ink);
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.5rem !important;
}

.heroWords > * + * {
  margin-top: 1rem;
}

.btn {
  display: inline-block;
  margin-top: 1.4rem !important;
  padding: 0.5rem 1.4rem 0.6rem;
  background: var(--ink);
  color: var(--cream);
  font-size: 1.2em;
  text-decoration: none;
  border-radius: var(--wobble);
  transition: transform 0.15s ease-out;
}

.btn:hover {
  color: var(--gold);
  transform: rotate(-2deg);
}

/* ---------- the ride ---------- */

.ride {
  padding-top: 0 !important;
}

.dressUp {
  margin-top: 0.6rem;
}

/* the way back to the two games, as a thumb-sized chip beside the note rather than a small link */
.bookmarkJump {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-left: 0.4rem;
  padding: 0.35rem 0.9rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--wobble);
  text-decoration: none;
  white-space: nowrap;
}

.bookmarkJump:hover {
  color: var(--gold);
}

main > section.backLink {
  padding-top: 2rem;
}

.dressUp summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.dressUp[open] summary {
  text-decoration: none;
}

/* the tickets sit between the hero and the games: no dashed rule above them */
main > section.bookmarks {
  border-top: 0;
  padding-top: clamp(2rem, 6vw, 3.5rem);
  padding-bottom: 0;
}

.bookmarks .ribbons.big {
  margin-top: 0;
}

#rideHelp {
  font-family: var(--hand);
  font-size: 1rem;
  letter-spacing: 0;
}

.rink {
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  border: var(--line);
  border-radius: 14px 22px 12px 26px / 24px 12px 22px 14px;
  overflow: hidden;
  cursor: pointer;
  touch-action: manipulation;
}

.rink canvas {
  width: 100%;
  height: auto;
  image-rendering: crisp-edges; /* the fallback; pixelated, where known, wins */
  image-rendering: pixelated;
}

.rideBar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  margin-top: 0.8rem;
}

.rideBar p {
  max-width: none;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  padding: 0;
  margin: 0;
}

.chips legend {
  float: left;
  margin-right: 0.5rem;
  padding: 0;
}

.chips label {
  cursor: pointer;
}

.chips input {
  position: absolute;
  opacity: 0;
}

.chips span {
  display: inline-block;
  min-height: 44px;
  padding: 0.35rem 0.9rem;
  border: 2px solid var(--ink);
  border-radius: var(--wobble);
}

.chips input:checked + span {
  background: var(--ink);
  color: var(--cream);
}

.chips input:focus-visible + span {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.textBtn {
  background: none;
  border: 0;
  padding: 0.8rem 0;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  cursor: pointer;
}

/* ---------- bookmarks ---------- */

.ribbons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.5rem 1.25rem;
  align-items: stretch;
  margin-top: 1.5rem;
}

.ribbons.big {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 3rem;
}

.ribbons li {
  display: flex;
  max-width: none;
}

/* a game ticket: a cream ticket with a pixel number in its dye, a handwritten
   name and the pitch, and a dyed stub behind a dashed tear line that reads the
   call to play sideways. lifts and tips on hover. */
.ticket {
  --dye: var(--clay);
  --on-dye: var(--cream);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
  background: var(--cream);
  color: var(--ink);
  border: var(--line);
  border-radius: 10px 14px 9px 15px / 14px 9px 15px 10px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.18s ease-out;
}

a.ticket:hover {
  color: var(--ink);
  transform: translateY(-4px) rotate(1deg);
}

.ticket.moss { --dye: var(--moss); }
/* ember is shapes only: ink, not cream, reads on it */
.ticket.ember { --dye: var(--ember); --on-dye: var(--ink); }

.ticketBody {
  display: grid;
  align-content: start;
  gap: 0.4rem;
  padding: 1.2rem 1.3rem 1.4rem;
}

.ticketNo {
  color: var(--ink);
}

.ticketNo::before {
  content: "";
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-right: 0.5em;
  background: var(--dye);
  border: 2px solid var(--ink);
  border-radius: 50%;
  vertical-align: -0.05em;
}

.ticketName {
  font-size: clamp(1.6rem, 4vw, 2rem);
  line-height: 1.05;
}

.ticketSay {
  line-height: 1.3;
}

.ticketStub {
  display: grid;
  place-items: center;
  padding: 1rem 0.9rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  background: var(--dye);
  color: var(--on-dye);
  border-right: 3px dashed var(--ink);
  font-family: var(--pixel);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

#bookmarks h3 {
  margin-top: 1rem;
}

/* ---------- collections page ---------- */

.hero.solo {
  grid-template-columns: 1fr;
}

.hero.solo h1 {
  font-size: clamp(2.8rem, 10vw, 6rem);
}

/* a board is dyed like the radio card: a blush wash off the cream page */
.board {
  margin-top: 1.5rem;
  background: color-mix(in srgb, var(--blush) 40%, var(--cream));
  border: var(--line);
  border-radius: 14px 22px 12px 26px / 24px 12px 22px 14px;
}

.board summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 1rem;
  padding: 1.1rem 1.3rem 1.2rem;
  cursor: pointer;
  list-style: none;
}

.board summary::-webkit-details-marker {
  display: none;
}

.boardNo {
  grid-row: span 3;
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  background: var(--gold);
  border: var(--line);
  border-radius: 50%;
  font-size: 1.1rem;
}

.boardTitle {
  font-size: 1.6em;
  line-height: 1.3;
  color: var(--clay);
}

.board summary:hover .boardTitle {
  text-decoration: underline wavy 2px;
  text-underline-offset: 0.2em;
}

.boardMeta::after {
  content: " · open ↓";
}

.board[open] .boardMeta::after {
  content: " · close ↑";
}

.why {
  margin: 0.5rem 1.3rem 0;
  padding: 1rem 1.2rem 1.2rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--wobble);
}

.why h3 {
  font-size: 1.15em;
  color: var(--gold);
}

.items {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 1.5rem 1.3rem 1.6rem !important;
  counter-reset: item;
}

.items li {
  counter-increment: item;
  position: relative;
  max-width: none;
  padding: 0.9rem 1.1rem 1rem 3.4rem;
  border: 2px solid var(--ink);
  border-radius: var(--wobble-2);
}

.items li::before {
  content: counter(item);
  position: absolute;
  left: 1.1rem;
  top: 0.9rem;
  font-family: var(--pixel);
  font-size: 1rem;
  color: var(--clay);
}

.items li.unseen {
  border-style: dashed;
}

.kind {
  display: block;
}

.itemTitle {
  display: inline-block;
  font-size: 1.3em;
  line-height: 1.3;
}

.gloss {
  color: var(--clay);
}

.noteText {
  margin-top: 0.6rem;
  padding: 0.7rem 1rem 0.8rem;
  background: var(--blush);
  border-radius: var(--wobble);
}

/* markdown the API rendered: a sketchbook page, not a document */

.markdown > :first-child { margin-top: 0; }
.markdown > :last-child { margin-bottom: 0; }
.markdown p,
.markdown ul,
.markdown ol,
.markdown blockquote,
.markdown pre { margin: 0 0 0.7em; }
.markdown h1,
.markdown h2,
.markdown h3,
.markdown h4 {
  margin: 0.9em 0 0.4em;
  font-size: 1.1em;
  line-height: 1.3;
}
.markdown h1 { font-size: 1.3em; }
.markdown ul,
.markdown ol { padding-left: 1.3em; }
.markdown blockquote {
  padding-left: 0.8em;
  border-left: 3px solid var(--clay);
  color: var(--clay);
}
.markdown code { font-size: 0.92em; }
.markdown pre { overflow-x: auto; white-space: pre; }
.markdown img { max-width: 100%; height: auto; }
.markdown hr { border: 0; border-top: 1px solid var(--clay); margin: 1em 0; }

/* ---------- radio page ---------- */

.radio {
  display: grid;
  gap: 1.5rem;
}

/* the dial: two steps either side of a strip with one stop per channel */
.dial {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.4rem 1rem;
}

.dial[hidden],
.channel[hidden] {
  display: none;
}

.dialStep {
  min-width: 44px;
  min-height: 44px;
  font: inherit;
  color: var(--ink);
  background: var(--gold);
  border: var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.dialStep:hover:not(:disabled),
.dialStep:focus-visible:not(:disabled) {
  transform: rotate(-2deg);
}

.dialStep:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}

.dialFace {
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 0.4rem;
  background: var(--ink);
  border-radius: var(--wobble);
}

.dialFace::-webkit-scrollbar {
  display: none;
}

/* one 44px button per channel; the ember mark slides under the current one */
.dialStops {
  position: relative;
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dialStops li:not(.dialMark) {
  flex: 1 0 44px;
}

.dialStop {
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.dialStop:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: -5px;
}

.dialTick {
  width: 4px;
  height: 14px;
  background: var(--cream);
  border-radius: 2px;
}

.dialStop:hover .dialTick,
.dialStop:focus-visible .dialTick {
  height: 20px;
}

.dialMark {
  position: absolute;
  top: 11px;
  left: 0;
  width: 10px;
  height: 22px;
  background: var(--ember);
  border-radius: 4px;
  pointer-events: none;
  transition: transform 0.15s ease-out;
}

.dialSay {
  grid-column: 1 / -1;
  text-align: center;
  min-height: 1.4em;
  min-width: 0;
  overflow-wrap: anywhere;
}

.channel.fade {
  animation: channelIn 0.15s ease-out;
}

@keyframes channelIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* the card is dyed: a blush wash off the cream page, the table and the shut
   arrangement back on cream so they read as paper laid on it */
.channel {
  display: grid;
  gap: 0.8rem;
  padding: 1.3rem 1.4rem 1.5rem;
  background: color-mix(in srgb, var(--blush) 40%, var(--cream));
  border: var(--line);
  border-radius: 14px 22px 12px 26px / 24px 12px 22px 14px;
}

/* on air: a gold patch, the ember lamp in it (the card's, not the nav link's .onAir) */
.channel .onAir {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.5rem;
  padding: 0.25rem 0.8rem 0.3rem 0.6rem;
  background: var(--gold);
  border: 2px solid var(--ink);
  border-radius: 999px;
}

.onAirLamp {
  width: 12px;
  height: 12px;
  background: var(--ember);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.channelName {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.2;
  color: var(--clay);
  overflow-wrap: anywhere;
}

/* the description rides in the heading after the name, smaller */
.channelDesc {
  font-size: 0.55em;
}

/* the playlist carries the weight under the name, set off by a dashed rule */
/* the links: a cream ticket laid on the card, its "links" tab an ink plaque
   on the top edge. each cell is one whole hit target that takes a gold patch
   on hover. the table keeps its ruled cells (solid ink) but the ticket's own
   corners wobble, never square. */
.playlist {
  display: grid;
  justify-items: center;
  margin-top: 0.4rem;
  padding-top: 1.2rem;
  border-top: 2px dashed var(--ink);
}

.playlist h4 {
  margin: 0;
  padding: 0.3rem 1.1rem 0.15rem;
  font-family: var(--pixel);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.02em;
  background: var(--ink);
  color: var(--cream);
  border-radius: 10px 14px 0 0 / 9px 12px 0 0;
}

.linksTable {
  max-width: 100%;
  overflow-x: auto;
}

.linksTable table {
  width: auto;
  margin-inline: auto;
  border-collapse: separate;
  border-spacing: 0;
  border: 3px solid var(--ink);
  border-radius: 10px 14px 9px 15px / 14px 9px 15px 10px;
  background: var(--cream);
  overflow: hidden;
}

.linksTable th,
.linksTable td {
  padding: 0;
  min-width: 9rem;
  text-align: center;
  overflow-wrap: break-word;
}

/* inner rules only: the ticket's own edge is the table border */
.linksTable tr + tr > * {
  border-top: 2px solid var(--ink);
}

.linksTable :is(th, td) + :is(th, td) {
  border-left: 2px solid var(--ink);
}

.linksTable th {
  padding: 0.4rem 1rem;
  font-family: var(--pixel);
  font-size: 0.875rem;
  font-weight: 400;
}

.linksTable a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 48px;
  padding: 0.4rem 1.2rem;
  color: var(--ink);
  text-decoration: underline wavy 2px;
  text-decoration-color: var(--clay);
  text-underline-offset: 0.25em;
  transition: background-color 0.15s ease-out;
}

.linksTable a::after {
  content: "↗";
  text-decoration: none;
}

.linksTable a:hover {
  background: var(--gold);
  color: var(--ink);
}

/* the head and the links side by side once there's room; the arrangement
   runs under both. narrow, they stack with the dashed rule between. */
.channelHead {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

@media (min-width: 700px) {
  .channel {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 2rem;
  }

  .channel .playlist {
    margin-top: 0;
    padding-top: 0;
    padding-left: 2rem;
    border-top: 0;
    border-left: 2px dashed var(--ink);
    align-self: stretch;
    align-content: center;
  }

  .channel .why {
    grid-column: 1 / -1;
  }
}

/* the arrangement: quiet while shut (a dashed line), the ink card when opened */
.channel .why {
  margin: 0;
  padding: 0 1.2rem;
  background: var(--cream);
  color: var(--ink);
  border: 2px dashed var(--ink);
}

.channel .why[open] {
  padding-bottom: 1.2rem;
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.channel .why summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 1em;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.channel .why[open] summary {
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.channel .why .actName {
  margin: 0.8rem 0 0.2rem;
  font-size: 1.1rem;
  color: var(--gold);
}

/* a table in the arrangement: ruled on every row and column, scrolling sideways when wide */
.channel .why .arrangementText table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 0.6rem 0;
}

.channel .why .arrangementText th,
.channel .why .arrangementText td {
  padding: 0.4rem 0.7rem;
  text-align: left;
  vertical-align: top;
  border: 2px solid currentColor;
  overflow-wrap: break-word;
}

.channel .why .arrangementText th {
  font-family: var(--pixel);
  font-size: 0.875rem;
  font-weight: 400;
}

/* the application form sits on the night band */

main > section.nightBand {
  max-width: none;
  background: var(--dusk);
  color: var(--cream);
}

.nightBand .inner {
  max-width: var(--wide);
  margin-inline: auto;
}

.nightBand .inner > * + * {
  margin-top: 1rem;
}

.nightBand h2,
.nightBand .eyebrow {
  color: var(--gold);
}

.nightBand a:hover {
  color: var(--gold);
}

.nightBand :focus-visible {
  outline-color: var(--cream);
}

/* the honeypot: off-screen, out of the tab order, never announced */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.formStatus {
  max-width: 34rem;
  padding: 0.8rem 1rem;
  border: 2px dashed var(--blush);
  border-radius: var(--wobble);
}

.apply {
  display: grid;
  gap: 1.3rem;
  max-width: 34rem;
  margin-top: 2rem !important;
}

.field {
  display: grid;
  gap: 0.3rem;
}

.field label {
  font-size: 1.15em;
  line-height: 1.3;
}

.apply input,
.apply textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.7rem 1rem;
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  border: 3px solid var(--cream);
  border-radius: 10px 14px 9px 15px / 14px 9px 15px 10px;
}

.apply textarea {
  resize: vertical;
}

/* the browser's grey placeholder is 3.6:1 on cream; this is ~5.3:1 */
.apply ::placeholder {
  color: color-mix(in srgb, var(--ink) 70%, var(--cream));
  opacity: 1;
}

.sendRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.2rem;
}

.sendRow .btn.light {
  margin-top: 0 !important;
}

.apply input:focus-visible,
.apply textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.apply [aria-invalid="true"] {
  border-color: var(--blush);
  border-style: dashed;
}

.hint,
.optional {
  font-size: 0.85em;
}

.fieldError {
  font-size: 0.9em;
  color: var(--cream);
  text-decoration: underline wavy 2px var(--blush);
  text-underline-offset: 0.25em;
}

.fieldError::before {
  content: "↑ ";
}

.btn.light {
  justify-self: start;
  margin-top: 0.4rem !important;
  background: var(--gold);
  color: var(--ink);
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.btn.light:hover {
  color: var(--ink);
  background: var(--cream);
}

.formDone {
  padding: 0.8rem 1rem;
  border: 2px dashed var(--gold);
  border-radius: var(--wobble);
}

/* ---------- small screens ---------- */

@media (max-width: 700px) {
  .home {
    font-size: 1.2rem;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .ribbons.big {
    grid-template-columns: 1fr;
  }

  .rideSoft {
    display: none;
  }

  .top {
    gap: 0.5rem;
  }

  .top nav {
    gap: 0.7rem;
  }
}

/* on a phone the site nav leaves the top bar and becomes a bar pinned to the bottom of the screen;
   the body keeps room for it so the page end is never hidden under it */
@media (max-width: 700px) {
  body {
    padding-bottom: calc(56px + env(safe-area-inset-bottom));
  }

  .top nav {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 6;
    justify-content: space-around;
    gap: 0;
    padding: 0.3rem var(--edge) calc(0.3rem + env(safe-area-inset-bottom));
    background: var(--ink);
    border-top: var(--line);
    font-size: 1.15rem;
  }

  .top nav a {
    flex: 1;
    justify-content: center;
    color: var(--cream);
  }

  .top nav a:focus-visible {
    outline-color: var(--cream);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .ticket {
    transition: none;
  }

  .dialMark {
    transition: none;
  }

  .channel.fade {
    animation: none;
  }
}

/* ---------- the crate (collections) ---------- */

.eyebrow {
  color: var(--clay);
}

.boards {
  display: grid;
}

.boardLink {
  display: block;
  color: inherit;
  text-decoration: none;
}

.boardRow {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 1rem;
  padding: 1.1rem 1.3rem 1.2rem;
}

.boardLink:hover .boardTitle {
  text-decoration: underline wavy 2px;
  text-underline-offset: 0.2em;
}

.boardLink .boardMeta::after {
  content: " · open →";
}

.boardSay,
.boardMeta {
  grid-column: 2;
}

.canvasName {
  margin-top: 0.2rem;
}

.work {
  margin-top: 0.6rem;
}

.work img,
.work video {
  max-width: 100%;
  height: auto;
  border: 2px solid var(--ink);
  border-radius: var(--wobble);
}

.work audio {
  width: 100%;
}

.caption {
  margin-top: 0.4rem;
  font-size: 0.9em;
}

.why h4 {
  margin-top: 0.8rem;
  color: var(--gold);
}

.why > * + p {
  margin-top: 0.5rem;
}

/* long urls in a cell break anywhere; short words in it never do */
.linksTable a,
.channel .why td a {
  overflow-wrap: anywhere;
}

/* the playlist's links, one line each: a label ("21 tracks"), then each link by name ("spotify ↗") (radio.js linksList) */
.linksList {
  list-style: none;
  margin: 0;
  padding: 0;
}

.linksList li {
  display: flex;
  border-bottom: 2px dashed var(--ink);
  flex-wrap: wrap;
  align-items: center;
  column-gap: 1rem;
}

.linksList .linkLabel {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.linksList a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: underline wavy 2px;
  text-underline-offset: 0.2em;
}

.linksList a::after {
  content: " ↗";
}
