@font-face {
  font-family: "Syne Variable";
  src: url("/fonts/syne-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Newsreader;
  src: url("/fonts/newsreader-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f3f0e8;
  --paper-deep: #e7e1d6;
  --ink: #1a1916;
  --ink-soft: #5c5852;
  --rule: #6e6a62;
  --oxide: #8a4b32;
  --measure: 62ch;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); color: var(--ink); overflow-x: clip; }
body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.45;
}
::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-150%);
  background: var(--paper);
  color: var(--ink);
  padding: 0.6rem 0.8rem;
  z-index: 5;
}
.skip:focus { transform: none; }

.banner {
  margin: 0;
  background: var(--paper-deep);
  color: var(--ink-soft);
  padding: 0.85rem 1.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--rule);
}

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.25rem 0 0;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
  background: var(--paper-deep);
}
.nav-wrap nav { min-width: 0; flex: 1; display: flex; align-items: stretch; }
.nav-book {
  flex: none;
  align-self: center;
  margin: 0 0.6rem 0.55rem 0;
  padding-inline: 0.7rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.nav-book:focus-visible { outline-color: var(--paper); }
.nav-wrap ol {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0 1.25rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
}
.nav-wrap ol:focus-within { scroll-snap-type: none; }
.nav-wrap li { scroll-snap-align: start; flex: none; }
.nav-wrap a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.nav-wrap a span { color: var(--oxide); font-variant-numeric: tabular-nums; }

.identity, .section, .music-page, .admin, .room {
  padding: 2.5rem 1.5rem;
}
.identity {
  display: grid;
  gap: 1rem 1.5rem;
}
h1, h2, h3 { font-family: "Syne Variable", sans-serif; font-weight: 700; letter-spacing: -0.04em; }
h1 {
  margin: 0;
  font-size: clamp(4.5rem, 14vw, 9rem);
  line-height: 0.82;
  font-weight: 750;
  overflow-wrap: normal;
}
.identity h1, .music-page h1 { font-size: clamp(3.15rem, 7vw, 5.5rem); }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.75rem); line-height: 0.95; margin: 0 0 1.1rem; }
.kicker {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oxide);
}
.narrative {
  font-family: Newsreader, serif;
  font-size: 1.125rem;
  line-height: 1.5;
  max-width: var(--measure);
  margin: 0;
}
.narrative + .narrative { margin-top: 0.75rem; }
.name-line {
  margin: 0.55rem 0 0.85rem;
  color: var(--ink);
  font-family: Newsreader, serif;
  font-size: 1.45rem;
  line-height: 1.2;
}
.path { margin: 0.85rem 0 0; display: flex; flex-wrap: wrap; gap: 0.55rem 1.25rem; }
.path a { min-height: 44px; display: inline-flex; align-items: center; background: var(--paper); padding-inline: 0.15em; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

.swarm-stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100dvh;
  pointer-events: none;
  overflow: hidden;
}
.swarm-stage svg, .swarm-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 0.4;
}
.swarm-stage canvas {
  position: absolute;
  inset: 0;
}
.swarm-stage.is-live .swarm-still { visibility: hidden; }
.banner { position: relative; z-index: 5; background: var(--paper-deep); }
.nav-wrap { background: var(--paper-deep); }
main h1, main h2, main h3, main p, main li, main .card, main .warning, main .proof, main .search, main .trace, main .shelf-head, main details, main button, main form {
  position: relative;
  z-index: 2;
}
main p { background: var(--paper); }
main h1, main h2, main h3, main .kicker, main .narrative, main .name-line, main .meta, main .path a {
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  background: var(--paper);
  padding-inline: 0.12em;
}
.footer {
  position: relative;
  z-index: 2;
}
.listening-shelf { background: transparent; }
.listening li, .index li { background: var(--paper-deep); padding-inline: 0.85rem; }
.card, .warning, .proof, .search, .trace { background: var(--paper); }
.listening-shelf .listening { display: grid; }
.shelf-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1.5rem; }
.proof, .trace { display: grid; gap: 0.6rem; margin: 0.5rem 0 1rem; }
.proof [role="group"], .trace [role="group"] { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.proof button, .trace button { padding-inline: 0.9rem; min-height: 40px; border-radius: 999px; border: 1px solid var(--rule); }
.proof details, .trace details { margin-top: 0.4rem; }
.proof button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.proof summary, .trace summary { min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; }
.proof details .meta, .trace details .meta { max-width: var(--measure); margin-top: 0.2rem; }
.search label { flex: 1 1 14rem; min-width: 0; }
.search input, .search select { width: 100%; border-color: var(--rule); background: transparent; border-width: 0 0 1px; border-radius: 0; }
.room form label { display: grid; gap: 0.35rem; }
.room form input, .room form select { width: 100%; max-width: 40rem; }
ol.listening.is-tracing > li:not(.is-traced) { display: none; }
ol.listening.is-tracing > li.is-traced {
  outline: 1px solid var(--ink);
  outline-offset: 6px;
  margin-top: 0.8rem;
}
.shelf-head h2 { margin-bottom: 0.35rem; }
.shelf-tools { display: grid; justify-items: start; gap: 0.35rem; }
.shelf-tools .trace { margin: 0; }
[data-trace-status]:empty { display: none; }
.shelf-head .path { margin: 0; }
.music-page .search { background: var(--paper-deep); padding: 1rem; }
@media (max-width: 767px) {
  .banner { padding: 0.55rem 1rem; font-size: 0.72rem; letter-spacing: 0.08em; }
  main > .identity,
  main > .section,
  main > .music-page,
  .footer {
    width: min(calc(100% - 2.25rem), max(17rem, calc(100% - 8rem)));
    margin-inline: auto;
  }
  .identity { padding: 1.1rem 0.85rem 0.6rem; }
  .section, .music-page { padding-left: 0.85rem; padding-right: 0.85rem; }
  .listening-shelf { padding: 1.15rem 0.85rem 1.4rem; }
  .narrative { font-size: 1rem; line-height: 1.55; }
  .path { margin-top: 1.1rem; }
  .narrative + .narrative { margin-top: 1rem; }
  .card h3 { margin-bottom: 0.35rem; }
  .card .kicker { margin-bottom: 0.55rem; }
  .footer { padding-left: 0.85rem; padding-right: 0.85rem; }
  .music-page h1 { font-size: clamp(2.1rem, 9.5vw, 3rem); line-height: 0.95; margin-bottom: 0.75rem; }
  .music-page .kicker { margin-bottom: 0.55rem; }
  .shelf-head { margin-top: 1.5rem; }
  h2 { font-size: clamp(1.45rem, 6.2vw, 2rem); overflow-wrap: normal; }
  .index a, .listening a { overflow-wrap: normal; word-break: normal; }
}
.motion {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.6rem;
}
.motion-dock {
  position: static;
  z-index: 6;
  margin: 0 0.4rem 0 0;
  flex: none;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 0.1rem;
}
.motion-dock button { min-width: 44px; padding-inline: 0.45rem; }
@media (max-width: 767px) {
  .nav-wrap ol { gap: 0.25rem 0.7rem; padding-left: 0.9rem; padding-right: 0.9rem; }
  .nav-wrap a { letter-spacing: 0.04em; font-size: 0.72rem; }
}
button, .button {
  min-height: 44px;
  min-width: 44px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0;
  font: inherit;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}
button:disabled { color: var(--ink-soft); border-color: var(--rule); }
#join-form button[type="submit"], #join-call, #accept {
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 0.6rem 1.6rem;
  max-width: 320px;
  width: 100%;
}
#join-form button[type="submit"]:hover, #join-call:hover, #accept:hover { background: var(--oxide); border-color: var(--oxide); }
.warning { border-width: 2px; }

