:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  color: #f5f3ed;
  background: #263b46;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
}
main {
  height: 100svh;
  min-height: 360px;
}
#glass {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
  background: #41545e url("./assets/alpine.webp") center/cover;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  border: 0;
  cursor: pointer;
  min-height: 44px;
  background: transparent;
  padding: 0 15px;
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 0.02em;
  border-radius: 30px;
  transition:
    background 0.2s,
    color 0.2s;
}
button:hover {
  background: #ffffff1a;
}
button:focus-visible,
a:focus-visible,
canvas:focus-visible {
  outline: 2px solid #f7e3b1;
  outline-offset: 4px;
}
header,
footer {
  position: fixed;
  left: 42px;
  right: 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
header {
  top: 34px;
}
header a,
footer button {
  pointer-events: auto;
}
.wordmark {
  color: inherit;
  text-decoration: none;
  font:
    italic 27px Georgia,
    serif;
  letter-spacing: -1px;
  text-shadow: 0 2px 15px #172b3b55;
}
.mark {
  display: inline-block;
  font: 28px Georgia;
  margin-right: 8px;
  transform: rotate(-35deg);
}
.edition {
  display: block;
  margin: 9px 0 0 38px;
  letter-spacing: 2.2px;
  font:
    8px Arial,
    sans-serif;
  opacity: 0.68;
}
.weather {
  display: flex;
  gap: 13px;
  align-items: center;
  font:
    30px Georgia,
    serif;
}
.weather small {
  display: block;
  font:
    8px Arial,
    sans-serif;
  letter-spacing: 2px;
  margin-top: 6px;
}
.snow {
  font-size: 27px;
  opacity: 0.7;
}
.hint {
  position: fixed;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  width: 90%;
  transition:
    opacity 1s,
    filter 1s;
  text-shadow: 0 2px 20px #142a3850;
}
.hint.hidden {
  opacity: 0;
  filter: blur(5px);
}
h1 {
  font:
    italic clamp(48px, 6.5vw, 100px)/1.04 Georgia,
    "Times New Roman",
    serif;
  letter-spacing: -0.05em;
  font-weight: 400;
  margin: 16px 0 24px;
}
.hint p {
  font-size: 12px;
  letter-spacing: 0.04em;
  opacity: 0.85;
}
.gesture {
  font: 44px Georgia;
  opacity: 0.8;
}
footer {
  bottom: 30px;
  gap: 20px;
}
.caption {
  font-size: 9px;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px #000;
}
.dot {
  display: inline-block;
  background: #dce8d4;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin: 0 8px 1px 0;
  box-shadow: 0 0 9px #e9fbd8;
}
.caption small {
  display: block;
  font:
    italic 12px Georgia,
    serif;
  letter-spacing: 0;
  opacity: 0.78;
  margin-top: 9px;
}
nav {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 5px;
  border: 1px solid #ffffff25;
  background: #142b3a65;
  backdrop-filter: blur(20px);
  border-radius: 40px;
  box-shadow: 0 5px 30px #07151b18;
  pointer-events: auto;
}
.scenes {
  display: flex;
  gap: 1px;
}
.scenes button[aria-pressed="true"] {
  background: #edece3;
  color: #2a3e46;
  box-shadow: 0 2px 9px #0002;
}
.divider {
  height: 20px;
  width: 1px;
  background: #ffffff24;
  margin: 0 5px;
}
#reset span {
  font-size: 20px;
  vertical-align: -1px;
  margin-right: 3px;
}
#sound {
  padding: 0 13px;
  display: grid;
  place-items: center;
}
#sound svg {
  width: 18px;
  height: 18px;
}
.sound-waves {
  display: none;
}
#sound[aria-pressed="true"] .sound-waves {
  display: block;
}
#sound[aria-pressed="true"] .sound-off {
  display: none;
}
.edge {
  position: fixed;
  inset: 0;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px #ffffff1c,
    inset 0 0 100px #0e202d35;
  background: linear-gradient(
    120deg,
    #ffffff10,
    transparent 30%,
    transparent 70%,
    #ffdec707
  );
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.fallback {
  position: fixed;
  top: 45%;
  left: 10%;
  right: 10%;
  text-align: center;
  background: #152835;
  padding: 20px;
}
@media (max-width: 700px) {
  header {
    top: 25px;
    left: 23px;
    right: 23px;
  }
  .wordmark {
    font-size: 23px;
  }
  .edition {
    font-size: 7px;
    letter-spacing: 1.6px;
  }
  .weather {
    font-size: 25px;
  }
  .weather small {
    font-size: 7px;
  }
  footer {
    left: 12px;
    right: 12px;
    bottom: 22px;
    flex-direction: column;
    gap: 18px;
  }
  .caption {
    text-align: center;
  }
  .caption small {
    display: none;
  }
  nav {
    gap: 0;
    padding: 4px;
  }
  button {
    padding: 0 11px;
    font-size: 11px;
  }
  .divider {
    margin: 0 3px;
  }
  h1 {
    font-size: 63px;
  }
  .hint {
    top: 43%;
  }
  .hint p {
    font-size: 11px;
  }
  .gesture {
    font-size: 36px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
