
/* Finlandica global tightening: kerning -10, word-spacing -40% */
h1, h2, h3, h4,
.nav-links a,
.btn,
.filter-btn,
.track-title,
.release-artist,
.stat-num,
.product-tag,
.product-name,
.related-title,
.lyrics-toggle,
.hero-art-badge,
.fmt-type,
.footer-col h4,
.modal h2 {
  letter-spacing: -0.025em;
  word-spacing: -0.15em;
}
:root {
  --bg: #3f3f44;
  --surface: #36363b;
  --surface-hover: #3a3a3f;
  --text: #ede8e5;
  --text-dim: #a09a95;
  --accent: #f1d7d4;
  --accent-hover: #f7e4e2;
  --accent-glow: rgba(241,215,212,0.1);
  --accent-dark: #3f3f44;
  --border: #4a4a50;
  --radius: 6px;
  --max-w: 1080px;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html { scroll-padding-top: env(safe-area-inset-top, 0px); scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Open Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(63,63,68,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: transform 0.3s ease;
}
body.nav-collapsed nav { transform: translateY(-100%); }
.nav-tab {
  position: fixed; top: 0; left: 50%; z-index: 101;
  width: 64px; height: 30px; padding-top: env(safe-area-inset-top, 0px);
  box-sizing: content-box;
  display: flex; align-items: center; justify-content: center;
  background: #4a4a50; border: 1px solid #55555b; border-top: none;
  border-radius: 0 0 8px 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  cursor: pointer; transform: translate(-50%, -110%);
  transition: transform 0.3s ease, background 0.2s;
}
.nav-tab:hover { background: #55555b; }
.nav-tab svg { width: 24px; height: 14px; stroke: var(--text-dim); }
body.nav-collapsed .nav-tab { transform: translate(-50%, 0); }
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding-top: 14px; padding-bottom: 12px;
}
.nav-logo { height: 34px; cursor: pointer; }
.nav-logo svg { height: 100%; width: auto; fill: var(--text); }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--text-dim); text-decoration: none; font-size: 14px;
  font-weight: 500; transition: color 0.2s; cursor: pointer;
  font-family: 'Finlandica', sans-serif;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

/* PAGES */
.page { display: none; }
.page.active { display: block; }

/* HOME HERO */
.home-hero {
  max-width: var(--max-w); margin: 0 auto; padding: 60px 24px 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  position: relative;
}
.hero-watermark {
  position: absolute; right: -40px; top: -20px;
  width: 520px; height: 520px; opacity: 0.06;
  pointer-events: none;
}
.hero-watermark svg { width: 100%; height: 100%; fill: var(--text); }
.hero-art {
  aspect-ratio: 1; background: var(--surface); border-radius: var(--radius);
  overflow: hidden; position: relative; z-index: 1;
}
.hero-art-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #4a3a35 0%, #3f3f44 40%, #3a3545 70%, #4a3a35 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Finlandica', sans-serif; font-weight: 700; font-size: 24px;
  color: var(--accent); text-align: center; padding: 32px;
  line-height: 1.3;
}
.hero-art-badge {
  position: absolute; top: 18px; left: -30px; z-index: 2;
  background: var(--accent); color: var(--accent-dark);
  font-family: 'Finlandica', sans-serif; font-weight: 700; font-size: 10px;
  padding: 6px 60px; line-height: 1.2;
  transform: rotate(-39deg); transform-origin: center center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
  text-transform: uppercase;
  text-align: center;
}
.hero-text { position: relative; z-index: 1; }
.hero-text h1 {
  font-family: 'Finlandica', sans-serif; font-weight: 700;
  font-size: 42px; line-height: 1.1; margin-bottom: 8px;
}
.feat {
  font-family: 'Finlandica', sans-serif; font-weight: 500; color: var(--accent);
  font-size: 20px; line-height: 1.2; margin: -2px 0 10px;
}
.release-meta .feat { font-size: 18px; margin: -2px 0 8px; }
.track-feat {
  color: var(--accent); font-size: 12px; margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero-text .hero-date {
  color: var(--text-dim); font-size: 14px; margin-bottom: 20px;
}
.hero-text .hero-desc {
  color: var(--text-dim); font-size: 15px; line-height: 1.6;
  margin-bottom: 28px; max-width: 420px;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--accent-dark);
  font-family: 'Finlandica', sans-serif; font-weight: 700; font-size: 14px;
  padding: 12px 24px; border-radius: var(--radius); border: none;
  cursor: pointer; transition: background 0.2s; text-decoration: none;
}
.btn:hover { background: var(--accent-hover); }
.btn-outline {
  background: transparent; border: 1px solid var(--border);
  color: var(--text); margin-left: 12px;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: transparent; }

