:root {
  --paper: #fbfaf6;
  --hero: #fbfaf6;
  --ink: #23211d;
  --soft-ink: #3e3933;
  --muted: #736e66;
  --line: #ddd6c9;
  --sage: #66765d;
  --blue: #486a7c;
  --rose: #9b6f68;
  --bar: rgba(251, 250, 246, 0.98);
  --shadow: 0 12px 30px rgba(36, 31, 24, 0.11);
  --font: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
}

body {
  min-height: 100vh;
  margin: 0;
  padding-bottom: 78px;
}

body::selection {
  background: rgba(102, 118, 93, 0.22);
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

#app {
  min-height: calc(100vh - 98px);
  outline: none;
}

.bio-hero {
  min-height: calc(100vh - 20px);
  display: grid;
  align-items: center;
  padding: 74px clamp(22px, 6vw, 76px);
  background: var(--hero);
}

.bio-wrap,
.page-shell,
.essay-shell {
  width: min(100%, 790px);
  margin: 0 auto;
}

.bio-wrap {
  padding-top: 3vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.bio-identity {
  width: min(100%, 690px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  margin-bottom: 34px;
}

.profile-photo {
  width: 156px;
  height: 156px;
  flex: 0 0 156px;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(102, 118, 93, 0.24);
  border-radius: 0;
}

.kicker {
  margin: 0 0 18px;
  color: var(--sage);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 26px;
  color: var(--ink);
  font-size: clamp(56px, 12vw, 136px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.88;
}

.bio-title {
  max-width: 12ch;
  margin: 0;
  color: var(--sage);
  font-size: clamp(28px, 4.8vw, 52px);
  line-height: 1;
}

.bio-lede {
  max-width: 720px;
  margin: 0 0 24px;
  color: var(--soft-ink);
  font-size: clamp(18px, 2.5vw, 27px);
  line-height: 1.32;
}

.bio-body {
  max-width: 690px;
  color: var(--soft-ink);
  font-size: 18px;
  line-height: 1.72;
}

.essay p {
  max-width: 690px;
  color: var(--soft-ink);
  font-family: "Times New Roman", Times, serif;
  font-size: 18px;
  line-height: 1.72;
}

.bio-body {
  width: min(100%, 690px);
  margin: 0 0 30px;
  text-align: left;
}

.bio-wrap .text-link {
  align-self: center;
}

.text-link,
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--sage);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.text-link::after {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

.back-link::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

.page-back {
  position: fixed;
  top: 28px;
  left: clamp(22px, 6vw, 76px);
  z-index: 15;
  margin-top: 0;
}

.page-shell {
  padding: 78px clamp(22px, 6vw, 76px) 84px;
}

.essay h1 {
  max-width: 760px;
  font-size: clamp(28px, 4.8vw, 52px);
  line-height: 1.08;
}

.idea-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.idea-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.idea-row strong {
  display: block;
  color: var(--ink);
  font-size: clamp(19px, 2.8vw, 28px);
  font-weight: 400;
  line-height: 1.05;
}

.idea-row small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
}

.idea-row time {
  color: var(--muted);
  font-family: var(--font);
  font-size: 13px;
  white-space: nowrap;
}

.idea-row:hover strong {
  color: var(--blue);
}

.essay-shell {
  padding: 78px clamp(22px, 6vw, 76px) 86px;
}

.essay {
  margin-top: 42px;
}

.essay header {
  margin-bottom: 28px;
}

.essay p {
  margin: 0 0 26px;
}

.essay figure {
  margin: 44px 0;
}

.essay img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

.essay figcaption {
  margin-top: 11px;
  color: var(--muted);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.45;
}

.music-bar {
  position: fixed;
  z-index: 30;
  left: 50%;
  right: auto;
  bottom: clamp(12px, 3vw, 22px);
  width: min(430px, calc(100vw - 24px));
  min-height: 48px;
  display: grid;
  grid-template-columns: 30px 36px 30px minmax(110px, 1fr) 30px;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  background: var(--bar);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.music-bar audio {
  display: none;
}

.round-button {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.round-button:hover {
  color: var(--blue);
  border-color: rgba(72, 106, 124, 0.55);
}

.play-button {
  width: 36px;
  height: 36px;
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

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

.round-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mute-button svg {
  width: 19px;
  height: 19px;
}

.mute-button {
  position: relative;
}

.mute-button::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  opacity: 0;
  transform: rotate(-42deg) scaleX(0.7);
  transition: opacity 120ms ease, transform 120ms ease;
}

.mute-button.is-muted {
  color: var(--paper);
  background: var(--blue);
  border-color: var(--blue);
}

.mute-button.is-muted::after {
  opacity: 1;
  transform: rotate(-42deg) scaleX(1);
}

.play-button svg {
  fill: currentColor;
  stroke: none;
}

.play-button.is-playing svg {
  width: 16px;
  height: 16px;
}

.track-meta {
  display: none;
  min-width: 0;
  gap: 1px;
  font-family: var(--font);
}

.track-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-meta span:first-child {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.track-meta span:last-child {
  color: var(--muted);
  font-size: 10px;
}

.progress {
  width: 100%;
  accent-color: var(--blue);
}

.progress {
  height: 18px;
}

.progress,
.volume {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
}

.progress::-webkit-slider-runnable-track,
.volume::-webkit-slider-runnable-track {
  height: 2px;
  background: #d7d0c3;
  border-radius: 999px;
}

.progress::-webkit-slider-thumb,
.volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  background: var(--blue);
  border: 0;
  border-radius: 50%;
}

.progress::-webkit-slider-thumb {
  margin-top: -4px;
}

.progress::-moz-range-track,
.volume::-moz-range-track {
  height: 2px;
  background: #d7d0c3;
  border-radius: 999px;
}

.progress::-moz-range-thumb,
.volume::-moz-range-thumb {
  width: 10px;
  height: 10px;
  background: var(--blue);
  border: 0;
  border-radius: 50%;
}

.volume-control {
  position: relative;
  display: grid;
  place-items: center;
}

.volume-control::before {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 100%;
  width: 46px;
  height: 16px;
  transform: translateX(50%);
}

.volume-popover {
  position: absolute;
  right: 50%;
  bottom: calc(100% + 6px);
  width: 38px;
  height: 132px;
  display: grid;
  place-items: center;
  padding: 12px 0;
  background: var(--bar);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(36, 31, 24, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, 7px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.volume-control:hover .volume-popover,
.volume-control.is-open .volume-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translate(50%, 0);
}

.volume {
  width: 18px;
  height: 104px;
  accent-color: var(--blue);
  cursor: pointer;
  writing-mode: vertical-lr;
  direction: rtl;
}

.volume::-webkit-slider-runnable-track {
  width: 2px;
  height: 104px;
}

.volume::-webkit-slider-thumb {
  margin-top: 0;
  margin-left: -4px;
}

.volume::-moz-range-track {
  width: 2px;
  height: 104px;
}

.empty-note {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

@media (max-width: 760px) {
  body {
    padding-bottom: 80px;
  }

  .bio-hero {
    min-height: auto;
    padding-top: 70px;
  }

  .bio-identity {
    gap: 18px;
  }

  .profile-photo {
    width: 118px;
    height: 118px;
    flex-basis: 118px;
  }

  .idea-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .music-bar {
    left: 50%;
    right: auto;
    width: calc(100vw - 24px);
    grid-template-columns: 30px 36px 30px minmax(0, 1fr) 30px;
    min-height: 48px;
  }

  .progress,
  .track-meta span:last-child {
    display: none;
  }

  .volume-control::before {
    right: 0;
    bottom: 100%;
    width: 148px;
    height: 18px;
    transform: none;
  }

  .volume-popover {
    right: 0;
    bottom: calc(100% + 8px);
    width: 148px;
    height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    transform: translateY(7px);
  }

  .volume-control:hover .volume-popover,
  .volume-control.is-open .volume-popover {
    transform: translateY(0);
  }

  .volume {
    width: 100%;
    height: 20px;
    writing-mode: horizontal-tb;
    direction: ltr;
  }

  .volume::-webkit-slider-runnable-track {
    width: 100%;
    height: 2px;
  }

  .volume::-webkit-slider-thumb {
    margin-top: -4px;
    margin-left: 0;
  }

  .volume::-moz-range-track {
    width: 100%;
    height: 2px;
  }
}

@media (max-width: 430px) {
  .bio-lede {
    font-size: 18px;
  }

  .bio-body,
  .essay p {
    font-size: 16px;
  }
}
