/* sølvfisk.dk - naturhistorisk planche: kølig sølvgrå papirflade, blæk, fugt-teal og rav til papirfisken */
@font-face { font-family: "Young Serif"; src: url("/assets/fonts/young-serif-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/assets/fonts/schibsted-grotesk.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-400-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --papir: #e6eae8;
  --flade: #f4f6f5;
  --blaek: #16222a;
  --blaek-2: #3b4950;
  --linje: #b9c3c5;
  --linje-svag: #cfd6d6;
  --teal: #1b5652;
  --teal-lys: #d3e2df;
  --rav: #74491d;
  --rav-lys: #eadfd0;
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --ramme: 72rem;
  --tekst: 40rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papir);
  color: var(--blaek);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  font-feature-settings: "kern", "liga";
}
::selection { background: var(--teal); color: #fff; }
img, svg { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }

.ramme { width: min(100% - 2rem, var(--ramme)); margin-inline: auto; }
.spring { position: absolute; left: -999px; top: 0; background: var(--blaek); color: #fff; padding: .6rem 1rem; z-index: 10; }
.spring:focus { left: 1rem; top: 1rem; }

/* Top */
.top { border-bottom: 1px solid var(--linje); background: var(--papir); }
.top-ramme { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem; padding-block: 1rem; }
.ordmaerke { color: var(--blaek); text-decoration: none; display: inline-flex; }
.ordmaerke-svg { width: 10.5rem; height: auto; }
.ordmaerke-dk { fill: var(--teal); }
.menu { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; font-size: .95rem; font-weight: 500; }
.menu a { color: var(--blaek-2); text-decoration: none; padding-block: .35rem; border-bottom: 1px solid transparent; }
.menu a:hover { color: var(--blaek); border-bottom-color: var(--blaek); }
.menu a[aria-current="page"] { color: var(--blaek); border-bottom-color: var(--teal); }

/* Typografi */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.3rem, 1.4rem + 4.2vw, 4.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.2rem); margin-top: 3.2rem; margin-bottom: .8rem; }
h3 { font-size: 1.3rem; margin-top: 2rem; margin-bottom: .5rem; }
p, ul, ol { margin: 0 0 1.05rem; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: .45rem; }
li::marker { color: var(--teal); }
strong { font-weight: 650; }
.ingress { font-size: clamp(1.15rem, 1.05rem + .45vw, 1.35rem); line-height: 1.5; color: var(--blaek-2); max-width: 36rem; text-wrap: pretty; }
.maal { font-family: var(--mono); font-size: .8rem; letter-spacing: .02em; color: var(--blaek-2); font-variant-numeric: tabular-nums; }

/* Forside: titel + planche */
.hoved { padding-block: clamp(2.5rem, 6vw, 5rem) 0; }
.hoved h1 { max-width: 15ch; }
.hoved .ingress { margin-top: 1.4rem; }

