:root {
  color-scheme: dark;
  --ink: #faf0e6;
  --peach: #ffd7c4;
  --night: #282030;
  font-family: system-ui, sans-serif;
  background: var(--night);
  color: var(--ink);
}

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

body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding-inline: clamp(1.25rem, 4.5vw, 5rem);
}

.landscape {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, #211a2bd9 0%, #33243db8 24%, #402b4692 48%, #21182515 75%, #1a1522c9 100%),
    url('teton-dusk.webp') 54% 59% / cover no-repeat;
}

.masthead, footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.masthead {
  min-height: clamp(4.4rem, 9vh, 6rem);
  border-bottom: 1px solid #fceae74f;
}

.wordmark {
  font-family: Georgia, serif;
  font-size: 1.38rem;
  letter-spacing: -.035em;
}

.location, footer {
  font-size: .875rem;
  letter-spacing: .075em;
}

.location { text-align: right; }

main {
  display: grid;
  justify-items: center;
  align-items: start;
  text-align: center;
  padding-block: clamp(3.2rem, 12vh, 9.5rem) clamp(4rem, 24vh, 16rem);
}

h1 {
  margin: 0;
  font-family: 'Times New Roman', Times, serif;
  font-size: clamp(4.5rem, 10.8vw, 11rem);
  font-weight: 400;
  letter-spacing: -.065em;
  line-height: .94;
  text-wrap: balance;
}

h1 em { color: var(--peach); }

p {
  margin: clamp(1.25rem, 3.6vh, 2.25rem) 0 1.9rem;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: #fff2ea;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .58rem;
  padding: .72rem 1.33rem .72rem 1rem;
  border-radius: 999px;
  border: 1px solid #ffe1d1;
  color: #301f32;
  background: var(--peach);
  box-shadow: 0 6px 24px #24162947;
  font: 700 1rem/1.25 system-ui, sans-serif;
  cursor: pointer;
  transition: background-color .2s, transform .2s;
}

button:hover { background: #ffebe1; transform: translateY(-2px); }
button:active { transform: translateY(1px); }
button:focus-visible { outline: 2px solid white; outline-offset: 5px; }
button canvas { width: 1.56rem; height: 1.56rem; }

footer {
  min-height: 3.65rem;
  border-top: 1px solid #fceae74f;
}

footer span:last-child { color: var(--peach); font-size: 1rem; }

#flurry {
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@media (max-width: 36rem) {
  .landscape { background-position: 57% center; }
  main { padding-block-start: clamp(3.4rem, 14vh, 7rem); }
  h1 { line-height: .88; }
  h1 em { display: block; }
  p { margin-top: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  button { transition: none; }
  button:hover, button:active { transform: none; }
}
