/* byjonty.com — palette drawn from Jonty's landscape photo:
   misty water, dry olive grass, near-black jacket, red gloves.
   The red is the only saturated thing in the photo, so it is the accent. */

:root {
  --mist: #E7EAEA;
  --mist-top: #DDE4E6;
  --paper: #FFFFFF;

  --ink: #17242C;
  --muted: #5E727B;
  --faint: #8CA0A8;

  --red: #C6432A;
  --red-lt: #E0603F;
  --olive: #8F8654;
  --slate: #6F93A0;

  --line: rgba(23, 36, 44, 0.12);
  --line-strong: rgba(23, 36, 44, 0.2);

  --art: 380px; /* album art edge — the right column matches it exactly */
  --r: 8px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  overflow-x: hidden;
  min-height: 100vh;
  font-family: "Titillium Web", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--mist-top) 0%, var(--mist) 46%, #EDEEEE 100%);
  background-attachment: fixed;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 30px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-height: 100vh;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--red); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* ---------- nav ---------- */

.nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.nav__name { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.nav__links { display: flex; gap: 24px; }
.nav__links a {
  font-size: 15px; font-weight: 600;
  min-height: 44px; display: flex; align-items: center;
}
.nav__links a[aria-current="page"] { color: var(--red); }

/* ---------- the panel: art left, everything else right ---------- */

.panel { display: flex; gap: 30px; align-items: flex-start; }

.panel__art {
  flex: 0 0 var(--art);
  width: var(--art);
  height: var(--art);
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(150deg, var(--slate), #3F5560 45%, var(--ink));
  box-shadow: 0 18px 44px rgba(40, 60, 72, 0.28);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; letter-spacing: 0.18em; color: rgba(255, 255, 255, 0.75);
}
.panel__art img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Exactly the height of the art, so nothing ever runs past its bottom edge.
   Content is one top-aligned group: pushing the controls to the bottom left a
   dead gap under the title, which read as a mistake rather than as space. */
.panel__side {
  flex: 1 1 auto;
  min-width: 0;
  height: var(--art);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em;
  color: var(--red);
}
.panel__title {
  font-size: 54px; font-weight: 700; letter-spacing: -0.04em;
  line-height: 1.02; margin: 0;
  overflow-wrap: anywhere;
  /* Two lines maximum. The column is a fixed 380px to match the artwork, so
     a third line would push the controls past the art's bottom edge. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.panel__meta { font-size: 15px; color: var(--muted); margin-top: 6px; }

/* ---------- transport ---------- */

.transport {
  display: flex; align-items: center; gap: 14px;
  margin-top: 22px;
}

.play {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: none; cursor: pointer; color: #fff;
  background: linear-gradient(var(--red-lt), var(--red));
  box-shadow: 0 5px 16px rgba(198, 67, 42, 0.32);
  display: flex; align-items: center; justify-content: center;
}
.play:hover { filter: brightness(1.06); }
.play svg { display: block; }

.shuffle {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.6);
  color: var(--muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.shuffle:hover { color: var(--red); border-color: var(--red); }
.shuffle[aria-busy="true"] { color: var(--red); border-color: var(--red); }

/* Bars, drawn as one SVG. It stretches to whatever width it is given and has
   no minimum, which the old row of 160 elements did — that minimum is what
   pushed the phone layout past the edge of the screen. */
.wave {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  height: 58px;
  cursor: pointer;
}
.bar { fill: rgba(111, 147, 160, 0.42); }
.bar.is-played { fill: var(--red); }

.transport__time {
  flex-shrink: 0;
  font-size: 13px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- stream / buy pills ---------- */

.pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
  align-items: start;
}

.pill {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.pill:has(.pill__btn[aria-expanded="true"]) { border-color: var(--red); }

.pill__btn {
  display: flex; align-items: center; gap: 10px;
  width: 100%; min-height: 46px;
  padding: 11px 16px;
  border: 0; background: none;
  font-family: inherit; font-size: 15px; font-weight: 700;
  color: var(--ink); cursor: pointer;
  letter-spacing: 0.01em;
}
.pill__btn:hover { color: var(--red); }
.pill__i { display: flex; color: var(--red); }
.pill__l { flex-grow: 1; text-align: left; }
.pill__c { display: flex; color: var(--faint); transition: transform 220ms ease; }
.pill__btn[aria-expanded="true"] .pill__c { transform: rotate(180deg); }

.pill__panel {
  border-top: 1px solid var(--line);
  max-height: 168px;
  overflow-y: auto;
}
.pill__panel[hidden] { display: none; }

.pill__link {
  display: flex; align-items: center; gap: 8px;
  min-height: 40px;
  padding: 9px 16px;
  font-size: 14px; font-weight: 600;
  color: var(--ink);
  border-top: 1px solid var(--line);
}
.pill__link:first-child { border-top: 0; }
.pill__link span { flex-grow: 1; }
.pill__link:hover { background: rgba(198, 67, 42, 0.06); color: var(--red); }
.pill__link svg { flex-shrink: 0; opacity: 0.5; }
.pill__link--soon { color: var(--faint); font-weight: 400; font-size: 13px; }
.pill__link--soon:hover { background: none; color: var(--faint); }
.pill__link--more { color: var(--muted); }

/* ---------- next release ---------- */

.upcoming {
  display: flex; align-items: center; gap: 24px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(40, 60, 72, 0.08);
}
.upcoming[hidden] { display: none; }
.upcoming__art {
  flex: 0 0 132px; width: 132px; height: 132px;
  border-radius: 4px; overflow: hidden;
  background: linear-gradient(150deg, var(--slate), var(--ink));
  box-shadow: 0 8px 20px rgba(23, 36, 44, 0.22);
}
.upcoming__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upcoming__body { flex: 1 1 auto; min-width: 0; }
.upcoming__title {
  font-size: 32px; font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.05; margin: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.upcoming__meta { font-size: 14px; color: var(--muted); margin-top: 4px; }
.upcoming__row {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 14px;
}

.count { display: flex; gap: 6px; }
.count__cell {
  display: flex; align-items: baseline; gap: 2px;
  min-width: 52px; justify-content: center;
  padding: 7px 8px;
  border-radius: 6px;
  background: var(--mist);
  border: 1px solid var(--line);
}
.count__cell b {
  font-size: 22px; font-weight: 700; color: var(--ink);
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.count__cell i { font-style: normal; font-size: 12px; color: var(--muted); }

.presave {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(var(--red-lt), var(--red));
  color: #fff; font-size: 15px; font-weight: 700;
  box-shadow: 0 5px 16px rgba(198, 67, 42, 0.3);
}
.presave:hover { color: #fff; filter: brightness(1.06); }

/* ---------- the reel ----------

   No scroll container anywhere: the track is moved with transform and a
   fixed set of slots is recycled. Nothing here can ever show a scrollbar. */

:root {
  --slot: 112px;   /* sleeve edge */
  --pitch: 124px;  /* centre-to-centre spacing */
  /* Tall enough for the sleeves' shadow to finish inside the window. At
     158px the shadow was sliced off by the window's edge — the hard line
     under the sleeves. */
  --reel-h: 200px;
}

.reel__head {
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em;
  color: var(--muted);
}

.reel__window {
  position: relative;
  height: var(--reel-h);
  margin-top: 10px;
  overflow: hidden;
  touch-action: pan-y;          /* horizontal drags are ours, vertical scrolls the page */
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  /* Two fades, intersected: the ends dissolve sideways, and the bottom
     dissolves downwards so the shadow feathers out instead of stopping. */
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%),
    linear-gradient(180deg, #000 0, #000 74%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%),
    linear-gradient(180deg, #000 0, #000 74%, transparent 100%);
  mask-composite: intersect;
}
.reel__window:active { cursor: grabbing; }

.reel__track {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.reel__marker {
  position: absolute;
  left: 50%; top: 0;
  width: 0; height: 0;
  margin-left: -6px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--red);
  z-index: 3;
  pointer-events: none;
}

.slot {
  position: absolute;
  left: 50%; top: 42%;
  width: var(--slot); height: var(--slot);
  margin: calc(var(--slot) / -2) 0 0 calc(var(--slot) / -2);
  padding: 0; border: 0; background: none;
  cursor: pointer;
  /* --x and --s are written by the reel each frame; --d is the fallback
     falloff used for the server-rendered first paint. */
  --x: 0px;
  --s: calc(1 - var(--d, 0) * 0.07);
  transform: translateX(var(--x)) scale(var(--s));
  opacity: calc(1 - var(--d, 0) * 0.16);
  z-index: calc(10 - var(--d, 0));
}
.slot__art {
  display: block; width: 100%; height: 100%;
  border-radius: 4px; overflow: hidden;
  background: linear-gradient(140deg, var(--slate), var(--ink));
  box-shadow: 0 8px 20px rgba(23, 36, 44, 0.26);
  pointer-events: none;
}
.slot__art img { width: 100%; height: 100%; object-fit: cover; display: block; }

.slot[aria-current="true"] { opacity: 1; }
.slot[aria-current="true"] .slot__art {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  box-shadow: 0 14px 28px rgba(23, 36, 44, 0.32);
}

.reel__hint {
  font-size: 12px; color: var(--faint);
  margin-top: 8px;
}

/* ---------- link columns (links page) ---------- */

.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.col { border-radius: var(--r); padding: 22px 26px; background: var(--paper); border: 1px solid var(--line); }
.col__head { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; color: var(--muted); padding-bottom: 12px; }
.row {
  display: flex; align-items: baseline; gap: 10px; width: 100%;
  padding: 11px 0; min-height: 44px;
  border: 0; border-top: 1px solid var(--line);
  background: none; font-family: inherit; text-align: left;
  cursor: pointer; color: var(--ink); font-size: 16px;
}
.row__label { font-weight: 600; flex-grow: 1; }
.row__path { font-size: 12px; color: var(--faint); }
.row--pending { color: var(--faint); cursor: default; }
.row--pending .row__label { font-weight: 400; }

.note {
  border-radius: var(--r); padding: 18px 26px;
  background: rgba(143, 134, 84, 0.14);
  border-left: 3px solid var(--olive);
  font-size: 14px; color: #3F4A50; line-height: 1.6;
}
.note code { font-family: inherit; font-weight: 700; color: var(--ink); }

/* ---------- community ---------- */

.hero { border-radius: var(--r); padding: 42px 40px; background: var(--paper); border: 1px solid var(--line); }
.hero__title { font-size: 44px; font-weight: 700; letter-spacing: -0.035em; line-height: 1; margin: 0; }
.hero__body { font-size: 18px; color: #3F4A50; line-height: 1.55; max-width: 580px; margin: 14px 0 0; }
.signup { max-width: 580px; margin-top: 28px; }
.signup__label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.18em; color: var(--muted); margin-bottom: 10px; }
.signup__row { display: flex; gap: 8px; flex-wrap: wrap; }
.signup input {
  flex: 1 1 240px; font-family: inherit; font-size: 16px;
  padding: 12px 18px; min-height: 44px;
  background: var(--mist); border: 1px solid var(--line-strong);
  border-radius: var(--r); color: var(--ink);
}
.signup__hint { font-size: 13px; color: var(--muted); margin-top: 12px; }
.signup [disabled] { opacity: 0.55; cursor: not-allowed; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 11px 24px; border-radius: var(--r);
  font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer;
  border: 1px solid var(--ink); background: var(--ink); color: #EDEEEE;
}
.hero__links { max-width: 580px; margin-top: 22px; }

/* The way into /roadmap: the whole card is the link, and the red circle is
   the page's one primary action. */
.cta {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 26px; border-radius: var(--r);
  background: var(--paper); border: 1px solid var(--line);
}
.cta:hover { color: var(--ink); border-color: var(--red); }
.cta__text { flex: 1 1 auto; min-width: 0; font-size: 17px; line-height: 1.45; color: #3F4A50; }
.cta__text b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; color: var(--ink); }
.cta__go {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(var(--red-lt), var(--red)); color: #fff;
  box-shadow: 0 5px 16px rgba(198, 67, 42, 0.3);
}
.cta__go svg { width: 18px; height: 18px; }
.cta:hover .cta__go { filter: brightness(1.06); }

/* ---------- roadmap ---------- */

.quiz__title { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin: 0; max-width: 620px; }
.quiz { max-width: 580px; margin-top: 26px; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.quiz__q { border: 0; margin: 0; padding: 0; min-width: 0; width: 100%; }
.quiz__q legend { padding: 0; }
.quiz__date {
  width: 100%; max-width: 260px; font-family: inherit; font-size: 16px;
  padding: 10px 16px; min-height: 44px;
  background: var(--mist); border: 1px solid var(--line-strong);
  border-radius: var(--r); color: var(--ink);
}
.quiz .signup__hint { margin: 8px 0 0; }
.quiz .presave { border: 0; font-family: inherit; cursor: pointer; }

/* Answer chips, as the schedule's filter chips: the chosen one is ink,
   never red. */
.opts { display: flex; gap: 6px; flex-wrap: wrap; }
.opt {
  position: relative; display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.6);
  font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer;
}
/* Hidden by opacity, never display: none. A required radio the browser
   cannot focus makes it refuse to submit without saying why. */
.opt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.opt:not(:has(input:checked)):hover { color: var(--red); border-color: var(--red); }
.opt:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #EDEEEE; }
.opt:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }

.roadmap { max-width: 760px; width: 100%; padding: 28px 30px; }
.roadmap__date { font-size: 38px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
.roadmap__meta { font-size: 15px; color: var(--muted); margin-top: 6px; }
.roadmap .note { margin-top: 18px; padding: 14px 18px; }
.roadmap .note a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.roadmap__tools { margin-top: 10px; }

/* Step rows, as the schedule's timeline: a date column, then the step.
   Unlike the timeline the text wraps, because the detail is the point. */
.steps { list-style: none; margin: 22px 0 0; padding: 0; }
.step { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.step__day {
  flex: 0 0 40px; padding-top: 2px;
  display: flex; flex-direction: column; align-items: center;
  font-size: 11px; line-height: 1.1; color: var(--faint);
}
.step__day b { font-size: 20px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.step__body { flex: 1 1 auto; min-width: 0; }
.step__title { display: block; font-size: 16px; font-weight: 600; }
.step__text { display: block; font-size: 14px; line-height: 1.55; color: #3F4A50; margin-top: 2px; }
.step__flag { flex-shrink: 0; padding-top: 4px; font-size: 12px; color: var(--muted); }
/* A step whose date has passed: a red edge and red words, nothing that
   changes the row's size. */
.step--late { box-shadow: inset 3px 0 0 var(--red); }
.step--late .step__flag { color: var(--red); font-weight: 700; }

/* ---------- footer ---------- */

.spacer { flex-grow: 1; }
.foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.foot a, .foot__copy { color: var(--muted); }
.foot a:hover, .foot__copy:hover { color: var(--red); }
.foot__copy { font-family: inherit; font-size: 13px; background: none; border: 0; padding: 0; cursor: pointer; }
.foot__end { margin-left: auto; }

/* ---------- prose ---------- */

.prose { border-radius: var(--r); padding: 36px 40px; max-width: 760px; background: var(--paper); border: 1px solid var(--line); }
.prose h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 18px; }
.prose h2 { font-size: 16px; font-weight: 700; margin: 24px 0 6px; }
.prose p { font-size: 16px; line-height: 1.65; color: #3F4A50; margin: 0 0 10px; }

/* ---------- responsive ----------
   Most of the traffic is phones, so the narrow case is the real one: the
   artwork goes full width, the column stops being height-locked, and every
   vertical gap tightens. */

@media (max-width: 920px) {
  :root { --art: 100%; }
  .wrap { padding: 18px 16px 20px; gap: 18px; }
  /* stretch, not flex-start: stacked, the column must take the full width.
     It only looked right before because the old waveform's minimum width
     was propping it open. */
  .panel { flex-direction: column; gap: 18px; align-items: stretch; }
  .panel__art {
    width: 100%; height: auto; aspect-ratio: 1 / 1; flex-basis: auto;
    box-shadow: 0 10px 26px rgba(40, 60, 72, 0.22);
  }
  .panel__side { height: auto; overflow: visible; }
  .panel__title { font-size: 38px; }
  .panel__meta { font-size: 14px; }
  /* The timer drops under the waveform's right end, so the controls row is
     only play, shuffle and waveform, and nothing is wider than the screen. */
  .transport {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    grid-template-areas: "play shuffle wave" ". . time";
    column-gap: 10px; row-gap: 2px;
    align-items: center;
    margin-top: 16px;
  }
  .transport .play { grid-area: play; }
  .transport .shuffle { grid-area: shuffle; }
  .transport .wave { grid-area: wave; height: 48px; }
  .transport__time { grid-area: time; justify-self: end; font-size: 12px; }
  .upcoming { gap: 16px; padding: 14px; }
  .upcoming__art { flex-basis: 104px; width: 104px; height: 104px; }
  .upcoming__title { font-size: 26px; }
  .pills { margin-top: 12px; gap: 8px; }
  .pill__panel { max-height: none; }
  .cols { grid-template-columns: 1fr; }
  .hero { padding: 28px 22px; }
  .prose { padding: 26px 22px; }
  .cta { padding: 18px 20px; gap: 14px; }
  .cta__text { font-size: 15px; }
  .cta__text b { font-size: 19px; }
  .quiz__title { font-size: 28px; }
  .roadmap { padding: 22px 20px; }
  .roadmap__date { font-size: 30px; }
  :root { --slot: 96px; --pitch: 106px; --reel-h: 172px; }
}

@media (max-width: 560px) {
  .nav { gap: 14px; }
  .nav__links { gap: 18px; }
  .panel__title { font-size: 30px; -webkit-line-clamp: 3; }
  .play { width: 46px; height: 46px; }
  .shuffle { width: 44px; height: 44px; }
  .transport .wave { height: 42px; }
  .pill__btn { font-size: 14px; padding: 11px 13px; gap: 8px; }
  :root { --slot: 84px; --pitch: 93px; --reel-h: 152px; }
  .upcoming { flex-wrap: wrap; }
  .upcoming__art { flex-basis: 88px; width: 88px; height: 88px; }
  .upcoming__body { flex-basis: calc(100% - 104px); }
  .upcoming__title { font-size: 22px; white-space: normal; }
  .upcoming__row { flex-basis: 100%; margin-top: 2px; justify-content: space-between; gap: 10px; }
  .count__cell { min-width: 0; padding: 6px 7px; }
  .count__cell b { font-size: 19px; }
  .presave { padding: 10px 16px; }
  .foot__end { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .slot { transition: none; }
}
