/* ── fonts: exact match to localfrequency.mindbase.ca ───────────────────── */
@font-face {
  font-family: "Geeeki";
  src: url("/fonts/Geeeki.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Astrovans";
  src: url("/fonts/Astrovans-Font/Astrovans.otf") format("opentype"),
       url("/fonts/Astrovans-Font/Astrovans.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── design tokens: copied from localfrequency.mindbase.ca ─────────────── */
:root {
  --cream: #FBF3E7;
  --cream-soft: #F3E8D8;
  --ink: #2A2320;
  --ink-soft: #5C534C;
  --red: #C0281A;
  --red-dark: #9A1F14;
  --orange: #E8A855;
  --peach: #F2C879;
  --peach-soft: #F6D9A0;
  --surface: var(--cream);

  --shadow-soft: rgba(42, 35, 32, 0.12);
  --shadow-glow: rgba(154, 31, 20, 0.28);

  --font-display: "Fraunces", Georgia, serif;
  --font-blaze: "Geeeki", var(--font-display);
  --font-body: "Astrovans", "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-theme="dark"] {
  --cream: #121113;
  --cream-soft: #1C1A1E;
  --ink: #F4F0E9;
  --ink-soft: #ADA79E;
  --red: #C6F135;
  --red-dark: #A9CE2A;
  --orange: #A97C94;
  --peach: #C9A3B5;
  --peach-soft: #D9BFCB;
  --surface: #1C1A1E;
  --shadow-soft: rgba(0, 0, 0, 0.45);
  --shadow-glow: rgba(198, 241, 53, 0.35);
}

* { box-sizing: border-box; }

/* ── layout: mobile-first single column, same approach as the vinyl player
   (fluid clamp()/min() sizing instead of breakpoints — it needed none) ──── */
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  padding: 6vh 24px calc(40px + env(safe-area-inset-bottom));
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
  transition: background .2s ease, color .2s ease;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.titlebar {
  width: min(80vw, 400px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.titles {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.theme-toggle {
  align-self: flex-start;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: none;
  border: 2px solid var(--peach-soft);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: background .18s ease, transform .18s ease;
}
.theme-toggle:hover { background: var(--surface); transform: translateY(-2px); }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

h1 {
  margin: 0;
  font-family: var(--font-blaze);
  font-size: clamp(26px, 6.5vw, 36px);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: .01em;
  text-align: center;
  color: var(--red);
}
h2#subtitle {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(13px, 3vw, 15px);
  letter-spacing: .14em;
  color: var(--ink-soft);
  text-align: center;
}

.hint {
  margin: 0;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
  max-width: min(80vw, 360px);
}

/* ── cover photo: same bordered/shadowed treatment as localfrequency's
   hero image, sized to stand in for the vinyl player's record ──────────── */
.cover-wrap {
  position: relative;
  width: min(80vw, 400px);
  aspect-ratio: 1 / 1;
}
.cover-photo[hidden] { display: none; }
.cover-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  border: 3px solid var(--peach-soft);
  box-shadow: 0 20px 40px var(--shadow-soft);
}
.cover-fallback[hidden] { display: none; }
.cover-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  border-radius: 20px;
  border: 3px dashed var(--peach-soft);
  color: var(--ink-soft);
  font-size: 13px;
}

/* ── link buttons: same solid/uppercase/letter-spaced treatment as
   localfrequency's watch-now-btn, stacked full-width like a link board ─── */
.links {
  width: min(80vw, 400px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 18px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 4px;
  background: var(--red);
  color: var(--cream);
  box-shadow: 0 10px 24px var(--shadow-glow);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.link:hover { background: var(--red-dark); transform: translateY(-2px); }
.link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: currentColor;
}
