:root {
  color-scheme: dark;
  --bg: #0d0b09;
  --bg-2: #14110e;
  --text: #f4ede3;
  --muted: #bdb2a4;
  --amber: #f6a823;
  --amber-hi: #ffc861;
  --amber-ink: #1a1208;
  --glass: rgba(255, 255, 255, 0.055);
  --glass-strong: rgba(255, 255, 255, 0.085);
  --line: rgba(255, 255, 255, 0.12);
  --radius: 20px;
  --font: "Avenir Next", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 85% -8%, rgba(246, 168, 35, 0.20), transparent 60%),
    radial-gradient(700px 480px at -10% 8%, rgba(190, 90, 40, 0.14), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  background: var(--amber);
  color: var(--amber-ink);
  font-weight: 700;
  z-index: 50;
}
.skip:focus { top: 0.75rem; }

a { color: var(--amber-hi); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--amber-hi); outline-offset: 3px; border-radius: 6px; }

/* Language switching: with JavaScript only the chosen language shows; without it both do. */
html:not(.no-js)[lang="en"] [data-l="da"],
html:not(.no-js)[lang="da"] [data-l="en"] { display: none !important; }
.no-js div[data-l="da"] { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.no-js .i[data-l="da"]::before { content: " / "; }
.no-js .lang { display: none; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(13, 11, 9, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.bar {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.6rem 1.1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-right: auto;
  min-height: 44px;
}
.brand svg { width: 34px; height: 34px; }
.brand small { display: block; font-weight: 500; letter-spacing: 0.02em; color: var(--muted); font-size: 0.72rem; line-height: 1; }
.brand span.t { line-height: 1.05; }
.nav { display: flex; gap: 0.25rem; order: 3; width: 100%; }
.nav a {
  flex: 1 1 0;
  text-align: center;
  padding: 0.55rem 0.4rem;
  min-height: 44px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav a:hover { color: var(--text); background: var(--glass); }
.nav a[aria-current="page"] { color: var(--amber-ink); background: var(--amber); }

.lang {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  padding: 2px;
  order: 2;
}
.lang button {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  min-width: 44px;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--amber); color: var(--amber-ink); }
.lang .sep { color: var(--line); user-select: none; }

@media (min-width: 760px) {
  .bar { padding: 0.7rem 1.5rem; }
  .nav { order: 2; width: auto; margin-left: auto; }
  .nav a { flex: 0 0 auto; padding: 0.5rem 1.1rem; }
  .lang { order: 3; }
}

/* Layout */
main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 2rem 1.1rem 3rem; }
@media (min-width: 760px) { main { padding: 3rem 1.5rem 4rem; } }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.1rem, 6.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3.6vw, 1.9rem); font-weight: 750; margin-top: 2.2rem; }
h3 { font-size: 1.15rem; font-weight: 700; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: 0.4em; }
.lead { font-size: clamp(1.1rem, 2.6vw, 1.3rem); color: var(--muted); max-width: 40rem; }
.eyebrow { color: var(--amber); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.78rem; margin-bottom: 0.8rem; }
.updated { color: var(--muted); font-size: 0.95rem; }

.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.card { padding: 1.4rem 1.4rem 1.2rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 1.5rem 0; }
@media (min-width: 620px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card h2, .card h3 { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
a.card-link { display: block; color: inherit; text-decoration: none; transition: transform 0.2s ease, border-color 0.2s ease; }
a.card-link:hover { transform: translateY(-3px); border-color: rgba(246, 168, 35, 0.55); }
a.card-link .go { color: var(--amber-hi); font-weight: 700; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--amber-hi), var(--amber));
  color: var(--amber-ink);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(246, 168, 35, 0.28);
}
.btn:hover { color: var(--amber-ink); filter: brightness(1.06); }
.btn.ghost { background: var(--glass); color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { color: #fff; border-color: var(--amber); }

/* Hero */
.hero { display: grid; gap: 2rem; align-items: center; margin-bottom: 1rem; }
.hero .vinyl-wrap { justify-self: center; width: min(78vw, 340px); }
@media (min-width: 860px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; }
  .hero .vinyl-wrap { width: min(100%, 380px); justify-self: end; }
}
.vinyl { width: 100%; height: auto; display: block; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.55)); }
.vinyl.spin { animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .vinyl.spin { animation: none; } html { scroll-behavior: auto; } a.card-link { transition: none; } }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Feature icons */
.dot { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(246, 168, 35, 0.16); color: var(--amber-hi); font-weight: 800; margin-bottom: 0.7rem; }

/* Accordion */
details.fold { margin: 0.75rem 0; padding: 0; }
details.fold > summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 3rem 1rem 1.2rem;
  font-weight: 700;
  font-size: 1.1rem;
  position: relative;
  min-height: 48px;
  border-radius: var(--radius);
}
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--amber-hi);
  font-size: 1.5rem;
  font-weight: 400;
}
details.fold[open] > summary::after { content: "\2212"; }
details.fold .body { padding: 0 1.2rem 1.1rem; color: var(--text); }
details.fold .body > :last-child { margin-bottom: 0; }

.toc { list-style: none; padding: 0; margin: 1rem 0 2rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.toc li { margin: 0; }
.toc a { display: inline-block; padding: 0.35rem 0.85rem; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); text-decoration: none; font-size: 0.92rem; }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 3rem; margin-bottom: 1rem; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--amber);
  color: var(--amber-ink);
  font-weight: 800;
}

.policy h2 { margin-top: 2.4rem; }
.policy h2 .n { color: var(--amber); margin-right: 0.35rem; }
.note { border-left: 3px solid var(--amber); padding: 0.2rem 0 0.2rem 1rem; color: var(--muted); }
code { font-family: var(--mono); font-size: 0.92em; background: var(--glass-strong); padding: 0.1em 0.4em; border-radius: 6px; }

.site-footer { border-top: 1px solid var(--line); padding: 1.6rem 1.1rem calc(1.6rem + env(safe-area-inset-bottom)); color: var(--muted); font-size: 0.95rem; }
.site-footer .in { max-width: 1080px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

@media (forced-colors: active) {
  .nav a[aria-current="page"], .lang button[aria-pressed="true"] { outline: 2px solid CanvasText; }
}