/* ABOUT STRIP */
.about-strip {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.about-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 48px 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
}
.about-inner h2 {
  font-family: 'Finlandica', sans-serif; font-weight: 700; font-size: 28px;
  margin-bottom: 16px;
}
.about-inner p {
  color: var(--text-dim); font-size: 15px; line-height: 1.7;
  max-width: 480px;
}
.stat-row { display: flex; gap: 40px; margin-top: 24px; }
.stat-item .stat-num {
  font-family: 'Finlandica', sans-serif; font-weight: 700; font-size: 32px;
  color: var(--accent);
}
.stat-item .stat-label { color: var(--text-dim); font-size: 13px; margin-top: 2px; }

/* MUSIC GRID */
.section-head {
  max-width: var(--max-w); margin: 0 auto; padding: 48px 24px 0;
}
.section-head h2 {
  font-family: 'Finlandica', sans-serif; font-weight: 700; font-size: 28px;
  margin-bottom: 16px;
}
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-btn {
  background: var(--surface); color: var(--text-dim); border: 1px solid var(--border);
  font-family: 'Open Sans', sans-serif; font-size: 13px; font-weight: 500;
  padding: 6px 16px; border-radius: 20px; cursor: pointer; transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent-glow); border-color: var(--accent); color: var(--accent);
}
.music-grid {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px 64px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px;
}
.track-card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
}
.track-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}
.track-art { aspect-ratio: 1; position: relative; overflow: hidden; }
.track-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.3); opacity: 0; transition: opacity 0.2s;
}
.track-card:hover .track-play { opacity: 1; }
.track-play-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
}
.track-play-icon svg { fill: var(--accent-dark); width: 18px; height: 18px; margin-left: 2px; }
.track-info { padding: 12px 14px 14px; }
.track-title {
  font-family: 'Finlandica', sans-serif; font-weight: 600; font-size: 14px;
  margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.track-date { color: var(--text-dim); font-size: 12px; }

/* RELEASE PAGE */
.release-hero {
  max-width: var(--max-w); margin: 0 auto; padding: 48px 24px 40px;
  display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start;
}
.release-art {
  aspect-ratio: 1; border-radius: var(--radius); overflow: hidden;
  position: sticky; top: 64px;
}
.release-meta h1 {
  font-family: 'Finlandica', sans-serif; font-weight: 700; font-size: 36px;
  line-height: 1.1; margin-bottom: 6px;
}
.release-meta .release-artist {
  color: var(--accent); font-family: 'Finlandica', sans-serif; font-weight: 600;
  font-size: 15px; margin-bottom: 4px;
}
.release-meta .release-date {
  color: var(--text-dim); font-size: 14px; margin-bottom: 24px;
}

/* PLAYER BAR */
.player-bar {
  background: var(--surface); border-radius: var(--radius); padding: 16px 20px;
  display: flex; align-items: center; gap: 16px; margin-bottom: 28px;
}
.player-play-btn {
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent);
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.player-play-btn svg { fill: var(--accent-dark); width: 16px; height: 16px; margin-left: 2px; }
.player-track-bar { flex: 1; }
.player-track-line {
  height: 4px; background: var(--border); border-radius: 2px; position: relative;
  margin-bottom: 6px;
}
.player-track-fill {
  position: absolute; left: 0; top: 0; height: 100%; width: 35%;
  background: var(--accent); border-radius: 2px;
}
.player-times {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--text-dim);
}

/* DOWNLOAD SECTION */
.download-section {
  background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 28px; margin-bottom: 28px;
}
.download-section h3 {
  font-family: 'Finlandica', sans-serif; font-weight: 700; font-size: 18px;
  margin-bottom: 6px;
}
.download-section .dl-sub { color: var(--text-dim); font-size: 14px; margin-bottom: 20px; }
.dl-formats { display: flex; gap: 12px; margin-bottom: 20px; }
.dl-format-btn {
  flex: 1; padding: 14px; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); cursor: pointer; transition: all 0.2s; text-align: center;
}
.dl-format-btn:hover { border-color: var(--accent); background: var(--accent-glow); }
.dl-format-btn .fmt-type {
  font-family: 'Finlandica', sans-serif; font-weight: 700; font-size: 15px;
  margin-bottom: 2px;
}
.dl-format-btn .fmt-detail { font-size: 12px; color: var(--text-dim); }
.dl-gate-note {
  text-align: center; color: var(--text-dim); font-size: 13px; padding-top: 4px;
}
.dl-gate-note span { color: var(--accent); cursor: pointer; }

