/* ============================================================================
   Out of the Bubble — shared design system
   Purple ground, splashy orange. Used by every page (index, om, bestyrelse,
   medlem, kontakt). Page-specific bits live in a <style> block on that page.
   ========================================================================== */

:root {
  --purple-deep: #1c0636;
  --purple:      #3b0d6e;
  --violet:      #7c3aed;
  --magenta:     #d6336c;
  --orange:      #ff7a18;
  --orange-hot:  #ff9a3c;

  --ink:      #fdf3ff;
  --ink-dim:  rgba(253, 243, 255, 0.66);
  --ink-mute: rgba(253, 243, 255, 0.42);

  --card:        rgba(255, 255, 255, 0.055);
  --card-border: rgba(255, 255, 255, 0.12);
  --card-hover:  rgba(255, 255, 255, 0.09);

  --maxw: 1080px;
  --nav-h: 68px;
  --radius: 18px;

  --grad-pop: linear-gradient(100deg, var(--orange) 0%, var(--orange-hot) 45%, var(--magenta) 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  height: 100%;
  overflow-x: hidden;
  background: #120225;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  color: var(--ink);
  /* Stage-light spotlights live on the body background (always renders; a
     negative-z layer didn't composite reliably). Fixed → anchored to the viewport. */
  background:
    radial-gradient(66vmax 66vmax at 104% 16%, rgba(255, 122, 24, .95), rgba(255, 154, 60, .52) 34%, transparent 66%),
    radial-gradient(46vmax 46vmax at 74% 36%,  rgba(255, 190, 150, .42), rgba(214, 51, 108, .18) 46%, transparent 66%),
    radial-gradient(54vmax 54vmax at -2% 106%, rgba(214, 51, 108, .62), transparent 58%),
    radial-gradient(42vmax 42vmax at 95% 76%,  rgba(124, 58, 237, .42), transparent 62%),
    radial-gradient(150% 130% at 50% 40%, transparent 56%, rgba(6, 1, 14, .5) 100%),
    radial-gradient(120% 120% at 24% 0%, #4b1183 0%, var(--purple-deep) 55%, #120225 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: inherit; }

/* ---- Stage-light spotlights ----
   The lights live on the body background (above). The old .bg/.blob layer is retired:
   a negative-z, blurred, blend-mode layer didn't composite in this engine. The .bg
   markup stays in the HTML but hidden, so the pages need no edits. */
.bg { display: none; }

/* Gentle drift — soft accent glows that slowly move over the static spotlights but
   behind content (which sits at z-index >= 1). z-index 0 (not negative) so it renders.
   Translate up/right only, so html's overflow-x clip prevents any scrollbar. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38vmax 38vmax at 84% 24%, rgba(255, 154, 60, .15), transparent 60%),
    radial-gradient(34vmax 34vmax at 12% 90%, rgba(214, 51, 108, .13), transparent 60%);
  animation: drift 36s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(2.5vw, -2vh, 0); }
}
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } }
main, .footer { position: relative; z-index: 1; }

/* ---- Layout shell ---- */
.shell { width: min(var(--maxw), 92vw); margin-inline: auto; }

.section { padding-block: clamp(3.5rem, 9vh, 6rem); }
.section + .section { padding-top: 0; }

.eyebrow {
  font-size: clamp(.68rem, 1.3vw, .8rem);
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
}

h1, h2, h3 { font-family: "Syne", "Inter", system-ui, sans-serif; line-height: 1.05; letter-spacing: -0.01em; }
.h2 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800; }
.h3 { font-size: clamp(1.15rem, 2.6vw, 1.5rem); font-weight: 700; }
.pop {
  background: var(--grad-pop);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--ink-dim); max-width: 60ch; }

/* ---- Top navigation (sticky, in-flow) ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 4, 40, 0.55);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-inner {
  width: min(var(--maxw), 92vw); margin-inline: auto;
  min-height: var(--nav-h);
  display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap;
  padding-block: .6rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: "Syne", system-ui, sans-serif; font-weight: 800; font-size: 1.05rem;
  text-decoration: none; letter-spacing: -0.01em; white-space: nowrap;
}
.brand .dot { width: .62rem; height: .62rem; border-radius: 50%; background: var(--grad-pop); }
.nav-links { display: flex; align-items: center; gap: .25rem .35rem; flex-wrap: wrap; margin-left: auto; }
.nav-links a {
  text-decoration: none; color: var(--ink-dim); font-weight: 500; font-size: .95rem;
  padding: .4rem .7rem; border-radius: 999px; transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.nav-links a[aria-current="page"] { color: var(--ink); background: rgba(255,122,24,.16); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .12s, box-shadow .2s, background .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad-pop); color: #2a0a1c; box-shadow: 0 8px 28px rgba(255,122,24,.28); }
.btn-primary:hover { box-shadow: 0 10px 34px rgba(255,122,24,.42); }
.btn-ghost { border-color: rgba(255,255,255,.28); color: var(--ink); background: rgba(255,255,255,.04); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }

/* ---- Cards & grids ---- */
.grid { display: grid; gap: 1.1rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 1.5rem;
  transition: background .2s, transform .2s, border-color .2s;
}
.card:hover { background: var(--card-hover); transform: translateY(-3px); border-color: rgba(255,255,255,.2); }

/* board member avatar (initials, no photo files needed) */
.avatar {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: "Syne", system-ui, sans-serif; font-weight: 800; font-size: 1.4rem; color: #2a0a1c;
  margin-bottom: 1rem;
}
.avatar-1 { background: linear-gradient(135deg, var(--orange), var(--orange-hot)); }
.avatar-2 { background: linear-gradient(135deg, var(--magenta), var(--orange)); }
.avatar-3 { background: linear-gradient(135deg, var(--violet), var(--magenta)); }
.avatar-4 { background: linear-gradient(135deg, var(--orange-hot), #ffd27a); }
.avatar-5 { background: linear-gradient(135deg, #8b5cf6, var(--violet)); }

.role { color: var(--orange-hot); font-weight: 600; font-size: .9rem; letter-spacing: .02em; }
.muted { color: var(--ink-dim); }

/* status / coming-soon pill */
.pill {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .5rem 1.1rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.045);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-weight: 600; font-size: .86rem; letter-spacing: .04em;
}
.pill .dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(255,122,24,.7); animation: pulse 2.4s ease-out infinite; }
.pill .en { color: var(--ink-mute); font-weight: 500; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,122,24,.6); } 70% { box-shadow: 0 0 0 .7rem rgba(255,122,24,0); } 100% { box-shadow: 0 0 0 0 rgba(255,122,24,0); } }

/* notice banner (placeholder reminders) */
.notice {
  border: 1px dashed rgba(255,154,60,.45); background: rgba(255,154,60,.07);
  border-radius: 12px; padding: .9rem 1.1rem; font-size: .9rem; color: var(--ink-dim);
}

/* ---- Page header (sub-pages) ---- */
.page-head { padding-top: clamp(2.5rem, 7vh, 4.5rem); padding-bottom: 1rem; }
.page-head h1 { font-size: clamp(2.2rem, 7vw, 4rem); font-weight: 800; }
.page-head p { margin-top: 1rem; }

/* lists */
.ticks { list-style: none; display: grid; gap: .6rem; }
.ticks li { padding-left: 1.6rem; position: relative; color: var(--ink-dim); }
.ticks li::before { content: "✦"; position: absolute; left: 0; color: var(--orange); }

dl.facts { display: grid; gap: .75rem; }
dl.facts > div { display: flex; gap: .75rem; flex-wrap: wrap; padding-bottom: .6rem; border-bottom: 1px solid rgba(255,255,255,.08); }
dl.facts dt { color: var(--ink-mute); min-width: 9ch; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
dl.facts dd { font-weight: 500; }

/* ---- Footer ---- */
.footer {
  margin-top: clamp(3rem, 8vh, 5rem);
  background: rgba(0, 0, 0, 0.28);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-inner {
  width: min(var(--maxw), 92vw); margin-inline: auto;
  padding-block: clamp(2.5rem, 6vh, 3.5rem);
  display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr;
}
.footer h4 { font-family: "Syne", system-ui, sans-serif; font-weight: 700; font-size: .95rem; margin-bottom: .9rem; letter-spacing: .02em; }
.footer a { color: var(--ink-dim); text-decoration: none; }
.footer a:hover { color: var(--ink); }
.footer ul { list-style: none; display: grid; gap: .5rem; }
.footer .brand { font-size: 1.15rem; margin-bottom: .7rem; }
.footer-bottom {
  width: min(var(--maxw), 92vw); margin-inline: auto;
  border-top: 1px solid rgba(255,255,255,.07);
  font-size: .82rem; color: var(--ink-mute);
  padding-block: 1.1rem;
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: space-between; align-items: center;
}
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer .about { grid-column: 1 / -1; } }
@media (max-width: 460px) { .footer-inner { grid-template-columns: 1fr; } }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob, .pill .dot { animation: none; }
}

:focus-visible { outline: 2px solid var(--orange-hot); outline-offset: 3px; border-radius: 4px; }
