@font-face { font-family: "Rokkitt"; src: url("/assets/fonts/rokkitt-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/assets/fonts/source-serif-4.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }

:root {
  --papir: #f7efe1;
  --papir-2: #efe1c8;
  --hvid: #fbf6ec;
  --blaek: #2b1b16;
  --blaek-2: #5a3f34;
  --hindbaer: #b51f33;
  --hindbaer-mork: #8e1526;
  --mint: #2c7a64;
  --mint-lys: #cfe6dc;
  --karamel: #8a4f0e;
  --karamel-lys: #e7b866;
  --streg: #d9c5a5;
  --display: "Rokkitt", "Rockwell", Georgia, serif;
  --tekst: "Source Serif 4", Georgia, "Times New Roman", serif;
  --ramme: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--hindbaer) var(--papir-2); }
body {
  margin: 0;
  background: var(--papir);
  color: var(--blaek);
  font-family: var(--tekst);
  font-size: 1.125rem;
  line-height: 1.62;
  font-optical-sizing: auto;
  overflow-x: hidden;
}
::selection { background: var(--hindbaer); color: var(--hvid); }
img, svg { max-width: 100%; }
a { color: var(--hindbaer-mork); text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
a:hover { color: var(--hindbaer); text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 3px; }

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

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: -.01em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.7rem, 8vw, 5.4rem); }
h2 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); margin-top: 3.2rem; margin-bottom: .8rem; }
h3 { font-size: 1.55rem; margin-top: 2rem; margin-bottom: .4rem; }
p, ul, ol { margin: 0 0 1.1rem; }
strong { font-weight: 650; }

/* Top */
.top { border-bottom: 1px solid var(--streg); background: var(--papir); }
.top-ind { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.5rem; padding-block: .9rem; }
.ordmaerke { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--blaek); }
.ordmaerke span { font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1; letter-spacing: -.02em; }
.ordmaerke em { font-style: normal; color: var(--hindbaer); }
.ordmaerke:hover { color: var(--blaek); }
.ordmaerke .pude { transform: rotate(-8deg); }
.menu { display: flex; flex-wrap: wrap; gap: .25rem .4rem; }
.menu a { font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: var(--blaek); text-decoration: none; padding: .3rem .7rem; border-radius: 999px; }
.menu a:hover { background: var(--papir-2); color: var(--hindbaer-mork); }
.menu a[aria-current="page"] { background: var(--blaek); color: var(--hvid); }

/* Stribebånd (bolsjestreng) */
.stribe { height: 14px; background: repeating-linear-gradient(135deg, var(--hindbaer) 0 12px, var(--hvid) 12px 24px, var(--mint) 24px 30px, var(--hvid) 30px 42px); }

/* Forside: hero */
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2rem, 5vw, 3.5rem); display: grid; gap: 2rem; align-items: end; }
.hero h1 { max-width: 13ch; }
.hero h1 span { color: var(--hindbaer); }
.hero .ingress { font-size: clamp(1.2rem, 2.4vw, 1.4rem); line-height: 1.5; max-width: 38ch; color: var(--blaek-2); margin-top: 1.4rem; }
.skaal { position: relative; display: flex; flex-wrap: wrap; gap: .4rem; align-content: flex-end; justify-content: center; padding: 1.5rem 1rem 1.2rem; background: var(--hvid); border: 1px solid var(--streg); border-radius: 46% 46% 1.6rem 1.6rem / 22% 22% 1.6rem 1.6rem; box-shadow: 0 18px 30px -22px rgba(60, 30, 15, .45), inset 0 -10px 0 var(--papir-2); max-width: 30rem; justify-self: center; }
.skaal .pude:nth-child(3n) { transform: rotate(14deg); }
.skaal .pude:nth-child(3n+1) { transform: rotate(-11deg); }
.skaal .pude:nth-child(4n+2) { transform: rotate(4deg) translateY(4px); }
@media (min-width: 860px) {
  .hero { grid-template-columns: 1.35fr 1fr; }
}

/* Brødtekst */
.tekst { max-width: 68ch; }
.tekst li { margin-bottom: .45rem; }
.tekst ul { padding-left: 1.2rem; }
.tekst ul li::marker { color: var(--hindbaer); }
.indhold { padding-bottom: 4rem; }
.sidehoved { padding-block: clamp(2.2rem, 6vw, 4rem) 1rem; }
.sidehoved .ingress { font-size: clamp(1.15rem, 2.2vw, 1.32rem); color: var(--blaek-2); max-width: 46ch; margin-top: 1rem; }

