:root {
  color-scheme: dark light;
  --bg: light-dark(#f6f5f2, #121211);
  --fg: light-dark(#1a1a1a, #eceae4);
  --muted: light-dark(#5e5c57, #a19e96);
  --underline: light-dark(
    color-mix(in srgb, #1a1a1a 32%, transparent),
    color-mix(in srgb, #eceae4 36%, transparent)
  );
  --caution: light-dark(#c99700, #f0c014);
  --barrier: light-dark(#8a8883, #9a978f);
}

:root[data-theme="light"] {
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
}

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

html {
  background: var(--bg);
  color: var(--fg);
}

body {
  margin: 0;
  background: var(--bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
  letter-spacing: -0.011em;
  text-wrap: pretty;
}

main {
  max-width: calc(36rem + max(1.5rem, 11vw));
  padding: 15vh 1.5rem 5.5rem max(1.5rem, 11vw);
}

main:has(.back) {
  padding-top: 9vh;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 1.75rem;
  font-weight: 520;
  letter-spacing: -0.034em;
  line-height: 1.15;
}

h2 {
  font-size: 1.05rem;
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--underline);
}

a:hover {
  text-decoration-color: currentColor;
}

.about {
  max-width: 28rem;
  margin-top: 0.9rem;
}

@media (min-width: 641px) {
  main.wide {
    max-width: calc(68rem + max(1.5rem, 11vw));
  }
}

@media (min-width: 1100px) {
  main:has(.about) {
    max-width: calc(52rem + max(1.5rem, 11vw));
  }

  .about {
    max-width: 52rem;
  }
}

.paths {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  margin-top: 2.75rem;
}

.paths + .paths {
  margin-top: 0.45rem;
}

.paths .soon {
  position: relative;
  display: inline-block;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.paths .soon::after {
  content: "";
  position: absolute;
  left: -0.06em;
  top: 54%;
  width: calc(100% + 0.12em);
  height: 1.5px;
  background: var(--barrier);
  transform: translateY(-50%);
  transform-origin: center;
  transition: transform 0.28s ease;
  pointer-events: none;
}

.paths .soon:hover,
.paths .soon:focus-visible {
  color: var(--caution);
}

.paths .soon:hover::after,
.paths .soon:focus-visible::after {
  transform: translateY(-50%) rotate(-28deg) scaleX(0.84);
}

.paths .soon .tip {
  position: absolute;
  left: calc(100% + 0.7rem);
  top: 50%;
  transform: translateY(-50%);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  background: var(--fg);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.paths .soon:hover .tip,
.paths .soon:focus-visible .tip {
  opacity: 1;
  transition-delay: 0.45s;
}

.paths a,
.row a,
.back a {
  text-decoration: none;
}

.entry h2 a {
  text-decoration: none;
}

.paths a:hover,
.row a:hover,
.entry h2 a:hover,
.back a:hover,
.row button:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.paths a.fun:hover {
  text-decoration: none;
  background-image: linear-gradient(
    100deg,
    #6ea8ff 0%,
    #c084fc 32%,
    #fb7185 58%,
    #fbbf24 78%,
    #34d399 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 7px color-mix(in srgb, #c084fc 55%, transparent));
  animation: sounds-shift 1.1s ease-in-out infinite alternate;
}

@keyframes sounds-shift {
  from {
    background-position: 0% 50%;
  }

  to {
    background-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .paths a.fun:hover {
    animation: none;
    background-position: 40% 50%;
  }

  .paths .soon,
  .paths .soon::after {
    transition: none;
  }
}

.back {
  margin-bottom: 1.75rem;
  color: var(--muted);
}

.lead {
  margin-top: 0.55rem;
  color: var(--muted);
}

.list {
  margin-top: 2.5rem;
}

.lead + .list {
  margin-top: 2.15rem;
}

.entry + .entry {
  margin-top: 2.15rem;
}

.entry p,
.entry li {
  color: var(--muted);
}

.entry h2 {
  color: var(--fg);
}

.mark {
  width: 1.05em;
  height: 1.05em;
  margin-left: 0.4rem;
  vertical-align: -0.15em;
  object-fit: contain;
  border-radius: 2px;
}

.mark + .mark {
  margin-left: 0.28rem;
}

.when {
  margin-top: 0.2rem;
  font-size: 0.94rem;
}

.scope {
  margin-top: 0.7rem;
}

.entry ul {
  margin: 0.55rem 0 0;
  padding-left: 1.1rem;
}

.entry li + li {
  margin-top: 0.35rem;
}

.entry li::marker {
  color: color-mix(in srgb, var(--muted) 70%, transparent);
}

.blurb {
  margin-top: 0.2rem;
}

.detail {
  margin-top: 0.35rem;
}

.track {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  width: fit-content;
}

.cover {
  width: 1.35em;
  height: 1.35em;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.cover-link {
  display: inline-flex;
  border-radius: 2px;
  text-decoration: none;
}

.cover-link:hover .cover {
  box-shadow: 0 0 8px color-mix(in srgb, var(--fg) 50%, transparent);
}

.track .get {
  position: relative;
  display: inline-flex;
  margin: 0;
  color: var(--muted);
  flex: 0 0 auto;
  text-decoration: none;
}

.track .get svg {
  width: 1.25em;
  height: 1.25em;
}

.track .get .tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.35rem);
  transform: translateX(-50%);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  background: var(--fg);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.track .get:hover .tip,
.track .get:focus-visible .tip {
  opacity: 1;
  transition-delay: 0.45s;
}

.entry h2 .get:hover {
  color: var(--fg);
  text-decoration: none;
}

.player {
  max-width: 28rem;
  margin-top: 0.75rem;
}

.player audio {
  display: none;
}

.player-row {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  color: var(--fg);
}

.player-row button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.player-row button:hover {
  color: var(--fg);
}

.time {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.bar {
  display: flex;
  align-items: center;
  height: 1rem;
  margin-top: 0.35rem;
  cursor: pointer;
}

.bar i {
  position: relative;
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--fg) 28%, transparent);
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.bar:hover i {
  background: color-mix(in srgb, var(--fg) 55%, transparent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--fg) 45%, transparent);
}

.bar i span {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--fg);
}

.note {
  max-width: 40rem;
  margin-top: 0.85rem;
}

.note p + p {
  margin-top: 0.75rem;
}

.note button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--underline);
}

.note button:hover {
  text-decoration-color: currentColor;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  margin-top: 3rem;
  color: var(--muted);
}

.row button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 3px;
}

::selection {
  background: color-mix(in srgb, var(--fg) 14%, transparent);
}

@media (max-width: 640px) {
  main {
    padding: 4.5rem 1.25rem 5.5rem;
  }

  .about {
    max-width: none;
  }

  h1 {
    font-size: 1.6rem;
  }
}
