/* DE IVOORSTIJL OP DE HELE SITE (besluit eigenaar 2026-11-18).
   Ivoren papier, warme inkt, goud als accent, Newsreader voor koppen, een donkere kopbalk in de
   huisinkt en witte tekstvlakken (contrastslag na "qua kleur teveel eenheidsworst"). Het laadt na
   luxe-skin.css en werkt vooral via diens variabelen, zodat elke component die al var(--accent) of
   var(--display) gebruikt vanzelf meegaat. Weghalen van de ene <link> in base.njk zet de site terug.

   GECONSOLIDEERD 2026-11-18 (audit): elke regel staat één keer, met de waarde die toen won. Eerder
   stonden de tokens, de kopbalk en de winkelvitrines twee keer in dit blad (eerst licht, daarna
   overschreven door donker). */
:root {
  --accent: #a17d42;
  --accent-dark: #7c5d2c;
  --accent-on-dark: #d9b877;
  --bg: #efede8;
  --card: #ffffff;
  --paper-2: #e7e3da;
  --text: #24251f;
  --ink: #24251f;
  --ink-soft: #3a3a32;
  --muted: #57524a;
  --rule: #dad4c8;
  --rule-strong: #c4bba9;
  --header: #26302b;
  --header-text: #f3ecdf;
  /* Koppen in de schreefletter; bij een schreef hoort geen negatieve spatiering. */
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --display-weight: 500;
  --display-tracking: -0.005em;
  --display-scale: 1.05;
}
html, body { background: var(--bg); color: var(--text); }

/* GEEN ZIJWAARTS SCHUIVEN (audit 2026-11-18). De lichtgloed achter de podcastband en de etalage reikt
   als pseudo-element 100vmax buiten de pagina; clip-path knipt dat bij het tekenen af, maar niet in de
   lay-out, waardoor de homepage op 390 px 1270 px breed werd en op een telefoon zijwaarts schoof.
   overflow-x: clip knipt het af zonder een schuifcontainer te maken (sticky blijft werken). */
html, body { overflow-x: clip; }

