/* assets/css/site.css - vogelgids.nl, theme v1 (29-11-2026, "veldgids")
   A field guide on paper: warm white page, ink text, one bird-blue accent and a yolk-yellow second accent (the great
   tit's breast, also in the logo). Species pages read like a guide plate: photo, a facts table with ruled lines, the
   year as twelve month bars and the provinces as a short table. Levels always come with words, never colour alone.
   Headings in Alegreya (variable, book serif), text in Alegreya Sans; no other Swoops site uses them. Self-hosted, OFL
   licences beside the files. Bump ?v= in _partials/head-assets.html (and the script tags) after every change. */

@font-face { font-family: "Alegreya"; src: url("/assets/fonts/alegreya-latin-wght-normal.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("/assets/fonts/alegreya-latin-wght-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("/assets/fonts/alegreya-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("/assets/fonts/alegreya-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("/assets/fonts/alegreya-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --paper: #fbfaf5; --card: #ffffff; --ink: #1c2421; --muted: #5a625d; --rule: #e4e1d6; --rule-2: #cdc8b8;
  --blue: #1f5aa6; --blue-ink: #17457f; --blue-soft: #e5eef9; --yolk: #f2b705; --yolk-soft: #fdf3cf; --moss: #4f6b3a; --moss-soft: #e9efe1;
  --on-ink: #f3f1ea; --on-ink-muted: #b4bab4;
  --head: "Alegreya", Georgia, "Times New Roman", serif; --sans: "Alegreya Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --s--1: .9375rem; --s0: 1.125rem; --s1: 1.3rem; --s2: 1.8rem; --s3: 2.6rem; --s4: 3.3rem;
  --radius: 10px; --wrap: 72rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--s0)/1.6 var(--sans); font-variant-numeric: lining-nums; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--blue-ink); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--blue); text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--head); line-height: 1.12; margin: 1.5em 0 .45em; font-weight: 700; color: var(--ink); }
