/* ── Forside (ny, november 2026) ─────────────────────────
   Bruger variablerne fra main.css, så lyst tema følger med. */

.home-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.home-h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1.75rem;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.4rem;
  background: var(--btn-bg);
  color: #000;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--btn-bg);
  transition: background var(--transition), transform var(--transition), border-color var(--transition), color var(--transition);
}
.home-btn:hover { background: var(--btn-bg-hover); border-color: var(--btn-bg-hover); transform: translateY(-1px); }
.home-btn--ghost { background: transparent; color: var(--text); border-color: var(--border-hover); font-weight: 600; }
.home-btn--ghost:hover { background: transparent; border-color: var(--accent); color: var(--accent); }
.home-btn:focus-visible,
.hh a:focus-visible,
.he-grid a:focus-visible,
.hn-list a:focus-visible,
.hs-cover:focus-visible { outline: 3px solid var(--accent-hover); outline-offset: 3px; border-radius: 4px; }

/* ── Seneste sang ──────────────────────────────────────── */
.hh { position: relative; overflow: hidden; padding: 3.5rem 1.5rem 3rem; }
.hh { isolation: isolate; }
.hh-bg {
  position: absolute;
  inset: -80px;
  z-index: -2;
  background-size: cover;
  background-position: center;
  filter: blur(70px) saturate(1.35);
  opacity: 0.4;
  transform: scale(1.15);
}
.hh::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, transparent 40%, var(--bg) 100%);
}
[data-theme="light"] .hh-bg { opacity: 0.3; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .hh-bg { opacity: 0.3; } }
.hh-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 3.5rem;
  align-items: center;
}
.hh-cover {
  display: block;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 30px 60px -22px rgba(0,0,0,0.65), 0 0 0 1px var(--border);
  transition: transform 0.35s ease;
}
.hh-cover:hover { transform: scale(1.012); }
.hh-cover img { width: 100%; height: 100%; object-fit: cover; }
.hh-cover .cover-placeholder { display: grid; place-items: center; height: 100%; font-size: 4rem; color: var(--text-muted); }

.hh-title { font-size: clamp(2.3rem, 5.6vw, 4.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.03; margin-bottom: 1.1rem; }
.hh-title a:hover { color: var(--accent-hover); }
.hh-eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.hh-story {
  font-family: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.45;
  max-width: 34ch;
  margin-bottom: 1.6rem;
}
.hh-play { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.hh-wave { display: flex; align-items: center; gap: 3px; height: 36px; flex: 1; min-width: 130px; max-width: 280px; }
.hh-wave { cursor: pointer; }
.hh-wave i { flex: 1; height: var(--h); border-radius: 2px; background: var(--border-hover); transition: background 0.25s; }
.hh-wave i.on { background: var(--accent); }
.hh.is-playing .hh-wave i { animation: hh-hop 1.1s ease-in-out infinite; animation-delay: calc(var(--n) * -70ms); }
.hh.is-playing .hh-wave i:not(.on) { background: var(--text-muted); opacity: 0.55; }
.hh .ic-pause, .hh .lbl-pause { display: none; }
.hh.is-playing .ic-pause, .hh.is-playing .lbl-pause { display: inline; }
.hh.is-playing .ic-play, .hh.is-playing .lbl-play { display: none; }
@keyframes hh-hop { 0%, 100% { transform: scaleY(0.45); } 50% { transform: scaleY(1); } }

.hh-facts { display: flex; flex-wrap: wrap; gap: 0.4rem 0.5rem; margin-bottom: 1.1rem; font-size: 0.85rem; color: var(--text-muted); }
.hh-facts span + span::before { content: '·'; margin-right: 0.5rem; opacity: 0.6; }
.hh-bpm {
  margin-left: 0.25rem;
  padding: 0.15rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-hover);
  background: var(--accent-dim);
  border: 1px solid rgba(232,160,32,0.35);
  border-radius: 999px;
  white-space: nowrap;
}
.hh-listen { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hh-listen a {
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border-hover);
  border-radius: 999px;
  color: var(--text-muted);
  transition: border-color var(--transition), color var(--transition);
}
.hh-listen a:hover { border-color: var(--accent); color: var(--accent); }

/* ── Søgning (flyttet under seneste sang) ──────────────── */
.home-search { padding: 0 1.5rem 3rem; }
.home-search .hero-search-wrap { margin-bottom: 0; }

/* ── Næste sang ────────────────────────────────────────── */
.hn { background: var(--bg-card); border-block: 1px solid var(--border); padding: 3.5rem 1.5rem; }
.hn-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.5rem; }
.hn-next:only-child { grid-column: 1 / -1; }
.hn-title {
  font-family: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}
