@font-face {
  font-family: Allura;
  src: url("../assets/fonts/allura-regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond.woff") format("woff");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #e9eff2;
  --ink: #344c65;
  --muted: #505c50;
  --line: #b4c5ce;
  --blue: #344c65;
  --rust: #a55239;
  --mural: #b5d4e9;
  --wood-paper: #e2d3bf;
  --name-ink: #844126;
  --display: "Cormorant Garamond", Georgia, serif;
  --serif: Baskerville, "Baskerville Old Face", "Palatino Linotype", Palatino, Georgia, serif;
  --script: Allura, "Apple Chancery", cursive;
  font-family: var(--serif);
  background: var(--paper);
  color: var(--ink);
}
.name-poll-teaser { padding: 55px 24px; text-align: center; background: #f3f0e7; }
.name-poll-teaser h2 { font: 39px / 1.15 var(--display); margin: 12px 0 18px; font-weight: 500; }
.name-poll-teaser > p:not(.script-intro):not(.placeholder-note) { max-width: 540px; margin: 0 auto 22px; font-size: 18px; line-height: 1.6; }
.name-poll-teaser .placeholder-note { margin-top: 20px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--rust); outline-offset: 5px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.milestone-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 20; background: var(--paper); padding: 12px; }
.skip-link:focus { top: 16px; }

