/* ───────── Stilleksikon · bogens egen side ─────────
   Retning: "The printed annual". Fast flugtlinje ved 42 %, flade tonetrin,
   en enkelt accent (signalorange). Eksemplerne (css/specimens.css) har deres
   egne regler og må gerne bruge gradienter, skygger og glød. Siden omkring dem gør ikke. */

:root {
  --bg: #18191b;
  --surface: #222427;
  --surface-2: #2b2d31;
  --ink: #eff0f1;
  --muted: #a1a3a8;
  --accent: #ff4a1f;
  --accent-ink: #18191b;

  --field: #eff0f1;
  --field-surface: #e5e7e9;
  --field-surface-2: #dadde0;
  --field-ink: #18191b;
  --field-muted: #54565b;

  --ff: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(3.4rem, 8.2vw, 8rem);

  --m: 32px;
  --axis: 42%;
  --bar: 64px;
  --gap-sec: clamp(88px, 11vw, 176px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

@media (max-width: 760px) {
  :root { --m: 20px; --bar: 60px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color-scheme: dark;
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar) + 12px);
  -webkit-text-size-adjust: 100%;
}
html.is-modal { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-body) / 1.5 var(--ff);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; letter-spacing: inherit; color: inherit; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--m); top: -80px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 12px 18px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Lyse felter skifter hele tonen. Alt nedenunder bruger kun roller. */
.field {
  --bg: var(--field);
  --surface: var(--field-surface);
  --surface-2: var(--field-surface-2);
  --ink: var(--field-ink);
  --muted: var(--field-muted);
  background: var(--bg);
  color: var(--ink);
}

/* ───────── typografi ───────── */
.head {
  font: 800 var(--step-head) / 0.95 var(--ff);
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.lead {
  font-size: var(--step-lead);
  line-height: 1.35;
  letter-spacing: -0.02em;
  max-width: 34ch;
}
.copy-block { max-width: 40ch; }
.small { font-size: var(--step-small); }

/* ───────── fast flugtlinje ───────── */
.axis {
  display: grid;
  grid-template-columns: var(--axis) minmax(0, 1fr);
  padding-inline: var(--m);
}
.axis__side {
  padding-right: 32px;
  font-size: var(--step-small);
  line-height: 1.4;
  color: var(--muted);
  max-width: 36ch;
}
.axis__main { min-width: 0; display: grid; gap: 24px; align-content: start; }
.note strong {
  display: block;
  font: 800 var(--step-lead) / 1 var(--ff);
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 6px;
}

.sec { padding-block: var(--gap-sec); }
.sec--tight-top { padding-top: 0; }

/* ───────── øverste linje, topbjælke ───────── */
.flagbar { height: 10px; background: var(--accent); }

.bar {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg);
  transition: background-color 0.35s var(--ease);
}
.bar.is-stuck { background: var(--surface); }
.bar__in {
  display: grid;
  grid-template-columns: var(--axis) minmax(0, 1fr);
  align-items: center;
  min-height: var(--bar);
  padding-inline: var(--m);
}
.bar__brand {
  justify-self: start;
  font: 800 var(--step-lead) / 1 var(--ff);
  letter-spacing: -0.045em;
  text-decoration: none;
  padding-block: 10px;
}
.bar__panel {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; min-width: 0;
}
.bar__nav { display: flex; gap: clamp(16px, 2.6vw, 40px); }
.bar__nav a {
  font-weight: 600; font-size: var(--step-small);
  color: var(--muted); text-decoration: none; padding-block: 10px;
  transition: color 0.2s;
}
.bar__nav a:hover, .bar__nav a.is-here { color: var(--ink); }
.bar__search input {
  width: min(300px, 26vw); min-width: 190px;
  background: var(--surface-2); color: var(--ink);
  border: 0; border-radius: 0; padding: 12px 14px;
  font-size: var(--step-small); font-weight: 600;
}
.bar__search input::placeholder { color: var(--muted); font-weight: 400; }
.bar__toggle {
  display: none; justify-self: end; background: none; border: 0; cursor: pointer;
  font-weight: 600; font-size: var(--step-small); padding: 14px 0 14px 14px;
}

