@font-face { font-family: "Literata"; src: url("/fonts/literata-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Literata"; src: url("/fonts/literata-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/hanken-grotesk-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/hanken-grotesk-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #f5f3ee;
  --sheet: #fdfcfa;
  --ink: #181b21;
  --ink-2: #434955;
  --ink-3: #636a76;
  --rule: #e2dfd7;
  --accent: #20406f;
  --accent-ink: #ffffff;
  --mark: #8a5a12;
  --shadow: 0 1px 2px rgba(24, 27, 33, .06), 0 12px 32px rgba(24, 27, 33, .08);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15181d;
    --sheet: #1c2027;
    --ink: #eef0f3;
    --ink-2: #c3c8d0;
    --ink-3: #99a0ab;
    --rule: #2d323b;
    --accent: #8fb0e6;
    --accent-ink: #10151d;
    --mark: #e0b25c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 "Hanken Grotesk", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3 { font-family: "Literata", Georgia, serif; font-weight: 600; line-height: 1.12; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); margin-bottom: .6em; }
h3 { font-size: 1.35rem; margin-bottom: .35em; }
p { margin: 0 0 1em; max-width: 64ch; text-wrap: pretty; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--sheet); padding: .5em 1em; z-index: 10; }

/* Header */
.top { border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font: 600 1.3rem/1 "Literata", Georgia, serif; }
.brand svg { width: 26px; height: 26px; stroke: var(--accent); }
.top nav { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: .95rem; }
.top nav a { color: var(--ink-2); text-decoration: none; padding: .55rem 0; }
.top nav a:hover { color: var(--ink); text-decoration: underline; }
.top nav .lang { color: var(--ink); font-weight: 600; }

/* Hero */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 0; }
.hero .lede { font-size: 1.25rem; color: var(--ink-2); margin-top: 1.1rem; max-width: 56ch; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; margin-top: 1.8rem; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: 0 1.3rem;
  border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }
.btn svg { width: 18px; height: 18px; }
.note { font-size: .92rem; color: var(--ink-3); margin-top: 1rem; max-width: 60ch; }
.shot {
  margin: clamp(2.5rem, 6vw, 4rem) 0 0; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--rule); box-shadow: var(--shadow); background: var(--sheet);
}
.shot-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.shot-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--rule); }

/* Kapitler */
section.ch { padding: clamp(3.5rem, 8vw, 6rem) 0; border-top: 1px solid var(--rule); }
section.sheet { background: var(--sheet); }
.lead { font-size: 1.15rem; color: var(--ink-2); }

.feature { display: grid; grid-template-columns: 1fr; gap: 1.5rem 3rem; align-items: center; margin-top: 3rem; }
.feature + .feature { margin-top: clamp(3rem, 7vw, 5rem); }
@media (min-width: 860px) {
  .feature { grid-template-columns: 5fr 7fr; }
  .feature.flip > :first-child { order: 2; }
}
.feature figure { margin: 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--rule); box-shadow: var(--shadow); }
.status { display: inline-block; font-size: .85rem; font-weight: 600; color: var(--mark); margin-bottom: .5rem; }
.feature ul { margin: 0 0 1em; padding-left: 1.1em; color: var(--ink-2); }
.feature li { margin: .3em 0; }
kbd { font: 600 .9em "Hanken Grotesk", Arial, sans-serif; border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 4px; padding: .05em .4em; background: var(--paper); }
.pill { display: block; width: 210px; margin: 1.25rem 0 0; border-radius: 999px; }

.later { margin-top: clamp(3rem, 7vw, 5rem); padding-top: 2rem; border-top: 1px solid var(--rule); max-width: 70ch; }

/* Navnet */
.name { display: grid; gap: 2rem; }
@media (min-width: 860px) { .name { grid-template-columns: 4fr 7fr; } }
.quote { font: 400 clamp(1.35rem, 2.6vw, 1.75rem)/1.35 "Literata", Georgia, serif; color: var(--ink); border-left: 2px solid var(--accent); padding-left: 1.1rem; margin: 0; }

/* Åben kildekode */
.ideals { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0; max-width: 820px; }
.ideals li { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: .25rem 1.5rem; padding: 1.1rem 0; border-top: 1px solid var(--rule); }
.ideals li:last-child { border-bottom: 1px solid var(--rule); }
.ideals strong { font-weight: 600; }
.ideals span { color: var(--ink-2); }
@media (max-width: 560px) { .ideals li { grid-template-columns: 1fr; } }

/* Om */
.about { display: grid; gap: 2rem 3rem; align-items: start; }
@media (min-width: 760px) { .about { grid-template-columns: 220px 1fr; } }
.portrait { margin: 0; padding: 8px; background: #fff; border: 1px solid var(--rule); width: 220px; }
.portrait img { aspect-ratio: 1; object-fit: cover; }

footer { border-top: 1px solid var(--rule); padding: 2.5rem 0 3rem; color: var(--ink-3); font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
footer p { margin: 0; }
footer .links { display: flex; gap: 1.25rem; flex-wrap: wrap; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