/* A small slice of the Mojave sky, with the names at its center. */
.site-header { position: relative; text-align: center; padding: 15px 24px 28px; background: var(--mural); isolation: isolate; }
#home.site-header { background: var(--mural); padding-bottom: 18px; }
.sky-stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; opacity: 0; transition: opacity .4s; }
.sky-toggle { position: absolute; top: 16px; right: max(24px, env(safe-area-inset-right)); z-index: 2; width: 50px; height: 50px; display: grid; place-items: center; padding: 7px; background: none; border: 0; border-radius: 50%; color: #b37528; }
.sky-toggle svg { width: 36px; height: 36px; transition: transform .2s; }
.motion-toggle { position: absolute; top: 16px; left: max(16px, env(safe-area-inset-left)); z-index: 2; min-height: 44px; padding: 6px 10px; border: 1px solid currentColor; border-radius: 4px; background: var(--paper); color: var(--ink); font: 12px/1.3 Arial,sans-serif; }
@media (max-width:700px) { .motion-toggle { top: 5px; left: max(8px, env(safe-area-inset-left)); } }
.sky-toggle:hover svg { transform: rotate(8deg); }
.sun-icon circle { fill: #e8b65b; }
.sun-icon path { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.sky-toggle .moon-icon { display: none; fill: #f4d9a0; }
.moon-star { fill: #fff2d5; }
.sky-landmarks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.spacecraft { fill: #52708a; stroke: #52708a; stroke-width: 1.7; stroke-linejoin: round; opacity: .66; }
.craft-window { fill: var(--mural); stroke: none; }
.space-rocket { fill: #a65d45; stroke: #a65d45; opacity: .3; }
.b2-bomber { fill: #4d677f; opacity: .27; }
.b2-detail { fill: none; stroke: #b5d4e9; stroke-width: .7; }
/* Small SVG silhouettes drift in the upper sky without competing with the names. */
.sky-patrol { transform-origin: 0 0; animation-play-state: paused !important; }
.sky-in-view .sky-patrol { animation-play-state: running !important; }
.bomber-flight { animation: bomber-patrol 94s linear infinite; }
.rocket-flight { animation: rocket-patrol 112s ease-in-out infinite; }
.condor-one { animation: condor-left 81s ease-in-out infinite; }
.condor-two { animation: condor-right 103s ease-in-out infinite; }
.condor-three { animation: condor-distant 91s ease-in-out infinite; }
.eagle-flight { animation: eagle-soar 117s ease-in-out infinite; }
.sky-bird { fill: #526c7e; opacity: .28; }
.condor-head { fill: #aa7c67; }
.bird-wing-patch, .eagle-white { fill: #eee8d9; }
.bald-eagle { fill: #756a56; opacity: .3; }
@keyframes bomber-patrol {
  from { transform: translate(-80px, 52px) rotate(90deg); }
  to { transform: translate(1680px, 52px) rotate(90deg); }
}
@keyframes rocket-patrol {
  0% { transform: translate(1435px, 280px); opacity: 0; }
  8%, 67% { opacity: 1; }
  75%, 100% { transform: translate(1435px, -65px); opacity: 0; }
}
@keyframes condor-left { 0%,100% { transform: translate(365px,150px) rotate(-7deg); } 50% { transform: translate(505px,162px) rotate(8deg); } }
@keyframes condor-right { 0%,100% { transform: translate(1105px,140px) rotate(6deg); } 50% { transform: translate(1235px,153px) rotate(-9deg); } }
@keyframes condor-distant { 0%,100% { transform: translate(1310px,178px) rotate(-4deg); } 50% { transform: translate(1175px,186px) rotate(7deg); } }
@keyframes eagle-soar { 0%,100% { transform: translate(690px,171px) rotate(5deg); } 50% { transform: translate(875px,151px) rotate(-8deg); } }
.turbine { fill: #889ba3; opacity: .67; }
.turbine-nacelle { fill: #81959e; }
.turbine-far { opacity: .43; }
/* Per-turbine phases stay in the local stylesheet under the static CSP. */
.turbine-row > .turbine:nth-child(1) { --turn-time: 29s; --turn-delay: 0s; }
.turbine-row > .turbine:nth-child(2) { --turn-time: 32s; --turn-delay: -3s; }
.turbine-row > .turbine:nth-child(3) { --turn-time: 35s; --turn-delay: -6s; }
.turbine-row > .turbine:nth-child(4) { --turn-time: 38s; --turn-delay: -9s; }
.turbine-row > .turbine:nth-child(5) { --turn-time: 29s; --turn-delay: -12s; }
.turbine-row > .turbine:nth-child(6) { --turn-time: 32s; --turn-delay: -15s; }
.turbine-row > .turbine:nth-child(7) { --turn-time: 35s; --turn-delay: -18s; }
.turbine-row > .turbine:nth-child(8) { --turn-time: 38s; --turn-delay: -21s; }
.turbine-row > .turbine:nth-child(9) { --turn-time: 29s; --turn-delay: -24s; }
.turbine-row > .turbine:nth-child(10) { --turn-time: 32s; --turn-delay: -27s; }
.turbine-row > .turbine:nth-child(11) { --turn-time: 35s; --turn-delay: -30s; }
.turbine-rotor { animation: turbine-turn var(--turn-time, 32s) linear infinite; animation-delay: var(--turn-delay, 0s); transform-origin: 0 0; }

@keyframes turbine-turn { to { transform: rotate(360deg); } }
.names { display: block; width: min(850px, 100%); padding: 0; border: 0; background: none; margin: auto; color: var(--rust); position: relative; }
.skywriting { display: block; width: 100%; height: auto; overflow: visible; }
.skywritten-names { font-family: var(--script); font-size: 74px; font-weight: 400; fill: var(--name-ink); }
.baby-intro { margin: -3px 0 0; }
.baby-kicker { display: block; font: 500 35px / 1.2 var(--display); }
.baby-arrival { display: block; font: 15px / 1.6 Arial, Helvetica, sans-serif; letter-spacing: .025em; margin-top: 8px; }
.baby-kicker, .baby-arrival { color: #2d465e; }
.baby-arrival { display: table; margin: 10px auto 0; padding: 5px 12px; background: #eee5d5; -webkit-background-clip: border-box; background-clip: border-box; color: #55483b; border-bottom: 1px solid #c2a889; }
.glider-trail { fill: none; stroke: #e8cba5; stroke-width: 1.4; stroke-linecap: round; opacity: .7; }
.glider-flight { color: var(--blue); transform-origin: 0 0; cursor: pointer; }
.glider-hover-area { fill: transparent; pointer-events: all; }
.names { cursor: default; }
.glider-tail, .glider-wings, .glider-body { fill: #f5f1e8; stroke: currentColor; stroke-width: 1.35; stroke-linejoin: round; }
.glider-canopy { fill: #5c7991; stroke: currentColor; stroke-width: .6; }
.glider-detail { fill: none; stroke: #91a3ad; stroke-width: .8; }
.skywriting-replay .name-reveal { animation: rewrite-names 9s linear both; }
.skywriting-replay .glider-flight { animation: fly-loop 9s linear both; }
.skywriting-replay .glider-trail { animation: rewrite-trail 9s linear both; }
@keyframes rewrite-names {
  0%, 48% { width: 0; }
  94%, 100% { width: 720px; }
}
@keyframes fly-loop {
  0% { transform: translate(915px, 24px) rotate(175deg); }
  18% { transform: translate(485px, 50px) rotate(176deg); }
  30% { transform: translate(105px, 83px) rotate(182deg); }
  34% { transform: translate(40px, 70px) rotate(225deg); }
  38% { transform: translate(28px, 31px) rotate(280deg); }
  42% { transform: translate(61px, 19px) rotate(350deg); }
  45% { transform: translate(94px, 57px) rotate(420deg); }
  48% { transform: translate(44px, 106px) rotate(360deg); }
  58% { transform: translate(184px, 82px) rotate(368deg); }
  68% { transform: translate(320px, 98px) rotate(352deg); }
  77% { transform: translate(475px, 85px) rotate(366deg); }
  86% { transform: translate(641px, 100px) rotate(367deg); }
  94% { transform: translate(757px, 113px) rotate(355deg); }
  97% { transform: translate(810px, 79px) rotate(318deg); }
  100% { transform: translate(886px, 44px) rotate(342deg); }
}
@keyframes rewrite-trail {
  0%, 94% { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
  100% { stroke-dasharray: 1; stroke-dashoffset: 0; opacity: .7; }
}
nav { display: flex; justify-content: center; gap: 34px; margin-top: 1px; position: relative; }
nav a { font-size: 17px; line-height: 1.4; padding-bottom: 3px; border-bottom: 1px solid transparent; }
nav a[aria-current] { border-bottom-color: var(--rust); }
nav a:hover { color: var(--rust); border-bottom-color: var(--rust); }
[id] { scroll-margin-top: 78px; }
.registry-ribbon { position: fixed; z-index: 30; top: 0; left: 0; width: 100%; display: flex; align-items: center; justify-content: center; gap: 30px; min-height: 55px; padding: 8px max(18px, env(safe-area-inset-right)) 8px max(18px, env(safe-area-inset-left)); background: #f7f1e8f5; border-bottom: 1px solid #cabaa3; color: var(--ink); backdrop-filter: blur(8px); box-shadow: 0 2px 12px #344c6510; }
.registry-ribbon > span { font: 14px / 1.3 var(--serif); }
.registry-ribbon a { min-height: 40px; display: inline-flex; align-items: center; gap: 15px; padding: 8px 15px; border: 1px solid #93472f; background: #93472f; color: #fff5e8; border-radius: 3px; font: 12px / 1.4 Arial, Helvetica, sans-serif; }
.section-tabs { position: fixed; z-index: 29; top: 112px; left: 0; width: 128px; margin: 0; display: block; text-align: left; }
.section-links { display: grid; gap: 7px; }
.section-links a { display: block; min-height: 44px; padding: 13px 10px; background: #e7d8b9; border: 1px solid #c9b68e; border-left: 0; border-radius: 0 7px 4px 0; font: 12px / 1.3 Arial, Helvetica, sans-serif; color: #695842; box-shadow: 1px 1px 3px #534b3610; }
.section-links a[aria-current] { background: #dcc19b; color: #763d29; border-right: 3px solid var(--rust); }
.section-links a:hover { background: #dfc9a4; color: #763d29; }
.folder-toggle { display: none; }

/* Real photograph, backed by a wooden railcar. Each car is one photo milestone. */
.railway { position: relative; background: var(--mural); isolation: isolate; }
.railway-landscape { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.railway-landscape svg { width: 100%; height: 100%; }
.ridge-far { fill: #8e9eb4; }
.ridge-near { fill: #637d94; }
.train-frame { position: relative; padding-top: 3px; }
.railcar-scroll { overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; position: relative; z-index: 2; }
.railcar-scroll::-webkit-scrollbar { display: none; }
.railcar-scroll:focus-visible { outline-offset: -3px; }
.railcar-line { width: 100%; }
.train-enhanced .railcar-line { display: flex; align-items: flex-start; }
.car-slot { width: 100%; padding-top: 19px; flex: 0 0 100%; display: flex; justify-content: center; scroll-snap-align: start; }
.train-car { --wheel-size: 56px; position: relative; width: calc(100% - 150px); max-width: 1280px; padding-bottom: 93px; }
.car-shell {
  position: relative; padding: 18px 33px; border: 8px solid #a05d46; border-top-width: 12px; border-bottom-width: 12px;
  background: repeating-linear-gradient(90deg, transparent 0 59px, #2b292357 60px 62px, transparent 63px 122px), repeating-linear-gradient(1deg, #74614d 0 2px, #695847 3px 5px, #84705a 6px 8px, #635749 9px 10px);
  box-shadow: inset 0 0 0 3px #563d2c, 0 6px 0 #302d28, 0 9px 0 #796453;
}
.car-roof { position: absolute; top: -13px; left: -7px; right: -7px; height: 19px; background: #a96751; border-top: 3px solid #bc8370; border-bottom: 5px solid #483c31; border-radius: 9px 9px 0 0; z-index: 3; }
.frame-rivets { position: absolute; top: -8px; bottom: -8px; left: -6px; right: -6px; pointer-events: none; background: radial-gradient(circle at 5px 5px, #582f22 0 2px, #c08973 2.5px 3.5px, transparent 4px) left top / 35px 10px repeat-x, radial-gradient(circle at 5px 5px, #582f22 0 2px, #c08973 2.5px 3.5px, transparent 4px) left bottom / 35px 10px repeat-x; }
.car-ladder { position: absolute; z-index: 3; top: -10px; bottom: -4px; right: 1px; width: 22px; border-left: 4px solid #b57760; border-right: 4px solid #8c4c35; background: repeating-linear-gradient(0deg, transparent 0 50px, #b57760 51px 55px, #78452f 56px 57px, transparent 58px 64px); box-shadow: 2px 0 1px #312720; }
.mural-photo { display: block; position: relative; aspect-ratio: 3172 / 1814; background: #7993b0; box-shadow: 0 0 0 4px #322f29; }
.mural-photo img { width: 100%; height: 100%; object-fit: contain; }
.car-underframe { position: absolute; left: 1%; right: 1%; bottom: 73px; height: 17px; background: #30302d; border-top: 5px solid #554a3e; border-bottom: 3px solid #1f2425; }
.car-underframe::after { content: ""; position: absolute; left: 18%; right: 18%; top: 14px; height: 12px; background: #544b40; clip-path: polygon(0 0, 100% 0, 87% 100%, 13% 100%); }
.wheel-truck { position: absolute; bottom: 21px; display: flex; gap: 15px; padding: 0 10px; }
.truck-left { left: 8%; }
.truck-right { right: 8%; }
.wheel-truck::before { content: ""; position: absolute; z-index: 2; left: 0; right: 0; top: 10px; height: 20px; border: 3px solid #343630; background: repeating-linear-gradient(0deg, #49473b 0 2px, #242822 3px 4px); box-shadow: 0 -6px 0 #34332c; }
.wheel { display: block; width: var(--wheel-size); height: var(--wheel-size); border: 5px solid #313936; border-radius: 50%; background: radial-gradient(circle, #859091 0 4px, #333e40 5px 9px, transparent 10px), conic-gradient(#3b4645 0deg 24deg, #626a64 24deg 29deg, #3b4645 29deg 90deg, #626a64 90deg 95deg, #3b4645 95deg 180deg, #626a64 180deg 185deg, #3b4645 185deg 270deg, #626a64 270deg 275deg, #3b4645 275deg); box-shadow: inset 0 0 0 3px #707871; }
.train-moving .wheel { animation: wheel-turn .6s linear infinite; }
@keyframes wheel-turn { to { transform: rotate(360deg); } }
.car-coupler { position: absolute; bottom: 69px; width: 30px; height: 9px; background: #383a31; border: 2px solid #5e5d4f; z-index: -1; }
.coupler-left { left: -27px; }
.coupler-right { right: -27px; }
.car-coupler::after { content: ""; position: absolute; top: -4px; width: 10px; height: 12px; background: #464738; }
.coupler-left::after { left: 0; }
.coupler-right::after { right: 0; }
.rail-line { position: absolute; left: 0; right: 0; bottom: 0; height: 43px; background: repeating-linear-gradient(90deg, transparent 0 23px, #73624f 24px 40px, #4c493d 41px 43px, transparent 44px 74px), #91a0a0; }
.rail-steel { position: absolute; left: 0; right: 0; height: 6px; background: #485651; border-top: 2px solid #c1c5bd; box-shadow: 0 3px 0 #343e38; }
.rail-back { top: 3px; }
.rail-front { top: 20px; }
.car-controls { position: absolute; left: 14px; right: 14px; top: 0; bottom: 100px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; z-index: 4; }
.car-controls button { position: relative; pointer-events: auto; display: grid; place-items: center; border: 1px solid #ad694f; border-radius: 50%; color: var(--rust); background: #edf2efe8; width: 46px; height: 46px; padding: 0; box-shadow: 0 2px 5px #344c6518; transition: background .15s, color .15s, transform .15s; }
.car-controls button svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.car-controls button:hover:not(:disabled) { background: var(--rust); color: #f5eee4; transform: scale(1.06); }
.car-controls button:disabled { opacity: .28; cursor: default; box-shadow: none; }
.history-poster { aspect-ratio: 3172 / 1814; background: #d8e4e8; padding: 6% 8%; position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; justify-content: center; box-shadow: 0 0 0 4px #322f29; }
.history-heading h2 { font-family: var(--display); font-size: clamp(25px, 4vw, 52px); font-weight: 500; margin: 0; }
.history-heading .placeholder-note { margin: 8px 0 0; }
.history-photo-placeholder { color: #7b9099; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.history-photo-placeholder svg { width: clamp(42px, 8vw, 95px); stroke: currentColor; stroke-width: 1.5; }
.history-photo-placeholder span { font-size: 16px; font-style: italic; }
.timeline-stops { display: flex; width: min(900px, calc(100% - 44px)); margin: 27px auto 16px; justify-content: space-between; position: relative; }
.timeline-stops::before { content: ""; position: absolute; height: 1px; background: #7390a3; top: 23px; left: 8%; right: 8%; }
.timeline-stops button { flex: 1 1 0; min-width: 0; min-height: 90px; position: relative; border: 0; background: none; padding: 0 5px; color: var(--ink); display: flex; align-items: center; flex-direction: column; }
.stop-marker { display: grid; place-items: center; flex-shrink: 0; border: 1px solid transparent; background: var(--mural); width: 46px; height: 46px; border-radius: 50%; margin-bottom: 9px; transition: transform .2s, border-color .2s, color .2s; }
.stop-marker svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.milestone-accent { stroke: var(--rust); }
.timeline-stops button:hover .stop-marker { color: var(--rust); }
.timeline-stops button[aria-pressed="true"] .stop-marker { border-color: var(--rust); color: #88442f; transform: scale(1.1); }
.stop-title { font-size: 15px; max-width: 100%; transition: transform .2s, color .2s; }
.timeline-stops button[aria-pressed="true"] .stop-title { transform: scale(1.08); color: #88442f; font-weight: 600; }
.timeline-stops small { font-family: Arial, Helvetica, sans-serif; font-size: 9px; margin-top: 6px; opacity: .7; }
.timeline-stops button[aria-pressed="true"] small { color: #88442f; opacity: 1; }
.moment-description { font-size: 16px; line-height: 1.5; color: var(--ink); text-align: center; max-width: 610px; margin: 20px auto 0; padding: 0 24px; }

.announcement { max-width: 810px; text-align: center; margin: auto; padding: 60px 28px 62px; }
.script-intro { font-family: var(--script); font-size: 45px; line-height: 1.2; margin: 0 0 26px; color: var(--rust); }
h1 { font-family: var(--display); font-size: clamp(40px, 4.8vw, 64px); font-weight: 500; line-height: 1.12; letter-spacing: -.015em; margin: 0 0 15px; }
.due-date { font-size: 18px; color: var(--rust); margin: 0 0 23px; }
.announcement-copy { max-width: 570px; margin: auto; font-size: 18px; line-height: 1.65; color: #414e3b; }
.placeholder-note { font-size: 12px; color: var(--muted); margin: 18px 0 0; }
.baby-name-note { font-size: 14px; font-style: italic; color: var(--muted); margin: 18px 0 0; }
.signature { margin: 27px 0 0; font-size: 17px; font-style: italic; color: var(--rust); }
.primary-link { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 50px; border: 1px solid #93472f; background: #93472f; color: #fff7ec; padding: 14px 25px; font: 14px / 1.4 Arial, Helvetica, sans-serif; border-radius: 2px; }
.primary-link { margin-top: 30px; }
.primary-link:hover { background: #7e3a27; }
.registry { width: 100%; text-align: center; margin: 0; padding: 52px 40px 50px; background: var(--wood-paper); border-top: 1px solid #cbb89f; border-bottom: 1px solid #cbb89f; }
.registry-inner { max-width: 950px; margin: auto; }
h2 { font-family: var(--display); font-size: 36px; font-weight: 500; line-height: 1.2; margin: 0 0 22px; }
.registry-eyebrow { font: 11px / 1.5 Arial, Helvetica, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #88442f; margin: 0 0 15px; }
.registry h2 { font-size: clamp(36px, 4vw, 49px); margin-bottom: 22px; }
.registry-intro { max-width: 540px; font-size: 17px; line-height: 1.65; margin: 0 auto 28px; }
.gift-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 27px; margin-top: 34px; }
.gift-card { display: flex; flex-direction: column; align-items: center; border: 1px solid #c0a68b; border-radius: 7px; padding: 34px 28px 30px; min-height: 350px; background: #f4ecdf; box-shadow: 0 4px 12px #57463209; transition: transform .2s, box-shadow .2s, border-color .2s; }
.gift-card:hover { transform: translateY(-3px); border-color: var(--rust); box-shadow: 0 8px 20px #57463215; }
.amazon-card { border-top: 4px solid var(--rust); background: #fbf4e8; }
.collection-card { background: #eee2d1; }
.gift-card h3 { font: 500 32px / 1.15 var(--display); margin: 18px 0 13px; }
.gift-card p { font-size: 15px; line-height: 1.6; margin: 0 0 25px; max-width: 330px; }
.gift-card .amazon-registry-title { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 8px; min-height: 96px; padding-block: 22px; margin: 0 0 18px; font-size: 28px; }
.amazon-wordmark { display: inline-block; font: 600 35px / 1 Arial, Helvetica, sans-serif; letter-spacing: -.06em; color: #293e50; }
.collection-bear { width: 96px; height: 96px; object-fit: contain; }
.card-action { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 46px; font: 13px / 1.4 Arial, Helvetica, sans-serif; color: #88422c; }
.amazon-card .card-action { padding: 12px 18px; background: #93472f; color: #fff5e7; border-radius: 3px; }
.collection-card .card-action { border-bottom: 1px solid #a5523960; }
.quiet-link { display: inline-block; color: #93472f; padding-bottom: 4px; border-bottom: 1px solid var(--rust); font-size: 15px; }
.quiet-link span { display: inline-block; margin-left: 9px; transition: transform .2s; }
.quiet-link:hover span { transform: translateX(4px); }
.orchard-footer { text-align: center; padding: 0 0 22px; }
/* Keep the complete railway in view at every screen width. */
.orchard { display: block; width: 100%; height: auto; aspect-ratio: 1600 / 650; margin: 0 auto 16px; overflow: hidden; }
.loop-landscape { width: 100%; margin: 0 auto 25px; }
.loop-terrain { fill: #c7cebd; }
.loop-hill { fill: #adb997; }
.loop-hill-light { fill: #bdc6a9; }
.cable-hill { fill: #acb798; }
.cable-stone { fill: #b7b5a4; }
.cable-stone-edge { fill: none; stroke: #8e9683; stroke-width: 1.8; }
.valley-contour { fill: none; stroke: #b4bfa7; stroke-width: 2; stroke-linecap: round; }
.loop-ballast { fill: none; stroke: #b2b9a6; stroke-width: 10; }
.loop-sleepers { stroke: #83927f; stroke-width: 1.2; }
.loop-rails { fill: none; stroke: #637975; stroke-width: 1.3; }
.loop-tunnel-hill { fill: #aab697; }
.loop-tunnel-mouth { fill: #435547; }
.tunnel-stone { fill: none; stroke: #8e9b80; stroke-width: 5; stroke-linejoin: round; }
.loop-train { cursor: pointer; }
.loop-vehicle { stroke-linejoin: round; }
.train-roof { fill: #d2cbbb; }
.train-side { fill: var(--car-color); }
.train-end { fill: var(--car-color); filter: brightness(.78); }
.train-underframe { stroke: #43524b; stroke-width: 2.3; fill: none; }
.train-wheel { fill: #37453f; }
.train-panel { stroke: #efe6d7; opacity: .45; stroke-width: .65; }
.train-window { fill: #233e51; }
.train-stripe { stroke: #f0e6d5; stroke-width: 3; }
.train-rust-stripe { stroke: #ab563a; stroke-width: 1.6; }
.train-lettering { fill: #fff1da; font: bold 4.5px Arial, sans-serif; }
.train-hit-area { fill: transparent; stroke: transparent; stroke-width: 16; pointer-events: all; }
.valley-wildlife { opacity: .94; }
.animal-shadow { fill: #66735a; opacity: .13; }
.elk-body, .animal-ear { fill: #aa9070; }
.elk-rump { fill: #e6d3ad; }
.elk-neck { fill: #86715b; }
.elk-leg { fill: none; stroke: #aa9070; stroke-width: 5; stroke-linecap: round; }
.elk-antlers { fill: none; stroke: #806e56; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bear-body { fill: #8e795f; }
.bear-muzzle { fill: #c7ad87; }
.cow-body { fill: #e6dbc3; }
.cow-patch { fill: #9c7356; }
.cow-muzzle { fill: #c9aa8b; }
.cow-tail { fill: none; stroke: #a88969; stroke-width: 2; stroke-linecap: round; }
.animal-eye { fill: #4a483a; }
.animal-nose { fill: none; stroke: #5b5141; stroke-width: 1.5; stroke-linecap: round; }
.oak-trunk { fill: #86755c; }
.oak-crown { fill: #7e8e6c; }
.oak-branches { fill: none; stroke: #91826a; stroke-width: 2; stroke-linecap: round; }
.loop-landscape figcaption { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(760px,calc(100% - 40px)); margin: 0 auto; padding: 14px 0; border-top: 1px solid var(--line); font-size: 16px; color: var(--ink); text-align: left; }
.loop-control { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 24px; padding: 8px 15px; min-height: 44px; background: transparent; color: var(--muted); font: 12px Arial,sans-serif; }
.loop-control::before { content: 'Ⅱ'; font-size: 15px; }
.loop-control[aria-pressed="true"]::before { content: '▶'; font-size: 11px; }
.loop-control:hover { background: var(--paper); color: var(--rust); }
.footer-mountain-far { fill: #cbd6d9; }
.footer-mountain-near { fill: #bdcacc; }
.orchard-hill { fill: #bbc4b6; }
.tree-crown { fill: #6b7c59; }
.tree-trunk { fill: #76634c; }
.tree-branches { fill: none; stroke: #a3ad88; stroke-width: 1.5; }
.apple { fill: var(--rust); }
.footer-names { font-family: var(--script); font-size: 32px; color: var(--rust); }
.footer-bottom { display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: start; gap: 24px; padding: 22px 45px 0; }
.more-links { margin: 0; text-align: left; }
.more-links summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-size: 13px; color: var(--muted); padding: 4px 0; list-style: none; border-bottom: 1px solid var(--line); }
.more-links summary::-webkit-details-marker { display: none; }
.more-links summary::after { content: "⌄"; display: inline-block; margin-left: 8px; transition: transform .2s; }
.more-links[open] summary::after { transform: rotate(180deg); }
.more-links summary:focus-visible { outline: 2px solid var(--rust); outline-offset: 4px; }
.family-links { display: grid; gap: 14px; margin: 20px 0 0; font-size: 14px; color: var(--rust); }
.site-credit { justify-self: end; text-align: right; border-right: 3px solid #a5523980; padding-right: 12px; color: #6b5d4d; }
.site-credit > span { display: block; font: 10px / 1.5 Arial, Helvetica, sans-serif; margin-bottom: 6px; }
.site-credit strong { display: block; font: 600 12px / 1.5 Arial, Helvetica, sans-serif; letter-spacing: .025em; color: #884b34; }
.family-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-year { display: block; color: var(--muted); font: 10px / 1.5 Arial, Helvetica, sans-serif; margin-top: 5px; }
.event-page { min-height: 100vh; display: flex; flex-direction: column; }
.event-page .site-header { padding-top: 30px; }
.event-brand { display: block; font-family: var(--script); font-size: clamp(34px, 5vw, 62px); color: var(--rust); margin-bottom: 20px; }
.sip-and-see { width: min(680px, 100%); margin: auto; padding: 45px 28px 60px; text-align: center; }
.event-bear { margin: 0 auto 20px; }
.sip-and-see .script-intro { font-size: 36px; margin-bottom: 18px; }
.sip-and-see h1 { font-size: clamp(40px,8vw,70px); margin-bottom: 10px; }
.event-year { font-family: var(--display); font-size: 26px; color: var(--rust); margin: 0 0 30px; }
.sip-and-see h2 { font-size: 30px; margin-bottom: 18px; }
.sip-and-see > p:not([class]) { font-size: 16px; line-height: 1.7; margin: 0 0 28px; }
.event-footer { text-align: center; padding: 20px 20px 30px; }

/* The sun/moon control changes the page palette; daylight is always the default. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #152536;
  --ink: #e6edf0;
  --muted: #bbc8cd;
  --line: #506574;
  --blue: #68869d;
  --rust: #e5a78a;
  --mural: #193149;
  --wood-paper: #24333f;
  --name-ink: #f1dbc0;
}
.site-header, .railway, .registry, .gift-card, .registry-ribbon, .name-poll-teaser, .history-poster { transition: background-color .4s, color .4s, border-color .4s; }
[data-theme="dark"] .sky-stars { opacity: .8; }
[data-theme="dark"] .sky-toggle .sun-icon { display: none; }
[data-theme="dark"] .sky-toggle .moon-icon { display: block; }
[data-theme="dark"] .baby-kicker { color: #f6ecd8; }
[data-theme="dark"] .baby-arrival { color: #f1dbc0; background: #283f53; border-color: #61717d; }
[data-theme="dark"] .b2-bomber { fill: #a1b2c0; opacity: .28; }
[data-theme="dark"] .b2-detail { stroke: #1a3045; }
[data-theme="dark"] .space-rocket { fill: #c78d70; stroke: #c78d70; }
[data-theme="dark"] .sky-bird { fill: #9aaebb; opacity: .25; }
[data-theme="dark"] .bald-eagle { fill: #b5a78e; }
[data-theme="dark"] .cable-stone { fill: #6d7563; }
[data-theme="dark"] .cable-stone-edge { stroke: #8b947d; }
[data-theme="dark"] .ridge-far { fill: #3b5066; }
[data-theme="dark"] .ridge-near { fill: #2a4156; }
[data-theme="dark"] .car-controls button { background: #20394deb; border-color: #b3836d; }
[data-theme="dark"] .car-controls button:hover:not(:disabled) { background: #a55239; }
[data-theme="dark"] .history-poster { background: #223c50; }
[data-theme="dark"] .history-photo-placeholder { color: #9fb3bf; }
[data-theme="dark"] .timeline-stops::before { background: var(--line); }
[data-theme="dark"] .timeline-stops button[aria-pressed="true"] .stop-title,
[data-theme="dark"] .timeline-stops button[aria-pressed="true"] small,
[data-theme="dark"] .timeline-stops button[aria-pressed="true"] .stop-marker { color: var(--rust); }
[data-theme="dark"] .timeline-note, [data-theme="dark"] .announcement-copy { color: var(--muted); }
[data-theme="dark"] .registry { border-color: #53626a; }
[data-theme="dark"] .registry-eyebrow, [data-theme="dark"] .quiet-link,
[data-theme="dark"] .collection-card .card-action,
[data-theme="dark"] .site-credit strong { color: var(--rust); }
[data-theme="dark"] .gift-card { border-color: #657078; }
[data-theme="dark"] .amazon-card { background: #203142; border-top-color: var(--rust); }
[data-theme="dark"] .collection-card { background: #2b3945; }
[data-theme="dark"] .amazon-wordmark { color: #f1e8d9; }
[data-theme="dark"] .name-poll-teaser { background: #1b2c3c; }
[data-theme="dark"] .registry-ribbon { background: #152536f5; border-color: var(--line); }
[data-theme="dark"] .section-links a, [data-theme="dark"] .folder-toggle { background: #554b3e; color: #f0e4ce; border-color: #887457; }
[data-theme="dark"] .section-links a:hover, [data-theme="dark"] .section-links a[aria-current] { background: #756049; color: #fff1da; }
[data-theme="dark"] .folder-toggle[aria-expanded="true"] + .section-links { background: #343536; }
[data-theme="dark"] .footer-mountain-far { fill: #253947; }
[data-theme="dark"] .footer-mountain-near { fill: #2a3f4a; }
[data-theme="dark"] .turbine { fill: #91aabb; }
[data-theme="dark"] .loop-terrain { fill: #33473d; }
[data-theme="dark"] .loop-overpass-bed { stroke: #33473d; }
[data-theme="dark"] .loop-hill, [data-theme="dark"] .loop-tunnel-hill, [data-theme="dark"] .cable-hill { fill: #415442; }
[data-theme="dark"] .loop-hill-light { fill: #4b5d47; }
[data-theme="dark"] .loop-ballast { stroke: #526353; }
[data-theme="dark"] .valley-contour { stroke: #465943; }
[data-theme="dark"] .tunnel-stone { stroke: #66735b; }
[data-theme="dark"] .loop-tunnel-mouth { fill: #18231d; }
[data-theme="dark"] .loop-rails, [data-theme="dark"] .loop-overpass-rail { stroke: #95a79a; }
[data-theme="dark"] .orchard-hill { fill: #293c34; }
[data-theme="dark"] .tree-crown { fill: #415842; }
[data-theme="dark"] .tree-trunk { fill: #8c735c; }
[data-theme="dark"] .valley-wildlife { opacity: .8; }
[data-theme="dark"] .elk-antlers { stroke: #8c9a84; }
[data-theme="dark"] .site-credit { color: var(--muted); }

@media (max-width: 700px) {
  .site-header { padding: 24px 22px 23px; }
  #home.site-header { padding-top: 48px; }
  .sky-toggle { top: 5px; right: max(8px, env(safe-area-inset-right)); width: 44px; height: 44px; padding: 6px; }
  .sky-toggle svg { width: 32px; height: 32px; }
  .names { width: 100%; }
  .baby-intro { margin: 8px 0 0; }
  .baby-kicker { font-size: 28px; }
  .baby-arrival { font-size: 13px; letter-spacing: 0; }
  .sky-landmarks { opacity: .68; }
  nav { gap: 23px; margin-top: 12px; }
  nav a { font-size: 15px; }
  .train-car { --wheel-size: 29px; width: calc(100% - 74px); padding-bottom: 64px; }
  .car-slot { padding-top: 15px; }
  .car-shell { padding: 7px 11px; border-width: 5px; border-top-width: 7px; border-bottom-width: 7px; }
  .car-roof { top: -8px; height: 13px; left: -3px; right: -3px; border-bottom-width: 3px; }
  .car-ladder { right: -2px; width: 11px; border-left-width: 2px; border-right-width: 2px; background: repeating-linear-gradient(0deg, transparent 0 21px, #b57760 22px 24px, transparent 25px 30px); }
  .mural-photo, .history-poster { box-shadow: 0 0 0 2px #322f29; }
  .car-underframe { bottom: 49px; height: 10px; border-top-width: 3px; border-bottom-width: 2px; }
  .car-underframe::after { top: 7px; height: 7px; }
  .wheel-truck { bottom: 20px; gap: 6px; padding: 0 5px; }
  .wheel-truck::before { top: 4px; height: 13px; border-width: 2px; box-shadow: 0 -2px 0 #34332c; }
  .wheel { border-width: 3px; background: radial-gradient(circle, #859091 0 2px, #333e40 3px 5px, #626a64 6px 8px, #3b4645 9px); box-shadow: inset 0 0 0 1px #707871; }
  .car-coupler { bottom: 45px; width: 18px; height: 7px; }
  .coupler-left { left: -15px; }
  .coupler-right { right: -15px; }
  .rail-line { height: 33px; }
  .rail-front { top: 12px; }
  .rail-back { top: 0; }
  .car-controls { left: 4px; right: 4px; bottom: 69px; }
  .car-controls button { width: 36px; height: 36px; }
  .car-controls button::after { content: ""; position: absolute; inset: -4px; }
  .car-controls button svg { width: 19px; height: 19px; }
  .history-poster { padding: 5% 6%; gap: 12px; }
  .history-heading h2 { font-size: 22px; }
  .history-heading .placeholder-note { font-size: 9px; margin-top: 4px; }
  .history-photo-placeholder { gap: 3px; }
  .history-photo-placeholder svg { width: 34px; }
  .history-photo-placeholder span { font-size: 12px; }
  .timeline-stops { width: calc(100% - 30px); margin-top: 23px; }
  .timeline-stops button { padding: 0 2px; }
  .timeline-stops button:first-child { flex-grow: 1.65; }
  .stop-title { font-size: 10px; line-height: 1.2; min-height: 2.4em; }
  .stop-marker { width: 38px; height: 38px; margin-bottom: 8px; }
  .stop-marker svg { width: 28px; height: 28px; }
  .timeline-stops::before { top: 19px; left: 12.4%; right: 7.5%; }
  .timeline-stops small { font-size: 9px; margin-top: 5px; opacity: .8; }
  .moment-description { font-size: 14px; margin-top: 18px; }
  .timeline-note { font-size: 9px; padding-bottom: 18px; }
  .announcement { padding: 42px 26px 44px; }
  .script-intro { font-size: 35px; margin-bottom: 23px; }
  h1 { font-size: 40px; margin-bottom: 13px; }
  .due-date { font-size: 16px; margin-bottom: 22px; }
  .announcement-copy { font-size: 16px; }
  .placeholder-note { font-size: 10px; line-height: 1.6; }
  .signature { font-size: 15px; margin-top: 24px; }
  .registry { width: 100%; padding: 40px 26px 38px; }
  h2 { font-size: 32px; }
  .registry-intro { font-size: 16px; margin-bottom: 26px; }
  .primary-link { padding-inline: 18px; gap: 10px; }
  .gift-cards { grid-template-columns: 1fr; gap: 20px; }
  .gift-card { padding: 27px 22px; min-height: 320px; }
  .gift-card h3 { font-size: 31px; }
  .gift-card p { font-size: 14px; }
  .footer-bottom { padding: 15px 24px 0; grid-template-columns: 1fr 1fr; gap: 20px 15px; }
  .footer-bottom > .footer-names { grid-column: 1 / -1; grid-row: 1; }
  .footer-bottom > .more-links { grid-row: 2; }
  .site-credit { grid-row: 2; align-self: center; padding-right: 8px; }
  .site-credit strong { font-size: 11px; }
  .registry-ribbon { justify-content: space-between; gap: 10px; padding-inline: 12px; min-height: 53px; }
  .registry-ribbon > span { font-size: 13px; }
  .registry-ribbon time { display: none; }
  .registry-ribbon a { min-height: 44px; padding: 8px 12px; gap: 10px; }
}
@media (max-width: 360px) {
  nav { gap: 17px; }
  .stop-title { font-size: 9px; }
  .timeline-stops button:first-child { flex-grow: 1.8; }
  .history-heading h2 { font-size: 18px; }
  .history-photo-placeholder svg { width: 23px; }
  .history-photo-placeholder span { font-size: 10px; }
  .baby-kicker { font-size: 25px; }
}
@media (max-width: 1299px) {
  .section-tabs { width: 44px; top: 90px; }
  .folder-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 8px; background: #e7d8b9f0; border: 1px solid #c9b68e; border-left: 0; border-radius: 0 5px 5px 0; color: #8b6d41; }
  .folder-toggle svg { width: 27px; height: 24px; fill: #d4b989; stroke: #a38b61; stroke-width: 1; }
  #current-section { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .section-links { display: none; }
  .folder-toggle[aria-expanded="true"] + .section-links { display: grid; width: 152px; margin-top: 8px; padding: 6px 0; max-height: calc(100vh - 154px); max-height: calc(100dvh - 154px); overflow-y: auto; overscroll-behavior: contain; background: #f2e8d7; border-radius: 0 7px 7px 0; box-shadow: 3px 3px 15px #43504325; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .site-header { padding-top: 8px; padding-bottom: 18px; }
  #home.site-header { padding-top: 8px; }
  .names { width: min(540px, 78%); }
  .baby-intro { margin: 0 0 12px; }
  nav { margin-top: 0; }
  .announcement { padding-block: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="full"]) { scroll-behavior: auto; }
  html:not([data-motion="full"]) *, html:not([data-motion="full"]) *::before, html:not([data-motion="full"]) *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
html[data-motion="reduced"] { scroll-behavior: auto; }
html[data-motion="reduced"] *, html[data-motion="reduced"] *::before, html[data-motion="reduced"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

/* Private preview iteration: one announcement, native destination cards and file tabs. */
h1.baby-kicker { margin: 0; font-weight: 500; }
.moment-description[hidden] { display: none; }
.family-destinations { padding: 50px 24px; text-align: center; background: #f3f0e7; }
.destination-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; max-width: 1080px; margin: 25px auto 0; }
.destination-card { display: flex; flex-direction: column; align-items: center; padding: 28px 24px; background: #faf7f0; border: 1px solid #d2c7b7; border-radius: 4px; scroll-snap-align: center; }
.destination-card:hover { border-color: var(--rust); }
.destination-symbol { font-size: 30px; color: var(--rust); }
.destination-card h2 { font: 30px / 1.15 var(--display); margin: 18px 0 12px; }
.destination-card p { font-size: 17px; line-height: 1.6; flex: 1; }
.destination-card small { margin-top: 18px; font: 11px / 1.5 Arial,sans-serif; color: #5d6659; }
.nursery-placeholder { display: grid; place-items: center; gap: 18px; min-height: 250px; margin: 30px auto; background: var(--wood-paper); border: 1px solid #cbb89f; }
.family-photo { margin: 30px 0; }
.family-photo img { width: 100%; height: auto; }
.family-photo figcaption { font-size: 15px; margin-top: 12px; }
.section-tabs { width: 37px; }
.section-links a { writing-mode: vertical-rl; min-height: auto; padding: 14px 10px; border-radius: 0 9px 3px 0; font-size: 11px; }
@media (max-width: 1299px) {
 .section-tabs { width: 28px; top: 88px; }
 .folder-toggle { display: none; }
 .section-links { display: grid; gap: 4px; }
 .section-links a { padding: 9px 7px; font-size: 10px; }
}
@media (max-width: 680px) {
 .destination-cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 18px; gap: 15px; }
 .destination-card { flex: 0 0 85%; }
 .registry-ribbon > span { font-size: 12px; }
 .registry-ribbon time { display: inline; }
 .registry-ribbon { gap: 8px; }
 .registry-ribbon a { padding: 8px 10px; font-size: 11px; white-space: nowrap; }
 .hero-note { font-size: 14px; }
 .sip-and-see { padding-inline: 30px; }
}
[data-theme="dark"] .family-destinations { background: #25394b; }
[data-theme="dark"] .destination-card { background: #2d4356; border-color: #637182; }
[data-theme="dark"] .destination-card small { color: #ccd0c5; }

/* Local photographic end panel and quieter regional details. */
:root { --mountain-one: #b5cbd7; --mountain-two: #9cacc1; --mountain-three: #8396af; --mountain-four: #637d94; }
.mountain-layer-one { fill: var(--mountain-one); }
.mountain-layer-two { fill: var(--mountain-two); }
.ridge-far, .footer-mountain-far { fill: var(--mountain-three); }
.ridge-near, .footer-mountain-near { fill: var(--mountain-four); }
.car-shell { background-image: linear-gradient(0deg,#201b1955,transparent 12% 85%,#c2a88c22), repeating-linear-gradient(90deg,transparent 0 58px,#28221d70 59px 61px,transparent 62px 120px), repeating-linear-gradient(87deg,#74614d 0 2px,#695847 3px 5px,#84705a 6px 8px,#635749 9px 12px); border-color: #a9664e; box-shadow: inset 0 0 0 2px #b28263,inset 0 10px 13px #28221e70,0 6px 0 #302d28,0 9px 0 #796453; }
.car-ladder { top: -11px; bottom: -6px; right: -5px; width: clamp(19px,5.9%,77px); border: 0; background: url('../assets/railcar-end-panel.png') right top / 130% 109% no-repeat; box-shadow: -2px 0 3px #241e1c55; }
.car-roof { background: linear-gradient(#be8770 0 10%,#aa6c54 16% 65%,#704832 72%); }
.history-poster { margin-right: clamp(8px,2.5%,32px); background-image: linear-gradient(105deg,#d6e2e518,transparent 45%,#52667b10); }
.announcement-stork { position: absolute; width: 32%; height: auto; left: 41%; bottom: 1%; pointer-events: none; overflow: visible; filter: drop-shadow(0 2px 1px #31424e20); }
.stork-flight-wing, .stork-bundle-tie { opacity: 0; }
.stork-arriving .stork-bird { animation: stork-arrival 7s ease-in-out both; }
.stork-arriving .stork-baby { animation: baby-delivery 7s ease-in-out both; }
.stork-arriving .stork-flight-wing { animation: stork-wing 7s linear both; }
.stork-arriving .stork-bundle-tie { animation: stork-tie 7s linear both; }
.stork-arriving .stork-bird, .stork-arriving .stork-baby, .stork-arriving .stork-flight-wing, .stork-arriving .stork-bundle-tie { animation-play-state: paused; }
.stork-in-view .stork-arriving * { animation-play-state: running; }
@keyframes stork-arrival {
  0% { transform: translate(-240px,-150px) rotate(-8deg); opacity: 0; }
  10% { opacity: 1; }
  55% { transform: translate(-40px,-30px); }
  68% { transform: translate(-10px,-10px); }
  85% { transform: translate(-2px,-8px); }
  100% { transform: translateY(7px); opacity: 1; }
}
@keyframes baby-delivery {
  0% { transform: translate(-320px,-182px); opacity: 0; }
  10% { opacity: 1; }
  55% { transform: translate(-15px,-62px); }
  68% { transform: translate(-15px,-42px); }
  82%, 100% { transform: translateY(55px); opacity: 1; }
}
@keyframes stork-wing { 0%, 68% { opacity: 1; } 85%, 100% { opacity: 0; } }
@keyframes stork-tie { 0%, 68% { opacity: 1; } 70%, 100% { opacity: 0; } }
.sky-landmarks { overflow: hidden; }
.b2-bomber { opacity: .14; }
.space-rocket { opacity: .16; }
.mountain-patrol { transform-origin: 0 0; animation-play-state: paused !important; }
.mountains-in-view .mountain-patrol { animation-play-state: running !important; }
.sky-bird, .bald-eagle { opacity: .21; }
.turbine-rotor { animation-play-state: paused; }
.mountains-in-view .turbine-rotor { animation-play-state: running; }
.satellite-sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; display: none; overflow: hidden; }
.satellite-train { fill: #f4ecd9; opacity: .48; transform: translate(250px,95px) rotate(-4deg); animation: satellite-pass 96s linear infinite; animation-play-state: paused; }
[data-theme="dark"] .satellite-sky { display: block; }
.sky-in-view[data-theme="dark"] .satellite-train { animation-play-state: running; }
@keyframes satellite-pass { from { transform: translate(-360px,140px) rotate(-4deg); } to { transform: translate(1640px,18px) rotate(-4deg); } }
:root[data-theme="dark"] { --mountain-one:#354a63; --mountain-two:#30455e; --mountain-three:#293e56; --mountain-four:#22364b; }
[data-theme="dark"] .b2-bomber { opacity: .14; }
@media (max-width:680px) { .car-ladder { top: -7px; bottom: -5px; right: -3px; width: 6.3%; min-width: 14px; border: 0; background: url('../assets/railcar-end-panel.png') right top / 130% 109% no-repeat; } }

/* The opening photograph already contains its own authentic end ladder. */
.car-slot[data-moment="0"] .car-ladder { display: none; }
[data-theme="dark"] .ridge-far, [data-theme="dark"] .footer-mountain-far { fill: var(--mountain-three); }
[data-theme="dark"] .ridge-near, [data-theme="dark"] .footer-mountain-near { fill: var(--mountain-four); }

/* Compact opening announcement; registry actions begin below the rails. */
#home .baby-intro { margin: 0; }
#home .baby-kicker { font-size: clamp(27px,3.1vw,39px); line-height: 1.15; }
#home .baby-arrival { display: block; margin: 9px 0 0; padding: 0; background: none; border: 0; font: 14px/1.5 Arial, sans-serif; letter-spacing: .02em; }
.timeline-stops .announcement-marker { border-radius: 5px; }
.timeline-stops button[aria-pressed="true"] .announcement-marker { border-color: transparent; }
@media (max-width:700px) { #home .baby-arrival { font-size: 12px; margin-top: 7px; } }

/* Family photographs keep their complete framing inside the history railcars. */
.history-poster.has-photo { padding: 0; gap: 0; }
.history-photos { display: grid; grid-template-columns: minmax(0,7fr) minmax(0,3fr); gap: 8px; flex: 1; min-height: 0; width: 100%; padding: 8px; }
.history-supporting { display: grid; grid-template-rows: repeat(2,minmax(0,1fr)); gap: 8px; min-width: 0; min-height: 0; }
.history-media { flex: 1; min-height: 0; width: 100%; position: relative; background: #c5d3d9; }
.history-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.history-photo-pending { display: grid; place-items: center; background: #d5dfe2; border: 1px dashed #a5b5bb; color: #5f727d; }
.history-photo-pending span { font: italic clamp(9px,1.1vw,14px)/1.4 var(--serif); padding: 5px; }
.has-photo .history-heading { flex: none; width: 100%; padding: 8px 12px; background: #eee6d9; border-top: 1px solid #b6a28e; }
.has-photo .history-heading h2 { font-size: clamp(18px,2vw,29px); line-height: 1.1; }
.has-photo .history-heading .placeholder-note { font-size: clamp(10px,1.1vw,13px); margin-top: 3px; }
.photo-motion-toggle { position: absolute; right: 10px; bottom: 10px; min-height: 44px; padding: 8px 12px; border: 1px solid #e2d3bf; border-radius: 3px; background: #263e52e6; color: #fff7ec; font: 12px/1.3 Arial,sans-serif; }
.photo-motion-toggle:hover { background: #844126; }
.photo-gallery { width: min(1100px,100%); }
.family-photos { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; margin: 30px 0; }
.family-photos .family-photo { margin: 0; min-width: 0; }
.photo-media { position: relative; aspect-ratio: 4/3; background: #c5d3d9; }
.photo-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
[data-theme="dark"] .history-media, [data-theme="dark"] .photo-media { background: #1a2e40; }
[data-theme="dark"] .history-photo-pending { background: #243c4c; border-color: #657b8b; color: #bdccd3; }
[data-theme="dark"] .has-photo .history-heading { background: #243c4c; }
@media (max-width:700px) {
 .history-photos, .history-supporting { gap: 4px; }
 .history-photos { padding: 4px; }
 .has-photo .history-heading { padding: 5px 8px; }
 .family-photos { grid-template-columns: 1fr; gap: 24px; }
 .photo-motion-toggle { right: 6px; bottom: 6px; padding: 6px 8px; font-size: 11px; }
}

/* Dating and Moved In each fill the railcar with one photograph, without a caption. */
.history-poster.photo-only > .history-media { position: absolute; inset: 0; height: 100%; }
.history-poster.photo-only img { object-fit: cover; object-position: center 60%; }

/* The Loop's central relief changes; the accepted outer valley contours remain. */
.loop-knoll-shadow { fill: #a7b48f; }
.loop-knoll-crown { fill: #bbc4a5; }
.loop-cutting { fill: #98a583; }
.cable-cutting { fill: #8d997d; }
.turbine-foot { fill: #637d94; opacity: .65; }
.loop-ballast { stroke-linecap: round; stroke-linejoin: round; }
[data-theme="dark"] .loop-knoll-shadow, [data-theme="dark"] .loop-cutting { fill: #374a36; }
[data-theme="dark"] .loop-knoll-crown { fill: #4b5d47; }
[data-theme="dark"] .cable-cutting { fill: #31412f; }
[data-theme="dark"] .turbine-foot { fill: #22364b; }

/* The Loop is a shelf on a continuous hillside, with a darker downhill face. */
.loop-hill { fill: #b9bea0; }
.loop-hill-light { fill: #c7ccb0; }
.loop-knoll-shadow { fill: #9da986; }
.loop-knoll-crown { fill: #b8c29d; }
.loop-slope { fill: #adb694; }
.loop-tunnel-hill { fill: #a1ad8d; }
.loop-tunnel-mouth { fill: #354637; }
.loop-map-credit { display: block; font-size: 10px; opacity: .7; margin-top: 6px; }
.loop-map-credit a { color: inherit; }
[data-theme="dark"] .loop-hill { fill: #415442; }
[data-theme="dark"] .loop-hill-light { fill: #4b5d47; }
[data-theme="dark"] .loop-knoll-shadow { fill: #354a37; }
[data-theme="dark"] .loop-knoll-crown { fill: #4a5f43; }
[data-theme="dark"] .loop-slope { fill: #3b503d; }
[data-theme="dark"] .loop-tunnel-hill { fill: #3a503d; }

/* Keep the names, stage copy, railcar and timeline together in the first view. */
#home.site-header { padding: 7px 24px 9px; }
#home .names { width: min(540px, 100%); }
#home .baby-intro { max-width: 720px; margin: 0 auto; }
#home .baby-kicker { font-size: clamp(25px, 2.6vw, 33px); font-weight: 600; line-height: 1.08; margin: 0; color: var(--name-ink); }
#home .baby-arrival { min-height: 1.35em; max-width: 720px; margin: 4px auto 0; font: 500 15px/1.35 var(--serif); letter-spacing: 0; color: var(--ink); }
.railway { --running-gear: 76px; --frame-reserve: 300px; }
.train-frame { height: min(calc(56vw + 110px), calc(100svh - var(--frame-reserve)), 680px); min-height: 160px; container-type: size; }
.railcar-scroll, .railcar-line, .car-slot { height: 100%; }
.car-slot { align-items: flex-end; padding-top: 19px; }
.train-frame { --car-width: min(calc(100cqw - 112px), calc((100cqh - var(--running-gear) - 50px) * 1.7486), 1180px); --coupling-gap: 44px; }
.train-enhanced .railcar-line { box-sizing: content-box; width: max-content; padding-inline: calc((100cqw - var(--car-width) - var(--coupling-gap)) / 2); }
.car-slot { width: calc(var(--car-width) + var(--coupling-gap)); flex: 0 0 calc(var(--car-width) + var(--coupling-gap)); scroll-snap-align: center; }
.train-car { width: var(--car-width); flex: none; padding-bottom: var(--running-gear); }
/* Photos stay with their cars until they pass beyond the viewport edges. */
.car-shell { padding: 8px 18px; border-width: 6px; border-top-width: 8px; border-bottom-width: 8px; }
.car-underframe { bottom: 57px; }
.wheel-truck { bottom: 17px; }
.train-car { --wheel-size: 43px; }
.car-coupler { bottom: 56px; }
.car-controls { bottom: 76px; }
.timeline-stops { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,5fr); gap: 28px; margin: 14px auto 10px; }
.timeline-stops::before { display: none; }
.timeline-history { display: flex; position: relative; min-width: 0; }
.timeline-history::before { content: ''; position: absolute; height: 1px; background: #7390a3; top: 23px; left: 10%; right: 10%; }
.timeline-stops button { min-height: 78px; }
.timeline-stops .announcement-stop { flex: none; }

/* Separate flatbeds are linked by couplers; content arrives on the next car. */
.flatbed .car-roof, .flatbed .car-ladder, .flatbed .frame-rivets { display: none; }
.flatbed .car-shell { padding: 0; border: 0; background: none; box-shadow: none; }
.flatbed .car-shell::after { content: ''; position: absolute; z-index: 3; left: 0; right: 0; bottom: -8px; height: 16px; background: linear-gradient(#ad7b55 0 35%, #6d4c36 36% 65%, #a9664e 66%); border: 1px solid #674332; box-shadow: 0 3px 0 #363731; }
/* Spacer flatcars keep neighboring photographs outside each centered hero view. */
.spacer-slot { --spacer-width: max(var(--car-width), calc((100cqw - var(--car-width)) / 2)); width: calc(var(--spacer-width) + var(--coupling-gap)); flex-basis: calc(var(--spacer-width) + var(--coupling-gap)); scroll-snap-align: none; }
.spacer-flatbed { width: var(--spacer-width); max-width: none; }
.spacer-flatbed .car-shell { height: 0; }
/* A standing wooden sign introduces Dating on the first spacer flatcar. */
.chapter-sign { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: min(76%, 560px); height: calc((100cqh - var(--running-gear) - 50px) * .78); }
.chapter-sign::before, .chapter-sign::after { content: ''; position: absolute; bottom: 0; top: 10%; width: clamp(8px, 2cqw, 16px); border: 1px solid #674332; background: linear-gradient(90deg, #95653f, #c29567 45%, #875739); box-shadow: 2px 0 2px #34291f30; }
.chapter-sign::before { left: 17%; }
.chapter-sign::after { right: 17%; }
.chapter-sign-board { position: absolute; z-index: 1; bottom: 22%; width: 100%; height: 72%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(2px, 1cqh, 8px); padding: 6px 12px; border: clamp(3px, .8cqh, 6px) solid #98633d; border-radius: 7px; color: #493524; background: repeating-linear-gradient(0deg, transparent 0 30px, #91693e15 31px 32px), linear-gradient(105deg, #f1dfb8, #e6cda0 65%, #d8b984); box-shadow: inset 0 0 0 2px #fff1ce85, 3px 5px 0 #61432d, 0 8px 10px #293c4430; text-align: center; }
.chapter-sign-heart { color: #99543e; font: 600 clamp(18px, 6cqh, 38px)/1 var(--serif); }
.chapter-sign-board h2 { margin: 0; font: 600 clamp(20px, 7cqh, 46px)/1.05 var(--serif); }
.chapter-sign-board p { margin: 0; color: #6b4d35; font: 500 clamp(11px, 3.5cqh, 18px)/1.2 var(--serif); }
.single-scene { padding: 0; margin: 0; overflow: hidden; }
.single-scene > .history-media { position: absolute; inset: 0; height: 100%; }
.flatbed .history-poster { margin: 0; background: none; box-shadow: none; overflow: visible; }
.flatbed .history-media { background: none; }
.moved-in-flatbed .history-media > img { object-fit: contain; object-position: center bottom; width: auto; max-width: 100%; left: 50%; right: auto; transform: translateX(-50%); }
.scene-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.red-car .scene-photo { object-fit: contain; object-position: center bottom; width: auto; max-width: 100%; left: 50%; transform: translate(-50%, 3.5%); filter: drop-shadow(0 3px 2px #263b4228); }
.easel-pair { display: flex; align-items: flex-end; justify-content: center; gap: 8%; padding: 3% 6% 0; }
.easel { position: relative; width: 42%; height: 100%; margin: 0; }
.easel::before { content: ''; position: absolute; top: 0; bottom: 0; left: 48%; width: 4%; background: linear-gradient(90deg,#a67650,#d0a27b 45%,#916346); border-radius: 2px; }
.easel:not(.easel-portrait)::before { top: 28%; }
.easel::after { content: ''; position: absolute; left: 7%; right: 7%; bottom: 0; height: 40%; background: #a67650; clip-path: polygon(43% 0,57% 0,100% 100%,90% 100%,50% 15%,10% 100%,0 100%); }
.easel-picture { position: absolute; z-index: 2; bottom: 16%; left: 50%; transform: translateX(-50%); width: 100%; aspect-ratio: 4/3; background: #e7ddc7; border: 4px solid #926a4d; box-shadow: 0 5px 0 #b48b65, 2px 3px 5px #293c4430; }
.easel-portrait .easel-picture { height: 78%; width: auto; max-width: 100%; aspect-ratio: 3/4; }
.easel-picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pergola-frame { position: absolute; left: 5%; right: 5%; top: 5%; bottom: 0; border-inline: 9px solid #7b593e; background: linear-gradient(90deg,#b68b60 0 1%,transparent 1% 99%,#a47852 99%); }
.pergola-frame::before { content: ''; position: absolute; z-index: 3; left: -5%; right: -5%; top: 6%; height: 3.5%; border-block: 2px solid #785438; background: linear-gradient(#be9469,#9a704c); box-shadow: 0 3px 0 #604932; }
.pergola-frame::after { content: ''; position: absolute; z-index: 4; left: -7%; right: -7%; top: 0; height: 8%; background: repeating-linear-gradient(90deg,#906742 0 8px,transparent 8px 44px); transform: skewX(-13deg); }
.pergola-frame > .history-media { position: absolute; left: 4%; right: 4%; top: 15%; bottom: 0; width: 92%; height: auto; background: #243a4c; }
.pergola-drape { position: absolute; z-index: 4; top: 10%; bottom: 20%; width: 12px; background: linear-gradient(90deg,#ffffffb8,#c7d2d2c4 45%,#f1eee4d6); border-radius: 45% 10% 35% 10%; }
.drape-left { left: -5px; transform: rotate(-3deg); }
.drape-right { right: -5px; transform: rotate(3deg); }
.marriage-clip, .marriage-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .8s ease; }
.marriage-photo { opacity: 0; }
.marriage-clip { opacity: 1; }
.showing-photo .marriage-photo { opacity: 1; }
.showing-photo .marriage-clip { opacity: 0; }
.family-boxcar .car-shell { padding: 0; }
.family-boxcar .car-ladder { display: none; }
.family-boxcar .history-poster { margin: 0; box-shadow: none; background: #243a4c; }
.family-boxcar .history-media > img { object-fit: cover; }
@media (max-width:700px) {
  #home.site-header { padding: 40px 20px 8px; }
  #home .baby-kicker { font-size: 26px; }
  #home .baby-arrival { font-size: 14px; min-height: 2.7em; }
  .railway { --running-gear: 62px; --frame-reserve: 280px; }
  .train-frame { --car-width: min(calc(100cqw - 82px), calc((100cqh - var(--running-gear) - 40px) * 1.7486)); --coupling-gap: 34px; }
  .train-car { --wheel-size: 29px; }
  .car-shell { padding: 5px 9px; border-width: 5px; border-top-width: 7px; border-bottom-width: 7px; }
  .car-underframe { bottom: 47px; }
  .car-coupler { bottom: 44px; }
  .wheel-truck { bottom: 18px; }
  .car-controls { bottom: 64px; }
  .timeline-stops { width: calc(100% - 20px); gap: 16px; margin: 14px auto 10px; }
  .timeline-history::before { top: 19px; }
  .timeline-stops button { min-height: 80px; }
  .pergola-frame { border-inline-width: 5px; }
  .pergola-frame::before { border-block-width: 1px; }
  .pergola-drape { width: 8px; }
  .easel-picture { border-width: 2px; }
}
@media (max-height:500px) and (min-width:600px) {
  #home.site-header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 15px; padding: 5px max(62px, env(safe-area-inset-right)) 5px max(62px, env(safe-area-inset-left)); }
  #home .names { width: min(340px, 100%); }
  #home .baby-kicker { font-size: 22px; }
  #home .baby-arrival { font-size: 12px; line-height: 1.3; margin-top: 3px; min-height: 2.6em; }
  .motion-toggle { top: 4px; left: max(6px, env(safe-area-inset-left)); width: 55px; font-size: 10px; }
  .sky-toggle { top: 4px; right: max(6px, env(safe-area-inset-right)); width: 44px; height: 44px; }
  .railway { --running-gear: 44px; --frame-reserve: 146px; }
  .train-frame { min-height: 100px; }
  .train-frame { --car-width: min(calc(100cqw - 112px), calc((100cqh - var(--running-gear) - 30px) * 1.7486)); }
  .train-car { --wheel-size: 24px; }
  .car-slot { padding-top: 12px; }
  .car-shell { padding: 3px 6px; border-width: 4px; }
  .car-roof { height: 11px; top: -8px; border-bottom-width: 3px; }
  .car-underframe { bottom: 32px; height: 9px; border-width: 2px; }
  .car-underframe::after { top: 7px; height: 5px; }
  .wheel-truck { bottom: 10px; gap: 6px; padding: 0 5px; }
  .wheel-truck::before { top: 4px; height: 10px; border-width: 2px; box-shadow: none; }
  .wheel { border-width: 3px; }
  .car-coupler { bottom: 31px; }
  .rail-line { height: 22px; }
  .rail-front { top: 12px; }
  .rail-back { top: 0; }
  .car-controls { bottom: 44px; }
  .timeline-stops { margin: 7px auto 5px; }
  .timeline-stops button { min-height: 58px; }
  .stop-marker { width: 28px; height: 28px; margin-bottom: 3px; }
  .stop-marker svg { width: 23px; height: 23px; }
  .stop-title { font-size: 11px; min-height: 0; }
  .timeline-stops small { margin-top: 2px; font-size: 9px; }
  .timeline-history::before { top: 14px; }
  .photo-motion-toggle { min-height: 44px; right: 2px; bottom: 2px; padding: 5px; font-size: 10px; }
}
@media (prefers-reduced-motion:reduce) { html:not([data-motion="full"]) .marriage-clip, html:not([data-motion="full"]) .marriage-photo { transition: none; } }
:root[data-motion="reduced"] .marriage-clip, :root[data-motion="reduced"] .marriage-photo { transition: none; }

/* Programmatic travel is linear; snapping is reserved for hand scrolling. */
.train-cruising .railcar-scroll { scroll-snap-type: none; scroll-behavior: auto; }
.train-cruising .wheel { animation-duration: 2s; }
.memory-boxcar .car-shell { padding: 0; }
.memory-boxcar .car-ladder { display: none; }
.memory-boxcar .history-poster { background: #7993b0; box-shadow: none; }
.memory-boxcar .history-media > img { object-fit: contain; }
.single-easel { position: absolute; inset: 0; padding: 2% 6% 0; }
.single-easel .easel { width: 52%; }
/* Keep the photograph sharp while blending its outer edges into the scenery. */
.moved-in-flatbed .history-media > img { mask-image: linear-gradient(to right,transparent,#000 5%,#000 95%,transparent),linear-gradient(to bottom,transparent,#000 9%,#000 97%,#000); mask-composite: intersect; }
.car-coupler { width: 25px; }
.coupler-left { left: -24px; }
.coupler-right { right: -24px; }
@media (max-width:700px) {
  .car-coupler { width: 20px; }
  .coupler-left { left: -19px; }
  .coupler-right { right: -19px; }
}

/* Keep only the glider in the upper sky. */
.bomber-flight, .rocket-flight { display: none; }

/* Keep the actual car frame; remove the added photographed ladder panel. */
.car-ladder { display: none; }
.history-poster { margin-right: 0; }
.home-boxcar .car-shell { padding: 0; }
.home-boxcar .history-media > img { object-fit: contain; }
.home-boxcar .history-poster { background: #7993b0; box-shadow: none; }
.announcement-stork { bottom: -3%; }
.announcement-stork .stork-bird { transform: translateY(7px); }
.announcement-stork .stork-baby { transform: translateY(55px); }
.announcement-stork.stork-away .stork-bird, .announcement-stork.stork-away .stork-baby { visibility: hidden; }
.stork-sky { position: absolute; inset: 0; overflow: hidden; z-index: 5; pointer-events: none; }
.journey-stork { position: absolute; left: 0; top: 0; width: 120px; height: auto; overflow: visible; filter: drop-shadow(0 2px 1px #31424e20); }
.journey-stork[hidden] { display: none; }
.journey-stork .stork-flight-wing { opacity: 1; transform-origin: 65px 125px; animation: journey-wing .9s ease-in-out infinite alternate; animation-play-state: paused; }
.journey-playing .journey-stork .stork-flight-wing { animation-play-state: running; }
.journey-stork .stork-bundle-tie { opacity: 1; }
.journey-stork .stork-legs, .journey-stork .stork-bird > ellipse { opacity: 0; }
.journey-stork[data-flight="handoff"] .stork-bundle-tie, .journey-stork[data-flight="handoff"] .stork-baby,
.journey-stork[data-flight="departing"] .stork-bundle-tie, .journey-stork[data-flight="departing"] .stork-baby { opacity: 0; }
@keyframes journey-wing { from { transform: rotate(-12deg); } to { transform: rotate(26deg); } }
.nursery-family { position: absolute; z-index: 2; width: 44%; height: 64%; left: 28%; bottom: 8%; object-fit: contain; object-position: center bottom; transition: opacity .45s ease; }
.nursery-dogs { position: absolute; z-index: 2; object-fit: contain; object-position: center bottom; pointer-events: none; }
.nursery-weir { width: 15%; height: 30%; left: 26%; bottom: 8%; }
.nursery-izzy { width: 15%; height: 15%; left: 58.5%; bottom: 1%; }
.nursery-waiting { opacity: 1; }
.nursery-holding { opacity: 0; }
.nursery-received .nursery-waiting { opacity: 0; }
.nursery-received .nursery-holding { opacity: 1; }
html[data-motion="reduced"] .stork-sky { visibility: hidden; }
@media (max-width:700px) { .journey-stork { width: 84px; } }
@media (max-height:500px) and (min-width:600px) { .journey-stork { width: 76px; } }
/* Older mobile WebKit uses the prefixed mask shorthand. */
.moved-in-flatbed .history-media > img { -webkit-mask-image: linear-gradient(to right,transparent,#000 5%,#000 95%,transparent),linear-gradient(to bottom,transparent,#000 9%,#000 97%,#000); -webkit-mask-composite: source-in; }

/* The nursery and existing collection form one continuous page. */
.nursery-content { width: min(1100px,100%); margin: 0 auto; padding: 0 28px 40px; }
.nursery-intro { width: min(760px,100%); padding: 32px 0 24px; }
.nursery-updated { margin: 0; font: 12px Arial,sans-serif; color: var(--muted); }
.nursery-return { margin: 28px 0 0; text-align: center; }
.nursery-page .event-footer { display: block; }
.nursery-page .site-credit { margin-top: 16px; }
.nursery-page .category, .nursery-page .image-toggle button, .nursery-page .views button, .nursery-page .clear { min-height: 44px; }
.nursery-page .search { min-width: 0; }
.nursery-page .results-row { flex-wrap: wrap; gap: 10px; }
@media (max-width:650px) {
 .nursery-content { padding-inline: 18px; }
 .nursery-intro h1 { font-size: 52px; }
 .nursery-page .search { flex-basis: 100%; }
 .nursery-page .sort { min-width: 0; }
 .nursery-page .sort select { min-width: 0; }
 .nursery-page .image-choice { margin-left: auto; }
 .loop-landscape figcaption { font-size: 15px; }
}

/* Only the extracted caricature drawings appear, displayed on easels. */
.gallery-easel { background: transparent; }
.gallery-easel > img { width: 57%; height: 87%; inset: 0 auto auto 21.5%; object-fit: contain; }
.gallery-easel::before { content: ''; position: absolute; width: 40%; height: 90%; left: 30%; bottom: 0; border-left: 7px solid #9a7853; border-right: 7px solid #9a7853; transform: perspective(150px) rotateX(12deg); }
.gallery-easel::after { content: ''; position: absolute; width: 64%; height: 9px; left: 18%; bottom: 12%; border-radius: 2px; background: #9a7853; }
