:root {
  color-scheme: light;
  --paper: #f6f3eb;
  --ink: #173a39;
  --muted: #4b625d;
  --line: #c9cfc3;
  --accent: #aa492e;
  --mono: ui-monospace, Consolas, "Liberation Mono", monospace;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
.wrap { width: min(81rem, 90%); margin-inline: auto; }
a { color: inherit; }
a:focus-visible, fieldset:focus-visible, input:focus-visible + span {
  outline: 3px solid #aa492e;
  outline-offset: 4px;
}
.skip { position: absolute; z-index: 1; left: 1rem; top: -5rem; padding: .8rem 1rem; background: white; }
.skip:focus { top: .5rem; }
.masthead, nav, .brand, .eyebrow, .jump, .plate-head, .plate-head > span, .footer { display: flex; align-items: center; }
.masthead { min-height: 5.2rem; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { text-decoration: none; font-size: 1.65rem; font-weight: 780; letter-spacing: -.08em; }
.brand img { margin-right: .55rem; }
.brand span { color: var(--accent); }
nav { gap: clamp(.85rem, 3vw, 2rem); }
nav a, .footer a { padding-block: .7rem; font-size: .88rem; font-weight: 650; text-decoration: none; }
nav a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: .3em; }
.hero { display: grid; grid-template-columns: .87fr 1.13fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(3rem, 7vw, 6.8rem); }
.intro, .exhibit { min-width: 0; }
.eyebrow, .plate-head, legend, .footer { font-family: var(--mono); }
.eyebrow, .plate-head, legend { text-transform: uppercase; font-weight: 650; font-size: .72rem; letter-spacing: .14em; }
.eyebrow { gap: .75rem; margin: 0; color: var(--muted); }
.rule { width: 2rem; height: 2px; background: var(--accent); }
h1 { margin: 1.2rem 0 1.35rem; font-size: clamp(3.9rem, 7.7vw, 7.2rem); line-height: .96; font-weight: 680; letter-spacing: -.075em; }
h1 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.065em; color: var(--accent); }
.lead, .logbook p:not(.eyebrow) { color: var(--muted); line-height: 1.65; }
.lead { max-width: 34ch; font-size: clamp(1.05rem, 1.45vw, 1.3rem); margin: 0; }
.jump { justify-content: space-between; gap: 1.5rem; width: fit-content; margin-top: 1.8rem; padding: .85rem 1.15rem; background: var(--ink); color: #fffaf0; border-radius: .4rem; font-weight: 650; text-decoration: none; }
.jump:hover { background: #275b54; }
.jump span { font-size: 1.25rem; line-height: 1; }
.exhibit {
  --sky-top: #619298; --sky-bottom: #f6b682; --sun: #ffe19a;
  --far: #688c80; --headland: #416f68; --stone: #365853; --water: #619690;
  --swell: #3e7977; --deep: #2a5a60; --foam: #e2e8c7;
  --orb-x: 0px; --orb-y: 0px; --ship-x: 0px; --stars: 0; --beam: .23;
  margin: 0; scroll-margin-block: 1rem; border: 1px solid #344d48; border-radius: .8rem;
  background: #fcfaf2; box-shadow: .45rem .45rem 0 #dce1d2;
}
.exhibit:has(#morgen:checked) {
  --sky-top: #7ab8c5; --sky-bottom: #f8deb4; --sun: #fff0bc;
  --far: #8fa99b; --headland: #628b78; --stone: #48665c; --water: #82b6aa;
  --swell: #569895; --deep: #387878; --foam: #f8f2d6;
  --orb-x: -66px; --orb-y: -30px; --ship-x: -20px; --beam: 0;
}
.exhibit:has(#nacht:checked) {
  --sky-top: #152939; --sky-bottom: #485e79; --sun: #f1e4bb;
  --far: #394e61; --headland: #2c4354; --stone: #223946; --water: #34566a;
  --swell: #294858; --deep: #1b384a; --foam: #8caeaf;
  --orb-x: 73px; --orb-y: -39px; --ship-x: 26px; --stars: 1; --beam: .52;
}
.plate-head { justify-content: space-between; gap: .7rem; padding: .95rem 1.1rem; background: #173a39; color: #fff5d9; border-radius: .7rem .7rem 0 0; }
.plate-head > span { gap: .55rem; }
.plate-number { color: #bed4c4; }
.lamp { width: .56rem; height: .56rem; background: #efab76; border-radius: 50%; }
.scene { display: block; width: 100%; height: auto; }
.sky-top { stop-color: var(--sky-top); }
.sky-bottom { stop-color: var(--sky-bottom); }
.stars { opacity: var(--stars); }
.beam { opacity: var(--beam); }
.orb { transform: translate(var(--orb-x), var(--orb-y)); }
.glints { transform: translateX(var(--orb-x)); }
.vessel { transform: translateX(var(--ship-x)); }
figcaption { padding: .95rem 1.05rem 1.05rem; }
fieldset { margin: 0; padding: 0; min-width: 0; border: 0; }
legend { padding: 0; margin-bottom: .5rem; color: var(--muted); font-size: .65rem; }
.switches { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; }
.switches label { position: relative; cursor: pointer; min-width: 0; }
.switches input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switches span { display: grid; place-items: center; min-height: 2.75rem; border: 1px solid var(--line); border-radius: .35rem; font-size: .88rem; font-weight: 650; }
.switches label:hover span { border-color: var(--ink); }
.switches input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff8e4; }
.logbook { display: grid; grid-template-columns: .87fr 1.13fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; padding-block: clamp(2.4rem, 5vw, 4.5rem); border-top: 1px solid var(--line); }
.logbook .eyebrow { margin-top: .55rem; }
h2 { font-size: clamp(1.8rem, 3.2vw, 3rem); line-height: 1.1; letter-spacing: -.055em; font-weight: 650; margin: 0; }
.logbook p:not(.eyebrow) { max-width: 54ch; margin: .75rem 0 0; }
.footer { justify-content: space-between; flex-wrap: wrap; gap: .75rem 1.3rem; padding-block: 1.1rem; border-top: 1px solid var(--line); color: var(--muted); font-variant-numeric: tabular-nums; font-size: .73rem; }
.footer a { font-size: inherit; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .orb, .glints, .vessel { transition: transform .75s ease-out; }
  .scene path, .scene circle { transition: fill .5s, stroke .5s; }
  .sky-top, .sky-bottom { transition: stop-color .5s; }
  .stars, .scene .beam { transition: opacity .55s; }
}
@media (max-width: 48rem) {
  .hero, .logbook { grid-template-columns: 1fr; }
  .hero { gap: 2.3rem; }
  .logbook { gap: .85rem; }
  .masthead { min-height: 4.2rem; }
  .lead { max-width: 42ch; }
  .footer { row-gap: .15rem; }
}
@media (forced-colors: active) {
  .switches input:checked + span { outline: 2px solid Highlight; outline-offset: -3px; }
}