/* PRODUCT CARD */
.product-card {
  background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 20px;
  display: flex; gap: 16px; align-items: center; margin-bottom: 28px;
}
.product-img {
  width: 72px; height: 72px; border-radius: var(--radius);
  background: linear-gradient(135deg, #4a3a35, #3a3545);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.product-info { flex: 1; }
.product-tag {
  font-size: 11px; color: var(--accent);
  font-family: 'Finlandica', sans-serif; font-weight: 600; margin-bottom: 2px;
}
.product-name {
  font-family: 'Finlandica', sans-serif; font-weight: 600; font-size: 14px;
  margin-bottom: 2px;
}
.product-price { font-size: 13px; color: var(--text-dim); }
.product-link {
  color: var(--accent); font-size: 13px; font-weight: 500;
  text-decoration: none; white-space: nowrap;
}

/* LYRICS */
.lyrics-section { margin-bottom: 28px; }
.lyrics-toggle {
  font-family: 'Finlandica', sans-serif; font-weight: 600; font-size: 15px;
  color: var(--text-dim); cursor: pointer; display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px; background: none; border: none;
}
.lyrics-toggle:hover { color: var(--text); }
.lyrics-toggle svg { transition: transform 0.2s; }
.lyrics-toggle.open svg { transform: rotate(180deg); }
.lyrics-body {
  background: var(--surface); border-radius: var(--radius); padding: 24px;
  font-size: 14px; line-height: 1.8; color: var(--text-dim);
  white-space: pre-line; display: none; max-height: 400px; overflow-y: auto;
}
.lyrics-body.open { display: block; }

/* RELATED */
.related-section {
  border-top: 1px solid var(--border); padding-top: 24px; margin-bottom: 40px;
}
.related-section h3 {
  font-family: 'Finlandica', sans-serif; font-weight: 600; font-size: 15px;
  color: var(--text-dim); margin-bottom: 12px;
}
.related-track {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; cursor: pointer;
}
.related-art {
  width: 48px; height: 48px; border-radius: 4px; flex-shrink: 0;
}
.related-title { font-family: 'Finlandica', sans-serif; font-weight: 600; font-size: 14px; }
.related-sub { font-size: 12px; color: var(--text-dim); }

/* MODAL */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface); border-radius: 10px; padding: 36px;
  max-width: 420px; width: 100%; border: 1px solid var(--border);
  position: relative;
}
.modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; color: var(--text-dim); font-size: 22px;
  cursor: pointer; line-height: 1;
}
.modal h2 {
  font-family: 'Finlandica', sans-serif; font-weight: 700; font-size: 22px;
  margin-bottom: 4px;
}
.modal .modal-sub { color: var(--text-dim); font-size: 14px; margin-bottom: 24px; }
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--text-dim); margin-bottom: 5px;
}
.form-field input, .form-field select {
  width: 100%; padding: 10px 14px; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); font-family: 'Open Sans', sans-serif; font-size: 14px;
  outline: none; transition: border-color 0.2s;
}
.form-field input:focus, .form-field select:focus { border-color: var(--accent); }
.form-field input::placeholder { color: #6a6a6f; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-optional {
  font-size: 12px; color: var(--text-dim); margin-top: 16px; margin-bottom: 16px;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.modal .btn { width: 100%; justify-content: center; margin-top: 8px; padding: 14px; }

/* FOOTER */
footer { border-top: 1px solid var(--border); margin-top: 40px; }
.footer-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 40px 24px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 32px;
}
.footer-brand { margin-bottom: 10px; display: flex; justify-content: center; }
.footer-brand svg { height: 36px; width: auto; fill: var(--text); }
.footer-tagline { color: var(--text-dim); font-size: 14px; font-style: italic; }
.footer-links { display: flex; gap: 56px; justify-content: center; }
.footer-col h4 {
  font-family: 'Finlandica', sans-serif; font-weight: 600; font-size: 13px;
  color: var(--text-dim); margin-bottom: 10px;
}
.footer-col a {
  display: block; color: var(--text); text-decoration: none;
  font-size: 14px; margin-bottom: 6px; transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-copy {
  width: 100%; text-align: center; color: #6a6a6f; font-size: 12px;
  padding-top: 20px; border-top: 1px solid var(--border);
}

/* CONTACT */
.contact-wrap { max-width: 560px; margin: 0 auto; padding: 48px 24px 24px; }
.contact-wrap h2 { font-family: 'Finlandica', sans-serif; font-weight: 700; font-size: 28px; margin-bottom: 6px; }
.contact-wrap .contact-sub { color: var(--text-dim); font-size: 15px; margin-bottom: 28px; }
.form-field textarea {
  width: 100%; min-height: 160px; padding: 10px 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); resize: vertical;
  color: var(--text); font-family: 'Open Sans', sans-serif; font-size: 14px; outline: none;
}
.contact-wrap .form-field input { background: var(--surface); }
.form-field textarea:focus { border-color: var(--accent); }
.contact-sent { display: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; color: var(--text-dim); }
.contact-sent strong { color: var(--accent); font-family: 'Finlandica', sans-serif; display: block; font-size: 18px; margin-bottom: 4px; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .home-hero { grid-template-columns: 1fr; padding: 32px 20px; gap: 28px; }
  .hero-text h1 { font-size: 32px; }
  .hero-watermark { width: 300px; height: 300px; right: -20px; top: 10px; }
  .about-inner { grid-template-columns: 1fr; }
  .release-hero { grid-template-columns: 1fr; gap: 28px; padding: 32px 20px; }
  .release-art { position: static; max-width: 280px; }
  .music-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .dl-formats { flex-direction: column; }
  .footer-links { gap: 28px; }
  .footer-col a { font-size: 13px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; }
}