.section { border-top: 1px solid var(--rule); }
.listening, .index, .stack { list-style: none; margin: 0; padding: 0; }
.listening li, .index li, .stack article, .card {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
}
.listening a, .index a { font-family: Newsreader, serif; font-size: 1.35rem; line-height: 1.2; }
.listening a { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; }
.meta { margin: 0; color: var(--ink-soft); font-size: 0.85rem; }
.cards { display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); }
.card { padding: 1.25rem 1.25rem 1.4rem; }
.card + .card { border-top: none; }
.card h3 { margin: 0; font-size: 1.4rem; }
.card a { min-height: 44px; display: inline-flex; align-items: center; }
a.book-mail {
  font-family: Newsreader, serif;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  overflow-wrap: normal;
  word-break: normal;
}
.section, .identity, .territory, #watch, #mistress-recordings, #collection {
  scroll-margin-top: 7rem;
}
.catalogue-row {
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  background: var(--paper);
}
@media (max-width: 767px) {
  .catalogue-row { grid-template-columns: minmax(0, 1fr); }
  .catalogue-row .sleeve { width: 3.5rem; }
}
.sleeve {
  width: 4.75rem;
  aspect-ratio: 1;
  border: 1px solid var(--ink);
  background: var(--paper-deep);
  display: grid;
  place-items: center;
  position: relative;
}
.sleeve .groove {
  width: 68%;
  aspect-ratio: 1;
  border: 1px solid var(--ink);
  border-radius: 50%;
}
.sleeve .groove::after {
  content: "";
  display: block;
  width: 28%;
  aspect-ratio: 1;
  margin: 36% auto 0;
  border-radius: 50%;
  background: var(--oxide);
}
.watch, .catalogue-row, fieldset { position: relative; z-index: 2; background: var(--paper); }
fieldset { border: 1px solid var(--rule); padding: 0.8rem 1rem; margin: 0.8rem 0 0; }
fieldset[disabled] { color: var(--ink-soft); }
.watch-frame { width: 100%; min-height: 220px; border: 1px solid var(--ink); background: var(--paper-deep); }

