:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #fff7e8;
  background: #153936;
}

*, *::before, *::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
}

.cover {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(16px, 5vmin, 58px);
}

.cover-photo, .cover::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cover-photo {
  z-index: -2;
  object-fit: cover;
  object-position: 56% 45%;
}

.cover::after {
  z-index: -1;
  content: "";
  background: linear-gradient(0deg, #0b2b29 0%, #0b2b29ed 17%, #0b2b2940 56%, transparent 79%);
}

.intro {
  max-width: 48rem;
}

h1, p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 7vmin, 4.4rem);
  line-height: 0.99;
  letter-spacing: -0.035em;
  text-wrap: balance;
  text-shadow: 0 2px 16px #0b2b2980;
}

.tagline {
  margin-top: 0.7rem;
  font-size: clamp(0.96rem, 2.5vmin, 1.25rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.1rem;
  margin-top: clamp(0.8rem, 2.8vmin, 1.5rem);
}

button, a {
  touch-action: manipulation;
}

button {
  min-height: 44px;
  padding: 0.65rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 100px;
  background: #fff0c7;
  color: #133b37;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button:enabled:hover {
  background: #fff8e6;
}

button:disabled {
  background: #cbd9ca;
  cursor: progress;
}

a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  font-size: 0.88rem;
  text-underline-offset: 0.22em;
}

:focus-visible {
  outline: 2px solid #fff0c7;
  outline-offset: 4px;
}

.controls, #status:not(:empty) {
  margin-top: 0.7rem;
  color: #e2f2e9;
  font-size: 0.85rem;
  line-height: 1.35;
}

#status:not(:empty) {
  max-width: 32rem;
}

.touch-hint, .rotation-hint,
[data-state="loading"] .controls, [data-state="error"] .controls {
  display: none;
}

progress {
  display: block;
  width: min(100%, 17rem);
  height: 0.6rem;
  margin-top: 0.45rem;
  accent-color: #fff0c7;
}

#canvas {
  position: fixed;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  background: #153936;
}

#canvas:focus-visible {
  outline-offset: -3px;
}

@media (pointer: coarse) {
  .keyboard-hint {
    display: none;
  }

  .touch-hint {
    display: block;
  }
}

@media (pointer: coarse) and (orientation: portrait) {
  .rotation-hint {
    display: inline;
  }
}

@media (max-width: 550px) {
  .cover::after {
    background: linear-gradient(0deg, #0b2b29 0%, #0b2b29ed 24%, #0b2b2940 62%, transparent 84%);
  }
}
