/* lapper.dk - denim, hørlærred og orange sting */
@font-face { font-family: "Rokkitt"; src: url("/assets/fonts/rokkitt-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree-latin.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }

:root {
  --denim: #1f3550;
  --denim-2: #2b4867;
  --denim-dyb: #142438;
  --sting: #e06a3b;
  --sting-tekst: #ad4319;
  --kork: #c9a77c;
  --hoer: #f4efe6;
  --hoer-2: #ebe3d4;
  --blaek: #1c2633;
  --daempet: #55606c;
  --linje: #d6ccb9;
  --display: "Rokkitt", Georgia, serif;
  --tekst: "Figtree", system-ui, sans-serif;
  --maal: 66ch;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--hoer); color: var(--blaek); font: 1.0625rem/1.65 var(--tekst); }
::selection { background: var(--kork); color: var(--denim-dyb); }
img, svg { max-width: 100%; }
a { color: var(--sting-tekst); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--denim); text-decoration-style: dashed; }
:focus-visible { outline: 3px dashed var(--sting); outline-offset: 3px; }

.ramme { width: min(100% - 2rem, 68rem); margin-inline: auto; }
.spring { position: absolute; left: 1rem; top: -4rem; background: var(--denim); color: #fff; padding: .5rem .9rem; z-index: 10; }
.spring:focus { top: .75rem; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: -0.01em; text-wrap: balance; color: var(--denim); }
h1 { font-size: clamp(2.6rem, 8vw, 4.8rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.65rem, 3.8vw, 2.2rem); margin: 2.2em 0 .5em; }
p { margin: 0 0 1em; }
.indledning { font-size: clamp(1.1rem, 2.1vw, 1.25rem); line-height: 1.55; max-width: 46ch; }
.overrubrik { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sting-tekst); margin: 0 0 .8rem; padding-bottom: .2rem; border-bottom: 2px dashed var(--sting); }

