/* madlivet.dk - almanak: creme, oliven, rødbede og sennep */
@font-face { font-family: "Young Serif"; src: url("/assets/fonts/young-serif-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/assets/fonts/hanken-grotesk-vf.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --creme: #f5efe1;
  --creme-2: #ebe2cd;
  --hvid: #fffcf4;
  --oliven: #2b3520;
  --daempet: #5a5a45;
  --mos: #56743a;
  --mos-lys: #dfe6cf;
  --bede: #8a2c47;
  --sennep: #c4912a;
  --linje: #ddd3bd;
  --serif: "Young Serif", Georgia, serif;
  --tekst: "Hanken Grotesk", system-ui, sans-serif;
  --rund: 18px;
}
*, *::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.075rem; line-height: 1.65; }
::selection { background: var(--mos-lys); }
img, svg { max-width: 100%; }
a { color: var(--bede); text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
a:hover { color: var(--oliven); }
:focus-visible { outline: 3px solid var(--sennep); outline-offset: 2px; border-radius: 4px; }
.ramme { width: min(100% - 2rem, 70rem); margin-inline: auto; }
.smal { max-width: 44rem; }
.skjult { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spring { position: absolute; left: 1rem; top: -4rem; background: var(--oliven); color: #fff; padding: .5rem .9rem; z-index: 10; }
.spring:focus { top: .75rem; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6.4vw, 4.1rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); margin: 2.2em 0 .55em; }
h3 { font-size: 1.2rem; margin: 0 0 .5rem; }
p { margin: 0 0 1em; }
.overlinje { font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mos); margin-bottom: .8rem; }
.indledning { font-size: clamp(1.12rem, 2.1vw, 1.27rem); line-height: 1.55; max-width: 44ch; color: #3f4632; }
.note { font-size: .98rem; background: var(--creme-2); border-radius: var(--rund); padding: 1rem 1.1rem; }

/* Top */
.top { background: var(--creme); border-bottom: 1px solid var(--linje); }
.top-ind { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1.6rem; padding-block: 1rem; }
.ordmaerke { display: inline-flex; align-items: center; gap: .5rem; color: var(--oliven); text-decoration: none; font-family: var(--serif); font-size: 1.55rem; }
.ordmaerke:hover { color: var(--oliven); }
.maerke-ikon { width: 1.6rem; height: 1.6rem; color: var(--bede); flex: none; }
.menu { display: flex; flex-wrap: wrap; gap: .1rem 1.15rem; }
.menu a { color: var(--daempet); text-decoration: none; font-weight: 600; font-size: .97rem; padding-block: .3rem; border-bottom: 2px solid transparent; }
.menu a:hover { color: var(--oliven); border-bottom-color: var(--linje); }
.menu a[aria-current="page"] { color: var(--bede); border-bottom-color: var(--bede); }

/* Knapper */
.knapper { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.knap { display: inline-flex; align-items: center; min-height: 3rem; padding: .7rem 1.35rem; border-radius: 999px; border: 2px solid var(--oliven); background: var(--oliven); color: var(--creme); font: 700 1rem/1 var(--tekst); text-decoration: none; transition: background-color .15s ease-out; }
.knap:hover { background: #1c2414; color: #fff; }
.knap-lys { background: transparent; color: var(--oliven); }
.knap-lys:hover { background: var(--creme-2); color: var(--oliven); }
.pil { font-weight: 700; text-decoration: none; }
.pil::after { content: " \2192"; }

/* Helt */
.helt-ind { display: grid; gap: 2.2rem; padding-block: clamp(2.5rem, 7vw, 5rem); align-items: center; }
.nu-kort { margin: 0; background: var(--oliven); color: var(--creme); border-radius: var(--rund); padding: 1.5rem 1.5rem 1.3rem; }
.nu-kort figcaption { font-family: var(--serif); font-size: 1.5rem; margin-bottom: .9rem; color: #fff; }
.nu-kort ul { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.nu-kort li { background: rgba(255,255,255,.1); border-radius: 999px; padding: .3rem .8rem; font-weight: 600; font-size: .95rem; }
.nu-kort .pil { color: var(--sennep); }
@media (min-width: 860px) { .helt-ind { grid-template-columns: 1.3fr 1fr; } }

/* Fliser */
.sektion { padding-block: clamp(1rem, 4vw, 3rem) clamp(2.5rem, 6vw, 4.5rem); }
.fire { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.flise { display: flex; flex-direction: column; gap: .45rem; padding: 1.4rem; background: var(--hvid); border-radius: var(--rund); color: var(--daempet); text-decoration: none; transition: transform .15s ease-out; }
.flise:hover { color: var(--daempet); transform: translateY(-3px); }
.flise svg { width: 3rem; height: 3rem; margin-bottom: .3rem; }
.f-1 { fill: var(--mos); } .f-2 { fill: var(--sennep); } .f-3 { fill: var(--bede); } .f-4 { fill: #6d8fa0; }
.f-l { stroke: var(--oliven); stroke-width: 3; stroke-linecap: round; fill: none; }
.flise-titel { font-family: var(--serif); font-size: 1.3rem; color: var(--oliven); }
.sektion-citat { background: var(--mos-lys); padding-block: clamp(2.5rem, 6vw, 4rem); }
.ordsprog { font-family: var(--serif); font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.2; margin-bottom: .3rem; color: var(--oliven); }
.ordsprog-kilde { font-weight: 700; font-size: .9rem; color: var(--mos); margin-bottom: 1.4rem; }

/* Tekstsider */
.tekstside { padding-bottom: 4.5rem; }
.side-top { padding-block: clamp(2.3rem, 6vw, 4rem) 1.2rem; }
.artikel { max-width: 66ch; }
.punkter { padding-left: 1.3rem; } .punkter li { margin-bottom: .55rem; } .punkter li::marker { color: var(--bede); }
.indhold-liste { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0 1rem; }
.indhold-liste a { text-decoration: none; background: var(--hvid); border: 1px solid var(--linje); border-radius: 999px; padding: .35rem .9rem; font-weight: 600; font-size: .95rem; color: var(--oliven); }
.indhold-liste a:hover { background: var(--mos-lys); }
.smag { margin: 0; display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.smag div { background: var(--hvid); border-radius: var(--rund); padding: 1rem 1.1rem; }
.smag dt { font-family: var(--serif); font-size: 1.25rem; color: var(--bede); }
.smag dd { margin: .2rem 0 0; }

/* Sæson */
.maaned-vaelger { display: grid; grid-template-columns: repeat(6, 1fr); gap: .4rem; max-width: 46rem; margin: .5rem 0 1.4rem; }
@media (min-width: 720px) { .maaned-vaelger { grid-template-columns: repeat(12, 1fr); } }
.maaned-vaelger button { font: 700 .95rem var(--tekst); min-height: 2.75rem; border: 1.5px solid var(--linje); background: var(--hvid); color: var(--oliven); border-radius: 12px; cursor: pointer; text-transform: capitalize; transition: background-color .15s ease-out; }
.maaned-vaelger button:hover { background: var(--mos-lys); }
.maaned-vaelger button[aria-pressed="true"] { background: var(--oliven); border-color: var(--oliven); color: var(--creme); }
.i-saeson { background: var(--hvid); border-radius: var(--rund); padding: 1.4rem 1.5rem 1rem; }
.i-saeson h2 { margin-top: 0; }
.saeson-grupper { display: grid; gap: .5rem 2.5rem; }
@media (min-width: 760px) { .saeson-grupper { grid-template-columns: 2fr 1fr; } }
.vareliste { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.vareliste li { background: var(--mos-lys); border-radius: 999px; padding: .3rem .85rem; font-weight: 600; font-size: .97rem; }
.saeson-grupper > div:last-child .vareliste li { background: #f1dbe1; }
.aar-ramme { position: relative; overflow-x: auto; background: var(--hvid); border-radius: var(--rund); padding: .4rem; }
.aar { border-collapse: separate; border-spacing: 3px; font-size: .9rem; min-width: 40rem; width: 100%; }
.aar th, .aar td { white-space: nowrap; }
.aar thead th { font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--daempet); padding: .3rem 0; text-align: center; border-radius: 6px; }
.aar thead th:first-child { text-align: left; }
.aar tbody th { text-align: left; font-weight: 600; padding: .2rem .7rem .2rem .3rem; position: sticky; left: 0; background: var(--hvid); }
.aar td { height: 1.6rem; background: var(--creme); border-radius: 5px; }
.aar td.ja { background: var(--mos); }
.aar tbody:last-child td.ja { background: var(--bede); }
.aar td.valgt { outline: 2px solid var(--sennep); outline-offset: -1px; }
.aar thead th.valgt { background: var(--sennep); color: var(--oliven); }
.aar tr.gruppe th { font-family: var(--serif); font-weight: 400; font-size: 1.05rem; padding-top: .8rem; position: static; }

/* Spisekammer */
.beholdning { font-size: 1.1rem; }
.kammer { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin-bottom: 1rem; }
.kammer .hylde { margin: 0; border: 0; background: var(--hvid); border-radius: var(--rund); padding: 1.1rem 1.2rem; display: grid; gap: .35rem; align-content: start; }
.kammer legend { font-family: var(--serif); font-size: 1.2rem; padding: 0; margin-bottom: .4rem; float: left; width: 100%; }
.kammer label { display: flex; align-items: center; gap: .55rem; cursor: pointer; min-height: 2rem; clear: both; }
.kammer input { width: 1.15rem; height: 1.15rem; accent-color: var(--mos); }

/* Hygiejne */
.regler { list-style: none; padding: 0; margin: .5rem 0 2rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); counter-reset: r; }
.regler li { counter-increment: r; background: var(--hvid); border-radius: var(--rund); padding: 1.3rem 1.3rem 1rem; }
.regler li::before { content: counter(r); display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--mos-lys); color: var(--mos); font-weight: 800; margin-bottom: .5rem; }
.regler h2 { margin: 0 0 .4rem; font-size: 1.3rem; }
.regler p { margin: 0; }

/* Bund */
.bund { background: var(--oliven); color: #d6d6c0; padding-block: 2.4rem; font-size: .95rem; }
.bund-ind { display: grid; gap: 1.2rem 3rem; }
@media (min-width: 800px) { .bund-ind { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.bund-navn { font-family: var(--serif); font-size: 1.25rem; color: #fff; margin-bottom: .4rem; }
.bund-note { max-width: 46ch; margin: 0; }
.bund nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.bund a { color: #efeadb; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
