/* Netherlands Stay Guide
   Delft-tile cobalt on glazed cream, with Dutch orange as the one hot accent.
   Canal-house gables frame the photographs; each city gets its own gable.
   Regions: coast (cobalt), Randstad middle (orange), south (Heuvelland green).
   Type: Young Serif (display) + Instrument Sans (text). */
:root {
  --cobalt: #1d3f9e;
  --cobalt-deep: #10225a;
  --night: #0b1736;
  --glaze: #f5efe2;
  --glaze-2: #ece3d0;
  --paper: #fbf8f1;
  --ink: #141a2e;
  --muted: #5a5f73;
  --line: #d9cfb9;
  --oranje: #ec6a1c;
  --oranje-ink: #b2470a;
  --brick: #9a3b24;
  --water: #16306f;

  --coast: #3a63d1;
  --coast-ink: #1d3f9e;
  --rand: #ec6a1c;
  --rand-ink: #a8430a;
  --south: #3f8c5c;
  --south-ink: #22603a;

  --header-h: 68px;
  --ease-out: cubic-bezier(0.2, 0.75, 0.15, 1);
  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --text: "Instrument Sans", system-ui, sans-serif;

  /* Delft tile grid: hairline joints, quarter-circle corner motifs, a dot in the middle. */
  --tile: 72px;
  --tile-ink: color-mix(in srgb, var(--cobalt) 10%, transparent);
}

.zone-coast { --z: var(--coast); --z-ink: var(--coast-ink); }
.zone-rand { --z: var(--rand); --z-ink: var(--rand-ink); }
.zone-south { --z: var(--south); --z-ink: var(--south-ink); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 48px); }
body.delft {
  margin: 0;
  background-color: var(--glaze);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
.gable-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--cobalt); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--oranje-ink); text-decoration-thickness: 2px; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0 0 0.4em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.8rem, 6vw, 5.4rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.3rem); }
h3 { font-size: 1.4rem; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: normal; color: var(--oranje); }
p { margin: 0 0 0.9em; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--oranje); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--paper);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 40;
}
.skip:focus { top: 12px; }
.wrap {
  width: min(1200px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}
.eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--cobalt-deep);
  color: white;
  box-shadow: 0 3px 0 var(--oranje);
}
.header-inner {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.brand { display: flex; gap: 12px; align-items: center; min-width: 0; color: white; text-decoration: none; }
.brand:hover { color: white; }
.brand-mark { width: 34px; height: 34px; flex: 0 0 auto; transition: transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1); transform-origin: bottom center; }
.brand-mark .bm-house { fill: var(--glaze); }
.brand-mark .bm-win { fill: var(--cobalt-deep); transition: fill 0.3s; }
.brand:hover .brand-mark { transform: rotate(-4deg) scale(1.06); }
.brand:hover .brand-mark .bm-win { fill: var(--oranje); }
.brand-name {
  font-family: var(--display);
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.nav-links { display: flex; flex-wrap: wrap; gap: 4px; }
.nav-links a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 7px 12px;
  border-radius: 3px;
  transition: background 0.25s, color 0.25s;
}
.nav-links a:hover { background: rgba(255, 255, 255, 0.1); color: white; }
.nav-links a[aria-current="page"] { background: var(--glaze); color: var(--cobalt-deep); font-weight: 600; }
.nav-drawer { display: none; position: relative; }
.nav-drawer summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  color: white;
}
.nav-drawer summary::-webkit-details-marker { display: none; }
.nav-drawer[open] summary { background: var(--oranje); border-color: var(--oranje); }

