/* robertjmoore.com. One stylesheet for every page.
   The look comes from the cover of Ecosystem-Led Growth: a black field, white type,
   and a network drawn in coral, yellow, and blue. */

@font-face {
  font-family: Outfit;
  src: url('/assets/fonts/outfit-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0a0a0c;
  --ink-raised: #121215;
  --line: rgb(255 255 255 / 13%);
  --paper: #f4f0e8;
  --soft: rgb(244 240 232 / 78%);
  --muted: rgb(244 240 232 / 56%);
  --coral: #f05c51;
  --sun: #ffcc58;
  --sky: #1aafe4;
  --font: Outfit, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  --edge: max(1.25rem, 5.5vw);
  --masthead: 4.5rem;
  color-scheme: dark;
}

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

html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--masthead) + 1rem);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

p {
  margin: 0 0 1.1em;
  text-wrap: pretty;
}

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

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

::selection {
  background: var(--sun);
  color: var(--ink);
}

/* Keeps a hyphenated name such as Ecosystem-Led on one line in large type. */
.nowrap {
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
}

.skip:focus {
  top: 1rem;
}

/* Masthead: the wordmark and the navigation, repeated on every page. */

.masthead {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--masthead);
  padding: 0 var(--edge);
  background: linear-gradient(rgb(10 10 12 / 88%), rgb(10 10 12 / 0%));
  transition: background-color 0.3s;
}

.is-scrolled .masthead {
  background: rgb(10 10 12 / 97%);
  box-shadow: 0 1px 0 var(--line);
}

.wordmark {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

/* The o's of the wordmark hold the three colours of the book's network. */
.wordmark i {
  position: relative;
  z-index: 0;
  font-style: normal;
}

.wordmark i:nth-of-type(1) {
  --dot: var(--sun);
}

.wordmark i:nth-of-type(2) {
  --dot: var(--coral);
}

.wordmark i:nth-of-type(3) {
  --dot: var(--sky);
}

.wordmark i::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 59%;
  width: 0.42em;
  height: 0.42em;
  border-radius: 50%;
  background: var(--dot);
  transform: translate(-50%, -50%);
}

.nav {
  display: flex;
  gap: clamp(0.9rem, 2.4vw, 2.1rem);
  font-size: 0.95rem;
}

.nav a {
  position: relative;
  padding: 0.4rem 0;
  color: var(--soft);
  text-decoration: none;
  transition: color 0.2s;
}

.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--paper);
}

/* The current page is marked with a node. */
.nav a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -0.15rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sun);
  opacity: 0;
  transform: translateX(-50%) scale(0.4);
  transition:
    opacity 0.2s,
    transform 0.2s;
}

.nav a:hover::after,
.nav a[aria-current='page']::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

@media (max-width: 30rem) {
  .wordmark {
    font-size: 1.2rem;
  }

  .nav {
    font-size: 0.875rem;
  }

  /* The wordmark already links home. */
  .nav a[href='/'] {
    display: none;
  }
}

/* Buttons and labels. */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  padding: 0.95em 1.5em;
  border: 1px solid rgb(244 240 232 / 34%);
  border-radius: 99px;
  color: var(--paper);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s;
}

/* A link drawn as an edge that ends in a node. */
.button::after {
  content: '';
  width: 1.1em;
  height: 0.5em;
  background:
    radial-gradient(circle at calc(100% - 0.25em) 50%, currentcolor 0.24em, transparent 0.27em),
    linear-gradient(currentcolor, currentcolor) left center / calc(100% - 0.45em) 1.5px no-repeat;
  transition: width 0.25s;
}

.button:hover {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}

.button:hover::after {
  width: 1.9em;
}

.button--primary {
  border-color: var(--coral);
  background: var(--coral);
  color: var(--ink);
}

