/* Vroep: type and a live map of Amsterdam. No device frames or scroll hijacking.
   Every page is complete without JavaScript. */
@font-face {
  font-family: Inter;
  src: url('/fonts/inter-latin-opsz.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light dark;
  --canvas: #F5F6F1;
  --ink: #1D2417;
  --muted: #536047;
  --accent: #426000;
  --lime: #D3F36B;
  --line: #CCD1C3;
  --focus: #0066E0;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --space: clamp(3.5rem, 7vw, 7rem);
  --ease: cubic-bezier(.23, 1, .32, 1);
  --night: #0B0F09; --on-night: #F2F4EC; --on-night-muted: #B9C2AE;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #171A14;
    --ink: #F4F6EF;
    --muted: #C0C7B7;
    --accent: #D3F36B;
    --line: #454D3E;
    --focus: #66ADFF;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--canvas); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html:has(.page-home) { background: #0B0F09; }
body {
  margin: 0; color: var(--ink); background: var(--canvas);
  font: 400 1.0625rem/1.55 Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .23em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
:target { scroll-margin-top: 2rem; }
p, figure, blockquote { margin: 0; }
p, li, dd { text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: 590; text-wrap: balance; }
h1, h2 { overflow-wrap: anywhere; line-height: 1.03; letter-spacing: -.045em; }
h1 { font-size: clamp(2.6rem, 1.7rem + 4vw, 5rem); }
h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.6rem); }
h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -.02em; }
strong { font-weight: 620; }
.wrap {
  width: 100%; max-width: calc(75rem + 2 * var(--gutter)); margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}
.skip { position: absolute; top: -10rem; left: 1rem; z-index: 10; padding: 1rem; background: var(--ink); color: var(--canvas); }
.skip:focus { top: 1rem; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.4rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; text-decoration: none; }
.brand-word { font-weight: 720; font-size: 1.9rem; letter-spacing: -.06em; }
.brand-mark { width: 34px; height: 34px; }
.mark-field { fill: var(--lime); }
.mark-v, .mark-lines { fill: none; stroke: #1D2417; stroke-linecap: round; stroke-linejoin: round; }
.mark-v { stroke-width: 7; }
.mark-lines { stroke-width: 4.4; }
.masthead ul, .colophon ul { display: flex; flex-wrap: wrap; gap: .25rem 1.7rem; margin: 0; padding: 0; list-style: none; }
.masthead nav a, .colophon nav a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; font-size: .875rem; text-decoration: none; }
.masthead nav a[aria-current], .masthead nav a:hover, .colophon nav a:hover { text-decoration: underline; }
.lang { border-bottom: 1px solid var(--ink); }
.eyebrow { font-size: .8rem; font-weight: 580; letter-spacing: .04em; }
/* Home: the city is the page. A fixed night map of Amsterdam sits behind the
   chapters; the chapter crossing the middle of the screen sets what it shows.
   The poster image is the same map for readers without WebGL or JavaScript. */
