/* Modelmatic Radio — warm night-studio static pages */

:root {
  color-scheme: dark;
  --bg-deep: #1a1612;
  --bg-surface: #242018;
  --bg-elevated: #2e2820;
  --text-primary: #e8e0d4;
  --text-muted: #a89f92;
  --accent: #c4923a;
  --accent-soft: rgba(196, 146, 58, 0.22);
  --border: rgba(232, 224, 212, 0.12);
  --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-heading: "Segoe UI", system-ui, -apple-system, sans-serif;
  --text-sm: 0.875rem;
  --text-base: 1.0625rem;
  --text-lg: 1.125rem;
  --text-xl: clamp(1.15rem, 2.5vw, 1.35rem);
  --max-width: 42rem;
  --page-width: 56rem;
}

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text-primary);
  background: radial-gradient(ellipse 120% 80% at 50% -20%, #3d3024 0%, var(--bg-deep) 55%);
}

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

a:hover {
  color: #ddb86a;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h2 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 1rem;
  color: var(--text-primary);
}

.site-header {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
}

.brand {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0;
}

.brand a {
  color: var(--text-primary);
  text-decoration: none;
}

.brand a:hover {
  color: var(--accent);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.25rem;
  font-size: 0.9375rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text-primary);
}

.site-nav a[aria-current="page"] {
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.1rem;
}

main {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.hero {
  margin: 1.75rem 0 2rem;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.lead {
  font-size: var(--text-xl);
  line-height: 1.5;
  color: var(--text-primary);
  max-width: var(--max-width);
  margin: 0 0 2rem;
}

.panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.75rem;
}

.panel h2 {
  margin-bottom: 0.85rem;
}

.listen-top {
  margin-top: 1.25rem;
}

.listen-now-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.now-playing-col,
.browser-player-col {
  min-width: 0;
}

@media (min-width: 640px) {
  .listen-now-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }

  .now-playing-col,
  .browser-player-col {
    flex: 1 1 0;
  }
}

.browser-player-col audio {
  width: 100%;
  border-radius: 4px;
}

.now-playing {
  font-size: var(--text-base);
  color: var(--text-muted);
}

.now-playing strong,
.now-playing .recent-artist {
  color: var(--text-primary);
  font-weight: 600;
}

.now-playing.is-unavailable {
  font-style: italic;
}

.listen-app-copy,
.stream-url-note {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.stream-copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.75rem;
  margin-bottom: 1rem;
}

.stream-url-box {
  flex: 1 1 12rem;
  font-size: var(--text-sm);
  background: var(--bg-elevated);
  padding: 0.55rem 0.75rem;
  border-radius: 4px;
  color: var(--text-primary);
  word-break: break-all;
  border: 1px solid var(--border);
}

.copy-btn {
  font: inherit;
  font-size: var(--text-sm);
  padding: 0.45rem 0.85rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-primary);
  cursor: pointer;
}

.copy-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.copy-feedback {
  font-size: var(--text-sm);
  color: var(--accent);
}

.stream-url-note code,
.listen-app-copy code {
  font-size: 0.8125rem;
  background: var(--bg-elevated);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  color: var(--text-primary);
}

.prose {
  max-width: var(--max-width);
}

.prose p {
  margin: 0 0 1.25rem;
}

.note {
  font-size: 0.9375rem;
  color: var(--text-muted);
  border-left: 3px solid var(--accent-soft);
  padding-left: 1rem;
  margin: 1.5rem 0 0;
}

.links-section {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.links-section h2 {
  color: var(--text-muted);
  font-weight: 600;
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.recent-list .recent-artist {
  color: var(--text-primary);
  font-weight: 600;
}

.recent-list a.track-link,
.now-playing a.track-link {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: underline;
}

.recent-list a.track-link:hover,
.now-playing a.track-link:hover {
  color: var(--accent);
}

.recent-empty {
  font-style: italic;
}

.jukebox-back {
  margin: 0 0 1rem;
  font-size: var(--text-base);
}

.jukebox-back a {
  font-weight: 600;
}

.site-footer {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border);
}

@media (min-width: 640px) {
  .link-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 1.75rem;
  }
}
