/* tjubang.dk - avispapir, sort tusch, primærgul og -rød, rasterprikker */
@font-face { font-family: "Big Shoulders"; src: url("/assets/fonts/big-shoulders-display-vf.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Next"; src: url("/assets/fonts/atkinson-next.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  --papir: #fbf6e9;
  --papir-2: #f3ead2;
  --tusch: #141414;
  --gul: #ffd23f;
  --roed: #e4372f;
  --roed-dyb: #b8241d;
  --blaa: #2a6fdb;
  --daempet: #4a4740;
  --display: "Big Shoulders", Impact, sans-serif;
  --tekst: "Atkinson Next", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papir); color: var(--tusch); font-family: var(--tekst); font-size: 1.0625rem; line-height: 1.62; }
::selection { background: var(--gul); color: var(--tusch); }
img, svg { max-width: 100%; }
a { color: var(--tusch); text-decoration-thickness: 2px; text-decoration-color: var(--roed); text-underline-offset: 0.18em; }
a:hover { background: var(--gul); }
:focus-visible { outline: 3px solid var(--blaa); outline-offset: 2px; }

.ramme { width: min(100% - 2rem, 70rem); margin-inline: auto; }
.smal { max-width: 44rem; }
.spring { position: absolute; left: 1rem; top: -4rem; background: var(--tusch); color: var(--gul); padding: 0.5rem 0.9rem; z-index: 10; }
.spring:focus { top: 0.75rem; }

h1, h2, h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: 0.95; letter-spacing: 0.005em; text-wrap: balance; }
h1 { font-size: clamp(3rem, 10vw, 6.4rem); margin: 0 0 1rem; }
h2 { font-size: clamp(2rem, 5vw, 3rem); margin: 1.8em 0 0.45em; }
h3 { font-size: 1.6rem; margin: 0.4em 0; }
p { margin: 0 0 1em; }
.indledning { font-size: clamp(1.1rem, 2vw, 1.25rem); line-height: 1.55; max-width: 44ch; }
.maerkat { display: inline-block; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.05rem; background: var(--tusch); color: var(--gul); padding: 0.15rem 0.6rem; transform: rotate(-2deg); margin-bottom: 1rem; }
.note { font-size: 0.92rem; color: var(--daempet); }

/* Top */
.top { background: var(--gul); border-bottom: 3px solid var(--tusch); }
.top-ind { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 0.7rem; }
.ordmaerke { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; font-family: var(--display); font-weight: 900; font-size: 1.9rem; text-transform: uppercase; line-height: 1; }
.ordmaerke:hover { background: none; }
.brag-lille { width: 2.2rem; height: 2.2rem; }
.menu { display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem; }
.menu a { text-decoration: none; font-weight: 700; font-size: 0.97rem; padding: 0.2rem 0; }
.menu a:hover { background: none; text-decoration: underline; text-decoration-color: var(--tusch); }
.menu a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--roed); }