.button--primary:hover {
  border-color: var(--sun);
  background: var(--sun);
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8em;
  margin: 0 0 1.1rem;
  color: var(--sun);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* A node, as drawn on the cover: a white ring around a coloured centre. */
.eyebrow::before {
  content: '';
  flex: none;
  width: 0.95em;
  height: 0.95em;
  border: 0.24em solid var(--paper);
  border-radius: 50%;
  background: currentcolor;
}

.prose a,
.panel p a {
  text-decoration-color: rgb(244 240 232 / 40%);
  transition:
    color 0.2s,
    text-decoration-color 0.2s;
}

.prose a:hover,
.panel p a:hover {
  color: var(--sky);
  text-decoration-color: currentcolor;
}

/* The swarm: a canvas fixed behind the page, and the box where formations sit. */

.swarm {
  position: fixed;
  inset: 0 0 auto;
  z-index: 0;
  /* The tallest the viewport gets, so the canvas keeps its size when a phone's toolbar hides. */
  height: 100vh;
  height: 100lvh;
  pointer-events: none;
}

.swarm canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Where the page's text sits, the swarm dims its lights: here, the left side, fading out by 62% across. */
.swarm {
  --scrim: x 0.3 0.62 0.84;
}

.swarm img {
  position: absolute;
  object-fit: contain;
}

.swarm-stage,
.swarm img {
  position: fixed;
  top: 50%;
  left: calc(50% + 1.5vw);
  width: min(45vw, 50rem);
  height: min(80svh, 50rem);
  transform: translateY(-48%);
  pointer-events: none;
}

.home main,
.home .footer {
  position: relative;
  z-index: 1;
}

/* Home: the hero. */

.hero {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 100svh;
  padding: calc(var(--masthead) + 2rem) var(--edge) 7rem;
}

.hero__copy {
  max-width: min(37rem, 43vw);
}

.hero__title {
  margin-bottom: 0.3em;
  font-size: clamp(3.5rem, 7.6vw, 7.25rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.hero__lede {
  max-width: 21em;
  margin-bottom: 2.2rem;
  color: var(--muted);
  font-size: clamp(1.3rem, 2.15vw, 1.9rem);
  font-weight: 300;
  line-height: 1.32;
}

/* The opening words rise into place, one after another. */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.9rem);
  }
}

