
  :root {
    --ground: #F4F1E9;
    --surface: #FDFBF5;
    --surface-2: #EFEAE0;
    --ink: #2A251C;
    --ink-soft: #5C5546;
    --ink-faint: #8A8272;
    --line: #E3DDCE;
    --rav: #9E5D19;
    --rav-2: #D98A2B;
    --rav-ink: #FFFFFF;
    --glow: #E9A63C;
    --baal: #FBF2DE;
    --high: #5C7047; --medium: #99701F; --low: #8A8272;
    --chip-high-bg: #E4EAD8; --chip-med-bg: #F2E7C8; --chip-low-bg: #E9E6DC;
    --code-bg: #EDE8DA;
    --shadow-sm: 0 1px 2px rgba(42,37,28,.06), 0 1px 3px rgba(42,37,28,.08);
    --shadow-md: 0 4px 14px rgba(42,37,28,.10), 0 2px 4px rgba(42,37,28,.06);
    --shadow-lg: 0 12px 32px rgba(42,37,28,.14), 0 4px 8px rgba(42,37,28,.06);
    --glass: rgba(253,251,245,.82);
    --r-sm: 10px; --r-md: 16px; --r-lg: 22px; --r-full: 999px;
  }
  @media (prefers-color-scheme: dark) {
    :root {
      --ground: #1B1812; --surface: #242019; --surface-2: #2D2820;
      --ink: #EDE4CF; --ink-soft: #B3AA93; --ink-faint: #837A68;
      --line: #37312566; --rav: #E9A63C; --rav-2: #C4671F; --rav-ink: #1B1812;
      --glow: #E9A63C; --baal: #262015;
      --high: #9CB07C; --medium: #D3A957; --low: #8F8775;
      --chip-high-bg: #2A3220; --chip-med-bg: #352B16; --chip-low-bg: #2B2820;
      --code-bg: #2F2A1F;
      --shadow-sm: 0 1px 2px rgba(0,0,0,.35);
      --shadow-md: 0 4px 14px rgba(0,0,0,.42), 0 2px 4px rgba(0,0,0,.3);
      --shadow-lg: 0 14px 36px rgba(0,0,0,.5);
      --glass: rgba(36,32,25,.82);
    }
  }
  :root[data-theme="dark"] {
    --ground: #1B1812; --surface: #242019; --surface-2: #2D2820;
    --ink: #EDE4CF; --ink-soft: #B3AA93; --ink-faint: #837A68;
    --line: #37312566; --rav: #E9A63C; --rav-2: #C4671F; --rav-ink: #1B1812;
    --glow: #E9A63C; --baal: #262015;
    --high: #9CB07C; --medium: #D3A957; --low: #8F8775;
    --chip-high-bg: #2A3220; --chip-med-bg: #352B16; --chip-low-bg: #2B2820;
    --code-bg: #2F2A1F;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.35);
    --shadow-md: 0 4px 14px rgba(0,0,0,.42), 0 2px 4px rgba(0,0,0,.3);
    --shadow-lg: 0 14px 36px rgba(0,0,0,.5);
    --glass: rgba(36,32,25,.82);
  }
  :root[data-theme="light"] {
    --ground: #F4F1E9; --surface: #FDFBF5; --surface-2: #EFEAE0;
    --ink: #2A251C; --ink-soft: #5C5546; --ink-faint: #8A8272;
    --line: #E3DDCE; --rav: #9E5D19; --rav-2: #D98A2B; --rav-ink: #FFFFFF;
    --glow: #E9A63C; --baal: #FBF2DE;
    --high: #5C7047; --medium: #99701F; --low: #8A8272;
    --chip-high-bg: #E4EAD8; --chip-med-bg: #F2E7C8; --chip-low-bg: #E9E6DC;
    --code-bg: #EDE8DA;
    --shadow-sm: 0 1px 2px rgba(42,37,28,.06), 0 1px 3px rgba(42,37,28,.08);
    --shadow-md: 0 4px 14px rgba(42,37,28,.10), 0 2px 4px rgba(42,37,28,.06);
    --shadow-lg: 0 12px 32px rgba(42,37,28,.14), 0 4px 8px rgba(42,37,28,.06);
    --glass: rgba(253,251,245,.82);
  }

  html { background: var(--ground); scroll-behavior: smooth; overflow-y: scroll; scrollbar-gutter: stable; }
  body { background: var(--ground); color: var(--ink); margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.65; }
  .serif { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif; }
  .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }
  .wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }

  /* ===== Flydende glas-header ===== */
  .site-head { position: sticky; top: .8rem; z-index: 50; }
  .site-head .bar {
    max-width: 70rem; margin: 0 auto; padding: .5rem .9rem;
    display: flex; align-items: center; gap: .9rem; flex-wrap: wrap;
    background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md);
  }
  .head-spacer { height: .8rem; }
  .logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: inherit; }
  .logo img { border-radius: 6px; }
  .logo .word { font-size: 1.3rem; font-weight: 650; }
  .logo .word em { font-style: normal; color: var(--rav); }
  nav.main { display: flex; gap: .2rem; margin-left: auto; }
  nav.main a img { width: 21px; height: auto; }
  nav.main a {
    gap: .45rem;
    text-decoration: none; color: var(--ink-soft); font-size: .85rem; font-weight: 600;
    padding: .6rem .85rem; border-radius: var(--r-full); min-height: 44px;
    display: inline-flex; align-items: center; box-sizing: border-box;
    transition: background .15s ease, color .15s ease;
  }
  nav.main a:hover { background: var(--surface-2); color: var(--ink); }
  nav.main a.active { background: var(--rav); color: var(--rav-ink); }
  .search { display: flex; align-items: center; background: var(--surface-2);
    border: 1px solid var(--line); border-radius: var(--r-full); padding: 0 .25rem 0 1rem; }
  .search input { font: inherit; font-size: 1rem; border: 0; background: transparent; color: var(--ink);
    width: 13rem; max-width: 34vw; min-height: 44px; box-sizing: border-box; }
  .search input::placeholder { color: var(--ink-faint); }
  .search input:focus { outline: none; }
  .search:focus-within { border-color: var(--rav); box-shadow: 0 0 0 3px color-mix(in srgb, var(--glow) 25%, transparent); }
  .search button { font: inherit; border: 0; background: linear-gradient(135deg, var(--glow), var(--rav-2));
    color: var(--rav-ink); min-width: 38px; min-height: 38px; border-radius: var(--r-full);
    cursor: pointer; font-weight: 700; }

  /* ===== Hero ===== */
  .hero { padding: 3.2rem 0 2.2rem; }
  .eyebrow img { width: 26px; height: auto; align-self: center; }
  .ai-badge img { width: 24px; height: auto; }
  .eyebrow {
    display: inline-flex; align-items: center; gap: .45rem;
    font-size: .76rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase;
    color: var(--rav); background: color-mix(in srgb, var(--glow) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--glow) 35%, transparent);
    padding: .35rem .8rem; border-radius: var(--r-full); margin: 0 0 1rem;
  }
  .hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.07; margin: 0 0 .9rem;
    font-weight: 650; text-wrap: balance; max-width: 22ch; letter-spacing: -.01em; }
  .hero h1 em { font-style: normal;
    background: linear-gradient(120deg, var(--glow), var(--rav-2));
    -webkit-background-clip: text; background-clip: text; color: transparent; }
  .hero p.lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 54ch; margin: 0 0 1.6rem; }
  .stats { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); max-width: 58rem; }
  .stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
    box-shadow: var(--shadow-sm); padding: .85rem 1rem; }
  .stat .n { font-size: 1.45rem; font-weight: 700; color: var(--rav); display: block; }
  .stat .l { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); }

  .media-card { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md);
    border: 1px solid var(--line); line-height: 0; }
  .media-card img { width: 100%; height: auto; display: block; }
  .explore { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
  .explore a { position: relative; display: block; border-radius: var(--r-md); overflow: hidden;
    box-shadow: var(--shadow-sm); border: 1px solid var(--line); line-height: 0;
    transition: transform .15s ease, box-shadow .15s ease; }
  .explore a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
  .explore img { width: 100%; height: auto; display: block; }
  .explore .lbl { position: absolute; left: .7rem; bottom: .7rem; line-height: 1.3;
    background: rgba(27,24,18,.78); color: #EDE4CF; backdrop-filter: blur(6px);
    padding: .35rem .85rem; border-radius: var(--r-full); font-size: .85rem; font-weight: 650; }
  .explore .lbl b { color: #E9A63C; }
  .hero-media { max-width: 26rem; justify-self: center; }
  @media (min-width: 54rem) { .hero-media { justify-self: end; } }
  @media (prefers-reduced-motion: reduce) { .explore a { transition: none; } }

  .futhark { display: flex; justify-content: center; gap: .2em;
    color: var(--rav); opacity: .45; font-size: .9rem; letter-spacing: .55em;
    margin: 0; padding: 1.1rem 0 .4rem; user-select: none; }

  section { padding: 1.6rem 0 2.4rem; }
  .sec-head { margin-bottom: 1.3rem; }
  .sec-head h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); margin: .55rem 0 .35rem; font-weight: 650; letter-spacing: -.01em; }
  .sec-head p { color: var(--ink-soft); margin: 0; max-width: 62ch; }

  /* ===== Portræt ===== */
  .portrait { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  @media (min-width: 60rem) { .portrait { grid-template-columns: minmax(0, 42rem) minmax(17rem, 1fr); } }
  .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
    box-shadow: var(--shadow-md); padding: 1.8rem 2rem; }
  .breadcrumb { font-size: .8rem; color: var(--ink-faint); margin: 0 0 .9rem; }
  .portrait h3.name { font-size: clamp(1.8rem, 4.5vw, 2.5rem); margin: 0 0 .25rem; font-weight: 650; }
  .byline { color: var(--ink-soft); font-size: .9rem; margin: 0 0 1.2rem; }
  .byline .mono { font-size: .85em; background: var(--code-bg); padding: .12em .5em; border-radius: 6px; }

  .ai-badge { display: flex; gap: .9rem 1.4rem; align-items: center; flex-wrap: wrap;
    background: var(--surface-2); border-radius: var(--r-md); padding: .8rem 1.1rem;
    font-size: .82rem; color: var(--ink-soft); margin-bottom: 1.5rem; }
  .ai-badge .dot { width: .55rem; height: .55rem; border-radius: 50%;
    background: var(--glow); display: inline-block; margin-right: .45rem;
    box-shadow: 0 0 8px var(--glow); }
  .ai-badge b { color: var(--ink); font-weight: 650; }

  .style-toggle { display: inline-flex; background: var(--surface-2); border-radius: var(--r-full);
    padding: .25rem; margin-bottom: 1.2rem; gap: .25rem; }
  .stbtn { font: inherit; font-size: .8rem; font-weight: 650; cursor: pointer;
    padding: .5rem 1.1rem; border: 0; background: transparent; color: var(--ink-soft);
    border-radius: var(--r-full); min-height: 40px; transition: background .15s ease, color .15s ease; }
  .stbtn.active { background: var(--rav); color: var(--rav-ink); box-shadow: var(--shadow-sm); }
  .stbtn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--rav); outline-offset: 2px; }

  .narrative { font-size: 1.05rem; line-height: 1.78; max-width: 65ch; }
  .narrative p { margin: 0 0 1.05em; }
  .narrative p:first-of-type::first-letter {
    font-family: "Iowan Old Style", Palatino, Georgia, serif;
    float: left; font-size: 3.2em; line-height: .85; padding: .05em .12em 0 0;
    color: var(--rav); font-weight: 650; }

  .actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.4rem; }
  button.btn { font: inherit; font-size: .9rem; font-weight: 650; cursor: pointer;
    padding: .7rem 1.4rem; border: 1px solid var(--line); border-radius: var(--r-full);
    background: var(--surface); color: var(--ink); min-height: 44px;
    box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; }
  button.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
  button.btn.primary { background: linear-gradient(135deg, var(--glow), var(--rav-2));
    border: 0; color: var(--rav-ink); }

  .evidence { align-self: start; position: sticky; top: 5.2rem; }
  .evidence .panel { background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: 1.2rem 1.3rem 1rem; }
  .evidence h4 { margin: 0 0 .25rem; font-size: .76rem; text-transform: uppercase;
    letter-spacing: .14em; color: var(--rav); font-weight: 700; }
  .evidence p.src { font-size: .8rem; color: var(--ink-faint); margin: 0 0 .8rem; }
  .quote { border-top: 1px solid var(--line); padding: .8rem 0; }
  .quote blockquote { margin: 0 0 .4rem; font-size: .92rem; line-height: 1.55;
    font-family: "Iowan Old Style", Palatino, Georgia, serif; font-style: italic; }
  .chip { display: inline-block; font-size: .67rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .07em; padding: .18em .7em; border-radius: var(--r-full); }
  .chip.high { color: var(--high); background: var(--chip-high-bg); }
  .chip.medium { color: var(--medium); background: var(--chip-med-bg); }
  .chip.low { color: var(--low); background: var(--chip-low-bg); }
  .evidence .more { display: none; }
  .evidence.open .more { display: block; }
  .evidence .toggle-panel { margin-top: .5rem; width: 100%; }

  /* ===== Katalog ===== */
  .grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
  .slab { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
    box-shadow: var(--shadow-sm); padding: 1rem 1.1rem .9rem; text-decoration: none; color: inherit;
    display: flex; flex-direction: column; gap: .3rem;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
  a.slab:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--glow) 45%, var(--line)); }
  .slab .rune { color: var(--rav); font-size: 1rem; }
  .slab .nm { font-family: "Iowan Old Style", Palatino, Georgia, serif; font-size: 1.18rem; font-weight: 650; }
  .slab .mt { font-size: .77rem; color: var(--ink-faint); }
  .slab .mt b { color: var(--ink-soft); font-weight: 650; }

  /* ===== Lejrbål ===== */
  .baal-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); align-items: start; }
  .baal-slab { background: var(--baal); border: 1px solid color-mix(in srgb, var(--glow) 35%, var(--line));
    border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: 1.5rem 1.7rem; }
  .baal-slab .flame { display: inline-flex; font-size: .74rem; text-transform: uppercase; letter-spacing: .14em;
    font-weight: 700; margin: 0 0 .9rem; color: var(--rav);
    background: color-mix(in srgb, var(--glow) 16%, transparent); padding: .3rem .8rem; border-radius: var(--r-full); }
  .baal-slab blockquote { margin: 0 0 1rem; font-size: 1.12rem; line-height: 1.7; font-style: italic; }
  .baal-slab blockquote p { margin: 0 0 .7em; }
  .baal-slab .who { font-size: .82rem; color: var(--ink-soft); }
  .baal-slab .who .mono { background: var(--code-bg); padding: .12em .5em; border-radius: 6px; }

  #toast { position: fixed; left: 50%; bottom: 1.4rem; transform: translate(-50%, .6rem);
    background: var(--ink); color: var(--ground); padding: .75rem 1.3rem; font-size: .88rem;
    border-radius: var(--r-full); box-shadow: var(--shadow-lg);
    opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; z-index: 60; }
  #toast.show { opacity: 1; transform: translate(-50%, 0); }

  footer { padding: 2rem 0 3rem; font-size: .82rem; color: var(--ink-faint); }
  footer .inner { border-top: 1px solid var(--line); padding-top: 1.4rem;
    display: flex; gap: 1rem 2rem; flex-wrap: wrap; justify-content: space-between; }

  .x-unused-meta { padding: .6rem 0 0; font-size: .76rem; color: var(--ink-faint);
    display: flex; gap: 1rem; justify-content: space-between; flex-wrap: wrap; }

  @media (max-width: 53.99rem) {
    .site-head { top: .5rem; }
    .site-head .bar { border-radius: var(--r-md); }
    nav.main { order: 3; width: 100%; margin-left: 0; overflow-x: auto;
      -webkit-overflow-scrolling: touch; padding-bottom: .15rem; }
    .search { order: 4; width: 100%; box-sizing: border-box; }
    .search input { width: 100%; max-width: none; flex: 1; }
    .card { padding: 1.3rem 1.2rem; }
    .evidence { position: static; }
  }
  @media (prefers-reduced-motion: reduce) {
    .slab, #toast, button.btn, .stbtn, nav.main a { transition: none; }
    html { scroll-behavior: auto; }
  }

/* ===== Globale links (rav, aldrig browser-blå) — BRAND.md §2 ===== */
a { color: var(--rav); text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--glow); }
footer a { color: var(--ink-soft); text-decoration: none; }
footer a:hover { color: var(--rav); }
footer nav a { font-weight: 600; }
.narrative a, .card a:not(.btn) { font-weight: 600; }