@media (max-width: 900px) {
  .bar__in { grid-template-columns: 1fr auto; }
  .bar__toggle { display: block; }
  .bar__panel {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 20px;
    background: var(--surface); padding: 8px var(--m) 28px;
  }
  .bar__panel.is-open { display: flex; }
  .bar__nav { flex-direction: column; gap: 0; }
  .bar__nav a { font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); padding-block: 10px; }
  .bar__search input { width: 100%; font-size: var(--step-body); padding: 14px; }
}

/* ───────── forside ───────── */
.hero { position: relative; padding-inline: var(--m); }
.hero__row {
  display: grid;
  grid-template-columns: var(--axis) minmax(0, 1fr);
  min-height: calc(68svh - var(--bar) - 10px);
}
.hero__talk {
  display: flex; flex-direction: column; align-items: flex-start; gap: 32px;
  padding: calc(30svh - var(--bar) - 10px) 40px 48px 0;
}
.hero__lede {
  font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.02em; max-width: 24ch;
  animation: bk-fade 0.8s var(--ease) 0.55s both;
}
.hero__talk .action { animation: bk-fade 0.8s var(--ease) 0.7s both; }
.hero__title {
  align-self: end;
  margin-bottom: clamp(96px, 13svh, 128px);
  font: 800 var(--step-display) / 0.82 var(--ff);
  letter-spacing: -0.05em;
}
.mask { display: block; overflow: hidden; padding: 0.14em 0 0.04em; margin-top: -0.14em; }
.mask > span {
  display: block;
  transform: translateY(112%);
  animation: bk-rise 1s var(--ease) both;
  animation-delay: calc(var(--l, 0) * 110ms + 120ms);
}
.mask:nth-child(2) > span { --l: 1; }

.hero__mosaic { position: relative; margin-left: var(--axis); }
.mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.tile { display: block; min-width: 0; overflow: hidden; text-decoration: none; }
.tile .pv { transition: transform 0.7s var(--ease); }
.tile:hover .pv, .tile:focus-visible .pv { transform: scale(1.04); }
.tile:focus-visible { outline-offset: -3px; }

.figure {
  position: absolute; left: 0; top: 0; translate: 0 -50%; z-index: 2;
  width: 260px; padding: 18px 22px 20px;
  background: var(--accent); color: var(--accent-ink);
  display: grid; gap: 6px;
  animation: bk-fade 0.9s var(--ease) 0.9s both;
}
.figure b { font: 800 var(--step-head) / 0.9 var(--ff); letter-spacing: -0.05em; }
.figure span { font-size: var(--step-small); font-weight: 600; line-height: 1.3; }

@media (max-width: 760px) {
  .hero__row { grid-template-columns: 1fr; min-height: 0; }
  .hero__title { order: 1; font-size: 14vw; margin: 28px 0 0; }
  .hero__talk { order: 2; padding: 28px 0 88px; gap: 24px; }
  .hero__talk .action { width: 100%; justify-content: space-between; }
  .hero__lede { max-width: 30ch; }
  .hero__mosaic { margin-inline: calc(var(--m) * -1); }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figure { width: 60%; left: 0; }
}