.hero__copy > *,
.page-hero__copy > * {
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero__copy > :nth-child(2),
.page-hero__copy > :nth-child(2) {
  animation-delay: 0.1s;
}

.hero__copy > :nth-child(3),
.page-hero__copy > :nth-child(3) {
  animation-delay: 0.2s;
}

.page-hero__copy > :nth-child(4) {
  animation-delay: 0.3s;
}

/* Each phrase lights up while the swarm forms what it names. */
[data-cue] {
  transition: color 0.7s;
}

.hero__lede [data-cue].is-cued {
  color: var(--cue, var(--paper));
}

.show {
  position: absolute;
  bottom: 1.6rem;
  left: calc(50% + 1.5vw);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: min(45vw, 50rem);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.6s;
}

/* The controls only appear, and only take focus, once the swarm is running. */
.has-swarm .show {
  visibility: visible;
  opacity: 1;
}

.chip {
  padding: 0.6em 0.95em;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgb(10 10 12 / 55%);
  color: var(--soft);
  font: 500 0.78rem/1 var(--font);
  letter-spacing: 0.03em;
  cursor: pointer;
  transition:
    background-color 0.25s,
    border-color 0.25s,
    color 0.25s;
}

.chip:hover {
  border-color: rgb(244 240 232 / 50%);
  color: var(--paper);
}

.chip[aria-pressed='true'] {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}

.chip--toggle {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  margin-left: 0.35rem;
  padding: 0;
}

/* Pause bars; they become a play triangle while paused. */
.chip--toggle::before {
  content: '';
  width: 0.6rem;
  height: 0.7rem;
  border-inline: 0.2rem solid currentcolor;
}

.chip--toggle[aria-pressed='true']::before {
  width: 0;
  height: 0;
  border-block: 0.4rem solid transparent;
  border-inline: 0.65rem solid currentcolor;
  border-inline-end-width: 0;
  margin-left: 0.12rem;
}

.hud {
  position: absolute;
  left: var(--edge);
  bottom: 1.9rem;
  margin: 0;
  color: rgb(244 240 232 / 38%);
  font: 0.7rem/1.4 var(--mono);
  letter-spacing: 0.04em;
}

/* Short screens, such as a phone on its side. */
@media (max-height: 30rem) {
  .hero {
    padding-bottom: 5rem;
  }

  .hero__title {
    font-size: clamp(2.3rem, 12vh, 3.5rem);
  }

  .hero__lede {
    margin-bottom: 1.4rem;
    font-size: 1.05rem;
  }

  /* Leave room under the formation for the controls. */
  .swarm-stage {
    height: 62svh;
    transform: translateY(-60%);
  }
}

/* Home: the sections. Each one is a scene; the swarm changes formation as it scrolls into place. */

.scene {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 94svh;
  padding: 5rem var(--edge);
}

.panel {
  width: min(34rem, 43vw);
}

.panel h2 {
  margin-bottom: 0.65em;
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
}

.panel p {
  color: var(--soft);
}

.panel .eyebrow {
  color: var(--sun);
}

.panel .button {
  margin-top: 0.7rem;
}

.panel__cover {
  width: 12rem;
  margin: 0 0 2rem -0.6rem;
  filter: drop-shadow(0 1.4rem 1.6rem rgb(0 0 0 / 55%));
}

.panel__photo {
  width: 100%;
  margin-bottom: 2rem;
  border-radius: 1.1rem;
}

.panel--sun {
  padding: clamp(1.8rem, 3.4vw, 3rem);
  border-radius: 1.6rem;
  background: var(--sun);
  color: #17130a;
}

.panel .stat {
  margin: 0;
  color: inherit;
  font-size: clamp(1.5rem, 2.5vw, 2.15rem);
  line-height: 1.24;
  letter-spacing: -0.015em;
}

.stat strong {
  font-weight: 700;
}

.panel__mark {
  width: 3.25rem;
  margin-bottom: 1.6rem;
}

.panel .lead {
  color: var(--paper);
  font-size: clamp(1.25rem, 1.9vw, 1.6rem);
  font-weight: 300;
  line-height: 1.42;
}

/* Tall, narrow screens (phones and tablets held upright): the swarm sits above the hero text, then shows
   through the gaps between cards. A phone on its side keeps the side-by-side layout. */
@media (max-width: 56rem) and (max-aspect-ratio: 1/1), (max-width: 34rem) {
  /* The hero text sits in the lower part of the screen. */
  .swarm {
    --scrim: y 0.34 0.56 0.84;
  }

  .swarm-stage,
  .swarm img {
    top: calc(var(--masthead) + 0.5rem);
    left: 4vw;
    width: 92vw;
    height: 42svh;
    transform: none;
    transition:
      top 0.01s,
      height 0.01s;
  }

  .is-past-hero .swarm-stage {
    top: calc(var(--masthead) + 4svh);
    height: 50svh;
  }

  .is-past-hero .swarm {
    --scrim: none;
  }

  .hero {
    align-content: end;
    padding: calc(var(--masthead) + 46svh) var(--edge) 6.25rem;
  }

  .hero__copy {
    max-width: none;
  }

  .hero__title {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .show {
    left: 0;
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
    padding: 0 var(--edge);
    overflow-x: auto;
    scrollbar-width: none;
  }

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

  .chip {
    flex: none;
  }

  /* Pause comes first, so it is on screen without scrolling the row. */
  .chip--toggle {
    order: -1;
    margin: 0 0.35rem 0 0;
  }

  .hud {
    display: none;
  }

  .scene {
    min-height: 0;
    padding: 58svh 0.75rem 0;
  }

  .scene:last-of-type {
    padding-bottom: 3rem;
  }

  .panel {
    width: auto;
    padding: 1.8rem 1.35rem 2rem;
    border: 1px solid var(--line);
    border-radius: 1.5rem;
    background: rgb(14 14 17 / 94%);
  }

  .panel--sun {
    border: 0;
    background: var(--sun);
  }

  .panel__cover {
    width: 9.5rem;
    margin-top: -4.5rem;
  }
}

/* Inner pages. A band carries the title, and on some pages a picture; the sections below are ordinary.
   The swarm belongs to the homepage alone. */

.page-hero {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  padding: calc(var(--masthead) + clamp(3rem, 9vw, 7rem)) var(--edge) clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}

/* A band with a picture beside the title, such as the book's cover. */
.page-hero--figure {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  padding-top: calc(var(--masthead) + clamp(2rem, 5vw, 4rem));
}

/* Pages that are only a band: contact, the two downloads, and the 404 page. */
.page-hero--solo {
  min-height: calc(100svh - 7.5rem);
  align-items: center;
  border-bottom: 0;
}

.page-hero__figure {
  display: grid;
  place-items: center;
  margin: 0;
  animation: rise 0.9s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.page-hero__figure img {
  width: auto;
  max-height: min(58svh, 32rem);
  filter: drop-shadow(0 1.6rem 2rem rgb(0 0 0 / 60%));
}

.page-hero__copy {
  max-width: 44rem;
}

.page-hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.9rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.page-hero--long h1 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.page-hero__lede {
  max-width: 33em;
  margin: 1.4rem 0 0;
  color: var(--soft);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 300;
  line-height: 1.5;
}

.page-hero .buttons {
  margin-top: 2rem;
}

.section {
  position: relative;
  padding: clamp(3.5rem, 7.5vw, 6.5rem) var(--edge);
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section > h2,
.section__title {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  font-size: clamp(1.9rem, 3.2vw, 2.9rem);
}

.prose {
  max-width: 42rem;
}

.prose p {
  color: var(--soft);
  font-size: 1.125rem;
  line-height: 1.7;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.figure {
  position: sticky;
  top: calc(var(--masthead) + 1.5rem);
  display: grid;
  gap: 1.25rem;
  justify-items: start;
  margin: 0;
}

.figure img {
  width: 100%;
  border-radius: 1.25rem;
}

/* Three statements, each hanging from a node, joined by one link. */
.points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.5vw, 3rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.points li {
  position: relative;
  padding-top: 2.6rem;
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  letter-spacing: -0.012em;
  line-height: 1.3;
}

.points li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 1.1rem;
  height: 1.1rem;
  border: 0.27rem solid var(--paper);
  border-radius: 50%;
  background: var(--node);
}

.points li::after {
  content: '';
  position: absolute;
  top: 0.49rem;
  left: 1.1rem;
  width: calc(100% + clamp(1.5rem, 3.5vw, 3rem) - 1.1rem);
  height: 2px;
  background: var(--node);
}

.points li:last-child::after {
  width: calc(100% - 1.1rem);
  background: linear-gradient(90deg, var(--node), transparent);
}

.points li:nth-child(1) {
  --node: var(--sky);
}

.points li:nth-child(2) {
  --node: var(--sun);
}

.points li:nth-child(3) {
  --node: var(--coral);
}

.statement {
  max-width: 27em;
  margin: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem);
  font-size: clamp(1.5rem, 2.7vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.24;
}

.cards {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.25rem;
}

.card {
  padding: clamp(1.6rem, 3vw, 2.6rem);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--ink-raised);
}

.card h2 {
  margin-bottom: 1.4rem;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

.quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 6vw, 5.5rem);
}

.quote {
  margin: 0;
}

.quote blockquote {
  margin: 0 0 1.3rem;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 300;
  line-height: 1.46;
}

.quote blockquote::before {
  content: '\201C';
  display: block;
  height: 0.5em;
  margin-bottom: 0.25em;
  color: var(--mark);
  font-size: 4.5rem;
  font-weight: 600;
  line-height: 1;
}

.quote blockquote p {
  margin: 0;
}

.quote:nth-child(4n + 1) {
  --mark: var(--sun);
}

.quote:nth-child(4n + 2) {
  --mark: var(--coral);
}

.quote:nth-child(4n + 3) {
  --mark: var(--sky);
}

.quote:nth-child(4n + 4) {
  --mark: var(--paper);
}

.quote figcaption {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.45;
}

.quote figcaption strong {
  display: block;
  color: var(--paper);
  font-weight: 500;
}

.author {
  display: grid;
  grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 4.5rem);
  align-items: center;
}

.author img {
  border-radius: 1.25rem;
}

.author h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.9rem, 3.2vw, 2.9rem);
}

