:root {
  --canvas: #f6f7f2;
  --paper: #fbfcfa;
  --white: #ffffff;
  --ink: #172017;
  --muted: #68756a;
  --soft: #eef3ea;
  --line: #dce3d8;
  --line-strong: #c9d4c5;
  --sage: #6a7f76;
  --signal: #d6e968;
  --cyan: #25c8e8;
  --coral: #ff6c59;
  --blue: #4d6fff;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --ease-settle: cubic-bezier(.22, .72, .24, 1);
  --ease-spring: cubic-bezier(.18, .88, .26, 1.12);
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--ui);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--canvas); }

body {
  min-width: 0;
  margin: 0;
  background:
    radial-gradient(circle at 88% 4%, rgba(214, 233, 104, .14), transparent 22rem),
    radial-gradient(circle at 7% 39%, rgba(148, 185, 174, .07), transparent 25rem),
    var(--canvas);
  color: var(--ink);
}

button, a { font: inherit; }

button { cursor: pointer; }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  transform: translateY(-180%);
  padding: 10px 12px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  text-decoration: none;
}

.skip-link:focus { transform: translateY(0); }

.site-header,
main,
.site-footer {
  max-width: 1380px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 34px;
  padding-left: 34px;
}

.site-header {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 74px;
  border-bottom: 1px solid rgba(23, 32, 23, .065);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  justify-self: start;
  gap: 5px;
  color: var(--ink);
  line-height: 1;
  text-decoration: none;
}

.wordmark-what {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.055em;
}

.wordmark-now {
  font-size: 22px;
  font-weight: 790;
  letter-spacing: -.085em;
}

.primary-nav {
  display: flex;
  justify-content: center;
  gap: 23px;
}

.primary-nav a {
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
  transition: color .16s var(--ease-settle);
}

.primary-nav a:hover,
.primary-nav a:focus-visible { color: var(--ink); }

.header-actions {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 10px;
}

.subscribe,
.menu-toggle {
  border: 1px solid var(--sage);
  border-radius: 0;
  background: transparent;
  color: var(--sage);
  font-size: 11px;
  font-weight: 680;
  letter-spacing: .01em;
  line-height: 1;
  transition: background-color .16s var(--ease-settle), color .16s var(--ease-settle);
}

.subscribe { padding: 9px 11px; }

.subscribe:hover,
.subscribe:focus-visible,
.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.menu-toggle { display: none; padding: 9px 10px; }

main { padding-bottom: 72px; }

.day-page {
  overflow: hidden;
  margin-top: 42px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 20px 60px rgba(38, 50, 32, .05);
}

.day-hero {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 295px;
  min-height: 505px;
  overflow: hidden;
  padding: 48px 42px 35px;
  border-bottom: 1px solid var(--line);
}

.day-marker {
  display: grid;
  align-content: start;
  gap: 7px;
}

.now-marker {
  width: 12px;
  height: 12px;
  margin: 6px 0 12px 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 7px rgba(214, 233, 104, .19);
}

