/* Riddim and Story
   One stylesheet for the whole site. */

:root {
  --ink: #16110c;
  --ink-soft: #1e1710;
  --line-dark: #3b2f21;
  --paper: #f2e8d5;
  --paper-deep: #e7d9bd;
  --line-light: rgba(42, 32, 23, 0.26);
  --cream: #f7efdf;
  --brown: #2a2017;
  --muted: #a39479;
  --muted-dark: #6d5f4a;
  --gold: #e9b23c;
  --red: #cf3a2b;
  --green: #2c8a55;

  --display: "Anton", "Arial Narrow", Impact, sans-serif;
  --label: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Source Serif 4", Georgia, serif;

  --wrap: 1120px;
  --gutter: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.label {
  font-family: var(--label);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.skip { position: absolute; left: -999px; }
.skip:focus {
  left: 12px;
  top: 12px;
  background: var(--gold);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 20;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.start :focus-visible,
.songs :focus-visible,
.page :focus-visible { outline-color: var(--red); }

/* The red, gold and green rule from the channel banner */
.rule {
  display: flex;
  height: 4px;
  width: 132px;
}
.rule i { flex: 1; }
.rule i:nth-child(1) { background: var(--red); }
.rule i:nth-child(2) { background: var(--gold); }
.rule i:nth-child(3) { background: var(--green); }

/* A fixed 16:9 frame. The picture fills it, so nothing jumps while it loads. */
.still {
  position: relative;
  display: block;
  height: 0;
  padding-top: 56.25%;
  overflow: hidden;
  background: #0d0a07;
}
.still img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.play-dot {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gold);
}
.play-dot svg { margin-left: 4px; }

/* ---------- Header ---------- */

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
}
.wordmark small {
  font-family: var(--label);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold);
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  padding: 2px 1px 1px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  white-space: nowrap;
  font-family: var(--label);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
}
.site-nav a:hover { color: var(--gold); }
.site-nav .sub {
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 7px 14px 6px;
}
.site-nav .sub:hover {
  background: var(--gold);
  color: var(--ink);
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--label);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--gold);
  color: var(--ink);
  padding: 15px 24px 13px;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.12s ease;
}
.btn:hover { background: #f5c659; }

.text-link {
  font-family: var(--label);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid var(--red);
  padding-bottom: 2px;
}
.text-link:hover { border-color: var(--gold); }

/* ---------- Hero ---------- */

.hero {
  padding: 36px 0 84px;
  overflow: hidden;
}
.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas:
    "top art"
    "bottom art";
  column-gap: 56px;
  padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
}
.hero-top { grid-area: top; align-self: end; }
.hero-bottom { grid-area: bottom; align-self: start; }
.hero-art { grid-area: art; align-self: center; margin: 0; max-width: 1000px; }

.hero .label { color: var(--gold); }

.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(54px, 6.5vw, 100px);
  line-height: 0.96;
  text-transform: uppercase;
  margin: 16px 0 26px;
}
.hero h1 em { font-style: normal; color: var(--gold); }

.hero .lede {
  max-width: 24em;
  margin: 26px 0 30px;
  color: #e6dcc8;
  font-size: 20px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.hero-art a {
  position: relative;
  display: block;
  text-decoration: none;
}
.hero-art .play-dot {
  position: absolute;
  left: 24px;
  bottom: 24px;
  width: 72px;
  height: 72px;
  transition: transform 0.15s ease;
}
.hero-art a:hover .play-dot { transform: scale(1.06); }
.hero-art figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 12px;
  padding-right: var(--gutter);
  font-family: var(--label);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-art figcaption b { font-weight: 600; color: var(--cream); }

/* ---------- Start here ---------- */

.start {
  background: var(--paper);
  color: var(--brown);
  padding: 80px 0 64px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}
.section-head h2,
.h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(42px, 5.4vw, 64px);
  line-height: 1;
  text-transform: uppercase;
  margin: 14px 0 0;
}
.section-head p {
  margin: 0;
  max-width: 22em;
  color: var(--muted-dark);
  font-size: 17px;
}

.picks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 56px;
  border-top: 2px solid var(--brown);
}
.pick {
  position: relative;
  display: block;
  padding: 20px 0 12px;
  text-decoration: none;
  color: inherit;
}
/* A thin rule between the columns */
.pick + .pick::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -28px;
  width: 1px;
  background: var(--line-light);
}

.pick .tag {
  display: block;
  margin-bottom: 14px;
  font-family: var(--label);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}
.pick h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.08;
  text-transform: uppercase;
  margin: 18px 0 8px;
}
.pick p {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.5;
}
.pick .go {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--label);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--red);
  padding-bottom: 2px;
}
.pick:hover h3 {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}
.pick .still img { transition: transform 0.4s ease; }
.pick:hover .still img { transform: scale(1.03); }

