/* findbonus.dk - "termopapir og stempelfarve": lyst kvitteringspapir, sort blæk, rød stempelfarve. */
@font-face { font-family: "Bricolage"; src: url("/assets/fonts/bricolage-grotesque-vf.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/assets/fonts/public-sans-vf.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono-vf.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --papir: #f6f3ea;
  --papir-2: #ece7d9;
  --hvid: #fffdf7;
  --blaek: #1f1d1a;
  --blaek-2: #4a463f;
  --stempel: #b3322a;
  --stempel-lys: #f3d9d3;
  --streg: #cfc8b6;
  --vis: "Bricolage", "Public Sans", system-ui, sans-serif;
  --tekst: "Public Sans", system-ui, sans-serif;
  --tal: "JetBrains Mono", ui-monospace, monospace;
  --maal: 68ch;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--blaek-2) var(--papir-2); }
body { margin: 0; background: var(--papir); color: var(--blaek); font: 400 1.0625rem/1.65 var(--tekst); }
::selection { background: var(--stempel); color: var(--hvid); }
a { color: var(--blaek); text-decoration-color: var(--stempel); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--stempel); }
:focus-visible { outline: 3px solid var(--stempel); outline-offset: 3px; border-radius: 2px; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--vis); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.4rem, 6.2vw, 4.6rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); font-weight: 700; margin-top: 2.6em; margin-bottom: .55em; }
h3 { font-size: 1.2rem; font-weight: 700; margin-top: 1.8em; margin-bottom: .35em; }
p { margin: 0 0 1em; }
.ramme { width: min(100% - 32px, 1120px); margin-inline: auto; }
.spring { position: absolute; left: -999px; }
.spring:focus { left: 16px; top: 12px; z-index: 9; background: var(--blaek); color: var(--hvid); padding: .5em .9em; }

/* top */
.top { border-bottom: 1px solid var(--streg); }
.top-ind { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 16px; flex-wrap: wrap; }
.ordmaerke { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.35rem/1 var(--vis); letter-spacing: -0.03em; }
.ordmaerke .stempel { width: 30px; height: 30px; color: var(--stempel); }
.ordmaerke .tld { color: var(--blaek-2); font-weight: 500; }
.menu { display: flex; gap: 6px 20px; flex-wrap: wrap; }
.menu a { text-decoration: none; font-weight: 600; font-size: .98rem; padding: 4px 0; border-bottom: 2px solid transparent; }
.menu a[aria-current="page"] { border-bottom-color: var(--stempel); }

/* forside */
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(40px, 7vw, 96px) clamp(32px, 5vw, 64px); }
.hero .indledning { font-size: 1.22rem; max-width: 34em; color: var(--blaek-2); margin-top: 1.1em; }
.hero h1 em { font-style: normal; color: var(--stempel); }
.bon-fig { margin: 0; justify-self: center; width: min(100%, 360px); transform: rotate(-2.2deg); filter: drop-shadow(0 18px 28px rgba(60, 48, 30, .16)); }
.knapper { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.knap { display: inline-block; background: var(--blaek); color: var(--hvid); text-decoration: none; font-weight: 700; padding: .78em 1.25em; border-radius: 3px; }
.knap:hover { background: var(--stempel); color: var(--hvid); }
.knap-lys { background: transparent; color: var(--blaek); box-shadow: inset 0 0 0 2px var(--blaek); }
.knap-lys:hover { background: var(--blaek); color: var(--hvid); }

.tre { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--blaek); margin-bottom: clamp(48px, 7vw, 88px); }
.tre > div { padding: 22px 26px 6px 0; }
.tre > div + div { padding-left: 26px; border-left: 1px solid var(--streg); }
.tre h2 { font-size: 1.35rem; margin: 0 0 .45em; }
.tre p { color: var(--blaek-2); }

