/* district sun: one page, no build step. The colours come from the hero
   image: night blue, sand and sunlight. */
@font-face { font-family: "Syncopate"; src: url("/fonts/syncopate-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Syncopate"; src: url("/fonts/syncopate-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --night: #0a0f14;
  --panel: #111a23;
  --line: #24323f;
  --ink: #eef2f5;
  --muted: #9aa8b4;
  --sand: #efcd8c;
  --sun: #fff3d6;
  --sky: #8fcaf2;
  --sky-ink: #06182a;
  --display: "Syncopate", "Arial Black", sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--ink); font: 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.top { position: absolute; inset: 0 0 auto; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px var(--gutter); background: linear-gradient(rgba(5,10,16,.5), transparent); }
.mark { font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: .32em; text-decoration: none; }
.top nav { display: flex; gap: clamp(16px, 3vw, 34px); }
.top nav a { font-family: var(--display); font-size: 11px; letter-spacing: .24em; text-decoration: none; opacity: .85; transition: opacity .2s, color .2s; }
.top nav a:hover { opacity: 1; color: var(--sun); }

/* The hero: a wide band of the image that fades into the page. */
.hero { position: relative; height: clamp(440px, 42vw, 640px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; animation: settle 20s ease-out both; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, transparent 40%, rgba(10,15,20,.3) 60%, rgba(10,15,20,.82) 85%, var(--night)); }
@keyframes settle { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-text { width: 100%; padding: 0 var(--gutter) clamp(44px, 9vh, 96px); text-align: center; }
h1 { margin: 0; padding-left: .16em; font-family: var(--display); font-size: clamp(26px, 6.6vw, 108px); font-weight: 700; letter-spacing: .16em; line-height: 1.05; text-shadow: 0 2px 40px rgba(0,0,0,.5); }
.actions { margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.button { min-height: 48px; padding: 0 24px; display: inline-flex; align-items: center; border: 1px solid rgba(238,242,245,.4); border-radius: 999px; background: rgba(10,15,20,.35); backdrop-filter: blur(8px); color: var(--ink); font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: .22em; text-decoration: none; transition: background .2s, border-color .2s, transform .2s; }
.button:hover { border-color: var(--sun); transform: translateY(-1px); }
/* Sky blue, glowing like the sun behind it. */
.button.primary { border-color: var(--sky); background: var(--sky); color: var(--sky-ink); box-shadow: 0 0 26px rgba(255,196,120,.55), 0 0 70px rgba(255,170,80,.3); }
.button.primary:hover { background: #b9ddf7; box-shadow: 0 0 30px rgba(255,196,120,.7), 0 0 80px rgba(255,170,80,.4); }

.section { max-width: 1180px; margin: 0 auto; padding: clamp(72px, 11vw, 132px) var(--gutter) 0; }
.hero + .section { padding-top: clamp(40px, 6vw, 72px); }
.eyebrow { margin: 0 0 12px; color: var(--sand); font-family: var(--display); font-size: 11px; letter-spacing: .34em; }
h2 { margin: 0 0 32px; font-family: var(--display); font-size: clamp(24px, 3.6vw, 44px); font-weight: 700; letter-spacing: .12em; line-height: 1.1; }

/* The Spotify player: a button until pressed (players.js). Spotify picks its
   layout from the frame's height and falls back to a smaller one, leaving
   the rest white, below exactly 152 px; so the frame, not the box around it,
   is 152 px, and the button before it is too. */
.player { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.player iframe { display: block; width: 100%; border: 0; }
.spotify iframe, .spotify .player-start { height: 152px; }
.player-start { width: 100%; padding: 0 clamp(20px, 4vw, 40px); display: flex; align-items: center; gap: clamp(16px, 3vw, 28px); text-decoration: none; background: radial-gradient(40% 140% at 0% 50%, rgba(239,205,140,.16), transparent 70%); }
.player-label { display: grid; gap: 6px; }
.player-start strong { font-family: var(--display); font-size: 13px; letter-spacing: .2em; }
.player-start small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.play { flex: none; width: 68px; height: 68px; display: grid; place-items: center; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 10px rgba(255,196,120,.12), 0 0 50px rgba(255,180,90,.5); transition: transform .2s; }
.play::before { content: ""; margin-left: 5px; border-left: 18px solid var(--sky-ink); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.player-start:hover .play { transform: scale(1.06); }

/* Releases: square covers; a sun over the horizon stands in until a cover is
   added to images/covers. */
.releases { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 32px 22px; }
.release a { display: block; text-decoration: none; }
.cover { aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: var(--panel); box-shadow: 0 18px 40px rgba(0,0,0,.35); transition: transform .25s; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.release a:hover .cover { transform: translateY(-4px); }
.cover.waiting { background: radial-gradient(circle at 50% 46%, var(--sun) 0 8%, rgba(239,205,140,.35) 9% 18%, transparent 40%), linear-gradient(#1d3a55, #102131 55%, #3b2f1d 56%, #1a150d); }
.release h3 { margin: 14px 0 2px; font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .14em; line-height: 1.5; }
.release p { margin: 0; color: var(--muted); font-size: 14px; }

/* MaxVRS, the synthesizer district sun designs: one card linking to it. */
.synth { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(24px, 4vw, 56px); padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); border-radius: 16px; background: radial-gradient(50% 80% at 0% 0%, rgba(143,202,242,.12), transparent 70%), var(--panel); text-decoration: none; transition: border-color .2s; }
.synth:hover { border-color: rgba(143,202,242,.5); }
.synth-logo { width: min(240px, 70%); height: auto; }
.synth-text p { margin: 20px 0 26px; color: #cdd6dd; }
.synth-shot { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
@media (max-width: 800px) { .synth { grid-template-columns: 1fr; } }

.about p { max-width: 680px; margin: 0 0 18px; color: #cdd6dd; font-size: 18px; line-height: 1.7; }
.about .lead { color: var(--ink); font-size: clamp(20px, 2.2vw, 24px); line-height: 1.5; }
.about strong { color: var(--ink); font-weight: 700; }
.about a strong { color: var(--sky); }
.about a { color: var(--sky); text-decoration-color: rgba(143,202,242,.4); text-underline-offset: 3px; }

.footer { max-width: 1180px; margin: clamp(80px, 12vw, 140px) auto 0; padding: 28px var(--gutter) 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer a { color: var(--ink); }
.footer-links { display: flex; gap: 24px; }

@media (max-width: 560px) {
  .top nav { display: none; }
  .play { width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-image { animation: none; }
  .button, .cover, .play { transition: none; }
}
