:root {
  color-scheme: dark;
  --bg: #212329;
  --panel: #292c34;
  --panel-deep: #25272e;
  --line: #383c46;
  --text: #f2f4fa;
  --muted: #b9bfcc;
  --accent: #3068eb;
  --accent-light: #90afff;
  --radius: 20px;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  line-height: 1.55;
  background: var(--bg);
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: calc(115px + env(safe-area-inset-bottom));
  background: radial-gradient(ellipse 62rem 33rem at 50% -230px, #2f3a58, transparent 100%);
}
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
button:not(:disabled), input:not(:disabled) { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
picture, img { display: block; }
img { max-inline-size: 100%; }

.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 10px 14px; border-radius: 8px; background: var(--accent); }
.skip-link:not(:focus) { clip-path: inset(50%); }
.shell { width: min(1040px, calc(100% - 56px)); margin-inline: auto; }
.masthead { text-align: center; padding: 52px 14px 40px; }
.wordmark {
  font-size: clamp(3.35rem, 1.75rem + 4vw, 5.25rem);
  line-height: 1;
  font-weight: 790;
  letter-spacing: -.065em;
  margin-left: -.06em;
}
.wordmark span { color: var(--accent-light); }
.navigation {
  margin-top: 24px;
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #292c34;
}
.navigation a {
  padding: 9px clamp(10px, 3.3vw, 22px);
  border-radius: 11px;
  color: var(--muted);
  font-size: .9375rem;
  font-weight: 610;
  white-space: nowrap;
  transition: color .18s, background .18s, box-shadow .18s;
}
.navigation a:hover { color: var(--text); background: #363a45; }
.navigation a[aria-current] { color: #fff; background: var(--accent); box-shadow: 0 2px 12px #173e9560; }
.page { animation: enter .3s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.hero {
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  overflow: hidden;
  isolation: isolate;
  min-height: 394px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel-deep);
  box-shadow: 0 18px 70px #14161a48;
}
.hero-copy { display: grid; justify-items: start; align-content: center; gap: 22px; padding: 42px min(5.5vw, 65px); }
.hero h2, .section-intro h2, .donation-panel h2 {
  font-size: clamp(2.6rem, 2rem + 3vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -.065em;
  font-weight: 745;
  overflow-wrap: anywhere;
}
.hero .prose { max-width: 37ch; color: var(--muted); }
.prose p + p { margin-top: .75em; }
.hero-media { position: relative; min-width: 0; background: #25334e; }
.hero-media picture, .hero-media img { width: 100%; height: 100%; }
.hero-media img { position: absolute; inset: 0; object-fit: cover; object-position: center; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #25272e34, transparent 29%); pointer-events: none; }
.hero:has(.hero-media[hidden]) { grid-template-columns: 1fr; }
.hero-actions, .links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.links:empty { display: none; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: .9375rem;
  font-weight: 650;
  transition: background .18s ease, transform .18s ease, border-color .18s ease;
}
.button:hover { background: #363a45; border-color: #575e70; transform: translateY(-2px); }
.button.primary { background: var(--accent); border-color: transparent; color: #fff; }
.button.primary:hover { background: #245ad5; }

.gallery-section { margin-top: 38px; }
.section-title { font-size: 1.4rem; font-weight: 670; letter-spacing: -.023em; margin-bottom: 14px; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); min-width: 0; overflow: hidden; }
.card-media { display: block; width: 100%; padding: 0; border: 0; background: #202735; }
.card-media picture { overflow: hidden; aspect-ratio: 2.48; }
.card-media img { height: 100%; width: 100%; object-fit: cover; transition: transform .35s ease; }
button.card-media:hover img { transform: scale(1.04); }
button.card-media:focus-visible { outline-offset: -4px; }
.card-label, .card-body { padding: 14px 19px; }
.card-label { font-weight: 620; }
.card-body { padding-block: 19px 22px; }
.card-body h3 { font-size: 1.3rem; letter-spacing: -.025em; }
.card-body p { margin: 6px 0 0; color: var(--muted); }
.card-body .button { margin-top: 16px; }
.section-intro { margin: 8px 0 26px; }
.section-intro h2, .donation-panel h2 { font-size: clamp(2.5rem, 2rem + 2.5vw, 3.6rem); }
.section-intro p, .secondary-text { color: var(--muted); margin-top: 12px; }
.donation-panel {
  display: grid;
  justify-items: center;
  gap: 15px;
  padding: clamp(30px, 8vw, 84px) 22px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel-deep);
}
.donation-panel p { max-width: 49ch; color: var(--muted); margin: 0; }
.donation-panel .secondary-text { font-size: .9375rem; }
.donation-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: #2d395a; color: var(--accent-light); font-size: 1.8rem; line-height: 1; }
.donation-panel .links { justify-content: center; }
.site-footer { margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }

.media-dialog { padding: 12px; border: 1px solid var(--line); border-radius: 19px; background: var(--panel-deep); color: var(--text); width: max-content; max-width: calc(100vw - 24px); }
.media-dialog::backdrop { background: #0c1019d9; }
.media-dialog img { max-height: 75vh; width: auto; object-fit: contain; border-radius: 10px; }
.media-dialog p { margin: 9px 4px 1px; }
.icon-button.close-preview { position: absolute; top: 19px; right: 19px; z-index: 1; background: #20232dee; font-size: 1.6rem; }
.icon-button.close-preview:hover { background: #424754; }

.player {
  position: fixed;
  z-index: 5;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  width: min(390px, calc(100% - 32px));
  padding: 11px 12px 9px;
  border: 1px solid #444854;
  border-radius: 17px;
  background: #2d3039;
  box-shadow: 0 10px 34px #12141b9c;
}
.player-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.track-art { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 2px; background: #324574; color: #a2bcff; }
.track-art span { width: 2px; height: 11px; border-radius: 2px; background: currentColor; }
.track-art span:nth-child(2) { height: 19px; }
.track-art span:nth-child(3) { height: 15px; }
.track-art span:nth-child(4) { height: 7px; }
.player.is-playing .track-art span { animation: level .8s ease-in-out infinite alternate; }
.track-art span:nth-child(2n) { animation-delay: -.36s !important; }
@keyframes level { from { transform: scaleY(.65); } to { transform: scaleY(1.15); } }
.track-title { font-size: .9375rem; font-weight: 690; line-height: 1.28; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-status { margin-top: 3px; font-size: .8125rem; color: var(--muted); line-height: 1.2; }
.controls { display: flex; align-items: center; gap: 2px; }
.icon-button {
  display: grid;
  place-items: center;
  width: 37px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  transition: background .18s ease, color .18s ease;
}
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-button:hover { background: #424754; }
.icon-button:disabled { opacity: .38; }
.icon-button:disabled:hover { background: transparent; }
.play-button { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: #fff; }
.play-button:hover { background: #245ad5; }
.play-icon path { fill: currentColor; stroke: none; }
.play-button .pause-icon, .is-playing .play-icon { display: none; }
.is-playing .pause-icon { display: block; }
.track-timeline { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; margin: 3px 1px 0; font-size: .75rem; font-variant-numeric: tabular-nums; color: var(--muted); }
#seek { margin: 0; width: 100%; height: 22px; accent-color: var(--accent-light); }

@media (max-width: 670px) {
  .shell { width: calc(100% - 32px); }
  .masthead { padding-block: 38px 28px; }
  .navigation { margin-top: 19px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 33px 24px; }
  .hero-media { min-height: clamp(180px, 53vw, 290px); }
  .hero-media::after { background: linear-gradient(#25272e24, transparent 25%); }
  .gallery-section { margin-top: 27px; }
  .card-grid { gap: 11px; }
  .card-media picture { aspect-ratio: 1.55; }
  .card-label, .card-body { padding-inline: 12px; }
  .mods-grid { grid-template-columns: 1fr; }
  .mods-grid .card-media picture { aspect-ratio: 2.15; }
  .player { right: max(12px, env(safe-area-inset-right)); bottom: max(11px, env(safe-area-inset-bottom)); width: min(390px, calc(100% - 24px)); }
  .player-row { gap: 8px; }
  .track-art { width: 34px; height: 36px; }
  .controls .icon-button:not(.play-button) { width: 33px; }
}
@media (max-width: 360px) {
  .player { padding-inline: 8px; }
  .player-row { gap: 6px; }
  .track-art { width: 32px; height: 36px; }
  .controls { gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