.day-marker p,
.day-marker span:not(.now-marker),
.player-copy p,
.day-threads p,
.source-rail h2,
.archive-footer h2,
.dialog-body > p:first-of-type {
  margin: 0;
  color: var(--sage);
  font-size: 10px;
  font-weight: 680;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.day-marker span:not(.now-marker) { color: var(--muted); font-weight: 600; }

.day-title-wrap {
  position: relative;
  z-index: 1;
  align-self: end;
  max-width: 720px;
}

.day-title-wrap h1 {
  margin: 0;
  font-size: clamp(61px, 7.9vw, 122px);
  font-weight: 800;
  letter-spacing: -.08em;
  line-height: .85;
}

.day-title-wrap p {
  max-width: 415px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 17px;
  letter-spacing: -.02em;
  line-height: 1.4;
}

.day-object {
  position: relative;
  align-self: center;
  justify-self: end;
  width: 240px;
  height: 240px;
  transform: rotate(-10deg);
}

.day-object::before,
.day-object::after,
.day-object span,
.day-object i,
.day-object b {
  position: absolute;
  display: block;
  content: "";
}

.day-object::before {
  inset: 18px;
  border: 2px solid var(--cyan);
  transform: rotate(24deg);
}

.day-object::after {
  right: 9px;
  bottom: 7px;
  width: 80px;
  height: 80px;
  background: var(--coral);
}

.day-object span {
  top: 0;
  left: 34px;
  width: 142px;
  height: 142px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 18px 18px 0 var(--ink);
}

.day-object i {
  top: 78px;
  left: 3px;
  width: 56px;
  height: 56px;
  border: 2px solid var(--ink);
  transform: rotate(45deg);
}

.day-object b {
  top: 28px;
  right: 0;
  width: 16px;
  height: 152px;
  background: var(--blue);
}

.audio-player {
  display: grid;
  grid-template-columns: 52px minmax(160px, .75fr) 1.5fr auto;
  align-items: center;
  gap: 17px;
  padding: 17px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.play-control {
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
}

.play-icon {
  display: block;
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid currentColor;
}

.is-playing .play-icon {
  width: 12px;
  height: 13px;
  margin-left: 0;
  border: 0;
  background: linear-gradient(90deg, currentColor 0 35%, transparent 35% 65%, currentColor 65%);
}

.player-copy { display: grid; gap: 4px; }

.player-copy strong { font-size: 13px; letter-spacing: -.02em; }

.waveform {
  display: flex;
  height: 36px;
  align-items: center;
  gap: 3px;
  overflow: hidden;
}

.waveform i { flex: 1; height: 17%; background: var(--sage); opacity: .67; }
.waveform i:nth-child(2n) { height: 72%; }
.waveform i:nth-child(3n) { height: 42%; }
.waveform i:nth-child(5n) { height: 100%; background: var(--signal); }
.is-playing .waveform i { animation: wave 1.3s var(--ease-spring) infinite alternate; }
.is-playing .waveform i:nth-child(2n) { animation-delay: -.4s; }
.is-playing .waveform i:nth-child(3n) { animation-delay: -.75s; }

.player-time {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.player-note {
  grid-column: 2 / -1;
  margin: -7px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.day-threads {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0 24px;
}

.day-threads article {
  min-height: 174px;
  padding: 24px 24px 24px 0;
  border-right: 1px solid var(--line);
}

.day-threads article + article { padding-left: 24px; }
.day-threads article:last-child { border-right: 0; }

.day-threads h2 {
  max-width: 270px;
  margin: 13px 0 0;
  font-size: 21px;
  letter-spacing: -.045em;
  line-height: 1.05;
}

.source-rail {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 24px;
  padding: 25px 24px;
  border-top: 1px solid var(--line);
}

.source-rail ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-rail li {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.source-rail li span {
  display: block;
  margin-bottom: 7px;
  color: var(--sage);
  font-size: 10px;
  font-weight: 680;
  letter-spacing: .08em;
}

.archive-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 22px 24px;
  padding: 19px 24px;
  background: var(--soft);
}

.archive-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
}

.archive-link {
  display: inline-grid;
  grid-template-columns: auto auto 18px;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.archive-link span {
  color: var(--sage);
  font-size: 10px;
  font-weight: 680;
  letter-spacing: .06em;
}

.archive-link strong { font-size: 12px; font-weight: 650; }

.archive-link svg,
.dialog-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-width: 1.5;
}

.archive-link:hover strong,
.archive-link:focus-visible strong { text-decoration: underline; text-underline-offset: 4px; }

.archive-status {
  grid-column: 2;
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 2px;
  padding-top: 22px;
  padding-bottom: 22px;
  border-top: 1px solid var(--line);
  color: var(--sage);
  font-size: 11px;
  line-height: 1.4;
}

.site-footer p { margin: 0; }
.site-footer p:last-child { max-width: 520px; text-align: right; }

.subscribe-dialog {
  width: min(440px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(23, 32, 23, .18);
}

.subscribe-dialog::backdrop { background: rgba(23, 32, 23, .28); }

.dialog-body { position: relative; padding: 34px; }

.dialog-close {
  position: absolute;
  top: 15px;
  right: 15px;
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--sage);
}

.dialog-body h2 {
  max-width: 300px;
  margin: 30px 0 12px;
  font-size: 40px;
  font-weight: 780;
  letter-spacing: -.065em;
  line-height: .93;
}

.dialog-body > p:not(:first-of-type) {
  max-width: 315px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.dialog-status { margin-top: 18px !important; font-size: 12px !important; }

@keyframes wave {
  from { transform: scaleY(.38); }
  to { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 1040px) {
  .day-hero { grid-template-columns: 115px 1fr 210px; padding: 36px 28px 29px; }
  .day-object { width: 180px; height: 180px; }
  .day-threads h2 { font-size: 18px; }
}

@media (max-width: 760px) {
  .site-header,
  main,
  .site-footer { padding-right: 18px; padding-left: 18px; }

  .site-header { grid-template-columns: 1fr auto; min-height: 66px; }
  .menu-toggle { display: inline-flex; }

  .primary-nav {
    display: none;
    position: absolute;
    z-index: 10;
    top: calc(100% + 8px);
    right: 18px;
    left: 18px;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--line-strong);
    background: var(--paper);
    box-shadow: 0 14px 28px rgba(23, 32, 23, .08);
  }

  .primary-nav.is-open { display: grid; }

  .primary-nav a {
    padding: 15px 10px;
    border-right: 1px solid var(--line);
    color: var(--ink);
    font-size: 12px;
    text-align: center;
  }

  .primary-nav a:last-child { border-right: 0; }
  .subscribe { padding: 9px 10px; }
  .day-page { margin-top: 26px; }

  .day-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 29px;
    padding: 30px 18px 22px;
  }

  .day-marker { grid-template-columns: auto auto 1fr; align-items: center; gap: 8px; }
  .now-marker { margin: 0 3px 0 7px; }
  .day-title-wrap { max-width: 100%; }
  .day-title-wrap h1 { font-size: clamp(58px, 17vw, 93px); }
  .day-title-wrap p { margin-top: 18px; font-size: 15px; }

  .day-object {
    position: absolute;
    top: 32px;
    right: -52px;
    width: 142px;
    height: 142px;
    opacity: .88;
  }

  .day-object span { width: 94px; height: 94px; }
  .day-object::after { width: 47px; height: 47px; }
  .day-object b { height: 97px; }

  .audio-player { grid-template-columns: 46px 1fr auto; gap: 10px; padding: 14px 16px; }
  .waveform { grid-row: 2; grid-column: 1 / -1; }
  .player-time { grid-row: 1; grid-column: 3; }
  .player-time span:first-child { display: none; }
  .player-note { grid-row: 3; grid-column: 1 / -1; margin: 0; }

  .day-threads { grid-template-columns: 1fr; padding: 0 18px; }
  .day-threads article,
  .day-threads article + article {
    min-height: 0;
    padding: 21px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .day-threads article:last-child { border-bottom: 0; }
  .day-threads h2 { max-width: 350px; }

  .source-rail { grid-template-columns: 1fr; gap: 17px; padding: 22px 18px; }
  .source-rail ol { grid-template-columns: 1fr; gap: 12px; }

  .archive-footer { grid-template-columns: 1fr; gap: 14px; padding: 17px 18px; }
  .archive-links { display: grid; gap: 14px; }
  .archive-status { grid-column: 1; margin: 0; }
  .site-footer { flex-direction: column; margin-top: 0; }
  .site-footer p:last-child { text-align: left; }
}

@media (max-width: 390px) {
  .site-header,
  main,
  .site-footer { padding-right: 14px; padding-left: 14px; }

  .wordmark-what { font-size: 14px; }
  .wordmark-now { font-size: 20px; }
  .header-actions { gap: 6px; }
  .subscribe,
  .menu-toggle { padding-right: 8px; padding-left: 8px; font-size: 10px; }
  .primary-nav { right: 14px; left: 14px; }
  .day-title-wrap h1 { font-size: 54px; }
  .day-object { right: -71px; }
  .audio-player { grid-template-columns: 42px 1fr auto; padding: 13px 14px; }
  .play-control { width: 42px; height: 42px; }
  .player-copy strong { font-size: 12px; }
  .source-rail { padding: 19px 14px; }
  .archive-footer { padding: 16px 14px; }
  .archive-link { grid-template-columns: auto 1fr 18px; }
}