/* ───────── knapper ───────── */
.action {
  display: inline-flex; align-items: center; gap: 0.8em;
  background: var(--accent); color: var(--accent-ink);
  font: 600 var(--step-body) / 1 var(--ff); letter-spacing: -0.01em;
  padding: 1.1em 1.5em; border: 0; border-radius: 0; cursor: pointer; text-decoration: none;
  transition: transform 0.18s var(--ease), background-color 0.2s;
}
.action:hover { background: #ff643f; transform: translateY(-2px); }
.action:active { transform: translateY(1px); }
.action svg { width: 14px; height: 14px; flex: none; transition: transform 0.25s var(--ease); }
.action:hover svg { transform: translateY(3px); }

.pick, .ghost {
  font: 600 var(--step-small) / 1 var(--ff);
  padding: 0.95em 1.15em; border: 0; border-radius: 0; cursor: pointer;
  background: var(--surface); color: var(--ink); text-decoration: none; display: inline-block;
  transition: background-color 0.2s, color 0.2s, transform 0.15s var(--ease);
}
.pick { font-size: var(--step-body); padding: 0.8em 1.1em; }
.pick:hover, .ghost:hover { background: var(--surface-2); }
.pick:active, .ghost:active { transform: translateY(1px); }
.pick[aria-pressed='true'] { background: var(--ink); color: var(--bg); }

/* ───────── faktaraekke ───────── */
.facts {
  display: flex; justify-content: space-between; gap: 40px 24px; flex-wrap: wrap;
  padding-inline: var(--m); margin-top: clamp(72px, 9vw, 120px);
}
.fact { min-width: 0; flex: 1 1 200px; max-width: 300px; }
.fact dt { font: 800 var(--step-head) / 0.95 var(--ff); letter-spacing: -0.05em; }
.fact dd { margin-top: 12px; font-size: var(--step-small); line-height: 1.4; color: var(--muted); max-width: 26ch; }

/* ───────── plader (kort) ───────── */
.grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 44px 16px; padding-inline: var(--m);
}
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 10px; } }

.plate { display: block; color: inherit; text-decoration: none; min-width: 0; }
.plate__frame { display: block; overflow: hidden; }
.plate .pv { transition: transform 0.7s var(--ease); }
.plate:hover .pv, .plate:focus-visible .pv { transform: scale(1.035); }
.plate:focus-visible { outline: 0; }
.plate:focus-visible .plate__frame { outline: 3px solid var(--accent); outline-offset: 3px; }
.plate__cap { display: block; padding-top: 14px; }
.plate__name { display: block; font-weight: 800; font-size: var(--step-body); letter-spacing: -0.02em; line-height: 1.2; }
.plate__meta { display: block; font-size: var(--step-small); color: var(--muted); margin-top: 3px; }
.plate__desc {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  margin-top: 8px; font-size: var(--step-small); line-height: 1.4; max-width: 34ch;
}
.plate__tag {
  display: inline-block; margin-top: 10px; padding: 0.3em 0.65em;
  font-size: var(--step-small); font-weight: 600; line-height: 1.2;
  background: var(--ink); color: var(--bg);
}
.plate__tag--soft { background: var(--surface); color: var(--ink); }
.plate[hidden] { display: none; }
.plate--new { animation: bk-fade 0.5s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }

/* ───────── find din stil ───────── */
.finder__ctl { display: grid; gap: 32px; margin-top: clamp(48px, 6vw, 80px); }
.ctl { display: grid; grid-template-columns: var(--axis) minmax(0, 1fr); padding-inline: var(--m); align-items: start; }
.ctl__label { font-weight: 800; font-size: var(--step-body); letter-spacing: -0.02em; padding: 0.8em 32px 0 0; }
.ctl__opts { display: flex; flex-wrap: wrap; gap: 6px; }
.finder__out { margin-top: clamp(64px, 8vw, 104px); }
.finder__count {
  padding-inline: var(--m); margin-bottom: 36px;
  font: 800 var(--step-lead) / 1.15 var(--ff); letter-spacing: -0.03em;
}
.finder__count span { color: var(--muted); font-weight: 400; letter-spacing: -0.02em; }
.finder__more { padding: 48px var(--m) 0; }
.finder__empty { padding-inline: var(--m); max-width: 52ch; }