.music-page { max-width: 72rem; }
.search { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end; margin: 1rem 0 1.5rem; }
.search label { display: grid; gap: 0.3rem; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
input, select, textarea {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 0;
  min-height: 44px;
  padding: 0.4rem 0.55rem;
}
textarea { min-height: 8rem; width: min(100%, 40rem); }

.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 2.5rem 1.25rem 3rem;
}
.footer li { min-width: 0; overflow-wrap: break-word; }
.footer a, .section a, .music-page a {
  display: inline-block;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: break-word;
}
.footer a {
  color: var(--paper);
  min-height: 44px;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}
.footer :focus-visible { outline-color: var(--paper); }
.footer .kicker, .footer .path, .footer .path a, .footer a, .footer p, .footer li, .footer .meta, .footer h2, .footer h3 {
  background: transparent;
  box-decoration-break: slice;
  -webkit-box-decoration-break: slice;
}
.footer .kicker { color: #f3f0e8; }
.footer a, .footer .path a { color: var(--paper); }
.footer .meta { color: #c8c1b4; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; grid-template-columns: minmax(0, 1fr); }

.admin, .room { max-width: 72rem; }
@media (min-width: 1024px) {
  .room { width: min(58rem, calc(100% - 16vw)); margin-inline: auto; }
}
.fan-page { background: var(--paper); }
.room-edge {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}
.room-edge svg { width: 100%; height: 100%; }
@media (max-width: 767px) {
  .room-edge { opacity: 0.18; }
  .fan-page .banner, .fan-page .room { background: var(--paper); }
}
.fan-page .banner, .fan-page .room { position: relative; z-index: 1; background: var(--paper); }
.room h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); line-height: 0.95; }
.admin form, .room form { display: grid; gap: 0.8rem; margin: 1rem 0 2rem; }
.row-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.warning {
  border: 1px solid var(--ink);
  padding: 0.9rem 1rem;
  max-width: 62ch;
  background: var(--paper-deep);
}
.video-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.video-grid video, .tile {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--ink);
  color: var(--paper);
  object-fit: cover;
}
.tile { display: grid; place-items: center; padding: 0.5rem; text-align: center; }
.log { list-style: none; margin: 0; padding: 0; }
.log li { border-top: 1px solid var(--rule); padding: 0.7rem 0; }
.dock {
  position: static;
  margin-top: 0.6rem;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 0.5rem;
}
.dock iframe { width: 100%; height: 180px; border: 0; }
@media (min-width: 768px) {
  .dock {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 4;
  }
  body:has(.dock) { padding-bottom: 240px; }
}
@media (min-width: 768px) {
  .listening-shelf .listening { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
}
@media (min-width: 1100px) {
  .identity, .section, .music-page {
    width: min(58rem, calc(100% - 16vw));
    margin-inline: auto;
  }
}
@media (min-width: 1024px) {
  .nav-wrap ol { flex-wrap: wrap; overflow: visible; padding-left: 2rem; padding-right: 2rem; }
  .identity, .section { padding: 2.4rem 2rem; }
  .identity {
    grid-template-columns: 8rem minmax(0, 1fr);
    max-width: 68rem;
    margin: 0 auto;
    align-items: start;
  }
  .identity .kicker { padding-top: 0.35rem; }
  .nav-wrap, .music-page, .footer, .admin, .room { padding-left: 2rem; padding-right: 2rem; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 2.5rem; }
  .card { padding: 0 0 1.4rem; }
}