/* Reading trail under the header: five tiles fill with glaze as you pass each place */
.trail {
  position: relative;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  height: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  overflow: hidden;
  transition: height 0.4s var(--ease-out), opacity 0.3s;
}
.trail.is-visible { height: 36px; opacity: 1; }
.trail-line { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: rgba(255, 255, 255, 0.16); }
.trail-fill { position: absolute; inset: 0; background: var(--oranje); transform: scaleX(0); transform-origin: left; }
.trail-stop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.6);
  background: var(--cobalt-deep);
  padding: 0 10px 0 0;
}
.trail-stop:last-of-type { padding: 0 0 0 10px; flex-direction: row-reverse; }
.trail-stop::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: var(--cobalt-deep);
  transform: rotate(45deg);
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}
.trail-stop.is-passed { color: white; }
.trail-stop.is-passed::before { border-color: var(--z); background: var(--z); }
.trail-stop.is-current::before { transform: rotate(45deg) scale(1.3); }

/* Entry notice on secondary pages */
.entry-note { background: var(--glaze-2); border-bottom: 1px solid var(--line); }
.entry-note-inner { padding: 14px 0; display: flex; gap: 6px 18px; align-items: baseline; flex-wrap: wrap; }
.entry-kicker { margin: 0; font-weight: 700; color: var(--cobalt); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.entry-note p { margin: 0; max-width: 60rem; font-size: 0.9rem; color: var(--muted); }
.entry-note a { font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  padding-top: clamp(32px, 4vw, 56px);
  background-color: var(--glaze);
  background-image:
    radial-gradient(circle at 50% 50%, var(--tile-ink) 0 2.5px, transparent 3.5px),
    radial-gradient(circle at 0 0, var(--tile-ink) 0 9px, transparent 10px),
    radial-gradient(circle at 100% 0, var(--tile-ink) 0 9px, transparent 10px),
    radial-gradient(circle at 0 100%, var(--tile-ink) 0 9px, transparent 10px),
    radial-gradient(circle at 100% 100%, var(--tile-ink) 0 9px, transparent 10px),
    linear-gradient(var(--tile-ink) 1px, transparent 1px),
    linear-gradient(90deg, var(--tile-ink) 1px, transparent 1px);
  background-size: var(--tile) var(--tile);
  background-position: center top;
}
.hero::after {
  /* fade the tiles out toward the street so the houses read cleanly */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--glaze) 40%, transparent) 30%, var(--glaze) 62%);
}
.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
}
.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  animation: fade 0.8s ease 0.1s both;
}
.hero-kicker span {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cobalt);
  padding: 5px 10px;
  border: 1.5px solid var(--cobalt);
  background: var(--paper);
}
.hero-kicker span:nth-child(2) { background: var(--cobalt); color: white; }
.hero-title {
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--cobalt-deep);
  margin: 0 0 0.32em;
  text-wrap: initial;
}
.hero-title .ln { display: block; overflow: hidden; padding: 0 0.04em 0.1em 0; margin-bottom: -0.1em; }
.hero-title .ln > span { display: inline-block; animation: rise 1s var(--ease-out) both; }
.hero-title .ln:nth-child(1) > span { animation-delay: 0.15s; }
.hero-title .ln:nth-child(2) > span { animation-delay: 0.28s; }
.hero-title .ln:nth-child(3) > span { animation-delay: 0.41s; }
.hero-title em { font-style: normal; color: var(--oranje); position: relative; }
.hero-title em::after {
  content: "";
  position: absolute;
  left: 0.04em;
  right: 0.1em;
  bottom: 0.04em;
  height: 0.09em;
  background: var(--cobalt);
  transform: scaleX(0);
  transform-origin: left;
  animation: underline 0.8s var(--ease-out) 1.1s forwards;
}
@keyframes underline { to { transform: scaleX(1); } }
@keyframes rise { from { transform: translateY(110%); } to { transform: none; } }
.lede { max-width: 34rem; font-size: 1.15rem; color: var(--muted); margin: 0; animation: fade 0.9s ease 0.8s both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.hero-side { display: grid; gap: 16px; animation: fade 0.9s ease 0.5s both; }
.station-clock {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1.5px solid var(--cobalt);
  box-shadow: 6px 6px 0 var(--cobalt);
}
.station-clock svg { width: 78px; height: 78px; flex: 0 0 auto; }
.sc-face { fill: white; stroke: var(--cobalt-deep); stroke-width: 4; }
.sc-ticks rect { fill: var(--cobalt-deep); }
.sc-hour, .sc-min { fill: var(--cobalt-deep); transform-origin: 50px 50px; transition: transform 0.6s cubic-bezier(0.3, 1.6, 0.5, 1); }
.sc-pin { fill: var(--oranje); }
.station-clock p { margin: 0; display: grid; line-height: 1.2; }
.sc-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.station-clock .clock { font-family: var(--display); font-size: 2.3rem; color: var(--cobalt-deep); font-variant-numeric: tabular-nums; line-height: 1.1; }
.sc-zone { font-size: 0.8rem; color: var(--muted); }

.hero-note {
  padding: 14px 16px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--muted);
  background: var(--paper);
  border-left: 4px solid var(--oranje);
}
.hero-note p { margin: 0; }
.hero-note .hero-note-title { font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.hero-note a { font-weight: 600; }

/* The street: five gables, a stone quay, and the canal that reflects them */
.street { --row: clamp(170px, 26vw, 340px); --gap: clamp(6px, 1.1vw, 16px); margin-top: clamp(28px, 3.5vw, 48px); }
.street-row, .canal-row { display: flex; gap: var(--gap); align-items: flex-end; }
.street-row { height: calc(var(--row) + 44px); }
.house, .reflection { flex: var(--w) 1 0; min-width: 0; }
.house {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  text-decoration: none;
  color: var(--ink);
}
.house-face {
  position: relative;
  display: block;
  height: calc(var(--row) * var(--hf));
  background: var(--cobalt-deep);
  transform-origin: bottom center;
  animation: build 0.9s var(--ease-out) both;
  animation-delay: calc(0.35s + var(--i) * 0.09s);
  transition: transform 0.5s var(--ease-out), filter 0.4s;
}
.house-face::after {
  /* a band of the region colour at the door line */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 7px;
  background: var(--z);
}
.house-face img, .reflection img { width: 100%; height: 100%; object-fit: cover; }
.house-face img { transition: transform 0.9s var(--ease-out); }
.gable-step :is(.house-face), .reflection.gable-step, .gable-step.place-frame { clip-path: url(#g-step); }
.gable-neck :is(.house-face), .reflection.gable-neck, .gable-neck.place-frame { clip-path: url(#g-neck); }
.gable-bell :is(.house-face), .reflection.gable-bell, .gable-bell.place-frame { clip-path: url(#g-bell); }
.gable-spout :is(.house-face), .reflection.gable-spout, .gable-spout.place-frame { clip-path: url(#g-spout); }
.gable-cornice :is(.house-face), .reflection.gable-cornice, .gable-cornice.place-frame { clip-path: url(#g-cornice); }
@keyframes build { from { transform: scaleY(0); } to { transform: none; } }
.house-name {
  display: block;
  height: 44px;
  padding-top: 10px;
  font-family: var(--display);
  font-size: clamp(0.72rem, 1.6vw, 1.15rem);
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--glaze-2);
  border-top: 3px solid var(--ink);
  transition: background 0.3s, color 0.3s;
}
.house:hover .house-face, .house:focus-visible .house-face { transform: translateY(-8px); }
.house:hover .house-face img, .house:focus-visible .house-face img { transform: scale(1.08); }
.house:hover .house-name, .house:focus-visible .house-name { background: var(--z); color: white; }
.street-row:hover .house:not(:hover) .house-face { filter: saturate(0.4) brightness(0.85); }

.canal {
  position: relative;
  overflow: hidden;
  height: clamp(64px, 9vw, 130px);
  background: var(--water);
}
.canal::after {
  /* ripples drifting across the reflection */
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(180deg, transparent 0 7px, rgba(255, 255, 255, 0.09) 7px 8px, transparent 8px 15px),
    linear-gradient(180deg, rgba(22, 48, 111, 0.15), var(--water) 95%);
  animation: drift 7s linear infinite;
  background-size: 100% 15px, 100% 100%;
}
@keyframes drift { from { background-position: 0 0, 0 0; } to { background-position: 0 15px, 0 0; } }
.canal-row { position: absolute; left: 0; right: 0; top: 0; align-items: flex-start; }
.reflection {
  display: block;
  height: calc(var(--row) * var(--hf));
  transform: scaleY(-1);
  opacity: 0.42;
  filter: blur(1.5px) saturate(0.7);
  animation: fade 1.2s ease both;
  animation-delay: calc(0.9s + var(--i) * 0.09s);
}
.street-caption { margin: 10px auto 0; font-size: 0.8rem; color: var(--muted); }

/* ---------- Index of places ---------- */
.index { padding: clamp(64px, 8vw, 104px) 0 24px; }
.index-title { color: var(--cobalt-deep); margin-bottom: 28px; }
.index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 3px solid var(--ink);
}
.index-list li { border-right: 1px solid var(--line); }
.index-list li:last-child { border-right: 0; }
.index-list a {
  position: relative;
  display: grid;
  gap: 6px;
  align-content: start;
  height: 100%;
  padding: 18px 18px 46px;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.3s;
}
.index-list a::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -3px;
  height: 3px;
  background: var(--z);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.index-list a:hover { background: var(--paper); }
.index-list a:hover::before { transform: scaleX(1); }
.index-no { font-family: var(--display); font-size: 0.95rem; color: var(--z-ink); }
.index-meta { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.index-list strong { font-family: var(--display); font-weight: 400; font-size: 1.7rem; line-height: 1.05; letter-spacing: -0.015em; }
.index-list em { font-style: normal; font-size: 0.92rem; line-height: 1.45; color: var(--muted); }
.index-arrow {
  position: absolute;
  left: 18px;
  bottom: 14px;
  font-weight: 700;
  color: var(--z-ink);
  transition: transform 0.35s var(--ease-out);
}
.index-list a:hover .index-arrow { transform: translateY(5px); }

/* ---------- Place sections ---------- */
.wrap { counter-reset: house; }
.place {
  counter-increment: house;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding: clamp(64px, 8vw, 104px) 0;
  border-top: 1px solid var(--line);
}
.index + .place { border-top: 0; }
.place figure { margin: 0; position: sticky; top: calc(var(--header-h) + 56px); }
.place-frame {
  position: relative;
  display: block;
  height: min(600px, 74vh);
  background: var(--z);
  overflow: hidden;
}
.place-frame img { width: 100%; height: 100%; object-fit: cover; }
#denhaag .place-frame { clip-path: url(#g-spout); }
#rotterdam .place-frame { clip-path: url(#g-cornice); }
#amsterdam .place-frame { clip-path: url(#g-neck); }
#utrecht .place-frame { clip-path: url(#g-step); }
#maastricht .place-frame { clip-path: url(#g-bell); }
.place figure::after {
  /* the quay line under the house */
  content: "";
  display: block;
  height: 8px;
  background: var(--z);
  border-top: 3px solid var(--ink);
}
.place figcaption { margin-top: 10px; font-size: 0.84rem; color: var(--muted); }
.place figure { display: flex; flex-direction: column; }
.place figure::after { order: 1; }
.place figcaption { order: 2; }
.place-flip figure { order: 2; }
.place-text::before {
  content: "Nº " counter(house, decimal-leading-zero);
  display: block;
  font-family: var(--display);
  font-size: clamp(4rem, 9vw, 7.5rem);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--z);
  margin-bottom: 18px;
}
.place .eyebrow { color: var(--z-ink); }
.place h2 { font-size: clamp(2.8rem, 5.6vw, 5rem); letter-spacing: -0.03em; color: var(--cobalt-deep); margin-bottom: 0.2em; }
.local-time {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 1.4em;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: white;
  background: var(--cobalt-deep);
}
.local-time .clock { font-weight: 700; color: var(--oranje); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

/* Reveal: the house is raised from the quay when it comes into view */
html.js .will-reveal .place-frame { transform: scaleY(0.04); transform-origin: bottom; transition: transform 1.1s var(--ease-out); }
html.js .will-reveal .place-frame img { transform: scale(1.18); transition: transform 1.8s var(--ease-out); }
html.js .will-reveal figcaption { opacity: 0; transition: opacity 0.6s ease 0.7s; }
html.js .will-reveal.is-in .place-frame, html.js .will-reveal.is-in .place-frame img { transform: none; }
html.js .will-reveal.is-in figcaption { opacity: 1; }

/* Sample stays: Delft tiles, cobalt double frame and corner motifs */
.stay {
  --c: var(--cobalt);
  position: relative;
  margin-top: 18px;
  padding: 10px;
  background:
    radial-gradient(circle at 0 0, var(--c) 0 13px, transparent 14px),
    radial-gradient(circle at 100% 0, var(--c) 0 13px, transparent 14px),
    radial-gradient(circle at 0 100%, var(--c) 0 13px, transparent 14px),
    radial-gradient(circle at 100% 100%, var(--c) 0 13px, transparent 14px),
    var(--paper);
  box-shadow: inset 0 0 0 1px var(--line), 0 1px 0 var(--line);
  transition: transform 0.45s cubic-bezier(0.3, 1.5, 0.5, 1), box-shadow 0.3s;
}
.stay:hover { transform: translateY(-3px) rotate(-0.6deg); box-shadow: inset 0 0 0 1px var(--line), 5px 5px 0 var(--z); }
.stay-body {
  padding: 20px 26px 10px;
  border: 1.5px solid var(--c);
  outline: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  outline-offset: -6px;
}
.sample-flag {
  display: inline-block;
  margin: 0 0 10px;
  padding: 3px 9px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: white;
  background: var(--z-ink);
}
.stay h3 { margin-bottom: 0.35em; color: var(--cobalt-deep); }
.stay-limit { color: var(--muted); font-size: 0.84rem; font-style: italic; }

/* ---------- Travel notes ---------- */
.notes {
  padding: clamp(64px, 8vw, 104px) 0 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 56px;
}
.notes-intro { position: sticky; top: calc(var(--header-h) + 56px); align-self: start; }
.notes-intro h2 { color: var(--cobalt-deep); }
.note-list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.note-list div {
  position: relative;
  padding: 22px 22px 18px;
  background: var(--paper);
  border-top: 4px solid var(--cobalt);
  box-shadow: 0 1px 0 var(--line);
  counter-increment: note;
}
.note-list div:nth-child(3n + 2) { border-top-color: var(--oranje); }
.note-list div:nth-child(3n) { border-top-color: var(--south); }
.note-list dt { font-family: var(--display); font-size: 1.3rem; line-height: 1.1; color: var(--cobalt-deep); margin-bottom: 10px; }
.note-list dd { margin: 0; font-size: 0.97rem; }

/* ---------- Casino note: an orange block with a stepped gable top ---------- */
.split-note {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  margin: 72px 0 104px;
  padding: 88px 48px 48px;
  background: var(--oranje);
  color: #2a1204;
  clip-path: polygon(0 48px, 18% 48px, 18% 24px, 30% 24px, 30% 0, 70% 0, 70% 24px, 82% 24px, 82% 48px, 100% 48px, 100% 100%, 0 100%);
}
.split-note .eyebrow { color: #4a1f05; }
.split-note h2 { max-width: 17ch; color: white; }
.split-note p { color: #2a1204; max-width: 44rem; margin: 0; }
.text-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--cobalt-deep);
  color: white;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 4px 4px 0 #2a1204;
  transition: transform 0.2s, box-shadow 0.2s;
}
.text-link:hover { color: white; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #2a1204; }
.text-link:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #2a1204; }

/* ---------- Prose pages ---------- */
.prose.wrap {
  position: relative;
  width: min(820px, calc(100% - 48px));
  background: var(--paper);
  margin-top: 36px;
  margin-bottom: 80px;
  padding: 72px 64px 76px;
  border: 1.5px solid var(--cobalt);
  box-shadow: 8px 8px 0 var(--cobalt);
}
.prose.wrap::before {
  /* a strip of tiles along the top edge */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 28px;
  border-bottom: 1.5px solid var(--cobalt);
  background-color: var(--glaze);
  background-image:
    radial-gradient(circle at 50% 50%, var(--cobalt) 0 3px, transparent 4px),
    radial-gradient(circle at 0 0, var(--cobalt) 0 7px, transparent 8px),
    radial-gradient(circle at 100% 0, var(--cobalt) 0 7px, transparent 8px),
    radial-gradient(circle at 0 100%, var(--cobalt) 0 7px, transparent 8px),
    radial-gradient(circle at 100% 100%, var(--cobalt) 0 7px, transparent 8px);
  background-size: 28px 28px;
}
.prose h1 { color: var(--cobalt-deep); letter-spacing: -0.03em; animation: rise-soft 0.9s var(--ease-out) both; }
@keyframes rise-soft { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.prose .eyebrow { color: var(--oranje-ink); }
.prose h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-top: 1.7em; color: var(--cobalt-deep); }
.prose h3 { margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin: 0 0 0.6rem; }
.prose li::marker { color: var(--oranje); content: "◆  "; font-size: 0.7em; }
.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 20px 0 8px;
  padding: 0 0 26px;
  border-bottom: 1px solid var(--line);
}
.page-nav a {
  font-weight: 600;
  font-size: 0.84rem;
  text-decoration: none;
  color: var(--cobalt-deep);
  padding: 6px 12px;
  border: 1.5px solid var(--cobalt);
  background: white;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.page-nav a:hover { background: var(--cobalt); color: white; transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--oranje); }
.prose code { font-size: 0.88em; background: color-mix(in srgb, var(--cobalt) 9%, white); color: var(--cobalt-deep); padding: 1px 5px; }
.contact-form { display: grid; gap: 16px; margin-top: 16px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.contact-form input, .contact-form textarea {
  font: inherit;
  font-weight: 400;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 0;
  background: white;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 4px 4px 0 var(--cobalt); }
.contact-form button {
  justify-self: start;
  font: inherit;
  font-weight: 600;
  color: white;
  background: var(--oranje-ink);
  border: 0;
  padding: 13px 24px;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--cobalt-deep);
  transition: transform 0.15s, box-shadow 0.15s;
}
.contact-form button:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--cobalt-deep); }
.contact-form button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--cobalt-deep); }
.form-result { padding: 14px 16px; background: color-mix(in srgb, var(--oranje) 16%, white); border-left: 4px solid var(--oranje); animation: rise-soft 0.5s var(--ease-out) both; }
.form-hint { color: var(--muted); font-size: 0.9rem; }

/* ---------- Footer: cobalt with a full Delft tile field ---------- */
.site-footer {
  position: relative;
  color: #c8d2ef;
  padding: 80px 0 32px;
  font-size: 0.95rem;
  background-color: var(--night);
  background-image:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.07) 0 3px, transparent 4px),
    radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.06) 0 12px, transparent 13px),
    radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.06) 0 12px, transparent 13px),
    radial-gradient(circle at 0 100%, rgba(255, 255, 255, 0.06) 0 12px, transparent 13px),
    radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.06) 0 12px, transparent 13px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 88px 88px;
  border-top: 6px solid var(--oranje);
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.7fr 1.1fr; gap: 40px; }
.footer-mark {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: white;
  margin-bottom: 0.4em;
}
.site-footer a { color: white; text-decoration: none; }
.site-footer a:hover { color: var(--oranje); }
.site-footer nav { display: grid; gap: 8px; align-content: start; }
.credits ul { margin: 0; padding-left: 1rem; }
.footer-end {
  width: min(1200px, calc(100% - 48px));
  margin: 44px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #8e9bc4;
  font-size: 0.88rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .index-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index-list li { border-right: 0; border-bottom: 1px solid var(--line); }
  .index-list li:nth-child(odd) { border-right: 1px solid var(--line); }
  .index-list li:last-child { grid-column: 1 / -1; border-right: 0; }
}
@media (max-width: 980px) {
  :root { --header-h: 60px; }
  .nav-bar { display: none; }
  .nav-drawer { display: block; }
  .nav-drawer nav {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    width: min(280px, calc(100vw - 32px));
    padding: 8px;
    background: var(--paper);
    border: 1.5px solid var(--cobalt);
    box-shadow: 6px 6px 0 var(--cobalt);
    transform-origin: top right;
    z-index: 10;
    animation: drawer 0.3s var(--ease-out);
  }
  .nav-drawer .nav-links { display: grid; gap: 0; }
  .nav-drawer .nav-links a { padding: 10px 12px; color: var(--ink); }
  .nav-drawer .nav-links a:hover { background: var(--glaze); color: var(--ink); }
  .nav-drawer .nav-links a[aria-current="page"] { background: var(--cobalt); color: white; }
  @keyframes drawer { from { opacity: 0; transform: scale(0.94) translateY(-6px); } to { opacity: 1; transform: none; } }

  .trail-stop span { display: none; }
  .trail-stop.is-current span { display: inline; }

  .hero-top { grid-template-columns: 1fr; gap: 28px; }
  .hero-side { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .place, .place-flip { grid-template-columns: 1fr; gap: 24px; }
  .place figure { position: static; }
  .place-flip figure { order: 0; }
  .place-frame { height: min(420px, 62vh); }
  .notes { grid-template-columns: 1fr; gap: 20px; }
  .notes-intro { position: static; }
  .split-note { flex-direction: column; align-items: start; padding: 76px 28px 32px; margin-bottom: 72px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .prose.wrap { padding: 60px 28px 52px; }
}
@media (max-width: 640px) {
  .wrap, .header-inner, .footer-end, .trail { width: calc(100% - 32px); }
  .prose.wrap { width: calc(100% - 32px); box-shadow: 5px 5px 0 var(--cobalt); }
  .brand-mark { width: 30px; height: 30px; }
  .hero-title { font-size: clamp(2.6rem, 13vw, 3.6rem); }
  .station-clock svg { width: 60px; height: 60px; }
  .station-clock .clock { font-size: 1.9rem; }
  .hero-kicker span { font-size: 0.66rem; padding: 4px 8px; }
  .lede { font-size: 1.05rem; }
  .street { --row: clamp(150px, 46vw, 220px); }
  .street-row { height: calc(var(--row) + 36px); }
  .house-name { height: 36px; padding-top: 8px; font-size: clamp(0.6rem, 2.6vw, 0.8rem); }
  .index-list { grid-template-columns: 1fr; }
  .index-list li, .index-list li:nth-child(odd) { border-right: 0; }
  .index-list a { padding: 16px 0 16px; grid-template-columns: auto 1fr; column-gap: 14px; }
  .index-no { grid-row: span 3; }
  .index-arrow { display: none; }
  .note-list { grid-template-columns: 1fr; }
  .place-text::before { font-size: 3.6rem; }
  .stay-body { padding: 16px 18px 8px; }
  .split-note { clip-path: polygon(0 40px, 14% 40px, 14% 20px, 28% 20px, 28% 0, 72% 0, 72% 20px, 86% 20px, 86% 40px, 100% 40px, 100% 100%, 0 100%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .stay:hover, .house:hover .house-face, .house:hover .house-face img { transform: none; }
}
