/* Grunden: storlekar, nollställning, text, knappar och fokus. Färger, typsnitt och bakgrundsbilden
   står i brand.css, som laddas före den här filen. */

:root {
  --fs-small: 0.9375rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1.6vw, 1.3125rem);
  --fs-h3: clamp(1.25rem, 2vw, 1.5rem);
  --fs-h2: clamp(1.875rem, 4.4vw, 3rem);
  --fs-h1: clamp(2.25rem, 6.4vw, 4.5rem);

  --max: 1120px;
  --inset: clamp(16px, 4vw, 32px);
  --gap: clamp(16px, 2.5vw, 28px);
  --section: clamp(40px, 7vw, 88px);
  --radius: clamp(18px, 2.4vw, 28px);
  --radius-small: 12px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow: 0 18px 50px color-mix(in srgb, var(--shade) 35%, transparent);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
/* hidden="until-found" (faq.js) döljs av webbläsaren på ett sätt som sökningen på sidan hittar. */
[hidden]:not([hidden="until-found"]) { display: none !important; }
/* Tidsstyrning (schedule.js): det som har en starttid syns först när skriptet har sagt till. */
[data-visa-fran]:not([data-tid="visas"]), [data-tid="dold"] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--surface);
  background: var(--brand);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Ridån ligger fast bakom allt (background-attachment: fixed fungerar inte i iOS). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--brand) var(--bakgrund-bild) center top / cover no-repeat;
}
body.menu-open { overflow: hidden; }

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2.5px; }
button, input { font: inherit; color: inherit; }
p, ul, ol, dl, figure { margin: 0 0 1em; }
:where(p, li, dd) { max-width: 68ch; }

h1, h2, h3 {
  margin: 0 0 0.45em;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  line-height: 1.05;
  /* Versaler utan extra teckenavstånd: då använder Growing sina ligaturer (FT, TT, KT …), som på gamla sidan.
     All text i Growing (rubriker, knappar, menyn) görs om till versaler, så det spelar ingen roll hur den skrivs. */
  text-transform: uppercase;
  letter-spacing: normal;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
.lead { font-size: var(--fs-lead); line-height: 1.5; }
.small { font-size: var(--fs-small); }
.eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.panel :focus-visible { outline-color: var(--brand); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; z-index: 100; left: 12px; top: -60px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--surface); color: var(--brand); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Knappar ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border: 2px solid var(--surface); border-radius: 999px;
  background: var(--surface); color: var(--brand);
  font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.125rem; line-height: 1; letter-spacing: 0.04em;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px color-mix(in srgb, var(--shade) 30%, transparent); text-decoration: none; }
.btn:active { transform: none; }
.btn--ghost { background: transparent; color: var(--surface); }
.btn--ghost:hover { background: color-mix(in srgb, var(--surface) 12%, transparent); }
.btn--brand { border-color: var(--brand); background: var(--brand); color: var(--surface); }
.btn--line { border-color: var(--brand); background: transparent; color: var(--brand); }
.btn--small { min-height: 42px; padding: 10px 18px; font-size: 1rem; }
.btn--big { min-height: 58px; padding: 16px 32px; font-size: 1.375rem; }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }
.btn svg { width: 1em; height: 1em; flex: none; }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transition: none; transform: none; } }

.arrow-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; text-decoration: none;
  border-bottom: 2px solid currentColor; padding-bottom: 2px;
}
.arrow-link::after { content: "→"; transition: transform 0.2s var(--ease); }
.arrow-link:hover::after { transform: translateX(4px); }