/* KOPBALK: de donkere huisinkt met een gouden lijn, de navigatie in de schreefletter. */
html body .site-header { background: #1f2622 !important; border-bottom: 2px solid var(--accent) !important; color: #f3ecdf !important; box-shadow: none; }
html body .site-header .site-title,
html body .site-header nav > a,
html body .site-header nav > details > summary,
html body .site-header .nav-summary { color: #f3ecdf !important; }
html body .site-header .site-title { font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; }
html body .site-title span { color: #d9b877 !important; }
html body .site-header nav > a:hover,
html body .site-header nav > details > summary:hover,
html body .site-header nav a[aria-current="page"] { color: #e0bf7d !important; }
html body .site-header .header-inner { max-width: 1380px; padding-left: clamp(18px, 3vw, 48px); padding-right: clamp(18px, 3vw, 48px); }
html body .site-header .header-search input { background: #2b332e; border: 1px solid #4a524b; color: #f3ecdf; }
html body .site-header .header-search input::placeholder { color: #a9a294; }
html body .nav-burger { color: #f3ecdf !important; }
html body .btn-membership { background: var(--accent); border-color: var(--accent); color: #fff !important; }
html body .btn-membership:hover { background: var(--accent-dark); }
/* Uitklapmenu: wit vlak met inkt; bij aanwijzen of focus een donker vlak met lichte tekst. */
html body .site-header .nav-dropdown-menu { background: #fff; }
html body .site-header .nav-dropdown-menu a { color: #24251f !important; }
html body .site-header .nav-dropdown-menu a:hover,
html body .site-header .nav-dropdown-menu a:focus-visible { background: #1f2622 !important; color: #f3ecdf !important; }
html body .site-header .nav-dropdown-menu a:hover small,
html body .site-header .nav-dropdown-menu a:focus-visible small { color: #e0bf7d !important; }
@media (min-width: 1000px) {
  html body .site-header nav { gap: clamp(12px, 1.4vw, 26px); }
  html body .site-header nav > a,
  html body .site-header nav > details > summary {
    font-family: var(--serif) !important;
    font-size: clamp(1.02rem, 1.2vw, 1.25rem) !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    line-height: 1.4;
  }
  html body .site-header .site-title { font-size: clamp(1.5rem, 2vw, 2.1rem) !important; }
}

/* KOPPEN EN LABELS */
h1, h2, h3, .card-title, .pick-title { font-family: var(--serif); }
h1 { font-weight: 500; letter-spacing: -.015em; }
.card-label, .eyebrow, .kicker { color: var(--accent-dark); }

/* KAARTEN */
.card, .post-card, .article-card { background: var(--card); border-color: var(--rule); }
.media-card, .card-body { background: var(--card); }
.era-grid a { background: var(--card); border-color: var(--rule); border-left-color: var(--accent); }
.era-grid a:hover { background: var(--header); border-color: var(--header); border-left-color: var(--accent); color: #f6f2ed; }

/* KNOPPEN */
.btn-primary, .btn-accent, button[type="submit"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover, .btn-accent:hover, button[type="submit"]:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* VOETTEKST: de donkere huisinkt met een gouden lijn. */
.site-footer { border-top: 2px solid var(--accent); }

/* LEESBAARHEID. Goud (#a17d42) haalt op ivoor maar ~3:1; voor lopende tekst is dat te weinig.
   Tekstlinks krijgen daarom het donkere goud (#7c5d2c, ~5.6:1), titels de inktkleur. */
main a { color: var(--accent-dark); }
main h1 a, main h2 a, main h3 a, main h4 a { color: var(--text); }
main h1 a:hover, main h2 a:hover, main h3 a:hover, main h4 a:hover { color: var(--accent-dark); }

/* DATASETS. /datasets/: een klein beeld per set, links van de tekst. */
.ds-list .ds-item { background: var(--card) !important; }
.ds-item--beeld { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 1.3rem; align-items: start; }
.ds-item-thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #1f2622; }
.ds-item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.ds-item--beeld:hover .ds-item-thumb img { transform: scale(1.04); }
/* Datasetpagina: een filmische kop met het beeld achter een donkere sluier. */
.ds-head--beeld { position: relative; isolation: isolate; color: #f6efe3; padding: clamp(2rem, 5vw, 3.6rem) clamp(1.2rem, 4vw, 3rem) clamp(1.6rem, 4vw, 2.6rem); margin: 0 0 2rem; overflow: hidden; background: #1d1a16; }
.ds-head--beeld::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--ds-beeld) center / cover no-repeat; }
.ds-head--beeld::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,18,14,.55) 0%, rgba(20,18,14,.78) 55%, rgba(20,18,14,.92) 100%); }
.ds-head--beeld h1 { color: #fff8ec; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.ds-head--beeld .ds-standfirst, .ds-head--beeld .ds-keyfinding, .ds-head--beeld p { color: #e9e0d0; }
.ds-head--beeld a { color: #e0bf7d; }
.ds-head--beeld .ds-counts, .ds-head--beeld .ds-counts * { color: #f3ecdf; border-color: rgba(255,255,255,.2); background: transparent; }
.ds-head--beeld .ds-doi-label { background: #e0bf7d; color: #1a1408; }
/* De omslag van de editie naast het koopblok. */
.ds-edition { display: flow-root; }
.ds-edition-cover { float: right; width: 190px; height: auto; margin: 0 0 1rem 1.6rem; box-shadow: 0 14px 30px rgba(0,0,0,.28); }

/* DE INDEXPAGINA: filmische kop met de vijf periodebeelden, beeldtegels per periode, miniaturen. */
.idx-hero { position: relative; overflow: hidden; background: #1d1a16; color: #f6efe3; margin: 0 0 1.4rem; min-height: 220px; display: flex; align-items: flex-end; }
.idx-hero-strook { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.idx-hero-strook span { background-size: cover; background-position: center; }
.idx-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,18,14,.92) 0%, rgba(20,18,14,.72) 45%, rgba(20,18,14,.35) 100%); }
.idx-hero-tekst { position: relative; z-index: 1; padding: clamp(1.4rem, 4vw, 2.6rem); max-width: 720px; }
.idx-hero-kicker { font: 700 .72rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #e0bf7d; margin: 0 0 .3rem; }
.idx-hero h1 { color: #fff8ec; margin: 0 0 .5rem; font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.idx-hero p { color: #e2d9c9; margin: 0; }
.idx-eras { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; margin: 0 0 1.8rem; }
.idx-eras a { position: relative; display: flex; align-items: flex-end; aspect-ratio: 4 / 3; overflow: hidden; background: #1d1a16; text-decoration: none; }
.idx-eras img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.idx-eras a:hover img { transform: scale(1.05); }
.idx-eras a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18,14,10,.88), rgba(18,14,10,.1) 65%); }
.idx-eras span { position: relative; z-index: 1; padding: .7rem .8rem; color: #fff8ec; }
.idx-eras strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.1rem; line-height: 1.15; }
.idx-eras small { font: 700 .66rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #e0bf7d; }
.az-list a { display: flex; align-items: center; gap: .7rem; color: var(--text) !important; }
.az-list a:hover { color: var(--accent-dark) !important; }
.az-thumb { flex: 0 0 64px; width: 64px; height: 44px; object-fit: cover; background: #e7e3da; }

/* DE WINKEL ALS FILMISCHE ETALAGE: een donkere zaal met lichtval van boven, de producten als belichte
   stukken in donkergroene vitrines, titels in crème, prijzen in goud. Alleen CSS, gebonden aan
   body:has(.shop-hero), zodat shop.njk en zijn vastgelegde winkelweergave ongemoeid blijven. */
body:has(.shop-hero) { background: #13100c !important; color: #e9e0d0; }
body:has(.shop-hero) main { position: relative; }
body:has(.shop-hero) main::before { content: ""; position: absolute; left: 50%; top: 0; width: 100vw; height: 900px; transform: translateX(-50%); pointer-events: none; z-index: 0; background: radial-gradient(ellipse 55% 60% at 50% 0%, rgba(232,190,110,.20), transparent 70%); }
body:has(.shop-hero) main > * { position: relative; z-index: 1; }
body:has(.shop-hero) .breadcrumbs, body:has(.shop-hero) .breadcrumbs a, body:has(.shop-hero) nav[aria-label="Breadcrumb"] a { color: #b9ad94 !important; }
body:has(.shop-hero) main h2, body:has(.shop-hero) main h3 { color: #fff7e6; }
body:has(.shop-hero) main p { color: #cdbfa6; }
body:has(.shop-hero) main a:not([class]) { color: #e0bf7d; }
.shop-hero { text-align: center; padding: clamp(1.6rem, 4vw, 3rem) 0 1.4rem; background: none !important; border: 0 !important; }
.shop-hero-kicker { color: #e0bf7d !important; letter-spacing: .18em; }
.shop-hero-title { color: #fff7e6 !important; font-family: var(--serif) !important; font-weight: 500 !important; font-size: clamp(2.2rem, 4.6vw, 3.8rem) !important; letter-spacing: -.015em; }
.shop-hero-lead { color: #cdbfa6 !important; max-width: 760px; margin-left: auto !important; margin-right: auto !important; }
.shop-nav { justify-content: center; }
.shop-nav-link { background: transparent !important; border: 1px solid rgba(201,163,95,.55) !important; color: #f3ead8 !important; }
.shop-nav-link:hover { background: rgba(224,181,90,.15) !important; border-color: #e0bf7d !important; }
.shop-standing { background: transparent !important; border: 0 !important; border-top: 1px solid rgba(201,163,95,.35) !important; border-bottom: 1px solid rgba(201,163,95,.35) !important; color: #cdbfa6 !important; text-align: center; }
.shop-standing strong { color: #fff7e6; }
.shop-dept-head { border-top-color: #c9a35f !important; }
.shop-dept-title { color: #fff7e6 !important; font-family: var(--serif) !important; font-weight: 500 !important; }
.shop-dept-lead { color: #cdbfa6 !important; }
.shop-dept-count { color: #c9a35f !important; }
/* De bovenste strook (één omslag per afdeling) */
body:has(.shop-hero) .shop-strip { background: none !important; border: 0 !important; box-shadow: none !important; }
body:has(.shop-hero) .shop-strip-grid a { background: linear-gradient(180deg, #1f2b24, #17201b) !important; border: 1px solid rgba(201,163,95,.28) !important; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
body:has(.shop-hero) .shop-strip-grid a:hover { transform: translateY(-4px); border-color: rgba(224,181,90,.75) !important; box-shadow: 0 18px 34px rgba(0,0,0,.5); }
body:has(.shop-hero) .shop-strip-grid img { background: radial-gradient(ellipse 70% 70% at 50% 32%, #2f4237 0%, #18221d 78%) !important; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(0,0,0,.6)); }
body:has(.shop-hero) .shop-strip-dept { color: #c9a35f !important; }
body:has(.shop-hero) .shop-strip-grid strong { color: #fff7e6 !important; }
body:has(.shop-hero) .shop-strip-price { color: #e0bf7d !important; }
/* Vitrinekaarten */
body:has(.shop-hero) .shop-card { background: linear-gradient(180deg, #1f2b24 0%, #17201b 100%) !important; border: 1px solid rgba(201,163,95,.25) !important; box-shadow: none; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
body:has(.shop-hero) .shop-card:hover { transform: translateY(-4px); border-color: rgba(224,181,90,.7) !important; box-shadow: 0 20px 40px rgba(0,0,0,.5); }
body:has(.shop-hero) .shop-card-media { background: radial-gradient(ellipse 70% 70% at 50% 32%, #2f4237 0%, #18221d 78%) !important; border-color: rgba(201,163,95,.2) !important; }
body:has(.shop-hero) .shop-card-media img { filter: drop-shadow(0 14px 18px rgba(0,0,0,.65)); background: transparent !important; }
body:has(.shop-hero) .shop-card-kicker, body:has(.shop-hero) .shop-card-kicker * { color: #c9a35f !important; }
body:has(.shop-hero) .shop-card-title, body:has(.shop-hero) .shop-card-title a { color: #fff7e6 !important; }
body:has(.shop-hero) .shop-card-title a:hover { color: #e8c77f !important; }
body:has(.shop-hero) .shop-card-blurb { color: #c4b8a3 !important; }
body:has(.shop-hero) .shop-card-more, body:has(.shop-hero) .shop-card-less { color: #e0bf7d !important; }
body:has(.shop-hero) .shop-card-foot { border-top-color: rgba(201,163,95,.25) !important; }
body:has(.shop-hero) .shop-card-price { color: #e0bf7d !important; }
body:has(.shop-hero) .shop-card-buy { background: #e0b55a !important; border-color: #e0b55a !important; color: #1a1408 !important; }
body:has(.shop-hero) .shop-card-buy:hover { background: #f0c96f !important; }
body:has(.shop-hero) .shop-rail-btn { background: transparent !important; border-color: rgba(201,163,95,.55) !important; color: #f3ead8 !important; }
body:has(.shop-hero) .shop-rail-btn:hover { background: rgba(224,181,90,.15) !important; }

/* Smaller scherm: bewust onderaan, na de algemene regels die het overschrijft. */
@media (max-width: 760px) {
  .ds-item--beeld { grid-template-columns: 110px minmax(0, 1fr); }
  .ds-item--beeld .ds-item-grab { grid-column: 1 / -1; }
  .idx-eras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .idx-eras a:last-child { grid-column: 1 / -1; aspect-ratio: 8 / 3; }
  .idx-hero-strook { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .ds-edition-cover { float: none; display: block; width: 160px; margin: 0 auto 1.2rem; }
}