.offer {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}

.offer img {
  max-height: 26rem;
  margin: 0 auto;
  width: auto;
  filter: drop-shadow(0 1.4rem 1.8rem rgb(0 0 0 / 55%));
}

.offer--flip {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
}

.offer--flip img {
  order: 2;
}

.offer h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.7rem, 2.9vw, 2.6rem);
}

.offer p {
  color: var(--soft);
  font-size: 1.125rem;
}

.touch h2 {
  margin-bottom: 0.4em;
  font-size: clamp(2.3rem, 5vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.touch p {
  max-width: 30em;
  margin-bottom: 1.6rem;
  color: var(--soft);
  font-size: 1.2rem;
}

/* Media: one featured piece, a list of articles, and tiles for podcasts and videos. */

.kicker {
  margin: 0;
  color: var(--kick, var(--sun));
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.3;
  text-transform: uppercase;
}

.go {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.go::after {
  content: '';
  width: 1.1em;
  height: 0.5em;
  background:
    radial-gradient(circle at calc(100% - 0.25em) 50%, currentcolor 0.24em, transparent 0.27em),
    linear-gradient(currentcolor, currentcolor) left center / calc(100% - 0.45em) 1.5px no-repeat;
  transition: width 0.25s;
}

a:hover .go::after,
.tile:hover .go::after {
  width: 1.9em;
}

.feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--ink-raised);
  transition: border-color 0.25s;
}

.feature:hover,
.tile:hover {
  border-color: rgb(244 240 232 / 42%);
}

.feature img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.feature__body {
  display: grid;
  gap: 0.9rem;
  padding: clamp(1.6rem, 3.2vw, 2.8rem);
}

.feature h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
}

