/*
  The central pages of JE Concept.

  The tokens are JE Concept's own, the same as the backoffice and the rental site
  (planning/src/styles/je-ds.css): the navy of the logo on its paper ground, Oswald for
  headings, Source Sans 3 for reading. Both fonts are variable, so one file each covers
  every weight. Self-hosted, because a privacy policy that reports every reader to
  Google's font servers is not a good look.
*/
@font-face { font-family: 'Oswald'; font-weight: 200 700; font-display: swap; src: url('/_centraal/fonts/Oswald.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-weight: 200 900; font-display: swap; src: url('/_centraal/fonts/SourceSans3.woff2') format('woff2'); }

:root {
  --paper: #F8F9FB;
  --surface: #FFFFFF;
  --ink: #00172E;
  --ink-2: #4A5568;
  --accent: #1B3A6B;
  --accent-quiet: #EEF2F8;
  --line: #D5DDE8;
  --focus: #3E67A3;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #00172E;
    --surface: #002246;
    --ink: #EEF2F8;
    --ink-2: #C6D3E8;
    --accent: #9DB3D5;
    --accent-quiet: #003366;
    --line: #2A4E86;
    --focus: #C6D3E8;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.65 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

.sprong { position: absolute; left: -9999px; top: 0; }
.sprong:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--surface); padding: 0.5rem 1rem; }

/* The bar: logo, the three pages, the languages. Wraps on a phone instead of shrinking. */
.balk {
  position: sticky; top: 0; z-index: 5;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem;
  padding: 0.75rem clamp(1rem, 4vw, 2.5rem);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none;
  font: 500 1.15rem/1 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 0.06em; }
.nav, .talen { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; list-style: none; margin: 0; padding: 0; }
.nav { flex: 1; }
.nav a, .talen a { display: inline-block; padding: 0.5rem 0.1rem; min-height: 44px; line-height: 1.75rem; text-decoration: none;
  font: 500 0.95rem/1.75rem 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 0.05em; }
.nav a[aria-current="page"] { border-bottom: 2px solid var(--accent); }
.talen a { color: var(--ink-2); font-size: 0.85rem; }
.talen a[aria-current="true"] { color: var(--accent); border-bottom: 2px solid var(--accent); }

main { max-width: 46rem; margin: 0 auto; padding: clamp(1.5rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2rem) 4rem; }
article + article { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--line); }

.merken-lijn { margin: 0 0 0.5rem; color: var(--ink-2); font: 500 0.8rem/1.4 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 0.12em; }
h1, h2, h3 { font-family: 'Oswald', sans-serif; font-weight: 500; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2rem, 6vw, 2.8rem); margin: 0 0 0.5rem; text-transform: uppercase; letter-spacing: 0.02em; }
h2 { font-size: 1.35rem; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.1rem; margin: 0 0 0.4rem; }
.datum, .vertaling { color: var(--ink-2); font-size: 0.95rem; margin: 0 0 0.25rem; }
.vertaling { font-style: italic; }
.intro { font-size: 1.15rem; margin-top: 1.25rem; }
ul { padding-left: 1.25rem; }
li { margin: 0.3rem 0; }

.inhoud { margin: 2rem 0; padding: 1rem 1.25rem; background: var(--accent-quiet); border-radius: 8px; }
.inhoud ol { margin: 0; padding-left: 1.25rem; columns: 2 16rem; column-gap: 2rem; }

.merken { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }
.merk { margin: 0; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.merk p { margin: 0.2rem 0; overflow-wrap: anywhere; }
.merk__wat { color: var(--ink-2); }
.label { display: inline-block; min-width: 5.5rem; color: var(--ink-2); font-size: 0.9rem; }
.klein { color: var(--ink-2); font-size: 0.9rem; }

.bedrijf { display: grid; gap: 0.5rem; margin: 0; }
.bedrijf div { display: grid; grid-template-columns: minmax(9rem, 14rem) 1fr; gap: 1rem; }
.bedrijf dt { color: var(--ink-2); }
.bedrijf dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 34rem) { .bedrijf div { grid-template-columns: 1fr; gap: 0; } }

.lijst { font-size: 1.15rem; }
.voet { padding: 2rem 1rem; text-align: center; color: var(--ink-2); font-size: 0.9rem; border-top: 1px solid var(--line); }

/* One language at a time once the script has picked one; all three without it. The
   separator between languages only makes sense when there is more than one on screen. */
.js [data-taal]:not(.actief) { display: none; }
.js article.actief { margin-top: 0; padding-top: 0; border-top: 0; }

/* On a phone the bar scrolls away: sticky, it would take a third of the screen. */
@media (max-width: 40rem) {
  .balk { position: static; gap: 0 1rem; }
  .nav { gap: 0 0.9rem; }
  .nav a, .talen a { font-size: 0.85rem; padding: 0.4rem 0; }
}
