/* Umsögn – sameiginlegur grunnur fyrir forsíðuna og appið: tákn, letur, hnappar, lógó, fótur. */
:root {
  --bg: #f4f5f2;
  --surface: #fcfcfa;
  --surface-2: #eaece7;
  --ink: #15181b;
  --muted: #565e65;
  --line: #d9ddd6;
  --accent: #e8a321;
  --accent-hover: #d8921a;
  --on-accent: #15181b;
  --accent-soft: #f6e7c4;
  --star-off: #cdd2cb;
  --ok: #1f6f43;
  --error: #a3261d;
  /* Litur fyrirtækisins: settur á <body> í html.js. Sjálfgefið er litur Umsagnar. */
  --brand: var(--accent);
  --on-brand: var(--on-accent);
  --shadow: 0 1px 2px rgb(21 24 27 / .05), 0 18px 40px -18px rgb(21 24 27 / .22);
  /* Lögun: spjöld 20px, hreiðruð spjöld 14px, hnappar alveg ávalir */
  --r: 20px;
  --r-inner: 14px;
  --gutter: 16px;
  --max: 1120px;
  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101214;
    --surface: #171a1d;
    --surface-2: #1e2225;
    --ink: #ebece9;
    --muted: #a1a8ad;
    --line: #2a2f33;
    --accent: #efb13b;
    --accent-hover: #f5c05c;
    --accent-soft: #29241a;
    --star-off: #3a4045;
    --ok: #6fcf97;
    --error: #ff8a80;
    --shadow: 0 1px 2px rgb(0 0 0 / .35), 0 22px 48px -20px rgb(0 0 0 / .7);
  }
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
svg { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
[id] { scroll-margin-top: 16px; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 1; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* Lógó */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; text-decoration: none; }
.brand svg { width: 28px; height: 28px; color: var(--on-accent); }
.brand rect { fill: var(--accent); }
.brand path { fill: var(--on-accent); stroke: var(--on-accent); stroke-width: 1.5; stroke-linejoin: round; }

/* Hnappar */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px; border: 0; border-radius: 999px; background: none; color: inherit;
  font: 600 1rem/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, transform .1s, filter .2s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-brand { background: var(--brand); color: var(--on-brand); }
.btn-brand:hover { filter: brightness(.94); }
.btn-ghost { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { color: var(--error); }
.btn-small { min-height: 36px; padding: 0 14px; font-size: .875rem; }
.btn-block { display: flex; width: 100%; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Fótur */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 32px 48px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