/* Knapper */
.knapper { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.5rem; }
.knap { display: inline-block; font: inherit; font-weight: 800; background: var(--roed); color: #fff; text-decoration: none; padding: 0.75rem 1.3rem; border: 3px solid var(--tusch); box-shadow: 4px 4px 0 var(--tusch); cursor: pointer; transition: transform 0.12s, box-shadow 0.12s; }
.knap:hover { background: var(--roed-dyb); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--tusch); }
.knap:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--tusch); }
.knap-lys { background: #fff; color: var(--tusch); }
.knap-lys:hover { background: var(--gul); color: var(--tusch); }

/* Forside */
.helt { padding-block: clamp(2rem, 6vw, 4rem) 1rem; background-image: radial-gradient(rgba(228, 55, 47, 0.14) 1.6px, transparent 1.8px); background-size: 14px 14px; }
.helt-ind { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 52rem) { .helt-ind { grid-template-columns: 1.2fr 1fr; } }
.helt-brag { display: flex; justify-content: center; }
.brag { width: min(100%, 26rem); height: auto; }
.brag-ord { font-family: var(--display); font-weight: 900; font-size: 48px; fill: var(--tusch); letter-spacing: 1px; }

.sektion { padding-block: clamp(2rem, 5vw, 3.5rem); }
.sektion > .ramme > h2:first-child, .smal > h2:first-child { margin-top: 0; }
.to-spalter { display: grid; gap: 1rem 3rem; }
@media (min-width: 52rem) { .to-spalter { grid-template-columns: 1fr 1fr; } }
.stor-tekst { font-size: 1.3rem; line-height: 1.5; font-weight: 600; }

.sektion-prikker { background: var(--tusch); background-image: radial-gradient(rgba(255, 210, 63, 0.16) 2px, transparent 2.2px); background-size: 16px 16px; color: var(--papir); }
.ordvaeg { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.6rem 1.6rem; padding-block: 1rem; }
.ordvaeg span { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: 1; }
.o1 { font-size: 4rem; color: var(--gul); transform: rotate(-6deg); }
.o2 { font-size: 2.6rem; color: #7fb3ff; transform: rotate(4deg); }
.o3 { font-size: 2.1rem; color: #fff; letter-spacing: 0.15em; }
.o4 { font-size: 3rem; color: var(--roed); transform: rotate(-3deg); }
.o5 { font-size: 1.8rem; color: #bdb6a6; font-weight: 400 !important; }
.o6 { font-size: 2.4rem; color: var(--gul); transform: rotate(7deg); }
.o7 { font-size: 1.3rem; color: #fff; }
.o8 { font-size: 3.4rem; color: #fff; transform: rotate(-8deg); }
.o9 { font-size: 2rem; color: #7fb3ff; letter-spacing: 0.2em; }
.o10 { font-size: 2.2rem; color: var(--gul); }

.genveje { display: grid; gap: 1.2rem; }
@media (min-width: 46rem) { .genveje { grid-template-columns: repeat(3, 1fr); } }
.genvej { display: grid; align-content: start; gap: 0.35rem; padding: 1.2rem 1.3rem 1.4rem; background: #fff; text-decoration: none; border: 3px solid var(--tusch); box-shadow: 5px 5px 0 var(--tusch); transition: transform 0.12s, box-shadow 0.12s; }
.genvej:hover { background: #fff; transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--roed); }
.genvej-titel { font-family: var(--display); font-weight: 900; font-size: 1.9rem; text-transform: uppercase; line-height: 1; }

/* Tekstsider */
.tekstside { padding-block: clamp(2rem, 5vw, 3.5rem) 4rem; }
.side-top { max-width: 46rem; margin-bottom: 1.5rem; }
.artikel { max-width: 44rem; }
.artikel > h2:first-child { margin-top: 0.5rem; }
.liste { padding-left: 1.25rem; }
.liste li { margin-bottom: 0.5rem; }
.liste li::marker { color: var(--roed); }
.tabel-ramme { overflow-x: auto; border: 3px solid var(--tusch); background: #fff; margin-bottom: 0.6rem; }
.tabel { width: 100%; border-collapse: collapse; }
.tabel-ramme .tabel { min-width: 34rem; }
.tabel caption { text-align: left; font-weight: 700; padding: 0.7rem 0.9rem; background: var(--gul); border-bottom: 3px solid var(--tusch); }
.tabel th, .tabel td { text-align: left; padding: 0.6rem 0.9rem; border-bottom: 1px solid #d8d0bd; white-space: nowrap; }
.tabel thead th { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.1rem; }
.tabel tbody th { font-weight: 700; }
.artikel .tabel { background: #fff; border: 3px solid var(--tusch); margin: 1rem 0 1.5rem; }
.artikel .tabel td, .artikel .tabel th { white-space: normal; }
.lydliste { margin: 1rem 0 1.5rem; display: grid; gap: 0; }
@media (min-width: 40rem) { .lydliste { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }
.lydliste div { padding: 0.55rem 0; border-bottom: 2px dotted #bdb6a6; display: flex; flex-wrap: wrap; gap: 0.2rem 0.8rem; align-items: baseline; }
.lydliste dt { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.2rem; min-width: 5.5rem; }
.lydliste dd { margin: 0; }
.lydprover { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: 0.8rem; margin: 1rem 0 1.4rem; }
.lp { margin: 0; display: grid; place-items: center; min-height: 6.5rem; background: #fff; border: 3px solid var(--tusch); font-family: var(--display); text-transform: uppercase; line-height: 1; overflow: hidden; }
.lp-brag { background: var(--gul); font-size: 2.9rem; font-weight: 900; color: var(--roed); transform: rotate(-3deg); -webkit-text-stroke: 1.5px var(--tusch); }
.lp-plop { font-size: 1.6rem; font-weight: 500; text-transform: lowercase; color: var(--blaa); }
.lp-zzz { font-size: 1.8rem; font-weight: 300; letter-spacing: 0.3em; color: var(--daempet); }
.lp-vruum { font-size: 2.2rem; font-weight: 900; font-style: italic; letter-spacing: -0.02em; transform: skewX(-12deg); }
.ordsky { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 1.4rem; }
.ordsky li { background: #fff; border: 2px solid var(--tusch); padding: 0.25rem 0.75rem; font-weight: 700; }
.ordsky li:nth-child(3n) { background: var(--gul); }
.ordsky li:nth-child(4n) { transform: rotate(-2deg); }
.boks { background: var(--gul); border: 3px solid var(--tusch); padding: 1.3rem 1.4rem 0.4rem; margin-top: 2rem; box-shadow: 6px 6px 0 var(--tusch); }
.boks h2 { margin-top: 0; }

/* Quiz */
.quiz { max-width: 40rem; background: #fff; border: 3px solid var(--tusch); box-shadow: 8px 8px 0 var(--tusch); padding: 1.4rem; }
.quiz-status { display: flex; justify-content: space-between; font-weight: 700; font-size: 0.95rem; margin: 0 0 0.8rem; }
.quiz h2 { margin: 0 0 1rem; font-size: clamp(1.8rem, 5vw, 2.4rem); }
.quiz-svar { display: grid; gap: 0.6rem; }
.svar { font: inherit; font-weight: 700; font-size: 1.1rem; text-align: left; padding: 0.8rem 1rem; background: var(--papir); color: var(--tusch); border: 2px solid var(--tusch); cursor: pointer; transition: background 0.12s; }
.svar:hover:not(:disabled) { background: var(--gul); }
.svar:disabled { cursor: default; color: #6b675e; }
.svar.rigtig { background: #c9ecc4; color: var(--tusch); border-color: #1d6b2c; }
.svar.forkert { background: #f8cfcb; color: var(--tusch); border-color: var(--roed-dyb); text-decoration: line-through; }
.quiz-forklaring { margin: 1rem 0 0; font-weight: 600; }
.quiz-knapper { margin: 1rem 0 0; }

/* Bund */
.bund { background: var(--tusch); color: #d8d2c3; padding-block: 2rem 2.5rem; }
.bund-ind { display: grid; gap: 0.8rem; }
.bund-navn { margin: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 1.5rem; color: var(--gul); }
.bund-navn span { font-family: var(--tekst); font-weight: 400; text-transform: none; font-size: 0.95rem; color: #d8d2c3; }
.bund nav { display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; }
.bund nav a { color: #fff; text-decoration-color: var(--gul); }
.bund nav a:hover { background: none; color: var(--gul); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
