@font-face{font-family:"Newsreader";font-style:normal;font-weight:500;font-display:swap;src:url(fonts/newsreader-latin-500-normal.woff2) format("woff2");}
@font-face{font-family:"Newsreader";font-style:italic;font-weight:500;font-display:swap;src:url(fonts/newsreader-latin-500-italic.woff2) format("woff2");}
@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/source-sans-3-latin-400-normal.woff2) format("woff2");}
@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:600;font-display:swap;src:url(fonts/source-sans-3-latin-600-normal.woff2) format("woff2");}
@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:700;font-display:swap;src:url(fonts/source-sans-3-latin-700-normal.woff2) format("woff2");}

/* Jon Urskov Pedersen. Sandfarver med lyng som accent. Opsætning: menuen svæver som et panel til venstre, indholdet ligger som fliser. På mobil lægger menuen sig øverst. */
:root {
  color-scheme: light;
  --side-bg: #efe5d8; --side-ink: #33261f; --side-dim: #7d6a5c; --side-hover: rgba(80,50,30,.07);
  --bg: #fffdf9; --surface: #ffffff; --fg: #2d241f; --muted: #6d6058; --line: #e6dccf;
  --sand: #f6efe5; --sand-deep: #ead9c4;
  --accent: #8a3a5a; --accent-soft: #f5e4ea; --cta-ink: #ffffff;
  --egaa: #c4161c; --unesco: #0072bc; --bsp: #1d5ea8;
  --open: #2d6b3f; --open-soft: #e4f0e4; --dev: #7a5410; --dev-soft: #f6ead0;
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --side: 272px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.6; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100%; background: var(--bg); }

/* Menu */
aside {
  background: var(--side-bg); color: var(--side-ink);
  position: sticky; top: env(safe-area-inset-top, 0px); height: 100vh; overflow-y: auto;
  padding-block: 32px; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: 24px;
  display: flex; flex-direction: column; gap: 30px; border-right: 1px solid var(--line);
}
.me { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.me .mono { font-family: var(--display); font-weight: 500; font-size: 23px; line-height: 1.15; }
.me .role { color: var(--side-dim); font-size: 14px; }
nav { display: flex; flex-direction: column; gap: 24px; }
.group h2 { margin: 0 0 8px; font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .22em; color: var(--side-dim); }
.group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.group a { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 7px 10px; margin: 0 -10px; border-radius: 6px; text-decoration: none; font-size: 15.5px; }
.group a:hover { background: var(--side-hover); }
.group a small { color: var(--side-dim); font-size: 12px; white-space: nowrap; }
.pill { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.pill.open { background: var(--open-soft); color: var(--open); }
.pill.dev { background: var(--dev-soft); color: var(--dev); }
.pill.new { background: var(--accent-soft); color: var(--accent); }
.side-foot { margin-top: auto; font-size: 13.5px; color: var(--side-dim); }
.side-foot b { color: var(--side-ink); font-weight: 600; user-select: all; overflow-wrap: anywhere; }

/* Hovedspalte */
main { min-width: 0; }
.inner { max-width: 980px; margin: 0 auto; padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px)); }