.feature p {
  margin: 0;
  color: var(--soft);
}

.feature + .feature {
  margin-top: 1.25rem;
}

/* A square picture, such as a podcast's cover art. */
.feature--square {
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
}

.feature--square img {
  aspect-ratio: 1;
}

.feature__links {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.feature__links a {
  text-decoration-color: rgb(244 240 232 / 40%);
  transition:
    color 0.2s,
    text-decoration-color 0.2s;
}

.feature__links a:hover {
  color: var(--sky);
  text-decoration-color: currentcolor;
}

/* The title's link covers its whole card. */
.feature h2 a,
.tile h3 a {
  text-decoration: none;
}

.feature h2 a::after,
.tile h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.rows {
  --kick: var(--coral);
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.rows li {
  border-bottom: 1px solid var(--line);
}

.row {
  display: grid;
  grid-template-columns: 12.5rem minmax(0, 1fr) auto;
  gap: 0.4rem 2rem;
  align-items: baseline;
  padding: 1.4rem 0;
  text-decoration: none;
  transition:
    padding 0.25s,
    background-color 0.25s;
}

.row:hover {
  padding-inline: 1rem;
  background: var(--ink-raised);
}

.row__title {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.32;
}

/* The year, then the same edge-and-node mark the buttons use. */
.row__year {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  color: var(--muted);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  line-height: 1;
}

.row__year::after {
  content: '';
  width: 1.1em;
  height: 0.5em;
  color: var(--paper);
  background:
    radial-gradient(circle at calc(100% - 0.25em) 50%, currentcolor 0.24em, transparent 0.27em),
    linear-gradient(currentcolor, currentcolor) left center / calc(100% - 0.45em) 1.5px no-repeat;
  transition: width 0.25s;
}

.row:hover .row__year::after {
  width: 1.9em;
}

.rows--sun {
  --kick: var(--sun);
}

/* A year beside an outlet's name. */
.year {
  color: var(--muted);
  font-weight: 500;
}

.year::before {
  content: '\00b7';
  margin: 0 0.45em;
}

.subhead {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 1.25rem;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
}

/* Links to the sections of a long page. */
.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.8rem;
}

.jump a {
  padding: 0.6em 1em;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--soft);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition:
    border-color 0.2s,
    color 0.2s;
}