/* ===== Production additions ===== */
a { color: inherit; }
img { display: block; max-width: 100%; }
.hero-art img, .release-art img, .track-art img, .related-art img {
  width: 100%; height: 100%; object-fit: cover;
}
.track-card { display: block; color: inherit; text-decoration: none; }
.related-track { color: inherit; text-decoration: none; }
.related-art { overflow: hidden; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn-outline { margin-left: 0; }

/* Listen links (replace the mockup player) */
.listen { margin-bottom: 28px; }
.listen-row { display: flex; gap: 10px; flex-wrap: wrap; }
.listen-btn {
  flex: 1 1 140px; text-align: center; padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); text-decoration: none;
  font-family: 'Finlandica', sans-serif; font-weight: 600; font-size: 14px;
  letter-spacing: -0.025em; transition: border-color 0.2s, color 0.2s;
}
.listen-btn:hover { border-color: var(--accent); color: var(--accent); }
.block-label {
  font-family: 'Finlandica', sans-serif; font-weight: 600; font-size: 15px;
  color: var(--text-dim); margin-bottom: 12px;
}

/* Download buttons are real buttons now */
.dl-format-btn { font: inherit; color: var(--text); }
.dl-format-btn[disabled] { opacity: 0.5; cursor: default; }
.dl-format-btn[disabled]:hover { border-color: var(--border); background: var(--bg); }
.dl-gate-note button {
  background: none; border: none; padding: 0; font: inherit;
  color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}

/* Shop card */
.product-img { background: var(--bg); border: 1px solid var(--border); }
.product-img svg { width: 44px; height: 44px; fill: var(--accent); }
.product-link:hover { text-decoration: underline; }

/* Forms */
.form-field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a09a95' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.form-consent { font-size: 12px; color: var(--text-dim); line-height: 1.5; margin-top: 12px; }
.form-consent a { color: var(--accent); }
.form-error { color: #f3aaa3; font-size: 13px; margin-top: 10px; }
.form-error:empty { display: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.req { color: var(--accent); }

/* Empty / not found */
.empty-state { max-width: var(--max-w); margin: 0 auto; padding: 64px 24px; color: var(--text-dim); }
.empty-state h2 { font-family: 'Finlandica', sans-serif; color: var(--text); font-size: 28px; margin-bottom: 8px; }
.empty-state a { color: var(--accent); }

/* Legal page */
.legal { max-width: 720px; margin: 0 auto; padding: 48px 24px 24px; }
.legal h1 { font-family: 'Finlandica', sans-serif; font-weight: 700; font-size: 36px; line-height: 1.1; margin-bottom: 6px; letter-spacing: -0.025em; }
.legal h2 { font-family: 'Finlandica', sans-serif; font-weight: 700; font-size: 20px; margin: 32px 0 8px; letter-spacing: -0.025em; }
.legal p, .legal li { color: var(--text-dim); font-size: 15px; line-height: 1.7; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; margin-top: 8px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent); }
.legal strong { color: var(--text); font-weight: 600; }
.legal .updated { font-size: 14px; color: var(--text-dim); margin-bottom: 24px; }

/* Accessibility */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 768px) {
  .modal { padding: 28px 22px; max-height: calc(100% - 16px); overflow-y: auto; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}
.dl-format-btn span { display: block; }
a.filter-btn { text-decoration: none; display: inline-block; }
html, body { overflow-x: clip; }
.release-desc { color: var(--text-dim); font-size: 15px; line-height: 1.6; margin-bottom: 24px; max-width: 520px; }
@media (max-width: 768px) { .home-hero { overflow: hidden; } }
.legal ul + p { margin-top: 12px; }
