/* hurtig.dk - tomatrød, sennepsgul, oliven og creme */
@font-face { font-family: "Young Serif"; src: url("/assets/fonts/young-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }

:root {
  --tomat: #b8391f;
  --tomat-dyb: #8e2814;
  --sennep: #e9a23b;
  --oliven: #2f3a22;
  --creme: #fbf4e6;
  --creme-2: #f3e7cf;
  --hvid: #fffdf8;
  --daempet: #5b5e4c;
  --linje: #e2d4b7;
  --serif: "Young Serif", Georgia, serif;
  --tekst: "Figtree", system-ui, sans-serif;
  --rund: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--creme); color: var(--oliven); font-family: var(--tekst); font-size: 1.0625rem; line-height: 1.6; }
::selection { background: var(--sennep); color: var(--oliven); }
img, svg { max-width: 100%; }
a { color: var(--tomat-dyb); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sennep); outline-offset: 2px; border-radius: 4px; }

.ramme { width: min(100% - 2rem, 68rem); margin-inline: auto; }
.spring { position: absolute; left: 1rem; top: -4rem; background: var(--sennep); color: var(--oliven); padding: 0.5rem 0.9rem; font-weight: 700; z-index: 10; border-radius: 8px; }
.spring:focus { top: 0.75rem; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; text-wrap: balance; color: var(--oliven); }
h1 { font-size: clamp(2.4rem, 6.5vw, 4.2rem); margin: 0 0 1rem; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin: 2.2em 0 0.5em; }
h3 { font-size: 1.25rem; margin: 1.4em 0 0.4em; }
p { margin: 0 0 1em; }
.indledning { font-size: clamp(1.12rem, 2.2vw, 1.3rem); line-height: 1.5; max-width: 42ch; }

