/* pollen.dk - "feltbog": lyst kalkpapir, mørk mosgrøn tusch, pollengul som eneste lysende farve.
   Instrument Serif til overskrifter, Atkinson Hyperlegible Next til brødtekst (læsbarhed først). */
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("../fonts/atkinson-next.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  --papir: #f3f1e6;
  --papir-2: #e9e6d6;
  --tusch: #1e2a1b;
  --tusch-2: #4d5841;
  --linje: #d3cfbb;
  --gul: #e3b505;
  --gul-moerk: #8a6a00;
  --c-hassel: #a8741e;
  --c-el: #8e4f2a;
  --c-birk: #c99a06;
  --c-graes: #4a7a2c;
  --c-bynke: #85527f;
  --c-alternaria: #3f6070;
  --c-cladosporium: #6b8794;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Atkinson Hyperlegible Next", system-ui, -apple-system, sans-serif;
  --ramme: 70rem;
  --side: clamp(1rem, 4vw, 2.5rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papir);
  color: var(--tusch);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
::selection { background: var(--gul); color: var(--tusch); }
a { color: var(--tusch); text-decoration-color: var(--gul-moerk); text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--gul); text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--gul-moerk); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; margin: 0; }
p { margin: 0 0 1em; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.ramme { max-width: var(--ramme); margin-inline: auto; padding-inline: var(--side); }
.spring { position: absolute; left: var(--side); top: -4rem; background: var(--tusch); color: var(--papir); padding: .6rem 1rem; z-index: 10; }
.spring:focus { top: .5rem; }

/* Top */
.top { border-bottom: 1px solid var(--linje); }
.top-ind { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-block: .9rem; }
.ordmaerke { display: block; color: var(--tusch); line-height: 0; }
.ordmaerke svg { width: 9.5rem; height: auto; }
.menu { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .92rem; }
.menu a { text-decoration: none; padding-block: .35rem; border-bottom: 2px solid transparent; }
.menu a:hover { border-bottom-color: var(--linje); }
.menu a[aria-current="page"] { border-bottom-color: var(--gul); font-weight: 700; }

/* Intro */
.intro { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(1.5rem, 4vw, 3rem); }
.intro-ind { display: grid; gap: 1.5rem 3rem; }
.intro h1 { font-size: clamp(2.6rem, 8.5vw, 5.4rem); max-width: 12ch; }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.25rem); max-width: 40rem; color: var(--tusch); }
.nu-boks { display: flex; gap: .75rem; align-items: flex-start; max-width: 40rem; padding: .9rem 1rem; background: var(--papir-2); border-radius: 6px; margin: 0; }
.korn { display: inline-block; flex: none; }
.korn.mini { width: 1.6rem; height: 1.6rem; color: var(--c-birk); margin-top: .05rem; }
@media (min-width: 60rem) {
  .intro-ind { grid-template-columns: 1.15fr 1fr; align-items: end; }
}

/* Sektioner */
.sek-hoved { display: grid; gap: .5rem 3rem; margin-bottom: 1.5rem; }
.sek-hoved h2, .officiel h2, .raad-ind h2 { font-size: clamp(2rem, 5vw, 3rem); }
.sek-hoved p { max-width: 40rem; color: var(--tusch-2); margin: 0; }
@media (min-width: 60rem) { .sek-hoved { grid-template-columns: 1fr 1.6fr; align-items: end; } }
.kal-sektion, .typer { padding-block: clamp(2rem, 5vw, 3.5rem); }
.videre { margin-top: 1.5rem; font-weight: 700; }
.videre a::after { content: ""; display: inline-block; width: .55em; height: .55em; margin-left: .45em; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: translateY(-.08em) rotate(45deg); }

/* Kalender */
.kalender { margin: 0; }
.kal-rul { overflow-x: auto; }
.kalender table { width: 100%; min-width: 20rem; border-collapse: separate; border-spacing: 0 6px; table-layout: fixed; }
.kalender thead th { font-weight: 700; font-size: .8rem; color: var(--tusch-2); text-align: center; padding: 0 0 .25rem; }
.kalender thead th abbr { text-decoration: none; }
.kalender thead th .lang { display: none; }
.kalender thead th.nu { color: var(--tusch); }
.kalender th.kal-navn { text-align: left; font-weight: 400; }
.kalender tbody th a { display: flex; align-items: center; gap: .45rem; text-decoration: none; font-size: .95rem; line-height: 1.2; }
.kalender tbody th a:hover span { text-decoration: underline; text-decoration-color: var(--gul); }
.korn.lille { width: 1.35rem; height: 1.35rem; display: none; }
.kalender th.kal-navn { width: 6.4rem; }
.kalender tbody th a { font-size: .88rem; }
.kalender td { height: 2rem; padding: 0; position: relative; }
.kalender td::before { content: ""; position: absolute; inset: 45% 0; background: var(--linje); }
.kalender td.v1::before, .kalender td.v2::before { inset: 3px 0; background: var(--rk); opacity: .38; }
.kalender td.v2::before { opacity: 1; }
.kalender td.start::before { left: 2px; border-radius: 99px 0 0 99px; }
.kalender td.slut::before { right: 2px; border-radius: 0 99px 99px 0; }
.kalender td.nu, .kalender thead th.nu { background: rgb(227 181 5 / .18); }
.kalender tbody tr:first-child td.nu { box-shadow: inset 0 0 0 0; }
.kalender thead th.nu { border-radius: 4px 4px 0 0; }
.kal-forklaring { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .9rem; color: var(--tusch-2); margin-top: .75rem; }
.kal-forklaring span { display: inline-flex; align-items: center; gap: .45rem; }
.prik { display: inline-block; width: 1.6rem; height: .7rem; border-radius: 99px; background: var(--tusch-2); }
.prik.v1 { opacity: .38; }
.prik.nu-prik { background: rgb(227 181 5 / .35); width: .9rem; height: 1rem; border-radius: 3px; }
@media (min-width: 48rem) {
  .kalender thead th abbr { display: none; }
  .kalender thead th .lang { display: inline; }
  .kalender th.kal-navn { width: 10rem; }
  .kalender tbody th a { font-size: .95rem; }
  .korn.lille { display: inline-block; }
  .kalender td { height: 2.4rem; }
}