.page-home { background: var(--night); color: var(--on-night); }
.page-home .masthead { position: relative; z-index: 3; color: var(--on-night); }
.page-home .lang { border-color: var(--on-night); }
.page-home main { position: relative; z-index: 1; margin-top: -6rem; }
.page-home :focus-visible { outline-color: #8CC4FF; }
.city { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--night); }
.city-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.city-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% 50%; }
.city.live .city-poster { opacity: 0; visibility: hidden; transition: opacity 900ms var(--ease), visibility 0s 900ms; }
.city-labels { position: absolute; inset: 0; pointer-events: none; }
.city-label {
  position: absolute; left: 0; top: 0; opacity: 0; translate: -50% calc(-100% - 14px);
  font-size: .8125rem; font-weight: 620; letter-spacing: .01em; white-space: nowrap; color: var(--on-night);
  text-shadow: 0 1px 2px #000, 0 0 12px #000;
}
.city-tag { translate: -50% calc(-100% - 10px); display: inline-flex; align-items: center; gap: .45rem; font-size: .875rem; transition: opacity 200ms; }
.city-tag::before { content: ''; width: 1.25rem; height: .8rem; border-radius: 2px; border: 1.5px solid #0B0F09; box-shadow: 0 0 0 1px rgba(242, 244, 236, .6); }
.city-tag-blue::before { background: #2A6FDB; }
.city-tag-yellow::before { background: #F5CF2E; }
/* Blue above its line, yellow below, so the two never overlap. */
.city-tag-yellow { translate: -50% 12px; }
/* Features: a plain list, each line a name and one sentence. */
.features { display: grid; gap: .9rem; margin: 0; padding: 0; list-style: none; }
.features li { border-top: 1px solid rgba(242, 244, 236, .16); }
/* Each feature is a button: the map shows the one you pick. */
.feature {
  display: grid; gap: .1rem; width: 100%; padding: .8rem .9rem .8rem 1rem; margin-left: -1rem; border: 0; border-left: 3px solid transparent;
  background: none; color: var(--on-night-muted); font: inherit; font-size: 1rem; line-height: 1.45; text-align: left; cursor: pointer; touch-action: manipulation;
}
.feature:hover strong { text-decoration: underline; text-underline-offset: .2em; }
.feature[aria-pressed="true"] { border-left-color: var(--lime); background: linear-gradient(90deg, rgba(211, 243, 107, .1), transparent 70%); color: var(--on-night); }
.features strong { color: var(--on-night); font-size: 1.0625rem; }
.city-closed { color: #FF6961; }
.city-zone { color: #FFB833; font-size: 1rem; }
/* Map icons: centred on their point. */
.city-icon { position: absolute; left: 0; top: 0; opacity: 0; translate: -50% -50%; pointer-events: none; }
.icon-sign { width: 26px; height: 26px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .8)); }
.icon-closed { width: 26px; height: 26px; }
/* A ferry from above: white hull, dark deck, drawn in CSS. */
.icon-boat { width: 40px; height: 17px; border-radius: 9px 4px 4px 9px; background: #F2F4EC; box-shadow: 0 0 0 2px rgba(11, 15, 9, .6), 0 0 14px rgba(255, 255, 255, .55); }
.icon-boat::after { content: ''; position: absolute; inset: 4px 12px 4px 9px; border-radius: 2px; background: #2C3A44; }
.icon-check { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--lime); color: #0B0F09; font-weight: 800; font-size: 17px; box-shadow: 0 0 18px rgba(211, 243, 107, .6); }
.city-say { translate: 14px -50%; font-size: 1.05rem; font-weight: 640; color: var(--lime); }
.city-say::before { content: '♪ '; font-weight: 400; }
.chapter { position: relative; min-height: 100svh; display: grid; align-items: center; pointer-events: none; }
.chapter-copy { display: grid; justify-items: start; gap: 1.25rem; pointer-events: none; }
.chapter-copy > * { pointer-events: auto; max-width: 30rem; }
.chapter-copy p { color: var(--on-night-muted); font-size: 1.0625rem; }
.chapter h2 { font-size: clamp(2.4rem, 1.5rem + 3.2vw, 4.4rem); color: var(--on-night); max-width: 12ch; }
.chapter-hero { min-height: 100svh; align-items: center; }
.chapter-hero h1 { font-size: clamp(3.4rem, 1.6rem + 6.6vw, 7.4rem); line-height: .96; letter-spacing: -.06em; max-width: none; }
.chapter-hero .lead { color: var(--on-night); font-size: clamp(1.125rem, .95rem + .55vw, 1.4rem); line-height: 1.45; max-width: 27rem; }
.accent, .word-road { color: var(--lime); }
.word-path { color: #66ADFF; }
.page-home .eyebrow { color: var(--on-night-muted); text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; }
.page-home .status { color: var(--on-night); }
.page-home .status::before { background: var(--lime); box-shadow: 0 0 0 4px rgba(211, 243, 107, .18); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.6rem; }
.button { display: inline-flex; align-items: center; min-height: 48px; padding: .7rem 1.2rem; background: var(--lime); color: #1D2417; font-weight: 620; text-decoration: none; border-radius: 999px; }
.status { display: inline-flex; gap: .65rem; align-items: center; min-height: 44px; font-size: .9375rem; font-weight: 580; }
.status::before { content: ''; width: .55rem; height: .55rem; background: var(--accent); border-radius: 50%; }
.text-link { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; font-size: .9375rem; font-weight: 580; }
.text-link::after { content: '↗'; text-decoration: none; }
.scroll-cue {
  position: absolute; bottom: max(1.5rem, env(safe-area-inset-bottom)); left: 0; right: 0;
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-night-muted);
}
.scroll-cue::after { content: ''; display: block; width: 1px; height: 2.5rem; margin-top: .6rem; background: linear-gradient(var(--on-night-muted), transparent); }
/* The plate switch looks like the plates themselves: blue and yellow. */
.plate-switch { display: inline-flex; gap: .5rem; flex-wrap: wrap; }
.plate {
  touch-action: manipulation; min-height: 44px; padding: .55rem 1rem .55rem .85rem; border: 1px solid rgba(242, 244, 236, .28); border-radius: 999px;
  background: transparent; color: var(--on-night); font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: .55rem;
}
.plate::before { content: ''; width: 1.5rem; height: .95rem; border-radius: 3px; border: 1.5px solid #0B0F09; box-shadow: 0 0 0 1px rgba(242, 244, 236, .5); }
.plate-blue::before { background: #2A6FDB; }
.plate-yellow::before { background: #F5CF2E; }
.plate[aria-pressed="true"] { background: var(--on-night); color: #0B0F09; border-color: var(--on-night); }
.plate:hover { border-color: var(--on-night); }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: 0; padding: 0; list-style: none; font-size: .875rem; color: var(--on-night-muted); }
.legend li { display: inline-flex; align-items: center; gap: .55rem; }
.legend li::before { content: ''; width: 1.8rem; height: 4px; border-radius: 2px; }
/* The same line styles as the app: roads lime, cycle paths sign blue with a white lane stripe. */
.key-road::before { background: var(--lime); }
.key-path::before { height: 6px; background: repeating-linear-gradient(90deg, #fff 0 4px, transparent 4px 9px) center / 100% 2px no-repeat, #66ADFF; }
.chapter-copy strong { color: var(--on-night); }
.trip { display: grid; gap: .2rem; margin: 0; font-size: 1.0625rem; }
.trip div { display: flex; gap: 1rem; align-items: baseline; padding-block: .55rem; border-top: 1px solid rgba(242, 244, 236, .16); }
.trip dt { width: 4.5rem; font-weight: 620; color: var(--on-night); }
.trip dd { margin: 0; color: var(--on-night-muted); font-variant-numeric: tabular-nums; }
.trip div { transition: opacity 200ms; }
main:has(.city[data-plate="yellow"]) .trip-blue, main:has(.city:not([data-plate="yellow"])) .trip-yellow { opacity: .5; }
.note { font-size: .8125rem !important; }
.spoken { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem) !important; line-height: 1.05; letter-spacing: -.035em; font-weight: 560; color: var(--lime) !important; }
.chapter .big { font-size: clamp(4.5rem, 2rem + 10vw, 11rem); line-height: .9; letter-spacing: -.07em; }
.chapter-copy .large { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); line-height: 1.2; letter-spacing: -.03em; color: var(--on-night); }
.signs-first { color: var(--on-night) !important; font-weight: 620; }
.chapter-end { padding-block: 8rem 6rem; }
.faq-list { width: 100%; }
.page-home details { border-color: rgba(242, 244, 236, .18); }
.page-home details p { color: var(--on-night-muted); }
.page-home .colophon { position: relative; z-index: 1; background: var(--night); border-top-color: rgba(242, 244, 236, .14); }
.page-home .colophon p { color: var(--on-night-muted); }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; padding-block: 1rem; list-style: none; cursor: pointer; font-weight: 580; line-height: 1.4; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-weight: 400; font-size: 1.5rem; flex: none; }
details[open] summary::after { content: '−'; }
details p { color: var(--muted); padding-bottom: 1.25rem; font-size: .9375rem; }
.colophon { border-top: 1px solid var(--line); padding-block: 2rem max(2rem, env(safe-area-inset-bottom)); }
.footer-top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.footer-word { font-size: clamp(3rem, 8vw, 6rem); line-height: 1; font-weight: 650; letter-spacing: -.07em; text-decoration: none; }
.page a, .colophon p a { display: inline-block; min-height: 44px; min-width: 44px; align-content: center; }
.colophon p { color: var(--muted); font-size: .75rem; max-width: 60rem; margin-top: .8rem; }
/* The existing legal and support content is left intact. */
.page { max-width: calc(45rem + 2 * var(--gutter)); display: grid; gap: 1.1rem; padding-block: 3rem var(--space); overflow-wrap: anywhere; }
.page h1 { margin-bottom: 1rem; }
.page h2 { font-size: clamp(1.6rem, 1.2rem + 1vw, 2.25rem); letter-spacing: -.035em; margin-top: 2rem; line-height: 1.15; }
.page h3 { margin-top: 1rem; }
.page p, .page li, .page dd { max-width: 65ch; }
.page ul, .page ol { margin: 0; padding-left: 1.25rem; display: grid; gap: .6rem; }
.intro { color: var(--muted); font-size: 1.25rem; line-height: 1.5; }
.note { color: var(--muted); font-size: .875rem; }
.notice { border-left: 2px solid var(--accent); padding-left: 1.2rem; }
.caps { font-weight: 580; font-size: .9375rem; }
.qa { margin: 1rem 0 0; }
.qa dt { font-size: 1.2rem; font-weight: 600; border-top: 1px solid var(--line); padding-top: 1.3rem; }
.qa dd { color: var(--muted); margin: .6rem 0 1.5rem; }
.table { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .875rem; }
th, td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: .8rem .8rem .8rem 0; }
/* The signs to look out for: the official sign, its plate where it has one, and what it means per plate. */
.signs { list-style: none; padding: 0 !important; display: grid !important; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 2rem 2.5rem !important; margin: .5rem 0 1rem; }
.signs li { display: grid; gap: .35rem; align-content: start; }
.signs strong { font-size: 1.0625rem; margin-top: .6rem; }
.signs li > span:last-child { color: var(--muted); font-size: .9375rem; }
.sign-art { display: grid; justify-items: start; gap: 6px; min-height: 104px; align-content: end; }
.sign-art img { height: 104px; width: auto; }
.sign-art img[width="132"] { height: 50px; }
/* The text plate as it hangs under the sign: white, black edge, black letters. */
.sign-plate { display: block; width: 112px; padding: 4px 0; border: 3px solid #111; border-radius: 5px; background: #fff; color: #111; font-size: 13px; line-height: 1.15; font-weight: 600; text-align: center; letter-spacing: .01em; }
.sign-row { display: flex !important; flex-wrap: wrap; gap: 1.5rem !important; list-style: none; padding: 1rem 0 !important; }
.sign-row li { display: flex; gap: .8rem; align-items: center; }
.sign-row img { height: 56px; width: auto; }
.sign-row span { display: grid; font-size: .875rem; color: var(--muted); }
.sign-row strong { color: var(--ink); }
.draft-banner, mark.todo { background: #FFB833; color: #1D2417; padding: .5rem 1rem; }
/* The headline settles once. The city's own motion lives in the script and
   stops entirely for reduced motion. Words never start invisible. */
@media (prefers-reduced-motion: no-preference) {
  .chapter-hero .chapter-copy > * { animation: settle 900ms var(--ease) both; }
  .chapter-hero .chapter-copy > :nth-child(2) { animation-delay: 80ms; }
  .chapter-hero .chapter-copy > :nth-child(3) { animation-delay: 160ms; }
  .chapter-hero .chapter-copy > :nth-child(4) { animation-delay: 240ms; }
  .text-link::after { transition: transform 160ms var(--ease); }
  .plate { transition: background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease); }
  @media (hover: hover) and (pointer: fine) {
    .text-link:hover::after { transform: translate(2px, -2px); }
  }
}
@keyframes settle { from { transform: translateY(14px); } }
@media (max-width: 55rem) {
  .masthead { align-items: start; flex-wrap: wrap; gap: .6rem 1.5rem; }
  .masthead ul { gap: 0 1.2rem; }
}
/* Phones: the city fills the top of the screen, words sit below it on a
   soft fade to night so they stay readable over any street. */
@media (max-width: 40rem), (max-aspect-ratio: 1/1) {
  .chapter { align-items: end; }
  .chapter-copy { padding-block: 40svh 3.5rem; background: linear-gradient(to bottom, transparent 0, transparent calc(40svh - 7rem), rgba(11, 15, 9, .88) calc(40svh - .5rem), rgba(11, 15, 9, .94)); gap: 1rem; }
  .chapter-hero .chapter-copy { padding-bottom: 5.5rem; }
  .chapter-end .chapter-copy { padding-top: 30svh; }
  .chapter-end { padding-block: 0; }
}
@media (max-width: 40rem) {
  .masthead { padding-block: 1rem .5rem; }
  .masthead nav { width: 100%; }
  .masthead ul { justify-content: space-between; gap: 0 .6rem; }
  .masthead nav a { font-size: .75rem; }
  .chapter-hero h1 { font-size: clamp(3rem, 1.4rem + 8vw, 4.4rem); }
  .footer-top { gap: 1.5rem; }
  .colophon ul { gap: 0 1.2rem; }
}
@media (forced-colors: active) {
  .button, .status, .plate { border: 1px solid ButtonText; }
  .city { display: none; }
  .mark-field { fill: Canvas; stroke: CanvasText; }
  .mark-v, .mark-lines { stroke: CanvasText; }
  .status::before { background: CanvasText; }
}
@media print {
  .masthead nav, .city, .plate-switch { display: none; }
  body { background: white; color: black; }
  * { animation: none !important; }
}
/* A fade to night under the words, so streets never run through them. */
.city::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(11, 15, 9, .94) 0, rgba(11, 15, 9, .86) 28%, rgba(11, 15, 9, .4) 44%, rgba(11, 15, 9, 0) 58%); }
@media (max-width: 40rem), (max-aspect-ratio: 1/1) {
  .city::after { background: linear-gradient(rgba(11, 15, 9, .9) 0, rgba(11, 15, 9, 0) 9rem); }
}

/* The other pages open on the same night map, with the title over it, so the
   whole site feels like one map. Headings carry the app's road and path line. */
body:not(.page-home) { overflow-x: clip; }
body:not(.page-home) .masthead { position: absolute; top: 0; left: 0; right: 0; z-index: 2; color: var(--on-night); }
body:not(.page-home) .masthead .lang { border-color: var(--on-night); }
body:not(.page-home) .page { padding-top: 0; }
.page > h1:first-child {
  margin: 0 calc(50% - 50vw) 1rem; padding: 10rem calc(50vw - 50%) 2.6rem;
  min-height: 21rem; display: flex; align-items: flex-end; color: var(--on-night);
  background: linear-gradient(to top, var(--night) 0, rgba(11, 15, 9, .15) 45%, rgba(11, 15, 9, .45)), url('/img/city/poster-1600.webp') 62% 45% / cover var(--night);
}
.page h2::before { content: ''; display: block; width: 2.4rem; height: 4px; margin-bottom: .9rem; border-radius: 2px; background: linear-gradient(90deg, var(--lime) 0 50%, #66ADFF 50%); }
.page ul:not(.signs):not(.sign-row) > li::marker { color: #66ADFF; }
@media (max-width: 40rem) {
  .page > h1:first-child { padding-top: 9.5rem; min-height: 17rem; font-size: clamp(2.3rem, 1.6rem + 4vw, 3rem); }
}
