
:root {
  --bg: #0b1222;
  --bg-glow: rgba(230, 199, 125, 0.07);
  --surface: #111a2e;
  --surface-2: #16213a;
  --border: #213050;
  --border-strong: #2e416a;
  --text: #eef1f8;
  --text-dim: #b4bdd3;
  --text-faint: #8c96b0;
  --accent: #e6c77d;
  --accent-soft: #2a2614;
  --accent-ring: rgba(230, 199, 125, 0.35);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  --radius: 18px;
  --gutter: 16px;
  --font-serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f4ef;
    --bg-glow: rgba(201, 161, 74, 0.10);
    --surface: #ffffff;
    --surface-2: #faf8f4;
    --border: #e8e3d9;
    --border-strong: #d6cdbb;
    --text: #14213d;
    --text-dim: #4d5670;
    --text-faint: #6b7287;
    --accent: #9a7425;
    --accent-soft: #f6eedb;
    --accent-ring: rgba(154, 116, 37, 0.30);
    --shadow: 0 1px 2px rgba(20, 33, 61, 0.05), 0 6px 18px rgba(20, 33, 61, 0.06);
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg) radial-gradient(1200px 700px at 50% -10%, var(--bg-glow), transparent 70%) no-repeat;
  color: var(--text);
  font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }

/* Forside: kun ordmærket og login-prikken. */
.is-home { display: grid; }
.home {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 22px;
  padding: 0 var(--gutter);
  text-align: center;
}
.wordmark {
  margin: 0;
  font: 400 clamp(64px, 17vw, 140px)/1 var(--font-serif);
  letter-spacing: -0.03em;
  color: var(--text);
}
.wordmark.small { font-size: clamp(44px, 12vw, 72px); }
.rule { display: block; width: 44px; height: 1px; background: var(--accent); opacity: 0.8; }

.login-dot {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  text-decoration: none;
}
.login-dot span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-ring);
  transition: box-shadow 200ms ease, transform 200ms ease;
}
.login-dot:hover span, .login-dot:focus-visible span { box-shadow: 0 0 0 7px var(--accent-ring); transform: scale(1.1); }

/* Tjenester efter login. */
.top {
  max-width: 760px;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) var(--gutter) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  font: 400 28px/1 var(--font-serif);
  letter-spacing: -0.02em;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.who { display: flex; align-items: center; gap: 6px; min-width: 0; }
.who-mail { color: var(--text-faint); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logout {
  flex: none;
  min-height: 44px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 14px;
  text-decoration: none;
}
.logout:hover { color: var(--text); background: var(--surface-2); }

.services { max-width: 760px; margin: 0 auto; padding: 40px var(--gutter) 64px; }
.eyebrow { margin: 0 0 6px; color: var(--accent); font-size: 14px; font-weight: 600; letter-spacing: 0.02em; }
.services h1 { margin: 0 0 28px; font: 400 clamp(32px, 8vw, 44px)/1.1 var(--font-serif); letter-spacing: -0.02em; }

.svc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 720px) { .svc-list { grid-template-columns: 1fr 1fr; gap: 14px; } }
.svc {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 96px;
  padding: 18px 16px 18px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}
.svc:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-1px); }
.svc-icon {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}
.svc-icon svg { width: 24px; height: 24px; }
.svc-text { display: grid; gap: 3px; min-width: 0; flex: 1; }
.svc-name { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.svc-line { color: var(--text-dim); font-size: 14.5px; line-height: 1.4; }
.svc-go { flex: none; width: 20px; height: 20px; color: var(--text-faint); transition: transform 160ms ease, color 160ms ease; }
.svc:hover .svc-go { color: var(--accent); transform: translateX(2px); }

.narrow { max-width: 480px; margin: 0 auto; }
.note { margin: 0; color: var(--text-dim); max-width: 34ch; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
.button.ghost { background: transparent; color: var(--text-dim); border: 1px solid var(--border); margin-left: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