/* ───────── oversigt (kapitler) ───────── */
.overview__lead { padding-inline: var(--m); display: grid; grid-template-columns: 66% 1fr; }
.overview__lead p { font-size: var(--step-lead); line-height: 1.35; letter-spacing: -0.02em; max-width: 30ch; }
.overview__state {
  display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap;
  padding: 40px var(--m) 0; font: 600 var(--step-body) / 1.3 var(--ff);
}
.overview__state[hidden] { display: none; }
.overview__state button { background: none; border: 0; padding: 0; font-weight: 600; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.chapter { padding-top: var(--gap-sec); content-visibility: auto; contain-intrinsic-size: auto 1700px; }
.chapter__head { margin-bottom: clamp(40px, 5vw, 64px); }
.chapter__txt { font-size: var(--step-body); max-width: 38ch; }
.chapter[hidden] { display: none; }
.nomatch { padding: var(--gap-sec) var(--m) 0; font: 800 var(--step-lead) / 1.2 var(--ff); letter-spacing: -0.02em; }

@media (max-width: 760px) {
  .overview__lead { grid-template-columns: 1fr; }
  .plate__desc { display: none; }
}

/* ───────── arkivbilleder i kapitelhovedet ───────── */
.chapter__head .axis__side { max-width: none; }
.plateimg { margin-top: 36px; width: min(100%, 520px); }
.plateimg__frame { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.plateimg img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%);
  transform: scale(var(--z, 1)); transform-origin: var(--pos, 50% 50%);
  filter: grayscale(1) contrast(1.06);
}
.plateimg figcaption { margin-top: 10px; font-size: var(--step-small); color: var(--muted); max-width: 40ch; line-height: 1.4; }
@media (max-width: 760px) {
  .chapter__head .axis__side { order: 2; padding: 32px 0 0; }
  .plateimg { margin-top: 24px; }
}

/* ───────── sammenligning ───────── */
.compare__body {
  display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 40px;
  padding-inline: var(--m); margin-top: clamp(48px, 6vw, 80px); align-items: start;
}
.tabs { position: sticky; top: calc(var(--bar) + 16px); display: grid; gap: 6px; }
.tab {
  display: block; width: 150px; height: 64px; padding: 10px 14px; text-align: left;
  background: var(--surface); color: var(--ink); border: 0; border-radius: 0; cursor: pointer;
  font: 600 1rem / 1.2 var(--ff);
  transition: background-color 0.2s, color 0.2s, transform 0.15s var(--ease);
}
.tab small { display: block; margin-top: 3px; font-size: var(--step-small); font-weight: 400; color: var(--muted); }
.tab:hover { background: var(--surface-2); }
.tab:active { transform: translateY(1px); }
.tab[aria-pressed='true'] { background: var(--ink); color: var(--bg); }
.tab[aria-pressed='true'] small { color: inherit; opacity: 0.75; }

.tbl { width: 100%; border-collapse: separate; border-spacing: 0 4px; table-layout: fixed; }
.tbl th { text-align: left; font-weight: 600; font-size: var(--step-small); padding: 0 16px 12px; color: var(--muted); }
.tbl th button { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; cursor: pointer; font-weight: 600; color: inherit; }
.tbl th button:hover, .tbl th[aria-sort='ascending'] button, .tbl th[aria-sort='descending'] button { color: var(--ink); }
.tbl th button i { font-style: normal; width: 0.8em; display: inline-block; }
.tbl td {
  height: 76px; padding: 0 16px; vertical-align: middle;
  background: var(--surface); font-size: var(--step-small); line-height: 1.35;
  transition: background-color 0.2s;
}
.tbl tbody tr:nth-child(even) td { background: var(--surface-2); }
.tbl td:first-child { border-left: 4px solid transparent; padding-left: 14px; }
.tbl tbody tr:hover td:first-child, .tbl tbody tr:focus-within td:first-child { border-left-color: var(--accent); }
.tbl__name { font-weight: 800; font-size: var(--step-body); letter-spacing: -0.02em; text-decoration: none; display: block; line-height: 1.15; }
.tbl__name:hover { text-decoration: underline; text-underline-offset: 4px; }
.tbl__sub { display: block; margin-top: 3px; color: var(--muted); }
.tbl td.num { font-variant-numeric: tabular-nums; }
.tbl .c-name { width: 22%; } .tbl .c-era { width: 15%; } .tbl .c-mood { width: 13%; }
.tbl .c-use { width: 18%; } .tbl .c-r { width: 10.667%; }
.tbl td.c-r, .tbl th.c-r { padding-inline: 12px; }
.tbl__empty td { background: transparent !important; height: auto; padding: 32px 0; font-size: var(--step-body); }