/* Top */
.top { background: var(--denim); color: #fff; border-bottom: 2px dashed var(--sting); }
.top-ind { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1.5rem; padding-block: .85rem; }
.ordmaerke { display: inline-flex; align-items: center; gap: .55rem; color: #fff; text-decoration: none; font: 800 1.85rem/1 var(--display); }
.ordmaerke:hover { color: #fff; }
.ordmaerke svg { width: 2.2rem; height: 1.55rem; color: var(--kork); flex: none; }
.menu { display: flex; flex-wrap: wrap; gap: .1rem 1.1rem; }
.menu a { color: #d3dceb; text-decoration: none; font-weight: 600; font-size: .97rem; padding-block: .3rem; border-bottom: 2px solid transparent; }
.menu a:hover { color: #fff; border-bottom: 2px dashed #8ea3bf; }
.menu a[aria-current="page"] { color: #fff; border-bottom: 2px dashed var(--sting); }

/* Knapper */
.knapper { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.knap { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .7rem 1.3rem; border: 2px solid var(--sting); border-radius: 4px; background: var(--sting); color: #1b1108; font: 700 1rem/1 var(--tekst); text-decoration: none; cursor: pointer; transition: background-color .15s ease-out, transform .15s ease-out; }
.knap:hover { background: #ea7d51; color: #1b1108; }
.knap:active { transform: translateY(1px); }
.knap-lys { background: transparent; color: var(--denim); border-color: var(--denim); }
.knap-lys:hover { background: var(--hoer-2); color: var(--denim); }
.helt .knap-lys { color: #fff; border-color: #fff; }
.helt .knap-lys:hover { background: rgba(255,255,255,.1); color: #fff; }
.knap-lille { min-height: 2.5rem; padding: .5rem .9rem; font-size: .92rem; }

/* Forside */
.helt { background: var(--denim); color: #fff; overflow: hidden; }
.helt-ind { display: grid; gap: 2rem; padding-block: clamp(2.5rem, 7vw, 5rem); align-items: center; }
.helt h1 { color: #fff; }
.helt .indledning { color: #dbe3ee; }
.helt-lap { margin: 0; }
.helt-lap svg { display: block; width: 100%; max-width: 26rem; height: auto; margin-inline: auto; border-radius: 6px; }
@media (min-width: 860px) { .helt-ind { grid-template-columns: 1.15fr .85fr; } }

.sektion { padding-block: clamp(2rem, 6vw, 4rem); }
.sektion h2 { margin-top: 0; }
.sektion-intro { max-width: var(--maal); }
.sektion-lys { background: var(--hoer-2); }
.to-spalter { display: grid; gap: 2.5rem; }
@media (min-width: 860px) { .to-spalter { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.valg { list-style: none; margin: 1.5rem 0 0; padding: 0; border-top: 2px dashed var(--linje); }
.valg a { display: grid; gap: .25rem 2rem; padding: 1rem 0; border-bottom: 2px dashed var(--linje); color: var(--blaek); text-decoration: none; transition: background-color .15s ease-out; }
.valg a:hover { background: var(--hoer-2); }
.valg-hvad { font: 800 1.4rem/1.1 var(--display); color: var(--denim); }
.valg-lap { color: var(--daempet); }
@media (min-width: 720px) { .valg a { grid-template-columns: 15rem 1fr; align-items: baseline; padding-inline: .5rem; } }

.sting-liste { list-style: none; padding: 0; margin: 0; }
.sting-liste li { position: relative; padding: .45rem 0 .45rem 1.6rem; }
.sting-liste li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 1rem; border-top: 2px dashed var(--sting); }

/* Tekstsider */
.tekstside main { padding-block: clamp(2rem, 6vw, 4rem) clamp(3rem, 7vw, 5rem); }
.side-top { max-width: 48rem; margin-bottom: 2rem; }
.artikel { max-width: var(--maal); }
.artikel ul, .artikel ol { padding-left: 1.3rem; }
.artikel li { margin-bottom: .55rem; }
.artikel li::marker { color: var(--sting-tekst); font-weight: 700; }

/* Tjekliste */
.tjek-ramme { max-width: 48rem; background: #fffdf8; border: 2px dashed var(--kork); border-radius: 6px; padding: clamp(1rem, 3.5vw, 1.75rem); margin-bottom: 1rem; }
.tjek-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.tjek-status { margin: 0; font-weight: 700; color: var(--denim); }
.tjek { list-style: none; margin: 0; padding: 0; counter-reset: trin; }
.tjek li { counter-increment: trin; display: grid; grid-template-columns: 1.6rem 1fr; gap: .9rem; padding: .9rem 0; border-top: 1px solid var(--hoer-2); }
.tjek input { appearance: none; -webkit-appearance: none; width: 1.6rem; height: 1.6rem; margin: .1rem 0 0; border: 2px solid var(--denim); border-radius: 4px; background: #fff; cursor: pointer; display: grid; place-content: center; }
.tjek input::after { content: ""; width: .8rem; height: .45rem; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.tjek input:checked { background: var(--denim); }
.tjek input:checked::after { opacity: 1; }
.tjek label { cursor: pointer; }
.tjek-titel { display: block; font: 800 1.3rem/1.15 var(--display); color: var(--denim); margin-bottom: .2rem; }
.tjek-titel::before { content: counter(trin) ". "; color: var(--sting-tekst); }
.tjek li.klaret label { color: var(--daempet); }
.tjek li.klaret .tjek-titel { text-decoration: line-through; text-decoration-color: var(--sting); text-decoration-thickness: 2px; }

/* Jeans-diagram */
.diagram { margin: 0 0 2rem; max-width: 22rem; }
.diagram svg { display: block; width: 100%; height: auto; }
.j-bukser { fill: var(--denim-2); }
.j-linning { fill: var(--denim); }
.j-slid { fill: rgba(244,239,230,.25); stroke: var(--sting); stroke-width: 2.5; stroke-dasharray: 6 4; }
.j-tekst text { font: 700 14px var(--tekst); fill: var(--blaek); }
.j-tekst text:first-child { fill: #fff; }

/* Bund */
.bund { background: var(--denim-dyb); color: #c5cfdc; padding-block: 2.2rem; border-top: 2px dashed var(--sting); }
.bund-ind { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; align-items: baseline; }
.bund-navn { font: 800 1.5rem/1.2 var(--display); color: #fff; margin: 0; }
.bund-navn span { display: block; font: 400 .9rem/1.4 var(--tekst); color: #9fb0c5; }
.bund nav { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
.bund a { color: #c5cfdc; text-decoration: none; }
.bund a:hover { color: #fff; text-decoration: underline; }

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