.planche {
  margin: clamp(2rem, 5vw, 3.5rem) 0 0;
  background: var(--flade);
  border: 1px solid var(--linje);
  padding: clamp(1rem, 4vw, 3rem) clamp(.75rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem);
  position: relative;
}
.planche::before, .planche::after { content: ""; position: absolute; width: 14px; height: 14px; border-color: var(--blaek); border-style: solid; }
.planche::before { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
.planche::after { bottom: 8px; right: 8px; border-width: 0 1px 1px 0; }
.planche { display: flex; flex-direction: column; }
.planche .fisk { width: 100%; height: auto; margin: auto; max-width: 54rem; }
.planche figcaption { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 1.2rem; padding-top: .9rem; border-top: 1px solid var(--linje-svag); }
.planche figcaption p { margin: 0; }
.planche-navn { font-family: var(--serif); font-size: 1.15rem; }
.planche-navn i { font-family: var(--sans); font-size: .95rem; color: var(--blaek-2); }

.fisk-linje path { stroke: #2b373e; stroke-width: 2.2; }
.fisk-boerste path { stroke-width: 1.6; }
.fisk-segment path { stroke: rgba(22, 34, 42, .22); stroke-width: 1.4; }
.fisk-segment .fisk-ryg { stroke: rgba(255, 255, 255, .5); stroke-width: 2; }
.fisk-papir .fisk-segment .fisk-ryg { stroke: rgba(255, 255, 255, .22); }
.fisk-oeje { fill: #16222a; }

/* Kendetegn-forklaring under planchen */
.noegle { display: grid; gap: 0; margin: 1rem 0 0; padding: 0; list-style: none; counter-reset: n; }
.noegle li { margin: 0; padding: .7rem 0; border-top: 1px solid var(--linje-svag); display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; }
.noegle li:first-child { border-top: 0; }
.noegle b { font-weight: 600; }

/* Det korte svar */
.svar { display: grid; gap: 2rem; padding-block: clamp(3rem, 7vw, 5.5rem) 0; }
.svar h2 { margin: 0; }
.svar-liste { margin: 0; display: grid; gap: 0; }
.svar-liste div { padding: 1.1rem 0; border-top: 1px solid var(--linje); display: grid; gap: .3rem; }
.svar-liste dt { font-family: var(--serif); font-size: 1.25rem; }
.svar-liste dd { margin: 0; color: var(--blaek-2); max-width: 38rem; }

/* Sammenligningstabel */
.tabel-wrap { overflow-x: auto; margin: 1.2rem 0 1.5rem; border: 1px solid var(--linje); background: var(--flade); -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: .97rem; }
th, td { text-align: left; vertical-align: top; padding: .8rem 1rem; border-bottom: 1px solid var(--linje-svag); }
tr:last-child th, tr:last-child td { border-bottom: 0; }
thead th { font-family: var(--serif); font-weight: 400; font-size: 1.1rem; border-bottom: 1px solid var(--linje); }
tbody th { font-weight: 600; width: 26%; color: var(--blaek-2); }
th:first-child { position: sticky; left: 0; background: var(--flade); z-index: 1; }
.art-soelv { color: var(--teal); }
.art-papir { color: var(--rav); }
thead .art-soelv, thead .art-papir { position: relative; padding-top: 1rem; }
thead .art-soelv::before, thead .art-papir::before { content: ""; position: absolute; left: 1rem; right: 1rem; top: 0; height: 3px; background: currentColor; }

/* Indholdsoversigt (forside) */
.guide { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5rem); }
.guide h2 { margin-top: 0; }
.guide-liste { list-style: none; padding: 0; margin: 1.2rem 0 0; border-top: 1px solid var(--blaek); }
.guide-liste li { margin: 0; border-bottom: 1px solid var(--linje); }
.guide-liste a { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1.5rem; align-items: baseline; padding: 1.3rem 0; color: var(--blaek); text-decoration: none; }
.guide-liste a:hover .guide-titel { color: var(--teal); }
.guide-titel { font-family: var(--serif); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); transition: color .2s ease-out; }
.guide-tekst { grid-column: 1 / -1; color: var(--blaek-2); max-width: 40rem; }
.guide-pil { width: 1.6rem; height: 1.6rem; color: var(--teal); transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.guide-liste a:hover .guide-pil { transform: translateX(4px); }

/* Artikelsider */
.artikel { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem); }
.artikel-hoved { max-width: 46rem; }
.artikel-hoved h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); }
.artikel-hoved .ingress { margin-top: 1.2rem; }
.artikel-krop { max-width: var(--tekst); }
.artikel-krop > h2:first-child { margin-top: 2.5rem; }

.to-planche { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
.to-planche .planche { margin: 0; min-height: 100%; }

.note {
  background: var(--teal-lys);
  padding: 1.1rem 1.25rem;
  margin: 1.8rem 0;
  border-radius: 2px;
}
.note p:last-child { margin-bottom: 0; }
.note-papir { background: var(--rav-lys); }
.note-titel { font-family: var(--serif); font-size: 1.15rem; margin-bottom: .35rem; }

.trin { list-style: none; padding: 0; counter-reset: trin; margin: 1.2rem 0 1.5rem; }
.trin li { counter-increment: trin; position: relative; padding: 0 0 1.1rem 2.9rem; margin: 0; }
.trin li::before { content: counter(trin); position: absolute; left: 0; top: .05rem; width: 1.9rem; height: 1.9rem; border: 1px solid var(--blaek); border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: .8rem; }
.trin b { display: block; font-weight: 600; }

.videre { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--blaek); display: flex; flex-wrap: wrap; gap: .6rem 2rem; }
.videre a { font-family: var(--serif); font-size: 1.15rem; }

/* Tekstsider (privatliv, 404) */
.tekstside { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem); }
.tekstside .ramme > * { max-width: var(--tekst); }
.tekstside h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); margin-bottom: 1.2rem; }
.knap { display: inline-block; background: var(--blaek); color: var(--flade); text-decoration: none; padding: .75rem 1.3rem; border-radius: 2px; font-weight: 600; transition: background-color .2s ease-out; }
.knap:hover { background: var(--teal); color: #fff; }

/* Bund */
.bund { border-top: 1px solid var(--linje); padding-block: 1.6rem 2rem; font-size: .95rem; color: var(--blaek-2); }
.bund-ramme { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.bund p { margin: 0; font-family: var(--serif); color: var(--blaek); }
.bund a { color: var(--blaek-2); }

@media (min-width: 48rem) {
  .svar { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 3rem; }
  .to-planche { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 30rem) {
  .noegle li { grid-template-columns: 1fr; gap: .1rem; }
  .ordmaerke-svg { width: 9rem; }
  .menu { gap: .1rem 1.1rem; font-size: .92rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