/* Top */
.top { background: var(--tomat); color: var(--creme); }
.top-ind { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 0.85rem; }
.ordmaerke { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--creme); text-decoration: none; font-family: var(--serif); font-size: 1.6rem; line-height: 1; }
.ordmaerke .punkt { color: #f6c98a; }
.ur { width: 1.9rem; height: 1.9rem; flex: none; }
.menu { display: flex; flex-wrap: wrap; gap: 0.1rem 1.1rem; }
.menu a { color: #fde9dc; text-decoration: none; font-weight: 600; padding-block: 0.3rem; border-bottom: 2px solid transparent; }
.menu a:hover { color: var(--hvid); border-bottom-color: #f2a98f; }
.menu a[aria-current="page"] { color: var(--hvid); border-bottom-color: var(--sennep); }

/* Knapper */
.knapper { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }
.knap { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0.7rem 1.3rem; border-radius: 999px; background: var(--tomat); color: var(--hvid); border: 2px solid var(--tomat); font: 700 1rem/1 var(--tekst); text-decoration: none; cursor: pointer; transition: background-color .15s ease-out, transform .1s ease-out; }
.knap:hover { background: var(--tomat-dyb); border-color: var(--tomat-dyb); color: var(--hvid); }
.knap:active { transform: scale(0.98); }
.knap-lys { background: transparent; color: var(--tomat-dyb); }
.knap-lys:hover { background: var(--creme-2); color: var(--tomat-dyb); }
.pil { font-weight: 700; }
.pil::after { content: " \2192"; }

/* Forside */
.helt-ind { display: grid; gap: 1.5rem; padding-block: clamp(2.5rem, 7vw, 5rem); align-items: center; }
.helt-ur { margin: 0; justify-self: center; width: min(60%, 19rem); text-align: center; }
@media (min-width: 860px) { .helt-ur { width: min(100%, 19rem); } }
.helt-ur svg { display: block; width: 100%; height: auto; }
.helt-ur figcaption { font-family: var(--serif); font-size: 1.3rem; margin-top: 0.4rem; }
@media (min-width: 860px) { .helt-ind { grid-template-columns: 1.5fr 1fr; } }
.sektion { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.sektion h2 { margin-top: 0; }
.tre { display: grid; gap: 1rem; margin: 1.4rem 0 1.4rem; }
@media (min-width: 760px) { .tre { grid-template-columns: repeat(3, 1fr); } }
.felt { background: var(--hvid); border-radius: var(--rund); padding: 1.4rem 1.4rem 0.5rem; box-shadow: 0 1px 0 var(--linje), 0 8px 24px -16px rgba(47,58,34,.35); }
.felt h3 { margin-top: 0; }
.sektion-creme { background: var(--oliven); color: var(--creme); }
.sektion-creme h2 { color: var(--creme); }
.retliste { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 0.6rem; }
@media (min-width: 760px) { .retliste { grid-template-columns: 1fr 1fr; } }
.retliste a { display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1.1rem; background: rgba(251,244,230,.08); border-radius: var(--rund); color: var(--creme); text-decoration: none; font-weight: 600; font-size: 1.08rem; transition: background-color .15s ease-out; }
.retliste a:hover { background: rgba(251,244,230,.16); }
.tid { flex: none; font-size: 0.85rem; font-weight: 700; background: var(--sennep); color: var(--oliven); padding: 0.25rem 0.6rem; border-radius: 999px; }

/* Tekstsider */
.tekstside { padding-bottom: 4rem; }
.side-top { padding-block: clamp(2.5rem, 6vw, 4rem) 1.2rem; margin-bottom: 1rem; }
.artikel { max-width: 66ch; }
.artikel ul, .artikel ol { padding-left: 1.3rem; }
.artikel li { margin-bottom: 0.5rem; }
.note { color: var(--daempet); margin-top: 2rem; }
.hop { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; }
.hop a { padding: 0.4rem 0.85rem; background: var(--creme-2); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--oliven); }
.hop a:hover { background: var(--linje); }

/* Retter */
.ret { background: var(--hvid); border-radius: var(--rund); padding: clamp(1.2rem, 3vw, 2rem); margin-bottom: 1.4rem; box-shadow: 0 1px 0 var(--linje), 0 10px 30px -22px rgba(47,58,34,.5); }
.ret-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.3rem 1rem; }
.ret-top h2 { margin: 0; }
.tid-maerke { margin: 0; font-weight: 700; color: var(--tomat-dyb); }
.ret-intro { color: var(--daempet); margin-top: 0.6rem; max-width: 60ch; }
.ret-ind { display: grid; gap: 0.5rem 2.5rem; }
@media (min-width: 800px) { .ret-ind { grid-template-columns: 1fr 1.6fr; } }
.ret h3 { margin-top: 0.6rem; font-size: 1.1rem; }
.ingredienser ul { padding-left: 1.1rem; margin: 0; }
.ingredienser li { margin-bottom: 0.3rem; }
.ingredienser li::marker { color: var(--tomat); }
.fremgang ol { padding-left: 1.3rem; margin: 0; }
.fremgang li { margin-bottom: 0.55rem; }
.fremgang li::marker { font-weight: 700; color: var(--tomat-dyb); }

/* Timer */
.timere { display: grid; gap: 1rem; margin-bottom: 2.5rem; }
@media (min-width: 800px) { .timere { grid-template-columns: repeat(3, 1fr); } }
.timer { background: var(--hvid); border-radius: var(--rund); padding: 1.2rem; display: grid; gap: 0.6rem; box-shadow: 0 1px 0 var(--linje), 0 10px 30px -22px rgba(47,58,34,.5); transition: background-color .2s ease-out; }
.timer-navn-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.timer-navn { font: 400 1.3rem/1.2 var(--serif); color: var(--oliven); border: 0; border-bottom: 2px dashed var(--linje); background: transparent; padding: 0.2rem 0; width: 100%; }
.timer-navn:focus { outline: none; border-bottom-color: var(--sennep); }
.visning { font: 700 clamp(3rem, 12vw, 3.8rem)/1 var(--tekst); font-variant-numeric: tabular-nums; margin: 0.3rem 0; letter-spacing: -0.02em; }
.timer.koerer .visning { color: var(--tomat); }
.timer.faerdig { background: #fde1c9; }
.timer.faerdig .visning { color: var(--tomat-dyb); }
.juster, .styr { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.lille { min-height: 2.75rem; min-width: 3.2rem; padding: 0.4rem 0.7rem; border-radius: 10px; border: 1px solid var(--linje); background: var(--creme); color: var(--oliven); font: 700 1rem/1 var(--tekst); cursor: pointer; }
.lille:hover { background: var(--creme-2); }
.styr .knap { flex: 1; }
.status { margin: 0; min-height: 1.5em; font-weight: 600; color: var(--tomat-dyb); }

/* Basisvarer */
.lister { display: grid; gap: 1rem; margin-bottom: 2.5rem; }
@media (min-width: 800px) { .lister { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.liste { background: var(--hvid); border: 0; border-radius: var(--rund); padding: 1.1rem 1.2rem; margin: 0; box-shadow: 0 1px 0 var(--linje); }
.liste legend { font-family: var(--serif); font-size: 1.35rem; padding: 0; float: left; width: 100%; margin-bottom: 0.5rem; }
.vare { display: flex; align-items: center; gap: 0.6rem; padding: 0.35rem 0; border-top: 1px solid var(--creme-2); cursor: pointer; clear: both; }
.vare input { width: 1.25rem; height: 1.25rem; accent-color: var(--tomat); flex: none; }
.vare input:checked + span { color: var(--daempet); text-decoration: line-through; }

/* Fod */
.bund { background: var(--oliven); color: #dcd8c4; padding-block: 2.5rem; }
.bund-ind { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .bund-ind { grid-template-columns: 1.4fr 1fr; } }
.bund-navn { font-family: var(--serif); font-size: 1.4rem; color: var(--creme); margin: 0 0 0.4rem; }
.bund-tekst { max-width: 48ch; font-size: 0.95rem; }
.bund nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; align-content: start; }
.bund a { color: var(--creme); }

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