/* LessaWorld "Exposition" theme: a pictorial fairground map (1893 Chicago World's Fair crossed with
   vintage park maps), pastel palette, Victorian print details. Day by default; [data-mode="night"]
   lights the grounds. */

/* ---- tokens ------------------------------------------------------------------------------ */
:root {
  --paper: #f6eedb;
  --paper-2: #efe2c4;
  --card: #fffaf0;
  --ink: #33284a;
  --ink-soft: #6a5e76;
  --rule: rgba(51, 40, 74, .22);
  --link: #b0463f;
  --rose: #f4b2a8;
  --rose-deep: #c4564f;
  --butter: #f6dc8f;
  --lilac: #cdbbe6;
  --sky: #b7dcec;
  --mint: #c2e4c4;
  --gold: #d9ab4c;

  /* the map */
  --m-paper: #f4ead2;
  --m-ink: #3d3150;
  --m-lawn: #cfe5b4;
  --m-shore: #efdcae;
  --m-tree: #8fc49a;
  --m-tree-hi: #bfe2b8;
  --m-water: #a9d6dd;
  --m-water2: #c9e8ea;
  --m-path: #f3e4c4;
  --m-white: #fffdf6;
  --m-roof: #9fd1c4;
  --m-roof2: #7fb6aa;
  --m-rose: #f4aca2;
  --m-butter: #f7d98a;
  --m-lilac: #cbb7e8;
  --m-sky: #a8d3ee;
  --m-gold: #e2b552;
  --m-brick: #efb59c;
  --m-wood: #d9b68c;
  --m-win: #d7ebf2;
  --m-bulb: transparent;
  --m-smoke: #ffffff;
  --m-shadow: rgba(60, 50, 80, .16);
  --m-rail: #8c6c55;
  --m-star: 0;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --display: "Fraunces", Georgia, serif;
  --caps: "Cinzel", "Trajan Pro", Georgia, serif;
  color-scheme: light;
}

:root[data-mode="night"] {
  --paper: #1c2040;
  --paper-2: #262b52;
  --card: #242950;
  --ink: #f3e9cf;
  --ink-soft: #bcb4cc;
  --rule: rgba(243, 233, 207, .2);
  --link: #ffcf7a;
  --rose: #c9736f;
  --rose-deep: #ff9d8f;
  --butter: #c9a54b;
  --lilac: #8c76bd;
  --sky: #5d8fb8;
  --gold: #f2c55c;

  --m-paper: #1a1e3c;
  --m-ink: #0e0f26;
  --m-lawn: #2d4a45;
  --m-shore: #39435f;
  --m-tree: #22423a;
  --m-tree-hi: #2e5a4b;
  --m-water: #223a68;
  --m-water2: #2d4f82;
  --m-path: #474866;
  --m-white: #ebe4d2;
  --m-roof: #5f918b;
  --m-roof2: #4a7470;
  --m-rose: #d98b85;
  --m-butter: #e4c16f;
  --m-lilac: #a28cd2;
  --m-sky: #6fa0c9;
  --m-gold: #f4c95e;
  --m-brick: #c98b74;
  --m-wood: #a7835f;
  --m-win: #ffd877;
  --m-bulb: #ffe28c;
  --m-smoke: #6c7094;
  --m-shadow: rgba(0, 0, 0, .3);
  --m-rail: #6d5a4f;
  --m-star: 1;
  color-scheme: dark;
}

/* ---- base -------------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.6 var(--serif);
  transition: background-color .5s, color .5s;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--rose-deep); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--butter); color: #33284a; padding: 8px 14px; border: 2px solid var(--ink); }
.skip:focus { top: 12px; }
.dim { color: var(--ink-soft); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.stack > * + * { margin-top: 44px; }
main { padding: 26px 0 0; }

/* ---- masthead: the railway --------------------------------------------------------------- */
.masthead {
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  box-shadow: 0 4px 0 var(--paper), 0 6px 0 var(--ink);
  padding: 14px 0 16px;
  margin-bottom: 6px;
}
.masthead .wrap { display: flex; align-items: center; gap: 22px; justify-content: space-between; }
.brand { display: flex; flex-direction: column; line-height: 1; color: var(--ink); text-decoration: none; flex: none; }
.brand-name { font: 800 30px/1 var(--display); font-variation-settings: "SOFT" 100; letter-spacing: .01em; }
.brand-sub { font: 700 10.5px/1.3 var(--caps); letter-spacing: .14em; text-transform: uppercase; color: var(--rose-deep); margin-top: 5px; }

