@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&family=Instrument+Sans:wght@400;500;600&display=swap');

/* Deltags farveunivers.
   Nat og Papir bærer fladerne. Signal (lime) er accent på mørk bund, Lilla på lys bund.
   Lavendel er den rolige datafarve, Koral bruges kun til advarsler. */
:root {
  --night: #15133B;
  --night-2: #201D55;
  --night-3: #2C2870;
  --paper: #F6F4EE;
  --white: #FFFFFF;
  --signal: #C9F560;
  --violet: #5B4BE8;
  --lavender: #C9C3FF;
  --coral: #FF7A66;
  --font-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --font-sans: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --r: 14px;
  --r-s: 10px;
}
[data-theme="night"] {
  --surface: var(--night); --raise: var(--night-2); --ink: #F6F4EE; --ink-muted: #A8A4D8;
  --line: rgba(246, 244, 238, .16); --accent: var(--signal); --accent-ink: var(--night); --data: var(--lavender);
}
[data-theme="paper"] {
  --surface: var(--paper); --raise: var(--white); --ink: var(--night); --ink-muted: #696590;
  --line: rgba(21, 19, 59, .14); --accent: var(--violet); --accent-ink: #FFFFFF; --data: var(--lavender);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--surface); color: var(--ink);
  font-family: var(--font-sans); font-weight: 400; font-size: 16px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; line-height: 1.08; letter-spacing: -0.02em; }
p { margin: 0; }
.muted { color: var(--ink-muted); }
a { color: inherit; }
[hidden] { display: none !important; }

.logo { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.04em; font-size: 22px; line-height: 1; display: inline-flex; align-items: baseline; text-decoration: none; color: var(--ink); }
.logo i { display: inline-block; width: .36em; height: .36em; border-radius: 50%; background: var(--accent); margin-left: .09em; }

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 1px solid var(--line); padding: 0; border-radius: var(--r-s); }
button:disabled { opacity: .4; cursor: default; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; font-weight: 600; border-radius: var(--r);
  background: var(--accent); color: var(--accent-ink); border: 1px solid transparent;
  text-decoration: none; transition: filter .15s, transform .08s, background .15s; white-space: nowrap;
}
.btn:hover:not(:disabled) { filter: brightness(1.06); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover:not(:disabled) { background: color-mix(in srgb, var(--ink) 6%, transparent); filter: none; }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: var(--r-s); }
.btn.wide { width: 100%; }
input[type="text"], input[type="password"], input[type="number"], textarea, select {
  width: 100%; background: var(--raise); border: 1px solid var(--line); padding: 14px 16px; outline: none; border-radius: var(--r-s);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
textarea { resize: vertical; min-height: 96px; }
::placeholder { color: var(--ink-muted); opacity: .75; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Blødt lys i baggrunden */
.glow { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.glow::before, .glow::after { content: ""; position: absolute; border-radius: 50%; filter: blur(90px); }
.glow::before { width: 55vmax; height: 55vmax; right: -18vmax; top: -22vmax; background: var(--violet); opacity: .38; }
.glow::after { width: 38vmax; height: 38vmax; left: -14vmax; bottom: -18vmax; background: var(--signal); opacity: .16; }
[data-theme="paper"] .glow::before { opacity: .16; }
[data-theme="paper"] .glow::after { opacity: .3; }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .35s ease both; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