/* Videre-liste på forsiden */
.videre { list-style: none; padding: 0; margin: 1rem 0 0; border-top: 2px solid var(--blaek); }
.videre li { border-bottom: 1px solid var(--streg); }
.videre a { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1.1rem; align-items: center; padding: 1.2rem .2rem; text-decoration: none; color: var(--blaek); }
.videre a .pude { grid-row: span 2; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.videre a:hover .pude { transform: rotate(-12deg) scale(1.08); }
.videre b { font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 3.4vw, 2rem); line-height: 1.05; }
.videre a:hover b { color: var(--hindbaer); }
.videre small { font-size: 1rem; color: var(--blaek-2); }

/* Tofarvet afsnit */
.baand { background: var(--blaek); color: var(--hvid); margin-top: 3.5rem; padding-block: 3rem 3.4rem; }
.baand h2 { margin-top: 0; color: var(--karamel-lys); }
.baand a { color: var(--karamel-lys); }
.baand p { color: #efe3d2; }

/* Bolsjetyper */
.typer { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0 2.5rem; }
.typer li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; padding-block: 1.3rem; border-top: 1px solid var(--streg); }
.typer .pude { margin-top: .35rem; }
.typer h3 { margin: 0 0 .3rem; font-size: 1.5rem; }
.typer p { margin: 0; font-size: 1.05rem; }
@media (min-width: 820px) { .typer { grid-template-columns: 1fr 1fr; } }

/* Kog selv: termometer */
.termo { display: grid; grid-template-columns: 2.2rem 1fr; gap: 0 1rem; margin: 1.5rem 0 2rem; max-width: 40rem; }
.termo-roer { position: relative; border-radius: 999px; background: var(--hvid); border: 2px solid var(--blaek); overflow: hidden; }
.termo-roer::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 10px; translate: -50% 0; top: 14%; background: linear-gradient(to top, var(--hindbaer-mork), var(--hindbaer)); border-radius: 999px 999px 0 0; }
.termo ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column-reverse; }
.termo li { display: grid; grid-template-columns: 7.2rem 1fr; gap: .2rem .9rem; padding: .7rem 0; border-top: 1px dashed var(--streg); align-items: baseline; }
.termo li:last-child { border-top: 0; }
.termo .grad { font-family: var(--display); font-weight: 800; font-size: 1.25rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.termo .trin { font-weight: 650; }
.termo .trin span { display: block; font-weight: 400; font-size: .98rem; color: var(--blaek-2); }
.termo li.her { background: var(--hindbaer); color: var(--hvid); border-radius: .6rem; padding-inline: .8rem; border-top-color: transparent; }
.termo li.her .trin span { color: #fbe3e5; }
.termo li.her + li { border-top-color: transparent; }

.advarsel { background: var(--hvid); border: 2px solid var(--hindbaer); border-radius: 1rem; padding: 1.4rem 1.4rem .5rem; margin: 2rem 0; max-width: 68ch; box-shadow: 0 14px 28px -24px rgba(142, 21, 38, .6); }
.advarsel h2 { margin-top: 0; color: var(--hindbaer-mork); font-size: clamp(1.6rem, 3.6vw, 2.1rem); }

.ingredienser { list-style: none; padding: 0; margin: 1rem 0 1.5rem; max-width: 40rem; }
.ingredienser li { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--streg); }
.ingredienser b { font-family: var(--display); font-weight: 800; font-size: 1.2rem; font-variant-numeric: tabular-nums; }

.trinliste { counter-reset: t; list-style: none; padding: 0; max-width: 68ch; }
.trinliste li { counter-increment: t; position: relative; padding-left: 3.2rem; margin-bottom: 1.3rem; }
.trinliste li::before { content: counter(t); position: absolute; left: 0; top: -.1rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--hvid); font-family: var(--display); font-weight: 800; font-size: 1.2rem; }

.problem { max-width: 68ch; margin: 0; }
.problem dt { font-family: var(--display); font-weight: 800; font-size: 1.3rem; margin-top: 1.3rem; }
.problem dd { margin: .2rem 0 0; }

/* Tekstsider */
.tekstside { padding-block: clamp(2.2rem, 6vw, 4rem) 4rem; }
.tekstside h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); margin-bottom: 1.2rem; }
.knap { display: inline-block; background: var(--hindbaer); color: var(--hvid); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.2rem; padding: .7rem 1.3rem; border-radius: 999px; }
.knap:hover { background: var(--hindbaer-mork); color: var(--hvid); }

/* Bund */
.bund { margin-top: 2rem; background: var(--papir-2); }
.bund-ind { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem 2rem; padding-block: 1.6rem 2rem; }
.bund-navn { font-family: var(--display); font-weight: 800; font-size: 1.5rem; margin: 0; }
.bund nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.bund a { color: var(--blaek); }

@media (prefers-reduced-motion: reduce) { .videre a .pude { transition: none; } }