h1 { font-size: var(--s3); font-weight: 800; margin-top: .2em; }
h2 { font-size: var(--s2); }
h3 { font-size: var(--s1); }
p, ul, ol, dl, table { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--yolk); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--yolk); color: var(--ink); padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; }
.muted, .klein { color: var(--muted); }
.klein { font-size: var(--s--1); }
.lead { font-size: var(--s1); color: var(--muted); max-width: 44rem; }
.sci { font-family: var(--head); font-style: italic; font-weight: 500; color: var(--muted); }
[hidden] { display: none !important; }
.btn { display: inline-block; background: var(--blue); color: #fff; padding: .55rem 1.1rem; border-radius: 999px; text-decoration: none; font-weight: 700; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.btn:hover { background: var(--blue-ink); color: #fff; }
.btn--ghost { background: transparent; color: var(--blue-ink); border: 1px solid var(--rule-2); }
.btn--ghost:hover { background: var(--blue-soft); color: var(--blue-ink); }

/* header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); }
.site-header__inner { max-width: var(--wrap); margin: 0 auto; padding: .7rem 1rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.brand { display: inline-flex; margin-right: auto; }
.brand__logo { height: 36px; width: auto; display: block; }
.menu-toggle { display: none; align-items: center; gap: .35rem; background: none; border: 1px solid var(--rule-2); border-radius: 999px; padding: .35rem .8rem; font: inherit; color: var(--ink); cursor: pointer; }
.menu-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: inline; }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; }
.site-nav__link { text-decoration: none; color: var(--ink); font-weight: 700; padding: .2rem 0; border-bottom: 2px solid transparent; }
.site-nav__link:hover, .site-nav__item.is-current .site-nav__link { border-bottom-color: var(--yolk); color: var(--ink); }
@media (max-width: 54rem) {
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav { display: none; width: 100%; }
  .js .site-nav.is-open { display: block; }
  .js .site-nav__list { flex-direction: column; gap: 0; border-top: 1px solid var(--rule); padding-top: .4rem; }
  .js .site-nav__link { display: block; padding: .55rem 0; }
}

/* crumbs (platform partial) */
.crumbs { font-size: var(--s--1); color: var(--muted); margin: 1rem 0 .4rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.crumbs li + li::before { content: "/"; margin-right: .3rem; color: var(--rule-2); }

/* layout */
.page-head { margin: .4rem 0 1rem; }
.page-head .sci { font-size: var(--s1); margin: -.2rem 0 0; }
.layout { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 62rem) { .layout { grid-template-columns: minmax(0, 1fr) 19rem; } }
.prose { max-width: 44rem; }
.prose h2 { padding-top: .3rem; border-top: 1px solid var(--rule); }
.prose ul { padding-left: 1.2rem; }
.prose .looks, .prose .chips, .prose .rank, .prose .cards { padding-left: 0; }
.aside-card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.aside-card__head { font-family: var(--head); font-weight: 700; font-size: var(--s1); margin: 0 0 .5rem; }
.aside-card--yolk { background: var(--yolk-soft); border-color: #eedb94; }
.aside-links { list-style: none; padding: 0; margin: 0; }
.aside-links li { border-top: 1px solid var(--rule); }
.aside-links li:first-child { border-top: 0; }
.aside-links a { display: block; padding: .4rem 0; text-decoration: none; }
.aside-links a[aria-current] { font-weight: 700; color: var(--ink); }

/* home */
.hero { display: grid; gap: 1.5rem; padding: 1.8rem 0 1rem; }
@media (min-width: 58rem) { .hero { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.hero h1 { font-size: var(--s4); margin: 0 0 .4rem; }
.tuin { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.1rem 1.2rem 1.2rem; box-shadow: 0 1px 0 var(--rule); }
.tuin__head { font-family: var(--head); font-size: var(--s2); font-weight: 700; margin: 0 0 .2rem; }
.tuin__form { display: flex; flex-wrap: wrap; gap: .6rem; margin: .6rem 0 .9rem; }
.tuin__form label { display: flex; flex-direction: column; font-size: var(--s--1); color: var(--muted); }
.tuin__form select { font: inherit; color: var(--ink); padding: .4rem .5rem; border: 1px solid var(--rule-2); border-radius: 8px; background: #fff; min-width: 10rem; }
.tuin__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .6rem; }
.tuin__item a { display: flex; gap: .5rem; align-items: center; text-decoration: none; color: var(--ink); padding: .35rem; border-radius: 8px; border: 1px solid var(--rule); background: var(--paper); }
.tuin__item a:hover { border-color: var(--blue); }
.tuin__item img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; flex: none; background: var(--rule); }
.tuin__item b { display: block; line-height: 1.15; }
.tuin__item small { display: block; color: var(--muted); line-height: 1.25; }
.tuin__noscript li { margin-bottom: .2rem; }

/* species cards (hub, finder, lookalikes) */
.cards { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: .9rem; }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; height: 100%; }
.card a { display: block; text-decoration: none; color: var(--ink); height: 100%; }
.card a:hover { box-shadow: 0 0 0 2px var(--blue); border-radius: var(--radius); }
.card__img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; display: block; background: var(--rule); }
.card__ph { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; background: var(--blue-soft); }
.card__ph img { width: 48px; opacity: .55; }
.card__body { padding: .55rem .75rem .7rem; }
.card__name { font-family: var(--head); font-weight: 700; font-size: 1.15rem; display: block; line-height: 1.15; }
.card__sci { font-family: var(--head); font-style: italic; color: var(--muted); font-size: var(--s--1); }
.tag { display: inline-block; font-size: .8rem; padding: .05rem .5rem; border-radius: 999px; background: var(--moss-soft); color: var(--moss); margin-top: .3rem; }

/* species page: plate */
.plate { display: grid; gap: 1.2rem; margin-bottom: 1.5rem; }
@media (min-width: 46rem) { .plate { grid-template-columns: 1.25fr 1fr; align-items: start; } }
.plate__fig { margin: 0; }
.plate__fig img { width: 100%; border-radius: var(--radius); display: block; background: var(--rule); }
.plate__fig figcaption { font-size: .82rem; color: var(--muted); margin-top: .3rem; }
.facts { width: 100%; border-collapse: collapse; font-size: var(--s--1); background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.facts th, .facts td { text-align: left; padding: .45rem .7rem; border-top: 1px solid var(--rule); vertical-align: top; }
.facts tr:first-child th, .facts tr:first-child td { border-top: 0; }
.facts th { width: 42%; color: var(--muted); font-weight: 400; }
.facts td.is-sci { font-family: var(--head); font-style: italic; }

/* month bars */
.year { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1rem .6rem; margin: 0 0 1rem; }
.year__bars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; align-items: end; height: 9rem; }
.year__bar { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; text-align: center; }
.year__fill { display: block; background: var(--blue); border-radius: 4px 4px 0 0; min-height: 0; }
.year__bar.is-soms .year__fill { background: #6d96cf; }
.year__bar.is-weinig .year__fill { background: #b7cbe8; }
.year__bar.is-piek .year__fill { background: var(--blue-ink); }
.year__bar.is-leeg .year__fill { background: repeating-linear-gradient(45deg, var(--rule) 0 4px, transparent 4px 8px); height: 100% !important; opacity: .7; }
.year__m { font-size: .78rem; color: var(--muted); margin-top: .25rem; }
.year__key { font-size: .85rem; color: var(--muted); margin: .6rem 0 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* province table */
.regions { width: 100%; border-collapse: collapse; font-size: var(--s--1); }
.regions th, .regions td { padding: .35rem .5rem; border-bottom: 1px solid var(--rule); text-align: left; }
.regions .lvl { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; margin-right: .4rem; vertical-align: -.05rem; background: var(--rule-2); }
.regions .is-veel .lvl { background: var(--blue-ink); }
.regions .is-gewoon .lvl { background: #6d96cf; }
.regions .is-weinig .lvl { background: #b7cbe8; }

/* lookalikes */
.looks { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .7rem; }
.look { display: flex; gap: .8rem; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: .6rem; }
.look img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; flex: none; }
.look p { margin: .1rem 0 0; font-size: var(--s--1); }

/* finder ranking */
.rank { list-style: none; margin: 0 0 1.5rem; padding: 0; counter-reset: r; }
.rank li { counter-increment: r; display: grid; grid-template-columns: 2rem 56px minmax(0, 1fr); gap: .7rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--rule); }
.rank li::before { content: counter(r); font-family: var(--head); font-weight: 800; font-size: 1.3rem; color: var(--blue); text-align: right; }
.rank img, .rank .rank__ph { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: var(--blue-soft); display: block; }
.rank__name { font-family: var(--head); font-weight: 700; font-size: 1.15rem; }
.rank__bar { display: block; height: 6px; background: var(--blue-soft); border-radius: 3px; margin-top: .3rem; max-width: 22rem; }
.rank__bar span { display: block; height: 100%; background: var(--blue); border-radius: 3px; }
.rank__share { font-size: .85rem; color: var(--muted); }
.chips { list-style: none; margin: 0 0 1.2rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chips a { display: inline-block; padding: .2rem .7rem; border: 1px solid var(--rule-2); border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--card); font-size: var(--s--1); }
.chips a:hover, .chips a[aria-current] { border-color: var(--blue); background: var(--blue-soft); }

/* compare */
.versus { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
@media (min-width: 46rem) { .versus { grid-template-columns: 1fr 1fr; } }
.versus__side { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.versus__side img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.versus__body { padding: .8rem 1rem; }
.versus__body h2 { margin: 0; border: 0; padding: 0; font-size: var(--s1); }
.note { background: var(--yolk-soft); border-left: 4px solid var(--yolk); padding: .8rem 1rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 1.5rem; }

.source { font-size: var(--s--1); color: var(--muted); border-top: 1px solid var(--rule); padding-top: .7rem; margin-top: 2rem; }

/* footer */
.site-footer { background: var(--ink); color: var(--on-ink); margin-top: 3rem; padding: 2rem 0 1.2rem; }
.site-footer__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; display: grid; gap: 1.5rem; }
@media (min-width: 54rem) { .site-footer__inner { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer p { color: var(--on-ink-muted); font-size: var(--s--1); }
.site-footer a { color: var(--on-ink); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .25rem 0; }
.site-footer__head { font-family: var(--head); font-weight: 700; color: var(--on-ink) !important; font-size: var(--s0) !important; margin: 0 0 .4rem; }
.site-footer__logo { height: 34px; width: auto; margin-bottom: .6rem; }
.site-footer__small { max-width: var(--wrap); margin: 1.5rem auto 0; padding: 0 1rem; font-size: .85rem; color: var(--on-ink-muted); }

@media print { .site-header, .site-footer, .share, .layout__aside { display: none; } }
