@font-face {font-family: "EB Garamond"; src: url("type/eb-garamond.woff2") format("woff2"); font-display: swap;}
@font-face {font-family: Lato; src: url("type/lato.woff2") format("woff2"); font-display: swap;}
:root {color-scheme: light; --cream: #fef4df; --ink: #10100c; --walnut: #655447; --linen: #d8c9ae;}
* {box-sizing: border-box;}
html, body {margin: 0; min-height: 100%; background: var(--cream); color: var(--ink);}
body {font-family: Lato, Arial, sans-serif;}
button {font: inherit; color: inherit; cursor: pointer; background: transparent; border: 0; -webkit-tap-highlight-color: transparent;}
:is(button, a):focus-visible {outline: 2px solid var(--walnut); outline-offset: 4px;}
button:disabled {cursor: default;}
[hidden] {display: none !important;}
.gallery {
  --edge: clamp(10px, 1.6vw, 26px);
  position: relative; isolation: isolate; overflow: hidden;
  width: 100%; height: 100vh; height: 100dvh;
}
.scene {position: absolute; inset: 0; overflow: hidden; isolation: isolate; background: #8d8d65;}
.world {position: absolute; inset: 0; overflow: hidden;}
.painting, .paint-layer, .breathing-fallback, .lane {position: absolute; inset: 0; width: 100%; height: 100%;}
.painting {object-fit: cover; object-position: 39% 62%;}
.breathing-fallback {background-size: 100% 100%; pointer-events: none;}
.paint-layer {visibility: hidden; pointer-events: none;}
.lane {clip-path: polygon(21.3% 48%,100% 48%,100% 73%,27.7% 73%);}
.behind-sleeper {position: absolute; inset: 0; clip-path: polygon(0 0,100% 0,100% 100%,56.5% 100%,56.5% 81.5%,53.1% 77%,51.6% 72%,47.5% 67%,42% 64%,39% 63%,36% 63.4%,33% 64.8%,28% 66%,24% 69%,19.5% 78%,19.5% 100%,0 100%);}
.vehicle {position: absolute; transform-origin: center bottom;}
.tractor {position: relative; display: block; width: 100%; height: auto; filter: saturate(.93) contrast(.83) brightness(1.03) blur(.22px);}
.road-shadow {position: absolute; left: -4%; bottom: -2%; width: 101%; height: 10%; background: radial-gradient(ellipse, rgb(70 60 42 / 52%) 0%, transparent 70%);}
@media (max-aspect-ratio: 4/5) {
  .behind-sleeper {clip-path: polygon(0 0,100% 0,100% 100%,69% 100%,69% 80%,62% 77.5%,59% 73%,49% 70%,37% 68.2%,25% 69%,13% 73%,5% 78%,5% 100%,0 100%);}
}
.caption {
  position: absolute; bottom: max(var(--edge), env(safe-area-inset-bottom)); right: max(var(--edge), env(safe-area-inset-right));
  display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 12px; padding: 0 6px 3px 16px; border-radius: 5px;
  background: rgb(254 244 223 / 85%); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.footer-links {display: flex; align-items: center; gap: 14px;}
.copyright {grid-column: 1 / -1; margin-right: 8px; border-top: 1px solid rgb(88 70 43 / 22%); text-align: right; font-size: .8125rem; line-height: 1.4;}
.copyright a {display: inline-block; padding: 6px 0; color: #493e31; text-decoration: none;}
.copyright a:is(:hover, :focus-visible) {text-decoration: underline; text-underline-offset: .2em;}
.text-link {display: inline-flex; align-items: center; min-height: 44px; padding: 0; width: max-content; color: var(--walnut); font-size: .9375rem; text-decoration: underline; text-underline-offset: .25em; text-decoration-color: var(--linen);}
.text-link:hover {color: var(--ink); text-decoration-color: currentColor;}
.controls {display: flex; align-items: center; gap: 3px; color: var(--walnut);}
.music, .motion, .close {min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;}
.music {padding: 0 9px; gap: 9px; font-size: .9375rem;}
.music-icon {width: 17px; height: 17px;}
.music:hover, .motion:hover, .close:hover {color: #372b21;}
.music:hover span {text-decoration: underline; text-decoration-color: var(--linen); text-underline-offset: .18em; text-decoration-thickness: 1px;}
.divider {height: 17px; width: 1px; background: var(--linen);}
.motion {padding: 0;}
.motion svg, .close svg {width: 20px; height: 20px;}
.play-symbol, .motion[data-paused="true"] .pause-symbol {display: none;}
.motion[data-paused="true"] .play-symbol {display: block;}
.about-panel {
  position: fixed; inset: auto; margin: 0; width: min(350px, calc(100% - 28px)); max-height: calc(100dvh - 28px); overflow: auto;
  padding: 19px 22px 17px; color: #252018; background: rgb(254 244 223 / 80%);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  border: 1px solid rgb(255 250 233 / 47%); border-radius: 4px; box-shadow: 0 3px 15px rgb(37 31 17 / 9%);
}
.about-panel::backdrop {background: transparent;}
.about-panel .close {top: 2px; right: 2px;}
.about-panel h2 {margin: 0 24px 10px 0; font: 400 2rem/1.05 "EB Garamond", Georgia, serif; letter-spacing: -.025em;}
.about-panel p {margin: 0; font-size: 1rem; line-height: 1.4;}
.about-panel p + p {margin-top: .65em;}
.about-panel .origin {margin-top: .85rem; padding-top: .65rem; border-top: 1px solid rgb(88 70 43 / 23%); color: #4c4031; font-size: .8125rem;}
.close {position: absolute; right: 2px; top: 2px; color: var(--walnut);}
.sr-only {position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;}
@media (max-width: 820px), (max-width: 1000px) and (max-height: 540px) {
  .caption {left: max(var(--edge), env(safe-area-inset-left)); margin-inline: auto; width: max-content; max-width: calc(100% - 2 * var(--edge)); padding-inline: 10px;}
  .copyright {margin-right: 0; text-align: center;}
}
@media (max-width: 540px) {
  .caption {column-gap: 8px;}
  .footer-links {gap: 11px;}
  .text-link {font-size: .875rem;}
  .controls {gap: 2px;}
  .music {padding: 0 5px; gap: 5px; font-size: .875rem;}
  .about-panel {width: min(306px, calc(100% - 28px)); padding: 15px 17px;}
  .about-panel h2 {font-size: 1.8rem;}
}
@media (max-width: 380px) {
  #music-label {position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;}
}