.hn-when { color: var(--text-muted); margin-bottom: 1.25rem; }
.hn-clock { display: flex; gap: 0.6rem; margin-bottom: 1.5rem; }
.hn-clock div { min-width: 76px; padding: 0.75rem 0.4rem; text-align: center; background: var(--bg); border: 1px solid var(--border-hover); border-radius: var(--radius); }
.hn-clock b { display: block; font-size: 2.1rem; line-height: 1; font-variant-numeric: tabular-nums; color: var(--accent-hover); }
.hn-clock span { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.hn-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.hn-list li { border-bottom: 1px solid var(--border-hover); }
.hn-list li:first-child { border-top: 1px solid var(--border-hover); }
.hn-list a { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; align-items: center; padding: 0.95rem 0; transition: color var(--transition); }
.hn-list a:hover strong { color: var(--accent); }
.hn-date { text-align: center; line-height: 1; }
.hn-date b { display: block; font-size: 1.9rem; font-variant-numeric: tabular-nums; }
.hn-date span { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.hn-song strong { display: block; font-size: 1.1rem; font-weight: 600; transition: color var(--transition); }
.hn-song small { font-size: 0.85rem; color: var(--text-muted); }

/* ── Indgange ──────────────────────────────────────────── */
.he-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.he-grid a {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 140px;
  padding: 1.2rem;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: transform var(--transition), border-color var(--transition);
}
.he-grid a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 90% at 100% 0%, var(--t), transparent 65%);
  opacity: 0.45;
  transition: opacity 0.25s;
}
.he-grid a:hover { transform: translateY(-3px); border-color: var(--accent); }
.he-grid a:hover::before { opacity: 0.85; }
.he-grid b { position: relative; font-size: 1.35rem; letter-spacing: -0.01em; }
.he-grid span { position: relative; font-size: 0.85rem; color: var(--text-muted); }

/* ── Historien bag ─────────────────────────────────────── */
.hs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2.75rem; align-items: center; }
.hs-cover { display: block; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--bg-card); box-shadow: 0 20px 40px -18px rgba(0,0,0,0.6); }
.hs-cover img { width: 100%; height: 100%; object-fit: cover; }
.hs-cover .cover-placeholder { display: grid; place-items: center; height: 100%; font-size: 3rem; color: var(--text-muted); }
.hs-quote {
  font-family: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  line-height: 1.38;
  max-width: 36ch;
  margin-bottom: 1.5rem;
}
.hs-quote::before { content: ''; display: block; width: 54px; height: 3px; background: var(--accent); margin-bottom: 1.25rem; }

/* ── Hvem står bag ─────────────────────────────────────── */
.ha { background: var(--bg-card); border-top: 1px solid var(--border); padding: 3.5rem 1.5rem; text-align: center; margin-bottom: -2rem; }
.ha-inner { max-width: 720px; margin: 0 auto; }
.ha-text { font-size: clamp(1.15rem, 2.1vw, 1.4rem); line-height: 1.5; margin-bottom: 1.5rem; text-wrap: balance; }
.ha-text b { color: var(--accent); font-weight: 600; }

/* ── Ind-toning ────────────────────────────────────────── */
.home-anim .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.home-anim .reveal.in { opacity: 1; transform: none; }

@keyframes hh-drift { from { transform: scale(1.15) translate(0,0); } to { transform: scale(1.32) translate(-2.5%, 2%); } }
.hh-bg { animation: hh-drift 26s ease-in-out infinite alternate; }

/* ── Mindre skærme ─────────────────────────────────────── */
@media (max-width: 860px) {
  .hh { padding: 1.75rem 1.25rem 2.25rem; }
  .hh-inner, .hn-inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .hh-cover { max-width: 460px; margin: 0 auto; width: 100%; }
  .hn { padding: 2.5rem 1.25rem; }
  .hn-clock div { flex: 1; min-width: 0; }
  .he-grid { grid-template-columns: 1fr 1fr; }
  .he-grid a { min-height: 112px; padding: 1rem; }
  .he-grid b { font-size: 1.15rem; }
  .hs { grid-template-columns: 1fr; gap: 1.5rem; }
  .hs-cover { max-width: 180px; }
  .home-search { padding: 0 1.25rem 2.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hh.is-playing .hh-wave i, .hh-bg { animation: none; }
  .hh-cover, .he-grid a, .home-btn { transition: none; }
}
