/* Layout for everything under the first screen. Colours and type come from tokens.css.
   The page is one fluid layout from a 320 px phone to a 3440 px desktop: sizes are in rem,
   and above 1440 px the rem itself grows with the screen, so a very wide screen gets a larger
   page (bigger covers, bigger type, the same line lengths), not a small column in the dark. */

*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: clamp(100%, calc(100% + (100vw - 90rem) * .0075), 190%); /* 16 px up to 1440 wide, 30 px at 3440 */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
  scrollbar-color: var(--mulberry) var(--night);
}
:root { --gutter: max(1.25rem, env(safe-area-inset-left), env(safe-area-inset-right)); } /* clear of a phone's notch */
::selection { background: var(--mulberry); color: var(--bone); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--font-text); overflow-x: clip; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .2em; }
h2, h3, h4, p, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 4px; border-radius: 2px; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 20; padding: .6rem 1rem; background: var(--bone); color: var(--night); }
.skip:focus { top: calc(1rem + env(safe-area-inset-top)); }

/* four small links, nothing else. Every link is at least 44 px tall for a thumb. */
.nav { position: absolute; inset: 0 0 auto; z-index: 5; display: flex; justify-content: center; gap: clamp(0rem, 3vw, 2rem); padding: calc(.25rem + env(safe-area-inset-top)) var(--gutter) 0; }
.nav a, .socials a, .label { font: 400 .85rem/1.2 var(--font-head); letter-spacing: .2em; text-transform: uppercase; }
.nav a, .socials a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .6rem; color: var(--ink-dim); text-decoration: none; }
.nav a:hover, .socials a:hover { color: var(--bone); text-decoration: underline; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; }
.socials a { font-size: .8rem; letter-spacing: .16em; }

.btn {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: .5rem 1.5rem;
  border: 1.5px solid var(--mulberry); border-radius: 99rem; background: var(--wine); color: var(--bone);
  font: 500 1rem/1.2 var(--font-head); letter-spacing: .06em; text-decoration: none;
  transition: background-color .2s, border-color .2s;
}
.btn:hover { background: var(--mulberry); border-color: var(--bone); }

/* --- the line the page follows ------------------------------------------- */

.thread { position: relative; padding-bottom: 5rem; }
.thread::before, .trail { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--thread); }
.thread::after { content: ""; position: absolute; left: 50%; bottom: -.5rem; width: 1rem; height: 1rem; margin-left: -.5rem; border-radius: 0 50% 50% 50%; rotate: 45deg; background: var(--thread); }
.thread > section { position: relative; z-index: 1; }

/* the drop that rides the line at mid-screen as you scroll, and the lit stretch behind it */
.drop { position: sticky; top: 50vh; display: block; height: 0; pointer-events: none; }
.drop::before { content: ""; position: absolute; left: 50%; width: .8rem; height: .8rem; margin-left: -.4rem; border-radius: 0 50% 50% 50%; rotate: 45deg; background: var(--white); }
.trail { display: none; background: var(--white); opacity: .75; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .trail { display: block; animation: run linear both; animation-timeline: view(block 50% 50%); animation-range: cover; }
  }
}
@keyframes run { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }

.label { width: max-content; margin: 0 auto; padding: 1rem 1.25rem; background: var(--bg); color: var(--ink-dim); font-weight: 500; text-align: center; }
#live { padding-top: 1.5rem; }
#live .label { color: var(--live); }
#music { padding-top: clamp(4rem, 10vw, 7rem); }
.intro, #no-dates { width: max-content; max-width: calc(100% - 2 * var(--gutter)); margin: 0 auto; padding: .25rem 1rem .75rem; background: var(--bg); text-align: center; color: var(--ink-dim); }
#no-dates { padding: 1rem; }
/* where to stream it all, above the covers */
.stream { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 .5rem; width: max-content; max-width: calc(100% - 2 * var(--gutter)); margin: 0 auto; padding: 0 1rem; background: var(--bg); }
.stream span { color: var(--ink-dim); font: 500 .8rem/1 var(--font-head); letter-spacing: .2em; text-transform: uppercase; }
.stream .socials a { color: var(--bone); }

.year h3 {
  width: max-content; margin: clamp(3.5rem, 9vw, 6rem) auto clamp(2rem, 6vw, 3.5rem); padding: .05em .3em .12em;
  background: var(--bg);
  font: 200 clamp(3.75rem, 19vw, 6rem)/1 var(--font-head);
  letter-spacing: .06em;
  color: var(--bone);
}

/* --- stops: his covers, hanging off the line ------------------------------ */

/* Singles sit side by side, two to a row on a phone and as many as fit on a wide screen.
   A release with a story takes a full row, its cover on one side of the line and his words on the other. */