.jump a:hover {
  border-color: rgb(244 240 232 / 50%);
  color: var(--paper);
}

/* A list that opens on request, for the long tail. */
.more {
  margin-top: 1.5rem;
}

.more summary {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.95em 1.5em;
  border: 1px solid rgb(244 240 232 / 34%);
  border-radius: 99px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  list-style: none;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s;
}

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

.more summary span {
  color: var(--muted);
  font-weight: 500;
}

.more summary::after {
  content: '+';
  font-size: 1.15em;
  font-weight: 400;
}

.more[open] summary::after {
  content: '\2212';
}

.more summary:hover {
  border-color: var(--paper);
}

.more[open] summary {
  margin-bottom: 1.25rem;
}

.tiles {
  --kick: var(--sky);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tile {
  position: relative;
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding: clamp(1.4rem, 2.4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  transition:
    border-color 0.25s,
    background-color 0.25s;
}

.tile:hover {
  background: var(--ink-raised);
}

.tile h3 {
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
  line-height: 1.25;
}

.tile p:not(.kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.tile .go {
  margin-top: 0.5rem;
}

.tiles--video {
  --kick: var(--sun);
}

.tile__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 0.4rem;
  border-radius: 0.9rem;
  background: #000;
}

.tile__media img,
.tile__media iframe {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

/* A play button over the thumbnail of a video that plays in place. */
.tile__media--play::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    conic-gradient(from 240deg at 56% 50%, var(--ink) 0 60deg, transparent 0) center / 1.5rem 1.7rem no-repeat,
    radial-gradient(circle, var(--paper) 0 2.1rem, transparent 2.15rem);
  opacity: 0.94;
  transition: opacity 0.2s;
}

.tile.is-playing .tile__media {
  z-index: 2;
}

.tile.is-playing .tile__media::after {
  display: none;
}

@media (max-width: 56rem) and (max-aspect-ratio: 1/1), (max-width: 34rem) {
  .page-hero {
    padding-top: calc(var(--masthead) + 2.75rem);
  }

  .page-hero--figure {
    grid-template-columns: minmax(0, 1fr);
    padding-top: calc(var(--masthead) + 1rem);
  }

  /* The picture goes above the title. */
  .page-hero__figure {
    order: -1;
  }

  .page-hero__figure img {
    max-height: 38svh;
  }

  .split,
  .cards,
  .quotes,
  .author,
  .offer,
  .feature,
  .tiles {
    grid-template-columns: minmax(0, 1fr);
  }

  .figure {
    position: static;
    order: -1;
  }

  .author img {
    max-width: 15rem;
  }

  .offer--flip img {
    order: 0;
  }

  .offer img {
    max-height: 20rem;
  }

  /* The three statements stack, and the link between their nodes runs down the side. */
  .points {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }

  .points li {
    padding: 0 0 0 2.2rem;
  }

  .points li::before {
    top: 0.15em;
  }

  .points li::after,
  .points li:last-child::after {
    top: calc(0.15em + 1.1rem);
    left: 0.49rem;
    width: 2px;
    height: calc(100% + 1.75rem - 1.1rem);
    background: var(--node);
  }

  .points li:last-child::after {
    display: none;
  }

  .row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .row .kicker {
    grid-column: 1 / -1;
  }
}

/* Footer. */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding: 2.6rem var(--edge) 3rem;
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--soft);
  font-size: 0.95rem;
}

.footer .wordmark {
  color: var(--paper);
}

.footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer a:not(.wordmark) {
  text-decoration-color: transparent;
  transition:
    color 0.2s,
    text-decoration-color 0.2s;
}

.footer a:not(.wordmark):hover {
  color: var(--paper);
  text-decoration-color: currentcolor;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