/* Farve pr. type */
.r-hassel, .t-hassel, .korn-hassel { --rk: var(--c-hassel); }
.r-el, .t-el, .korn-el { --rk: var(--c-el); }
.r-birk, .t-birk, .korn-birk { --rk: var(--c-birk); }
.r-graes, .t-graes, .korn-graes { --rk: var(--c-graes); }
.r-bynke, .t-bynke, .korn-bynke { --rk: var(--c-bynke); }
.r-alternaria, .t-alternaria, .korn-alternaria { --rk: var(--c-alternaria); }
.r-cladosporium, .t-cladosporium, .korn-cladosporium { --rk: var(--c-cladosporium); }
.korn.lille, .korn.stor { color: var(--rk); }

/* Typeliste */
.typeliste { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--linje); }
.typeliste li { display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem; padding-block: 1.25rem; border-bottom: 1px solid var(--linje); }
.korn.stor { width: 3.5rem; height: 3.5rem; }
.typeliste h3 { font-size: 1.75rem; }
.typeliste h3 a { text-decoration: none; }
.typeliste h3 a:hover { text-decoration: underline; text-decoration-color: var(--gul); }
.typeliste p { margin: 0; max-width: 34rem; }
.typeliste .meta { font-size: .9rem; color: var(--tusch-2); margin: .1rem 0 .4rem; }
@media (min-width: 48rem) {
  .typeliste { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
}

/* Råd-bånd */
.raad-teaser { background: var(--tusch); color: var(--papir); padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.raad-teaser a { color: var(--papir); text-decoration-color: var(--gul); }
.raad-ind ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; max-width: 46rem; }
.raad-ind li { position: relative; padding-left: 1.75rem; font-size: 1.1rem; }
.raad-ind li::before { content: ""; position: absolute; left: 0; top: .5em; width: .7rem; height: .7rem; border-radius: 50%; background: var(--gul); }
@media (min-width: 60rem) {
  .raad-ind { display: grid; grid-template-columns: 1fr 1.6fr; column-gap: 3rem; }
  .raad-ind ul { margin-top: 0; grid-row: span 2; }
  .raad-ind .videre { grid-column: 1; grid-row: 2; align-self: end; }
}

.officiel { padding-block: clamp(2.5rem, 6vw, 4rem); }
.officiel p { max-width: 42rem; margin-top: 1rem; }

/* Tekstsider */
.tekstside { padding-block: clamp(2rem, 6vw, 4.5rem) clamp(2.5rem, 6vw, 4rem); }
.tekstside h1 { font-size: clamp(2.5rem, 7vw, 4.4rem); max-width: 16ch; margin-bottom: 1.25rem; }
.tekstside .lede { margin-bottom: 2rem; }
.tekst { max-width: 42rem; }
.tekst h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); margin: 2.5rem 0 .75rem; }
.tekst h3 { font-family: var(--sans); font-weight: 700; font-size: 1.1rem; line-height: 1.3; margin: 1.75rem 0 .4rem; }
.tekst ul { padding-left: 1.2rem; margin: 0 0 1em; }
.tekst li { margin-bottom: .4rem; }
.tekst li::marker { color: var(--gul-moerk); }
.knap { display: inline-block; background: var(--tusch); color: var(--papir); padding: .75rem 1.25rem; border-radius: 6px; text-decoration: none; font-weight: 700; }
.knap:hover { background: #2e3d2a; }

/* Pollentyper: én plade pr. type */
.plader { display: grid; gap: 0; border-top: 1px solid var(--linje); }
.plade { display: grid; gap: .75rem 2rem; padding-block: 2rem; border-bottom: 1px solid var(--linje); scroll-margin-top: 1rem; }
.plade-hoved { display: flex; gap: 1rem; align-items: center; }
.plade-hoved .korn { width: 4.5rem; height: 4.5rem; color: var(--rk); }
.plade h2 { font-size: clamp(2rem, 5vw, 2.75rem); margin: 0; }
.plade .latin { font-style: italic; color: var(--tusch-2); margin: .15rem 0 0; font-size: .95rem; }
.plade dl { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: 0 0 1rem; font-size: .95rem; }
.plade dt { color: var(--tusch-2); }
.plade dd { margin: 0; font-weight: 700; }
.plade .mini-kal { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; margin: 0 0 1rem; max-width: 24rem; }
.plade .mini-kal span { height: .55rem; background: var(--linje); border-radius: 2px; }
.plade .mini-kal span.v1 { background: var(--rk); opacity: .38; }
.plade .mini-kal span.v2 { background: var(--rk); }
.plade-tekst p { max-width: 40rem; }
@media (min-width: 60rem) {
  .plade { grid-template-columns: 20rem 1fr; }
}

/* Fod */
.bund { border-top: 1px solid var(--linje); padding-block: 2rem 2.5rem; font-size: .9rem; color: var(--tusch-2); }
.bund-ind { display: grid; gap: .5rem 2rem; }
.bund-ind p { margin: 0; }
.bund-ind > p:first-child { font-family: var(--serif); font-size: 1.4rem; color: var(--tusch); }
.bund-note { max-width: 36rem; }
@media (min-width: 48rem) { .bund-ind { grid-template-columns: auto 1fr auto; align-items: baseline; } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