.stops { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: clamp(1.5rem, 4vw, 2.75rem) clamp(.75rem, 2vw, 1.5rem); width: min(100% - 2 * var(--gutter), 88rem); margin: 0 auto; }
.stop { display: grid; justify-items: center; align-content: start; text-align: center; }
.stop .text { background: var(--bg); }

.cover { position: relative; display: block; width: 100%; aspect-ratio: 1; overflow: hidden; background: var(--c, var(--wine)); color: var(--bone); }
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale .4s cubic-bezier(.16, 1, .3, 1); }
a.cover:hover img { scale: 1.04; }
.cover.is-playing { outline: 2px solid var(--white); outline-offset: .3rem; }
.badge {
  position: absolute; right: .5rem; bottom: .5rem; display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--bone); color: var(--night);
}
.badge svg { width: 1rem; height: 1rem; }

/* titles as on his covers: condensed capitals, light and widely spaced */
.stop h3, .stop h4 { font: 300 clamp(1.35rem, 5.4vw, 1.9rem)/1.25 var(--font-head); letter-spacing: .18em; text-transform: uppercase; text-wrap: balance; overflow-wrap: anywhere; }
.by { margin-top: .4rem; color: var(--ink-dim); }
.stop blockquote { margin-top: .8rem; font-style: italic; font-size: 1.125rem; text-wrap: pretty; }
.stop blockquote::before { content: "“"; }
.stop blockquote::after { content: "”"; }
.note { margin-top: .6rem; color: var(--ink-dim); text-wrap: pretty; }

.stop.big { flex: 0 0 100%; gap: 1.25rem; margin-block: clamp(.5rem, 2vw, 1.5rem); }
.stop.big .cover { width: min(78vw, 22rem); box-shadow: 0 0 0 .6rem var(--bg); }
.stop.big .text { max-width: 32rem; padding: .25rem 1rem .5rem; }

.stop.small { flex: 0 1 min(11rem, calc(50% - .5rem)); gap: .7rem; padding-bottom: .5rem; background: var(--bg); box-shadow: 0 0 0 .5rem var(--bg); }
.stop.small .badge { width: 2rem; height: 2rem; right: .35rem; bottom: .35rem; }
.stop.small .badge svg { width: .8rem; height: .8rem; }
.stop.small h4 { font-size: 1rem; font-weight: 400; letter-spacing: .12em; }
.stop.small .by { margin-top: .2rem; font-size: .9rem; line-height: 1.4; }
.stop.small blockquote { margin-top: .35rem; font-size: .95rem; line-height: 1.45; }

/* the one live date: the only gold on the page, in the emblem's own double ring */
.sun-disc {
  display: grid; place-items: center;
  width: clamp(11rem, 56vw, 17rem); aspect-ratio: 1; border-radius: 50%;
  border: clamp(.7rem, 3.4vw, 1.1rem) solid var(--live);
  background: var(--bg);
  box-shadow: 0 0 0 .32rem var(--bg), 0 0 0 calc(.32rem + 2px) var(--live), 0 0 0 calc(.9rem + 2px) var(--bg);
  color: var(--live);
}
.sun-disc time { display: grid; justify-items: center; font: 500 .95rem/1.2 var(--font-head); letter-spacing: .18em; text-transform: uppercase; }
.sun-disc b { font-size: clamp(4rem, 19vw, 6rem); font-weight: 200; line-height: 1.05; letter-spacing: .02em; }
.sun .by, .sun a { color: var(--live); }
.sun .note a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.bill { margin-top: .7rem; font-size: 1.125rem; text-wrap: balance; }

@media (min-width: 54rem) {
  .stop.big { position: relative; grid-template-columns: 1fr 1fr; align-items: center; gap: 0; }
  .stop.big > :first-child { grid-area: 1 / 2; justify-self: start; margin-left: 5rem; }
  .stop.big .text { grid-area: 1 / 1; justify-self: end; margin-right: 3rem; padding: .5rem 0; text-align: right; }
  .stop.big.flip > :first-child { grid-area: 1 / 1; justify-self: end; margin: 0 5rem 0 0; }
  .stop.big.flip .text { grid-area: 1 / 2; justify-self: start; margin: 0 0 0 3rem; text-align: left; }
  /* the branch from the line to the cover */
  .stop.big::before { content: ""; position: absolute; z-index: -1; top: 50%; left: 50%; width: 5rem; height: 2px; margin-top: -1px; background: var(--thread); }
  .stop.big.flip::before { left: auto; right: 50%; }
  .stop.big.sun::before { background: var(--live); }
}

/* --- about, contact, foot -------------------------------------------------- */