.rail { position: relative; display: flex; }
.rail::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: 6px; height: 8px;
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 9px);
  opacity: .8;
}
.rail a { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 12px; color: var(--ink); text-decoration: none; }
.rail .stop { width: 20px; height: 20px; border-radius: 50%; background: var(--card); border: 2.5px solid var(--ink); transition: background-color .2s, transform .2s; }
.rail .label { font: 700 12.5px var(--caps); letter-spacing: .1em; margin-top: 6px; white-space: nowrap; }
.rail a:hover .stop { background: var(--butter); transform: scale(1.15); }
.rail a[aria-current="page"] .stop { background: var(--rose-deep); box-shadow: 0 0 0 3px var(--card); }
.rail a[aria-current="page"] .label { color: var(--rose-deep); }

.mode {
  flex: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font: 700 12px var(--caps); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); background: var(--card); border: 2px solid var(--ink); border-radius: 999px; padding: 7px 14px;
}
.mode:hover { background: var(--butter); color: #33284a; }
.mode-icon::before { content: "\263E"; font-size: 16px; line-height: 1; }
:root[data-mode="night"] .mode-icon::before { content: "\2600"; }

/* ---- the map ----------------------------------------------------------------------------- */
.map-hero { padding: 18px 16px 0; }
.map-heading { text-align: center; margin: 0 auto 20px; }
.kicker { font: italic 400 clamp(18px, 2.4vw, 26px)/1.2 var(--display); margin: 0; color: var(--ink-soft); }
.map-heading h1 {
  font: 800 clamp(56px, 10vw, 128px)/.95 var(--display); font-variation-settings: "SOFT" 100;
  letter-spacing: .015em; margin: 2px 0 8px; text-shadow: .045em .045em 0 var(--rose);
}
.map-heading .sub { font: 700 clamp(11px, 1.2vw, 13.5px) var(--caps); letter-spacing: .2em; text-transform: uppercase; margin: 0; color: var(--ink-soft); }

.map-frame {
  position: relative; max-width: 1400px; margin: 0 auto; padding: 8px;
  background: var(--card); border: 2px solid var(--ink); border-radius: 8px;
  box-shadow: 0 0 0 6px var(--paper), 0 0 0 8px var(--ink), 0 26px 50px -26px rgba(20, 14, 40, .45);
}
.map-scroll { overflow: hidden; border-radius: 4px; }
.lw-map { display: block; width: 100%; height: auto; }
.map-hint { text-align: center; font-style: italic; color: var(--ink-soft); margin: 18px 0 0; font-size: 16px; }

.lw-map .ln { stroke: var(--m-ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.lw-map .f-paper { fill: var(--m-paper); }
.lw-map .f-water { fill: var(--m-water); }
.lw-map .f-water2 { fill: var(--m-water2); }
.lw-map .f-lawn { fill: var(--m-lawn); }
.lw-map .f-path { fill: var(--m-path); }
.lw-map .f-white { fill: var(--m-white); }
.lw-map .f-roof { fill: var(--m-roof); }
.lw-map .f-roof2 { fill: var(--m-roof2); }
.lw-map .f-rose { fill: var(--m-rose); }
.lw-map .f-butter { fill: var(--m-butter); }
.lw-map .f-lilac { fill: var(--m-lilac); }
.lw-map .f-sky { fill: var(--m-sky); }
.lw-map .f-gold { fill: var(--m-gold); }
.lw-map .f-brick { fill: var(--m-brick); }
.lw-map .f-wood { fill: var(--m-wood); }
.lw-map .f-ink { fill: var(--m-ink); }
.lw-map .f-tree { fill: var(--m-tree); }
.lw-map .f-tree-hi { fill: var(--m-tree-hi); }
.lw-map .f-smoke { fill: var(--m-smoke); opacity: .75; }
.lw-map .win { fill: var(--m-win); }
.lw-map .shadow { fill: var(--m-shadow); }
.lw-map .col { fill: var(--m-white); stroke: var(--m-ink); stroke-width: 1; }
.lw-map .land { fill: var(--m-lawn); stroke: var(--m-ink); stroke-width: 3; }
.lw-map .land-shore { fill: var(--m-shore); stroke: var(--m-shore); stroke-width: 26; stroke-linejoin: round; }
.lw-map .walks path { stroke: var(--m-path); stroke-width: 16; stroke-linecap: round; }
.lw-map .walk-bridge { fill: none; stroke: var(--m-wood); stroke-width: 12; stroke-linecap: round; }
.lw-map .rail-ties { fill: none; stroke: var(--m-rail); stroke-width: 13; stroke-dasharray: 2.5 6; }
.lw-map .rail-outer { fill: none; stroke: var(--m-ink); stroke-width: 6; }
.lw-map .rail-inner { fill: none; stroke: var(--m-shore); stroke-width: 2.4; }
.lw-map .waves path { stroke: var(--m-ink); stroke-width: 1.6; opacity: .4; stroke-linecap: round; }
.lw-map .ripple, .lw-map .jets path { stroke: var(--m-white); stroke-width: 2.4; stroke-linecap: round; opacity: .8; }
.lw-map .spoke { stroke-width: 1.1; }
.lw-map .wire { stroke-width: 1; }
.lw-map .bulb { fill: var(--m-bulb); }
.lw-map .stars circle { fill: #fff3c4; opacity: var(--m-star); transition: opacity .6s; }
.lw-map .grain { pointer-events: none; mix-blend-mode: multiply; opacity: .5; }
:root[data-mode="night"] .lw-map .grain { opacity: .18; mix-blend-mode: screen; }
.lw-map .frame-outer { fill: none; stroke: var(--m-ink); stroke-width: 3; }
.lw-map .frame-inner { fill: none; stroke: var(--m-ink); stroke-width: 1; }
:root[data-mode="night"] .lw-map .frame-outer, :root[data-mode="night"] .lw-map .frame-inner { stroke: var(--m-gold); opacity: .7; }

.lw-map text { font-family: var(--caps); fill: var(--m-ink); }
.lw-map .lake-label { font: italic 400 22px var(--display); letter-spacing: .12em; opacity: .55; }
.lw-map .tiny { font-size: 7.5px; font-weight: 700; }
.lw-map .gate-text { font-size: 11px; font-weight: 700; }
.lw-map .balloon-lw { font: 800 18px var(--display); }
.lw-map .compass-n { font-size: 16px; font-weight: 700; }
.lw-map .cartouche { font: italic 400 17px var(--display); opacity: .7; }
:root[data-mode="night"] .lw-map .lake-label,
:root[data-mode="night"] .lw-map .cartouche,
:root[data-mode="night"] .lw-map .compass-n { fill: var(--m-gold); }
:root[data-mode="night"] .lw-map .waves path { stroke: var(--m-sky); }

/* ribbons and numbered badges */
.lw-map .ribbon text { font-size: 15px; font-weight: 700; text-anchor: middle; }
.lw-map .r-body, .lw-map .r-tail, .lw-map .r-fold { stroke: var(--m-ink); stroke-width: 2; stroke-linejoin: round; }
.lw-map .tone-rose { --tone: var(--m-rose); }
.lw-map .tone-butter { --tone: var(--m-butter); }
.lw-map .tone-lilac { --tone: var(--m-lilac); }
.lw-map .tone-sky { --tone: var(--m-sky); }
.lw-map .r-body { fill: var(--tone); }
.lw-map .r-tail { fill: color-mix(in srgb, var(--tone) 72%, var(--m-ink)); }
.lw-map .r-fold { fill: color-mix(in srgb, var(--tone) 45%, var(--m-ink)); }
.lw-map .badge circle { fill: var(--m-ink); stroke: var(--m-white); stroke-width: 2; }
.lw-map .badge text { font: 700 14px var(--display); fill: var(--m-white); text-anchor: middle; }
:root[data-mode="night"] .lw-map .badge circle { fill: var(--m-gold); stroke: var(--m-ink); }
:root[data-mode="night"] .lw-map .badge text { fill: var(--m-ink); }

/* hotspots */
.lw-map .spot { cursor: pointer; }
.lw-map .spot .art { transition: transform .25s ease, filter .25s ease; }
.lw-map .spot:hover .art, .lw-map .spot:focus-visible .art, .lw-map .spot.is-hot .art {
  transform: translateY(-5px); filter: drop-shadow(0 7px 3px rgba(30, 20, 50, .28));
}
.lw-map .spot:hover .r-body, .lw-map .spot:focus-visible .r-body, .lw-map .spot.is-hot .r-body { fill: var(--m-white); }
.lw-map .spot:focus { outline: none; }
.lw-map .spot:focus-visible .r-body { stroke: var(--rose-deep); stroke-width: 4; }

/* night illumination */
.lw-map .beams { display: none; }
:root[data-mode="night"] .lw-map .beams { display: inline; }
:root[data-mode="night"] .lw-map .bulbs, :root[data-mode="night"] .lw-map .globe { filter: url(#glow); }

/* motion (all of it decorative; off for reduced-motion) */
.lw-map .wheel { transform-box: view-box; transform-origin: 300px 350px; animation: spin 100s linear infinite; }
.lw-map .gear-a { transform-box: view-box; transform-origin: 508px 258px; animation: spin 14s linear infinite; }
.lw-map .gear-b { transform-box: view-box; transform-origin: 537px 238px; animation: spin 8s linear infinite reverse; }
.lw-map .smoke circle { transform-box: fill-box; transform-origin: center; animation: puff 5s ease-in-out infinite; }
.lw-map .smoke circle:nth-child(2) { animation-delay: -1.6s; }
.lw-map .smoke circle:nth-child(3) { animation-delay: -3.2s; }
.lw-map .balloon { animation: bob 7s ease-in-out infinite; }
.lw-map .letter { animation: post 6s ease-in-out infinite; }
.lw-map .beam-a { transform-box: view-box; transform-origin: 800px 128px; animation: sweep 11s ease-in-out infinite alternate; }
.lw-map .beam-b { transform-box: view-box; transform-origin: 800px 128px; animation: sweep 13s ease-in-out infinite alternate-reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes puff { 0%, 100% { transform: translate(0, 0) scale(1); opacity: .8; } 50% { transform: translate(6px, -6px) scale(1.15); opacity: .45; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes post { 0%, 15% { transform: translate(0, 0); opacity: 0; } 25% { opacity: 1; } 70% { opacity: 1; } 90%, 100% { transform: translate(60px, -40px); opacity: 0; } }
@keyframes sweep { from { transform: rotate(-28deg); } to { transform: rotate(22deg); } }
@media (prefers-reduced-motion: reduce) {
  .lw-map *, .lw-map { animation: none !important; transition: none !important; }
}

/* hover placard */
.placard {
  position: absolute; z-index: 3; pointer-events: none; max-width: 260px;
  background: var(--card); color: var(--ink); border: 2px solid var(--ink); border-radius: 6px;
  padding: 9px 13px 10px; font-size: 15px; line-height: 1.35; box-shadow: 4px 4px 0 var(--ink);
}
.placard strong { display: block; font: 700 18px var(--display); margin-bottom: 2px; }

/* ---- page heads -------------------------------------------------------------------------- */
.page-head { text-align: center; padding: 22px 0 0; }
.eyebrow { font: 700 13px var(--caps); letter-spacing: .24em; text-transform: uppercase; color: var(--rose-deep); margin: 0 0 8px; }
.eyebrow::before, .eyebrow::after { content: "\2726"; margin: 0 .7em; font-size: 11px; color: var(--gold); }
.page-head h1 { font: 800 clamp(46px, 7.5vw, 88px)/1 var(--display); font-variation-settings: "SOFT" 100; margin: 0; text-shadow: .045em .045em 0 var(--rose); }
.page-head .tagline, .page-head .dim { font-style: italic; font-size: 20px; color: var(--ink-soft); margin: 14px auto 0; max-width: 46ch; }
.tagline { font-style: italic; color: var(--ink-soft); }

/* ---- panels: a printed program with a ribbon title --------------------------------------- */
.panel {
  position: relative; background: var(--card); border: 2px solid var(--ink); border-radius: 6px;
  padding: 42px 30px 28px;
  box-shadow: inset 0 0 0 5px var(--card), inset 0 0 0 6px var(--rule), 0 18px 34px -28px rgba(20, 14, 40, .5);
}
.panel-title {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  max-width: calc(100% - 28px); width: max-content; text-align: center;
  background: var(--rose); color: #33284a; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  padding: 6px 30px; font: 700 14px/1.25 var(--caps); letter-spacing: .14em; text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%, 14px 50%);
}
.stack > .panel:nth-of-type(4n+2) .panel-title, .two-col .panel:nth-child(2) .panel-title { background: var(--butter); }
.stack > .panel:nth-of-type(4n+3) .panel-title { background: var(--sky); }
.stack > .panel:nth-of-type(4n) .panel-title { background: var(--lilac); }
:root[data-mode="night"] .panel-title { color: #1c2040; }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 34px; align-items: start; }
.prose { max-width: 70ch; }
.prose p { margin: 0 0 14px; }
.prose p:last-child { margin-bottom: 0; }
.more { margin: 26px 0 0; text-align: center; }
.land-blurb { font: italic 400 20px var(--display); text-align: center; margin: 0 0 24px; color: var(--ink-soft); }
.land-index { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.land-index a, .socials a {
  font: 700 12.5px var(--caps); letter-spacing: .08em; color: var(--ink); text-decoration: none;
  border: 1.5px solid var(--ink); border-radius: 999px; padding: 5px 13px; background: var(--card);
}
.land-index a:hover, .socials a:hover { background: var(--rose); color: #33284a; }

.button {
  display: inline-block; font: 700 14px var(--caps); letter-spacing: .14em; text-transform: uppercase;
  color: #33284a; background: var(--butter); text-decoration: none;
  border: 2px solid var(--ink); border-radius: 999px; padding: 10px 24px; box-shadow: 3px 3px 0 var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.button:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }

/* ---- home: welcome + guide --------------------------------------------------------------- */
.whoami { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 24px; align-items: center; }
.cameo {
  width: 140px; height: 174px; border-radius: 50%; padding: 6px; background: var(--gold);
  border: 2px solid var(--ink); box-shadow: 0 0 0 4px var(--card), 0 0 0 6px var(--ink);
}
/* framed photos start as an old sepia print and come to life (full colour) on hover */
.cameo img {
  display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 2px solid var(--ink);
  filter: sepia(.95) saturate(.75) contrast(1.08) brightness(.96); transition: filter .6s ease;
}
.cameo:hover img { filter: none; }
.whoami h2 { font: 800 34px/1.05 var(--display); font-variation-settings: "SOFT" 100; margin: 0; }
.whoami .tagline { margin: 4px 0 0; }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 14px 0 0; font-size: 16.5px; }
.facts dt { font: 700 11.5px var(--caps); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); padding-top: 4px; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.intro { margin: 20px 0 0; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.legend a {
  display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; align-items: start;
  padding: 7px 10px; border-radius: 6px; color: var(--ink); text-decoration: none;
}
.legend a:hover, .legend a.is-hot, .legend a:focus-visible { background: var(--paper-2); }
.legend .num {
  grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--card); font: 700 14px var(--display); margin-top: 2px;
}
.legend .name { font: 700 18px/1.3 var(--display); }
.legend .blurb { font-size: 15px; line-height: 1.35; color: var(--ink-soft); }

/* ---- cards: fair posters ----------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px; }
.tone-rose { --tone: var(--rose); }
.tone-butter { --tone: var(--butter); }
.tone-lilac { --tone: var(--lilac); }
.tone-sky { --tone: var(--sky); }
.card {
  display: flex; flex-direction: column; background: var(--paper); border: 2px solid var(--ink); border-radius: 6px;
  overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px) rotate(-.35deg); box-shadow: 6px 6px 0 var(--ink); }
.card-media { aspect-ratio: 16 / 10; border-bottom: 2px solid var(--ink); background: var(--tone); overflow: hidden; }
.card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.poster {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-align: center; padding: 14px 18px; color: #33284a;
  background:
    radial-gradient(circle at 50% 135%, color-mix(in srgb, var(--tone) 45%, #fffaf0) 0 38%, transparent 38.5%),
    repeating-conic-gradient(from 0deg at 50% 135%, var(--tone) 0 5deg, color-mix(in srgb, var(--tone) 65%, #fffaf0) 5deg 10deg);
}
.poster-top, .poster-year { font: 700 11px var(--caps); letter-spacing: .22em; text-transform: uppercase; }
.poster-name { font: 800 24px/1.1 var(--display); font-variation-settings: "SOFT" 100; text-wrap: balance; }
.card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px 18px 18px; }
.card-meta { display: flex; justify-content: space-between; gap: 10px; font: 700 11.5px var(--caps); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.card h3 { font: 700 22px/1.15 var(--display); margin: 0; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p { margin: 0; font-size: 16px; line-height: 1.5; }
.links { margin-top: auto; padding-top: 4px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.links a { font: 700 12.5px var(--caps); letter-spacing: .06em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font: 700 12px var(--caps); letter-spacing: .05em; padding: 3px 10px; border: 1.5px dashed var(--ink); border-radius: 3px; background: var(--card); }

/* ---- experience: a timeline drawn as a railway ------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 160px; top: 8px; bottom: 8px; width: 9px;
  border-left: 2px solid var(--ink); border-right: 2px solid var(--ink);
  background: repeating-linear-gradient(0deg, transparent 0 7px, var(--ink) 7px 9px); opacity: .75;
}
.job { position: relative; display: grid; grid-template-columns: 136px minmax(0, 1fr); column-gap: 64px; padding-bottom: 30px; }
.job:last-child { padding-bottom: 0; }
.job::before {
  content: ""; position: absolute; left: 154px; top: 3px; width: 21px; height: 21px; border-radius: 50%;
  background: var(--card); border: 2.5px solid var(--ink);
}
.job:has(.now)::before { background: var(--rose-deep); }
.job .when { font: 700 13px var(--caps); letter-spacing: .08em; text-align: right; padding-top: 4px; }
.job .when.now { color: var(--rose-deep); }
.job h3 { font: 700 25px/1.2 var(--display); margin: 0; }
.job h3 a { color: var(--ink); }
.job .title { font-style: italic; color: var(--ink-soft); }
.job p { margin: 6px 0 0; }

/* ---- lists and tables -------------------------------------------------------------------- */
.listing { width: 100%; border-collapse: collapse; font-size: 16.5px; }
.listing th { font: 700 12px var(--caps); letter-spacing: .14em; text-transform: uppercase; text-align: left; color: var(--ink-soft); border-bottom: 2px solid var(--ink); padding: 6px 10px; }
.listing td { padding: 10px; border-bottom: 1px dotted var(--rule); vertical-align: top; overflow-wrap: anywhere; }
.listing tr:last-child td { border-bottom: 0; }
.listing .when { white-space: nowrap; font: 700 12.5px/1.9 var(--caps); letter-spacing: .06em; color: var(--ink-soft); }
.listing .kind { color: var(--ink-soft); font-style: italic; }
.listing .strong { font-weight: 600; }
.files { list-style: none; margin: 0; padding: 0; }
.files li { padding: 10px 0 10px 26px; border-bottom: 1px dotted var(--rule); position: relative; }
.files li:last-child { border-bottom: 0; }
.files li::before { content: "\2767"; position: absolute; left: 2px; top: 9px; color: var(--rose-deep); }
.bullets { list-style: none; margin: 0; padding: 0; }
.bullets li { position: relative; padding-left: 28px; margin: 10px 0; }
.bullets li::before { content: "\2726"; position: absolute; left: 4px; color: var(--gold); }
.quote { margin: 0 auto 26px; text-align: center; max-width: 46ch; }
.quote:last-child { margin-bottom: 0; }
.quote blockquote { font: italic 400 23px/1.35 var(--display); margin: 0; }
.quote figcaption { font: 700 12px var(--caps); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-top: 8px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.gallery a { display: block; border: 2px solid var(--ink); background: var(--paper); padding: 6px 6px 8px; color: var(--ink); text-decoration: none; font-size: 14px; border-radius: 4px; }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 6px; }
dialog.lightbox { border: 2px solid var(--ink); border-radius: 6px; background: var(--card); color: var(--ink); padding: 12px; max-width: 94vw; }
dialog.lightbox::backdrop { background: rgba(20, 16, 40, .72); }
dialog.lightbox img { display: block; max-width: 88vw; max-height: 76vh; margin: 0 auto; }
dialog.lightbox p { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 10px 0 0; }
dialog.lightbox button { font: 700 12px var(--caps); letter-spacing: .1em; text-transform: uppercase; background: var(--butter); color: #33284a; border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px; cursor: pointer; }

/* ---- footer ------------------------------------------------------------------------------ */
.footer { margin-top: 72px; padding: 0 0 44px; text-align: center; }
.flourish { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--rose-deep); font-size: 24px; }
.flourish span { flex: 0 1 220px; height: 6px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); }
.imprint { font: 700 12px var(--caps); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin: 14px 0 10px; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 16px; }

/* ---- small screens ----------------------------------------------------------------------- */
@media (max-width: 920px) {
  .masthead .wrap { flex-wrap: wrap; row-gap: 14px; }
  .rail { order: 3; flex: 1 0 100%; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .rail a { flex: 1 0 auto; }
  .two-col { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  /* the map keeps its detail and pans sideways instead of shrinking to illegibility */
  .map-hero { padding: 12px 0 0; }
  .map-heading { padding: 0 16px; }
  .map-frame { border-radius: 0; border-left: 0; border-right: 0; padding: 6px 0; box-shadow: 0 0 0 0 transparent; }
  .map-scroll { overflow-x: auto; overscroll-behavior-x: contain; border-radius: 0; }
  .map-scroll .lw-map { width: 1040px; max-width: none; }
  .map-hint { padding: 0 16px; }
  .wrap { padding: 0 16px; }
  .panel { padding: 40px 18px 22px; }
  .whoami { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .facts { text-align: left; }
  .socials { justify-content: center; }
  .timeline::before { left: 7px; }
  .job { grid-template-columns: minmax(0, 1fr); padding-left: 40px; }
  .job::before { left: 1px; }
  .job .when { text-align: left; padding: 0 0 2px; }
  .listing .kind { display: none; }
  .brand-name { font-size: 26px; }
}

.map-hero + .wrap { margin-top: 56px; }
:root[data-mode="night"] .lw-map .wheel > circle:not(.car), :root[data-mode="night"] .lw-map .spoke { stroke: var(--m-gold); filter: url(#glow); }
@media (max-width: 520px) {
  .rail a { padding: 0 4px; }
  .rail .label { font-size: 10.5px; letter-spacing: .02em; }
  .mode { padding: 6px 11px; }
}

/* ---- "you are here" mini map beside page headings ---------------------------------------- */
@media (min-width: 900px) {
  .page-head.with-map { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: center; text-align: left; }
  .page-head.with-map .eyebrow::before { content: none; }
  .page-head.with-map .eyebrow::after { margin-right: 0; }
  .page-head.with-map .tagline, .page-head.with-map .dim { margin-left: 0; }
  .page-head.with-map .land-index { justify-content: flex-start; }
}
.minimap {
  display: block; width: 100%; max-width: 380px; margin: 26px auto 0; color: var(--ink); text-decoration: none;
  background: var(--card); border: 2px solid var(--ink); border-radius: 6px; padding: 6px 6px 8px;
  box-shadow: 4px 4px 0 var(--ink); transition: transform .15s, box-shadow .15s;
}
@media (min-width: 900px) { .minimap { margin: 0; } }
.minimap:hover { transform: translate(-1px, -1px) rotate(-.4deg); box-shadow: 6px 6px 0 var(--ink); }
.minimap .lw-map { border-radius: 3px; }
.minimap-caption { display: block; text-align: center; margin-top: 6px; font: 700 11.5px var(--caps); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.minimap-caption .you { color: var(--rose-deep); }
.minimap:hover .minimap-caption { color: var(--ink); }
.lw-map.is-mini { pointer-events: none; }
.lw-map.is-mini, .lw-map.is-mini * { animation: none !important; transition: none !important; }
.lw-map.is-mini .ribbon, .lw-map.is-mini .beams { display: none; }
.lw-map.is-mini > :not(.is-here):not(.here-pin):not(defs):not(desc) { filter: grayscale(1) opacity(.42); }
.lw-map.is-mini .here-halo { fill: color-mix(in srgb, var(--rose-deep) 14%, transparent); stroke: var(--m-white); stroke-width: 26; opacity: .9; }
.lw-map.is-mini .here-ring { fill: none; stroke: var(--rose-deep); stroke-width: 15; }

/* the glow filter belongs to the full map; mini maps carry their own (suffixed) ids */
.lw-map.is-mini .bulbs, .lw-map.is-mini .globe, .lw-map.is-mini .wheel > circle, .lw-map.is-mini .spoke { filter: none !important; }
.section-map { margin: 30px auto 0; max-width: 320px; }
.section-map .minimap { margin: 0 auto; }

/* ---- water in motion ---------------------------------------------------------------------- */
.lw-map .waves path { transform-box: fill-box; transform-origin: center; animation: wave 3.4s ease-in-out infinite alternate; }
.lw-map .waves path:nth-child(3n+1) { animation-duration: 4.1s; animation-delay: -1.3s; }
.lw-map .waves path:nth-child(3n+2) { animation-duration: 2.9s; animation-delay: -2.1s; }
.lw-map .waves path:nth-child(4n) { animation-direction: alternate-reverse; }
.lw-map .ripple { animation: ripple 5s ease-in-out infinite alternate; }
.lw-map .jets { transform-box: fill-box; transform-origin: 50% 100%; animation: jets 1.8s ease-in-out infinite alternate; }
.lw-map .boat > *, .lw-map .swan > * { animation: float 3.6s ease-in-out infinite; }
.lw-map .boat-2 > * { animation-duration: 4.4s; animation-delay: -1.2s; }
.lw-map .boat-3 > * { animation-duration: 3.1s; animation-delay: -2s; }
.lw-map .swan + .swan > * { animation-delay: -1.8s; }
@keyframes wave { from { transform: translateX(-5px) skewX(-8deg); } to { transform: translateX(5px) skewX(8deg); } }
@keyframes ripple { from { transform: translateX(-7px); opacity: .35; } to { transform: translateX(7px); opacity: .9; } }
@keyframes jets { from { transform: scaleY(.88); } to { transform: scaleY(1.08); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* about: the proprietor's portrait beside the name */
.proprietor { display: flex; align-items: center; justify-content: center; gap: 28px; text-align: left; }
.proprietor .cameo { flex: none; }
.proprietor .tagline { margin: 12px 0 0; }
@media (min-width: 900px) { .page-head.with-map .proprietor { justify-content: flex-start; } }
@media (max-width: 600px) {
  .proprietor { flex-direction: column; text-align: center; gap: 18px; }
  .proprietor .eyebrow::before { content: "\2726"; }
  .masthead .wrap { column-gap: 12px; }
  .mode { padding: 8px 11px; }
  .mode [data-mode-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