/* tekstsider */
.side-top { padding-block: clamp(36px, 6vw, 72px) 8px; max-width: 46rem; }
.side-top .indledning { font-size: 1.2rem; color: var(--blaek-2); margin-top: .9em; }
.artikel { max-width: var(--maal); padding-bottom: clamp(48px, 7vw, 96px); }
.artikel h2:first-child { margin-top: 1.4em; }
.artikel ul, .artikel ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.artikel li { margin-bottom: .45em; }
.artikel li::marker { color: var(--stempel); }
.note { background: var(--hvid); border: 1px solid var(--streg); padding: 18px 20px; margin: 1.6em 0; border-radius: 2px; }
.note p:last-child { margin: 0; }

/* bon-liste: kvitteringslinjer med prikker */
.bon { background: var(--hvid); padding: 22px 22px 26px; margin: 1.6em 0; font-family: var(--tal); font-size: .92rem; line-height: 1.5;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 9px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 18px 9px repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 9px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 18px 9px repeat-x;
  box-shadow: 0 10px 24px rgba(60, 48, 30, .10); }
.bon-titel { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; text-align: center; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px dashed var(--blaek-2); }
.bon dl { margin: 0; }
.bon .linje { display: flex; gap: 8px; align-items: baseline; padding: 3px 0; }
.bon .linje dt { flex: 0 1 auto; }
.bon .linje::after { content: ""; order: 1; flex: 1 1 24px; border-bottom: 1px dotted var(--blaek-2); transform: translateY(-4px); }
.bon .linje dd { order: 2; margin: 0; font-weight: 700; white-space: nowrap; }
.bon .sum { border-top: 1px dashed var(--blaek-2); margin-top: 8px; padding-top: 8px; font-size: 1.05rem; }
.bon .sum dd { color: var(--stempel); }
.bon-fod { margin: 14px 0 0; text-align: center; color: var(--blaek-2); font-size: .82rem; }

/* beregner */
.beregner { display: grid; grid-template-columns: 1fr minmax(280px, 380px); gap: clamp(24px, 4vw, 56px); align-items: start; padding-bottom: 24px; }
.felter { display: grid; gap: 18px; }
.felt label { display: block; font-weight: 700; margin-bottom: 6px; }
.felt .hjaelp { display: block; font-size: .9rem; color: var(--blaek-2); margin-top: 4px; }
.felt input[type="number"] { width: 100%; max-width: 16rem; font: 600 1.1rem var(--tal); color: var(--blaek); background: var(--hvid); border: 1.5px solid var(--blaek-2); border-radius: 3px; padding: .55em .7em; caret-color: var(--stempel); }
.felt input[type="number"]:focus { border-color: var(--stempel); outline: none; box-shadow: 0 0 0 3px var(--stempel-lys); }
.felt input[type="range"] { width: 100%; max-width: 22rem; accent-color: var(--stempel); }
.felt output { font: 700 1rem var(--tal); margin-left: 8px; }
.resultat .bon { margin-top: 0; }
.dom { font-family: var(--tekst); font-size: .98rem; line-height: 1.5; margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--blaek-2); }
.dom strong { color: var(--stempel); }

/* fod */
.bund { background: var(--blaek); color: #e9e4d6; padding-block: 40px 48px; }
.bund-ind { display: grid; gap: 10px; }
.bund-navn { font: 800 1.3rem var(--vis); margin: 0; color: var(--hvid); }
.bund-tekst { margin: 0; max-width: 40em; color: #cfc8b6; }
.bund nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 8px; }
.bund a { color: #f6f3ea; text-decoration-color: #e0796f; }
.bund a:hover { color: #f3b1a9; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .bon-fig { width: min(80%, 300px); }
  .tre { grid-template-columns: 1fr; }
  .tre > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--streg); }
  .beregner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .bon-fig { animation: ind .7s cubic-bezier(.16, 1, .3, 1) both; }
  @keyframes ind { from { transform: translateY(-18px) rotate(-2.2deg); clip-path: inset(0 0 100% 0); } to { transform: rotate(-2.2deg); clip-path: inset(0 0 0 0); } }
}
