/* ---------- Farver og typografi ---------- */
:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --ink: #16202e;
  --ink-soft: #4a5566;
  --line: #e3dfd5;
  --accent: #1f4e79;
  --accent-ink: #ffffff;
  --accent-soft: #e6edf4;
  --gold: #b0874a;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --maxw: 1080px;
  --narrow: 720px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f151d;
    --surface: #161e29;
    --ink: #e9edf2;
    --ink-soft: #a5b0bf;
    --line: #263142;
    --accent: #7fb0de;
    --accent-ink: #0f151d;
    --accent-soft: #1b2a3b;
    --gold: #d4a965;
  }
}

/* ---------- Grundlag ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: var(--narrow); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* ---------- Top og bund ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.brand-mark {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent); color: var(--accent-ink); font-family: var(--serif); font-size: 15px; letter-spacing: 0.02em;
}
.brand-mark.big { width: 48px; height: 48px; font-size: 19px; border-radius: 12px; flex: none; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav-cta { border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.site-footer { border-top: 1px solid var(--line); margin-top: 96px; color: var(--ink-soft); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 24px; padding-bottom: 32px; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--ink-soft); }

/* ---------- Forside ---------- */
.hero { padding: 88px 0 64px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; font-weight: 600; color: var(--gold); margin: 0 0 18px; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); margin: 0 0 22px; max-width: 16ch; }
.hero .lead { max-width: 58ch; }
.lead { font-size: 20px; color: var(--ink-soft); margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button {
  display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none;
  padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1px solid var(--accent);
}
.button:hover { filter: brightness(1.08); }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--line); }

.section { padding: 48px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { font-size: 30px; margin: 0; }
.section-head a { font-weight: 500; font-size: 15px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .grid.two { grid-template-columns: 1fr; } }
.focus { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.focus h3 { font-size: 20px; margin: 0 0 8px; }
.focus p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.focus .num { font-family: var(--serif); color: var(--gold); font-size: 15px; display: block; margin-bottom: 10px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.card h3 { font-size: 22px; margin: 6px 0 10px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card p { margin: 0 0 16px; color: var(--ink-soft); font-size: 15.5px; }
.card .more { margin-top: auto; font-weight: 600; font-size: 15px; text-decoration: none; }
.meta { font-size: 13.5px; color: var(--ink-soft); margin: 0; }
.meta a { color: var(--ink-soft); }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; color: var(--ink-soft); }

.quote { border-left: 3px solid var(--gold); padding: 4px 0 4px 24px; margin: 0; }
.quote p { font-family: var(--serif); font-size: clamp(22px, 3vw, 28px); line-height: 1.35; margin: 0; }

/* ---------- Artikler og sider ---------- */
.page, .post { padding-top: 64px; }
.page-head { margin-bottom: 36px; }
.page-head h1 { font-size: clamp(32px, 5vw, 46px); margin: 12px 0 16px; }
.year { font-family: var(--serif); font-size: 24px; margin: 40px 0 16px; color: var(--ink-soft); }
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.list li { border-bottom: 1px solid var(--line); padding: 20px 0; }
.list a { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--ink); text-decoration: none; }
.list a:hover { color: var(--accent); }
.list p { margin: 6px 0 0; color: var(--ink-soft); font-size: 15.5px; }

.prose { font-size: 18px; }
.prose h2 { font-size: 28px; margin: 44px 0 12px; }
.prose h3 { font-size: 22px; margin: 32px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 20px; }
.prose li { margin-bottom: 6px; }
.prose blockquote { border-left: 3px solid var(--gold); margin: 28px 0; padding: 2px 0 2px 22px; font-family: var(--serif); font-size: 22px; line-height: 1.4; }
.prose blockquote p { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 0 0 24px; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

.post-foot { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.author { display: flex; gap: 14px; align-items: center; }
.author p { margin: 0; }
.author-name { font-weight: 600; }
.author-title { color: var(--ink-soft); font-size: 15px; }
.post-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Mobil ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .brand-name { display: none; }
  .nav { gap: 16px; }
  .hero { padding: 56px 0 40px; }
  .lead { font-size: 18px; }
  .prose { font-size: 17px; }
}