.about, .contact { width: min(100% - 2 * var(--gutter), 84rem); margin: 0 auto; padding-top: clamp(4.5rem, 10vw, 8rem); }
.about h2, .contact h2 { font: 200 clamp(2rem, 8.6vw, 4rem)/1.15 var(--font-head); letter-spacing: .12em; text-transform: uppercase; text-wrap: balance; }
.about h3 { margin: 3rem 0 .9rem; color: var(--ink-dim); font: 500 .85rem/1.2 var(--font-head); letter-spacing: .2em; text-transform: uppercase; }
.contact h3 { margin: 3.5rem 0 .5rem; color: var(--ink-dim); font: italic 400 1.125rem/1.5 var(--font-text); } /* his own words, so set as he writes */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 2.5rem clamp(2rem, 4vw, 4rem); align-items: start; margin-top: 2rem; }
.about-grid p { max-width: 36rem; font-size: 1.125rem; }
.about-grid p + p { margin-top: 1rem; }
.portrait { max-width: 26rem; }
.portrait img { display: block; width: 100%; height: auto; }
.portrait figcaption { margin-top: .5rem; color: var(--ink-dim); font-size: .9rem; }
.tags { display: flex; flex-wrap: wrap; gap: .2rem .9rem; max-width: 36rem; margin-top: 1.75rem; color: var(--ink-dim); }
.tags li:not(:last-child)::after { content: ""; display: inline-block; width: .5rem; height: .5rem; margin-left: .9rem; border: 1.5px solid var(--mulberry); border-radius: 50%; }
.pull blockquote { font-style: italic; font-size: clamp(1.2rem, 4.6vw, 1.5rem); line-height: 1.45; text-wrap: pretty; max-width: 30rem; }
.pull figcaption { margin-top: 1rem; color: var(--ink-dim); font-size: .95rem; }
.about-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 0 clamp(2rem, 4vw, 4rem); }
.about-lists p { max-width: 36rem; }

.past li { display: grid; grid-template-columns: 6.5rem 1fr; gap: .1rem 1rem; padding: .8rem 0; border-top: 1px solid color-mix(in srgb, var(--mulberry) 55%, var(--bg)); }
.past time { color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.past .more { grid-column: 2; color: var(--ink-dim); font-size: .95rem; }
@media (min-width: 54rem) {
  .past li { grid-template-columns: 8rem 1.2fr 1fr; }
  .past .more { grid-column: 3; }
}

.contact { text-align: center; }
.contact > p { max-width: 30rem; margin: 2rem auto 1.5rem; font-size: 1.125rem; }
/* for bookers: only what his own pages show */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1.5rem clamp(1.5rem, 3vw, 3rem); margin: 2.25rem 0 0; text-align: left; }
.facts div { padding-top: .9rem; border-top: 1px solid color-mix(in srgb, var(--mulberry) 55%, var(--bg)); }
.facts dt { color: var(--ink-dim); font: 500 .85rem/1.2 var(--font-head); letter-spacing: .2em; text-transform: uppercase; }
.facts dd { margin: .5rem 0 0; max-width: 34rem; }
.facts a { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* he signs his release notes; the page ends the same way */
.foot { display: grid; justify-items: center; gap: .5rem; padding: clamp(4.5rem, 12vw, 7rem) var(--gutter) calc(2.5rem + env(safe-area-inset-bottom)); color: var(--ink-dim); font-size: .9rem; }
.signoff { font-style: italic; font-size: 1.125rem; }
.sign { width: min(60vw, 17rem); height: auto; color: var(--white); }
.foot .stamp { width: 3rem; height: auto; margin-top: 2.5rem; color: var(--mulberry); }
.foot a { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* --- phones only (css/phone.css): fold lines and the jump-to-a-year row stay out of sight everywhere else,
   where a fold is simply open -------------------------------------------- */
.more > summary, .years { display: none; }

/* --- the player: docked, and empty until something is tapped -------------- */

.player { position: fixed; inset: auto 0 0; z-index: 10; max-width: 46rem; margin: 0 auto; padding-bottom: env(safe-area-inset-bottom); background: var(--wine); border: 1.5px solid var(--mulberry); border-bottom: 0; border-radius: .75rem .75rem 0 0; overflow: hidden; }
.player-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 0 0 1rem; }
.player-bar p { font: 500 .95rem/1.2 var(--font-head); letter-spacing: .06em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-bar button { flex: none; width: 3rem; height: 3rem; border: 0; background: none; color: var(--bone); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.player iframe { display: block; width: 100%; height: 166px; border: 0; }
.player.is-set iframe { height: min(300px, 45vh); }
body.playing { padding-bottom: calc(230px + env(safe-area-inset-bottom)); }

/* --- the not-found page ---------------------------------------------------- */

.lost main { min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 1.25rem; padding: 2rem var(--gutter); text-align: center; }
.lost .gc-mark { --size: min(56vw, 44svh, 18rem); }
.lost h1 { font: 300 clamp(1.3rem, 5.4vw, 1.9rem)/1.3 var(--font-head); letter-spacing: .16em; text-transform: uppercase; text-wrap: balance; }
.lost p { color: var(--ink-dim); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cover img, .btn { transition: none; }
}
