/* SPDX-License-Identifier: MPL-2.0
 * Copyright (c) 2026 Hyperiux. Modifications (c) 2026 WEBRYTME contributors.
 * Adapted controls: see vendor/messingkant-LICENSE.txt.
 */
@font-face {
  font-family: Hanken;
  src: url("./assets/hanken.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  background: #15252a;
  color: #f3ecdd;
  font-family: Hanken, system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }

.meadow {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 100svh;
  padding: max(18px, env(safe-area-inset-top)) max(clamp(16px, 3vw, 46px), env(safe-area-inset-right))
           max(clamp(17px, 3vw, 38px), env(safe-area-inset-bottom)) max(clamp(16px, 3vw, 46px), env(safe-area-inset-left));
  gap: 12px;
  isolation: isolate;
}

.scene {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
  background:
    var(--still-image, url("./preview-r07.jpg")) center / cover no-repeat,
    url("./assets/hero-fjell.webp") center / cover no-repeat;
}

.scene canvas { display: block; width: 100%; height: 100%; }

h1 {
  margin: 0;
  color: #f3ecdd;
  font-size: clamp(1.13rem, 1.62vw, 1.55rem);
  line-height: 1.05;
  font-weight: 550;
  letter-spacing: -.03em;
  text-shadow: 0 2px 8px #061013, 0 2px 18px #061013;
}

.scene-caption p {
  margin: 6px 0 0;
  color: #f0e6d3;
  font-size: .74rem;
  line-height: 1.4;
  text-shadow: 0 1px 5px #061013, 0 1px 9px #061013;
}

.scene-caption a { color: inherit; text-underline-offset: .16em; }
.scene-caption a:focus-visible { outline: 2px solid #f3d8a3; outline-offset: 2px; }

.motion-control {
  display: block;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 14px 14px 14px 6px;
  background: linear-gradient(168deg, #1b292e, #101e26) padding-box,
              linear-gradient(170deg, #a69572, #51594e) border-box;
  color: #f0e8d9;
  font: 540 .9rem / 1.2 Hanken, system-ui, sans-serif;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: inset 0 1px 0 #eedfbd13, 0 3px 8px #050d1294;
}

@media (hover: hover) and (pointer: fine) {
  .motion-control:hover { border-color: #d7b782; }
}

.motion-control:focus-visible { outline: 2px solid #f3d8a3; outline-offset: 3px; }
.motion-control:active { background: #374036; }

.inspection {
  position: absolute;
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  padding: 8px 12px;
  color: #f3ecdd;
  background: #101e26e8;
  font: 14px / 1.45 Hanken, system-ui, sans-serif;
  pointer-events: none;
}

.inspection:empty { visibility: hidden; }
html[data-poster] .scene-caption, html[data-poster] .actions { visibility: hidden; }

@media (max-aspect-ratio: 3/4) {
  .scene { --still-image: url("./mobil-r07.jpg"); }
}