.hero .inner { padding-block: 40px; }
.kicker { font-weight: 700; font-size: 12.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
h1 { font-family: var(--display); font-weight: 500; font-size: clamp(44px, 6.4vw, 74px); line-height: 1; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.lede { font-size: 21px; line-height: 1.45; color: var(--muted); max-width: 40ch; margin: 18px 0 0; text-wrap: pretty; }
.roles { list-style: none; margin: 26px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; font-size: 15px; }
.roles li { display: grid; grid-template-columns: 4px 1fr; gap: 12px; }
.roles li::before { content: ""; width: 4px; border-radius: 2px; }
.roles .r-egaa::before { background: var(--egaa); }
.roles .r-unesco::before { background: var(--unesco); }
.roles .r-bsp::before { background: var(--bsp); }

/* Om mig */
.about { background: var(--accent-soft); border-radius: 12px; padding: 30px 32px; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 28px; }
.about h2 { font-family: var(--display); font-weight: 500; font-size: 26px; line-height: 1.1; margin: 0; color: var(--accent); }
.about p { margin: 0 0 12px; max-width: 64ch; }
.about p:last-child { margin-bottom: 0; }

section.block { padding-block: 52px 0; }
.sec-title { font-family: var(--display); font-weight: 500; font-size: 34px; line-height: 1.1; margin: 0 0 22px; text-wrap: balance; }

/* Felter, opsætning 1 Kort */
.fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.field { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.field .logo { background: #ffffff; height: 110px; display: flex; align-items: center; justify-content: center; padding: 18px 22px; border-bottom: 1px solid var(--line); position: relative; }
.field .logo::after { content: ""; position: absolute; left: 22px; bottom: -1px; width: 40px; height: 3px; background: var(--c); }
.field .logo img { max-height: 70px; width: auto; max-width: 100%; }
.field .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.field h3 { font-family: var(--display); font-weight: 500; font-size: 22px; margin: 0; line-height: 1.2; }
.field p { margin: 0; font-size: 15.5px; color: var(--muted); }
.field ul { margin: 0; padding-left: 18px; font-size: 15.5px; display: flex; flex-direction: column; gap: 3px; }
.field .facts { font-weight: 700; font-size: 12px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.field .go { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--accent); text-decoration: none; font-size: 15.5px; }
.field .go:hover { text-decoration: underline; }
.f-egaa { --c: var(--egaa); } .f-unesco { --c: var(--unesco); } .f-bsp { --c: var(--bsp); }

/* Tidslinje */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.timeline li { position: relative; padding: 12px 0 12px 26px; display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 16px; align-items: baseline; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 20px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.timeline li.next::before { background: var(--accent); }
.timeline time { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 14.5px; color: var(--accent); }
.timeline .what { min-width: 0; }
.timeline .what b { display: block; font-size: 17px; }
.timeline .what span { color: var(--muted); font-size: 15px; }
.timeline a.cta { font-weight: 600; font-size: 14.5px; background: var(--accent); color: var(--cta-ink); text-decoration: none; padding: 8px 16px; border-radius: 6px; white-space: nowrap; }

footer { margin-top: 64px; border-top: 1px solid var(--line); }
footer .inner { padding-block: 24px 44px; display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; font-size: 14.5px; color: var(--muted); }
footer .mail { user-select: all; color: var(--fg); font-weight: 600; }

/* ---------- Opsætning 3 Fliser: gitter af farvede fliser ---------- */
.l3 { background: var(--sand); }
.l3 aside { margin: 16px 0 16px 16px; height: calc(100vh - 32px); top: calc(16px + env(safe-area-inset-top, 0px)); border-radius: 20px; border: 0; background: var(--side-bg); }
.l3 .hero .inner { padding-block: 28px 20px; }
.l3 .roles { border-top: 0; padding-top: 0; gap: 12px; }
.l3 .roles li { background: var(--surface); border-radius: 14px; padding: 14px 16px; grid-template-columns: 10px 1fr; align-items: start; }
.l3 .roles li::before { width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; }
.l3 .about { background: var(--accent); color: var(--cta-ink); border-radius: 20px; padding: 34px 36px; }
.l3 .about h2 { color: var(--cta-ink); font-size: 32px; }
.l3 section.block { padding-block: 16px 0; }
.l3 .sec-title { font-size: 26px; margin: 18px 0 14px; }
.l3 .fields { gap: 16px; }
.l3 .field { border: 0; border-radius: 20px; background: var(--surface); }
.l3 .field .logo { height: 120px; border-bottom: 0; margin: 12px 12px 0; border-radius: 14px; }
.l3 .field .logo::after { display: none; }
.l3 .field .body { margin: 12px; padding: 18px; border-radius: 14px; background: var(--sand); box-shadow: none; }
.l3 .field .body::before { content: ""; width: 36px; height: 4px; border-radius: 2px; background: var(--c); }
.l3 .timeline { border-left: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.l3 .timeline li { background: var(--surface); border-radius: 18px; padding: 18px; grid-template-columns: minmax(0, 1fr); gap: 6px; align-content: start; }
.l3 .timeline li::before { display: none; }
.l3 .timeline li.next { background: var(--side-bg); }
.l3 .timeline a.cta { justify-self: start; margin-top: 8px; border-radius: 999px; }
.l3 footer { border-top: 0; margin-top: 32px; }

/* Smalle skærme */
@media (max-width: 1060px) {
  .fields { grid-template-columns: minmax(0, 1fr); }
  .field { flex-direction: row; }
  .field .logo { width: 190px; height: auto; border-bottom: 0; border-right: 1px solid var(--line); flex: none; }
  .field .logo::after { left: auto; right: -1px; bottom: auto; top: 22px; width: 3px; height: 40px; }
  .l3 .field .logo { width: 180px; margin: 12px 0 12px 12px; border-right: 0; }
  .l3 .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  aside, .l3 aside { position: static; height: auto; margin: 0; border-radius: 0; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 22px 24px; gap: 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
  .side-foot { display: none; }
  .roles { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .about { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 24px 22px; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .timeline a.cta { justify-self: start; margin-top: 6px; }
}
@media (max-width: 560px) {
  nav { grid-template-columns: minmax(0, 1fr); }
  .inner { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .switch { justify-content: flex-start; }
  .field .logo { width: auto; height: 100px; border-right: 0; border-bottom: 1px solid var(--line); }
  .field .logo::after { left: 22px; right: auto; top: auto; bottom: -1px; width: 40px; height: 3px; }
  .l3 .field .logo { width: auto; height: 100px; margin: 12px 12px 0; }
  .l3 .timeline { grid-template-columns: minmax(0, 1fr); }
  .lede { font-size: 19px; }
}