.meter { display: inline-flex; gap: 3px; margin-right: 8px; vertical-align: middle; }
.tbl .meter { display: flex; margin: 0 0 6px; }
.meter i { flex: none; width: 9px; height: 9px; background: currentColor; opacity: 0.2; }
.meter i.on { opacity: 1; }
.meter--hot i.on { background: var(--accent); }

@media (max-width: 1100px) {
  .tbl .c-use { display: none; }
  .tbl td:nth-child(4), .tbl th:nth-child(4) { display: none; }
}
@media (max-width: 900px) {
  .compare__body { grid-template-columns: 1fr; gap: 24px; }
  .tabs { position: static; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .tab { width: auto; height: 64px; }
}
@media (max-width: 760px) {
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; }
  .tbl { border-spacing: 0; }
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl tbody tr { margin-bottom: 4px; background: var(--surface); padding: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .tbl tbody tr:nth-child(even) { background: var(--surface-2); }
  .tbl tbody tr td, .tbl tbody tr:nth-child(even) td { width: auto; height: auto; padding: 0; background: none; }
  .tbl tbody tr td:first-child { border-left: 0; padding-left: 0; }
  .tbl tbody tr td.c-name, .tbl tbody tr td.c-era { grid-column: 1 / -1; }
  .tbl tbody tr td.c-mood, .tbl tbody tr td.c-use { display: none; }
  .tbl tbody tr td[class] { width: auto; }
  .tbl tbody tr td.c-r { padding-inline: 0; }
  .tbl td::before { content: attr(data-label); display: block; color: var(--muted); margin-bottom: 4px; }
  .tbl td.c-name::before, .tbl td.c-era::before { display: none; }
}

/* ───────── sådan bruger du bogen ───────── */
.steps {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 16px; row-gap: clamp(40px, 5vw, 64px); padding-inline: var(--m);
}
.step { grid-column: var(--c) / -1; min-width: 0; }
.step:nth-child(1) { --c: 1; } .step:nth-child(2) { --c: 3; }
.step:nth-child(3) { --c: 5; } .step:nth-child(4) { --c: 7; }
.step__line { font: 800 var(--step-head) / 1 var(--ff); letter-spacing: -0.04em; }
.step:last-child .step__line { color: var(--accent); }
.step__txt { margin-top: 14px; max-width: 34ch; }
@media (max-width: 760px) {
  .steps { display: block; }
  .step { margin-bottom: 40px; margin-left: calc(var(--n, 0) * 6vw); }
  .step:nth-child(2) { --n: 1; } .step:nth-child(3) { --n: 2; } .step:nth-child(4) { --n: 3; }
  .step__line { font-size: 8.4vw; line-height: 1.05; }
  .step__txt { font-size: 1rem; }
}

/* ───────── ordliste ───────── */
.gloss { margin-top: clamp(48px, 6vw, 80px); }
.gloss__row { background: var(--surface); padding-block: 30px; margin-bottom: 4px; align-items: start; }
.gloss__row:nth-child(even) { background: var(--surface-2); }
.gloss__row dt { font: 800 var(--step-lead) / 1.15 var(--ff); letter-spacing: -0.02em; padding-right: 32px; }
.gloss__row dd { max-width: 44ch; display: grid; gap: 14px; }
.gloss__uses { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: var(--step-small); }
.gloss__uses a, .gloss__uses span {
  padding: 0.35em 0.7em; background: var(--bg); color: var(--ink); text-decoration: none; font-weight: 600;
  transition: background-color 0.2s, color 0.2s;
}
.gloss__uses a:hover { background: var(--ink); color: var(--bg); }
.gloss__uses span { background: none; padding-left: 0; color: var(--muted); font-weight: 400; }
.gloss__uses a + span { background: none; }

/* ───────── bund ───────── */
.foot { background: var(--surface); padding-top: clamp(56px, 7vw, 104px); overflow: hidden; }
.foot__markwrap { overflow: hidden; margin-inline: var(--m); height: calc(var(--mark, 14vw) * 0.7); }
.foot__mark {
  display: inline-block; white-space: nowrap;
  font: 800 var(--mark, 14vw) / 0.95 var(--ff); letter-spacing: -0.06em; color: var(--ink);
  text-decoration: none;
}
.foot__row { margin-top: clamp(48px, 6vw, 72px); align-items: start; }
.places { display: grid; gap: 4px; }
.places a {
  font: 800 var(--step-lead) / 1.2 var(--ff); letter-spacing: -0.03em;
  color: var(--accent); text-decoration: none; width: fit-content; transition: transform 0.25s var(--ease);
}
.places a:hover { transform: translateX(8px); }
.register { columns: 3; column-gap: 24px; font-size: var(--step-small); }
.register a { display: block; padding: 5px 0; text-decoration: none; color: var(--ink); break-inside: avoid; transition: color 0.15s; }
.register a:hover { color: var(--accent); }
.foot__legal {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: clamp(64px, 8vw, 96px) var(--m) 36px; font-size: var(--step-small); color: var(--muted);
}
.foot__legal p { max-width: 56ch; }
.credits { padding-inline: var(--m); max-width: calc(60ch + var(--m)); margin-top: clamp(40px, 5vw, 64px); font-size: var(--step-small); line-height: 1.5; }
.credits a { color: var(--ink); text-underline-offset: 3px; }
.credits a:hover { color: var(--accent); }
.foot__legal a { color: var(--ink); font-weight: 600; text-decoration: none; }
.foot__legal a:hover { color: var(--accent); }

@media (max-width: 760px) {
  .axis { grid-template-columns: 1fr; }
  .axis__side { padding: 0 0 18px; max-width: none; }
  .ctl { grid-template-columns: 1fr; }
  .ctl__label { padding: 0 0 12px; }
  .register { columns: 2; }
  .places { margin-bottom: 32px; }
  .places a { font-size: 1.625rem; }
  .gloss__row dt { padding: 0 0 12px; }
  .facts { display: grid; grid-template-columns: 1fr 1fr; }
  .fact dt { font-size: 2.2rem; }
}

/* ───────── bladet (dialog) ───────── */
.entry {
  padding: 0; border: 0; background: var(--surface); color: var(--ink);
  width: min(1440px, calc(100vw - 48px)); max-width: none;
  height: calc(100dvh - 48px); max-height: none;
  overflow: auto; overscroll-behavior: contain;
}
.entry::backdrop { background: rgba(10, 10, 11, 0.8); }
.entry[open] { animation: bk-sheet 0.5s var(--ease); }
@media (max-width: 760px) { .entry { width: 100vw; height: 100dvh; } }

.entry__top {
  position: sticky; top: 0; z-index: 6; background: var(--surface);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--m);
}
.entry__crumb { font-size: var(--step-small); color: var(--muted); min-width: 0; }
.entry__crumb a { color: var(--ink); font-weight: 600; text-decoration: none; }
.entry__crumb a:hover { color: var(--accent); }
.entry__nav { display: flex; gap: 4px; flex: none; }
.entry__nav .ghost { background: var(--surface-2); }
.entry__nav .ghost:hover { background: var(--bg); }
.entry__nav .ghost--close { background: var(--accent); color: var(--accent-ink); }
.entry__nav .ghost--close:hover { background: #ff643f; }

.entry__grid {
  display: grid; grid-template-columns: var(--axis) minmax(0, 1fr);
  padding: 20px var(--m) 96px;
}
.entry__left {
  padding-right: 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-content: start; align-self: start;
  position: sticky; top: 76px;
}
@media (max-height: 960px) { .entry__left { position: static; } }
.entry__right { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; align-content: start; }
.entry__right > *, .entry__left > * { min-width: 0; }
.entry__left h3 { margin-top: 0; }
.entry h2 { font: 800 var(--step-head) / 0.95 var(--ff); letter-spacing: -0.04em; text-wrap: balance; }
.entry h3 { font: 800 var(--step-body) / 1.2 var(--ff); letter-spacing: -0.02em; margin-bottom: 14px; }
.entry__right .lead { margin-top: 20px; }
.blk { margin-top: 48px; }
.traits { display: grid; gap: 10px; max-width: 46ch; }
.traits li { padding-left: 22px; position: relative; }
.traits li::before { content: ''; position: absolute; left: 0; top: 0.58em; width: 9px; height: 9px; background: var(--accent); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; max-width: 760px; }
.two p + p { margin-top: 10px; }
.muted { color: var(--muted); }

.rates { display: grid; gap: 4px; max-width: 520px; }
.rates div { display: grid; grid-template-columns: 150px 1fr; background: var(--surface-2); padding: 14px 16px; align-items: center; }
.rates dt { font-weight: 600; font-size: var(--step-small); }
.rates dd { font-size: var(--step-small); }
.tip { margin-top: 16px; max-width: 52ch; padding: 16px 18px; background: var(--surface-2); }

.swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.swatch { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; color: inherit; min-width: 0; }
.swatch__chip { display: block; height: 72px; background: var(--c); transition: transform 0.25s var(--ease); }
.swatch:hover .swatch__chip { transform: translateY(-4px); }
.swatch__name { display: block; margin-top: 8px; font-size: var(--step-small); font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.swatch__hex { display: block; font-size: var(--step-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.fonts { display: grid; gap: 4px; }
.fontrow { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: center; background: var(--surface-2); padding: 12px 16px; }
.fontrow__aa { font-size: 2.6rem; line-height: 1; }
.fontrow__name { font-weight: 600; display: block; font-size: var(--step-body); line-height: 1.2; }
.fontrow__role { font-size: var(--step-small); color: var(--muted); }
.fonts__copy { margin-top: 10px; }

.code {
  margin: 0; background: var(--bg); padding: 20px 22px; overflow: auto; max-height: 440px;
  font: 400 13px / 1.6 ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace;
  tab-size: 2; color: var(--ink);
}
.code code { font: inherit; white-space: pre; }
.promptbox { background: var(--bg); padding: 18px 20px; font-size: var(--step-small); line-height: 1.55; max-width: 70ch; }
.btnrow { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.btnrow .action { font-size: var(--step-small); padding: 1em 1.3em; }
.related { display: flex; flex-wrap: wrap; gap: 4px; }
.related a { background: var(--surface-2); }

@media (max-width: 900px) {
  .entry__grid { grid-template-columns: minmax(0, 1fr); }
  .entry__left { position: static; padding: 0 0 40px; }
  .two { grid-template-columns: 1fr; gap: 24px; }
  .entry__nav .ghost span { display: none; }
}

/* ───────── toast ───────── */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 200;
  transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
  background: #eff0f1; color: #18191b; padding: 13px 20px; font: 600 var(--step-small) / 1.2 var(--ff);
  transition: opacity 0.25s, transform 0.4s var(--ease);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
dialog ~ .toast { z-index: 300; }

/* ───────── eksemplerne i bogen ───────── */
html.is-modal .page .pv *,
html.is-modal .page .pv *::before,
html.is-modal .page .pv *::after { animation-play-state: paused !important; }
.entry .pv { width: 100%; }

/* ───────── bevægelse ───────── */
@keyframes bk-rise { from { transform: translateY(112%); } to { transform: none; } }
@keyframes bk-fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes bk-sheet { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

.js .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .mask > span { transform: none; animation: none; }
  .hero__lede, .hero__talk .action, .figure, .plate--new, .entry[open] { animation: none; }
  .plate .pv, .tile .pv, .swatch__chip, .places a, .action { transition: none; }
}