/* The mix has no single scene, so it gets a plain printed sleeve. */
.sleeve {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  border: 1px solid var(--ink);
  outline: 1px solid rgba(233, 178, 60, 0.55);
  outline-offset: -10px;
}
.sleeve small {
  font-family: var(--label);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.sleeve strong {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.sleeve .rule { width: 84px; height: 3px; }
.sleeve span.meta {
  font-family: var(--label);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #d8ccb4;
}

/* ---------- Songs ---------- */

.songs {
  background: var(--paper);
  color: var(--brown);
  margin-top: -1px;
  padding: 41px 0 96px;
}

.songs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 52px;
  align-items: start;
}

.player {
  position: sticky;
  top: 24px;
}
.screen {
  position: relative;
  height: 0;
  padding-top: 56.25%;
  background: #000;
}
.screen img,
.screen iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  border: 0;
  object-fit: cover;
}
.screen button {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.14);
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.screen button .play-dot {
  width: 78px;
  height: 78px;
  transition: transform 0.15s ease;
}
.screen button:hover .play-dot { transform: scale(1.06); }

.now {
  margin-top: 20px;
  border-top: 2px solid var(--brown);
  padding-top: 16px;
}
.now .label { color: var(--red); }
.now h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.08;
  text-transform: uppercase;
  margin: 6px 0 10px;
}
.now p { margin: 0 0 14px; }
.now .text-link { font-size: 15px; }

.tracks {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--brown);
}
.tracks li { border-bottom: 1px solid var(--line-light); }
.tracks a {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 10px 8px 9px 6px;
  border-left: 4px solid transparent;
  text-decoration: none;
  color: inherit;
}
.tracks .n,
.tracks .t {
  font-family: var(--label);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--muted-dark);
}
.tracks b {
  display: block;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.25;
}
.tracks .k {
  display: block;
  font-family: var(--label);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-top: 1px;
}
.tracks a:hover { background: var(--paper-deep); }
.tracks a:hover b {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* Selected, but not started yet */
.tracks a.on {
  background: var(--paper-deep);
  border-left-color: var(--red);
}
/* Playing */
.tracks a.playing {
  background: var(--brown);
  border-left-color: var(--gold);
  color: var(--cream);
}
.tracks a.playing .n,
.tracks a.playing .t,
.tracks a.playing .k { color: var(--gold); }
.tracks a.playing .n { font-size: 0; }
.tracks a.playing .n::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent var(--gold);
}
.tracks a.playing .k::after { content: "  \00b7  Now playing"; white-space: pre; }
.tracks a.playing:hover b { text-decoration-color: var(--gold); }

.more {
  margin-top: 18px;
  background: none;
  border: 0;
  border-bottom: 2px solid var(--red);
  border-radius: 0;
  padding: 0 0 2px;
  color: var(--brown);
  font-family: var(--label);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.more:hover { border-color: var(--brown); }

/* ---------- Story ---------- */

.story { padding: 100px 0 96px; }
.story .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.story .label { color: var(--gold); }
.story blockquote {
  margin: 22px 0 0;
  font-family: var(--display);
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.08;
  text-transform: uppercase;
}
.story blockquote span { display: block; }
.story blockquote span:nth-child(3) { color: var(--gold); }
.story .text p { margin: 0 0 20px; color: #e6dcc8; }
.story .text p:first-child { font-size: 22px; line-height: 1.5; color: var(--cream); }
.story .text .sign {
  margin: 28px 0 22px;
  font-family: var(--display);
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--gold);
}
.story .text .text-link { display: inline-block; margin-top: 8px; }

/* Ready for an approved photograph of the creator */
.story-photo { margin: 34px 0 0; max-width: 400px; }
.story-photo img { width: 100%; }
.story-photo figcaption {
  margin-top: 10px;
  font-family: var(--label);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Join ---------- */

.join {
  background: var(--ink-soft);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding: 52px 0 46px;
}
.join .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}
.join h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.join p { margin: 0; color: #e6dcc8; }
.join form { display: flex; }
.join input[type="email"] {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 18px;
  color: var(--ink);
  background: var(--cream);
  border: 0;
  border-radius: 0;
  padding: 13px 16px;
}
.join input[type="email"]::placeholder { color: #8a7c66; }
.join .fine { font-size: 15px; margin-top: 12px; color: var(--muted); }
.join .fine a { color: var(--cream); text-underline-offset: 3px; }
.join .msg { font-weight: 600; margin-top: 12px; min-height: 1.6em; color: var(--gold); }
.hp { position: absolute; left: -5000px; }

/* ---------- Footer ---------- */

.foot { padding-top: 56px; padding-bottom: 44px; }
.foot-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line-dark);
}
.four {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 0;
  margin: 16px 0 0;
  font-family: var(--label);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.four li:nth-child(1) { color: var(--red); }
.four li:nth-child(2) { color: var(--gold); }
.four li:nth-child(3) { color: #47a871; }
.four li:nth-child(4) { color: var(--cream); }

.social { text-align: right; }
.social .label { color: var(--muted); display: block; margin-bottom: 10px; }
.social ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 30px;
  margin: 0;
  padding: 0;
}
.social a {
  font-family: var(--display);
  font-size: 30px;
  line-height: 1.1;
  text-transform: uppercase;
  text-decoration: none;
}
.social a:hover { color: var(--gold); }

.site-foot {
  padding-top: 24px;
  padding-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 28px;
  color: var(--muted);
  font-size: 15px;
}
body > .site-foot { padding-top: 34px; padding-bottom: 44px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-foot a { text-underline-offset: 3px; }
.site-foot a:hover { color: var(--cream); }

/* ---------- Plain text pages ---------- */

.page {
  background: var(--paper);
  color: var(--brown);
  padding: 72px 0 96px;
}
.page .wrap { max-width: 760px; }
.page h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(46px, 7vw, 76px);
  line-height: 1;
  text-transform: uppercase;
  margin: 16px 0 10px;
}
.page .date { color: var(--muted-dark); margin: 0 0 40px; }
.page h2 {
  font-family: var(--label);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 44px 0 10px;
  padding-top: 18px;
  border-top: 2px solid var(--brown);
}
.page p, .page li { margin: 0 0 14px; }
.page ul { padding-left: 22px; margin: 0 0 14px; }
.page a { text-decoration-color: var(--red); text-underline-offset: 3px; }

/* ---------- Smaller screens ---------- */

@media (max-width: 900px) {
  .hero { padding: 16px 0 56px; }
  .hero-in {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "top" "art" "bottom";
    padding: 0 var(--gutter);
  }
  .hero h1 { margin-bottom: 20px; }
  .hero-top .rule { display: none; }
  .hero-art { margin: 4px calc(var(--gutter) * -1) 0; }
  .hero-art figcaption { padding: 0 var(--gutter); }
  .hero .lede { margin: 26px 0 24px; }

  .start { padding: 56px 0 40px; }
  .section-head { display: block; margin-bottom: 26px; }
  .section-head p { margin-top: 12px; }

  .picks { grid-template-columns: minmax(0, 1fr); }
  .pick + .pick::before { display: none; }
  .pick {
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    column-gap: 18px;
    align-items: start;
    padding: 20px 0;
    border-bottom: 1px solid var(--line-light);
  }
  .pick .tag { grid-column: 1 / -1; margin-bottom: 12px; }
  .pick .media { grid-row: 2; }
  .pick .words { grid-row: 2; }
  .pick h3 { font-size: 25px; margin: -3px 0 6px; }
  .pick p { font-size: 16px; margin-bottom: 10px; }
  .sleeve { gap: 6px; outline-offset: -6px; }
  .sleeve small { font-size: 9px; letter-spacing: 0.16em; }
  .sleeve strong { font-size: 19px; }
  .sleeve .rule { width: 48px; height: 2px; }
  .sleeve span.meta { font-size: 9px; letter-spacing: 0.12em; }

  .songs { padding: 28px 0 64px; }
  .songs-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  /* Let the screen and the notes sit straight in the page, so the screen
     can stay at the top while a song plays and the list scrolls under it. */
  .player { display: contents; }
  .songs-grid.is-playing .screen {
    position: sticky;
    top: 0;
    z-index: 5;
    margin: 0 calc(var(--gutter) * -1);
    padding-top: calc(56.25% + var(--gutter) * 2 * 0.5625);
    box-shadow: 0 6px 16px rgba(22, 17, 12, 0.35);
  }
  .now { margin: 18px 0 30px; }

  .story { padding: 64px 0; }
  .story-photo { max-width: 440px; }
  .story .wrap,
  .join .wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .join { padding: 44px 0 38px; }

  .social { text-align: left; }
  .social ul { justify-content: flex-start; }
}

@media (max-width: 820px) {
  .site-nav { gap: 0; }
  .site-nav a:not(.sub) { display: none; }
}

@media (max-width: 620px) {
  :root { --gutter: 18px; }
  body { font-size: 17px; }
  .wordmark { font-size: 24px; }
  .hero .lede { font-size: 18px; }
  .hero-art .play-dot { width: 60px; height: 60px; left: 16px; bottom: 16px; }
  .actions .btn { width: 100%; justify-content: center; }
  .join form { flex-direction: column; gap: 10px; }
  .join .btn { justify-content: center; }
  .social a { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .pick:hover .still img { transform: none; }
}
