:root {
  color-scheme: dark;
  --cream-100: #fff4e8;
  --cream-200: #f2d8bd;
  --brown-950: #1a0e0a;
  --brown-900: #28150f;
  --amber-500: #e99a46;
  --glass: rgb(43 24 17 / 56%);
  --glass-hover: rgb(55 29 19 / 72%);
  --line: rgb(255 234 211 / 36%);
  --display: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --text: "Avenir Next", "Avenir", "Segoe UI", sans-serif;
  --space-2xs: .5rem;
  --space-xs: .75rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2rem;
  --z-media: 0;
  --z-shade: 10;
  --z-content: 20;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-width: 20rem;
  min-height: 100%;
  background: var(--brown-950);
}

body {
  font-family: var(--text);
  color: var(--cream-100);
  overflow: hidden;
}

button,
a { -webkit-tap-highlight-color: transparent; }

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.hero__media,
.hero__media img,
.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__media { z-index: var(--z-media); }

.hero__media img {
  max-width: none;
  object-fit: cover;
  object-position: 50% 50%;
  animation: image-arrive 1.2s cubic-bezier(.2,.8,.2,1) both;
}

.hero__shade {
  z-index: var(--z-shade);
  pointer-events: none;
  background:
    linear-gradient(180deg, rgb(18 9 6 / 52%) 0%, transparent 24%),
    linear-gradient(0deg, rgb(18 9 6 / 58%) 0%, transparent 47%);
}

.hero__shade::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .035;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

.hero__content {
  position: relative;
  z-index: var(--z-content);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding:
    max(1.25rem, env(safe-area-inset-top))
    max(1rem, env(safe-area-inset-right))
    max(1.25rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
}

.brand {
  width: fit-content;
  text-shadow: 0 .125rem 1rem rgb(0 0 0 / 44%);
  animation: rise .7s .08s cubic-bezier(.2,.8,.2,1) both;
}

.brand p { margin: 0; }

.brand__name {
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1;
  letter-spacing: .08em;
}

.choice {
  position: absolute;
  top: 50%;
  left: max(1rem, env(safe-area-inset-left));
  right: max(1rem, env(safe-area-inset-right));
  transform: translateY(-50%);
  display: grid;
  gap: var(--space-s);
  width: auto;
  max-width: 30rem;
  margin-inline: auto;
}

.choice__intro { display: none; }

.actions {
  display: grid;
  gap: .625rem;
}

.action {
  min-height: 4.25rem;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  align-items: center;
  gap: var(--space-xs);
  padding: .6875rem .875rem .6875rem .75rem;
  border: 1px solid var(--line);
  border-radius: 1.125rem;
  color: var(--cream-100);
  text-decoration: none;
  background:
    linear-gradient(120deg, rgb(255 255 255 / 10%), transparent 44%),
    var(--glass);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 15%),
    0 .75rem 2.5rem rgb(30 13 8 / 21%);
  backdrop-filter: blur(1rem) saturate(1.12);
  -webkit-backdrop-filter: blur(1rem) saturate(1.12);
  transition: transform .22s ease, background-color .22s ease, border-color .22s ease;
  animation: rise .7s cubic-bezier(.2,.8,.2,1) both;
}

.action:nth-child(1) { animation-delay: .15s; }
.action:nth-child(2) { animation-delay: .23s; }
.action:nth-child(3) { animation-delay: .31s; }

.action__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  aspect-ratio: 1;
  border: 1px solid rgb(255 244 232 / 18%);
  border-radius: 50%;
  background: rgb(255 244 232 / 9%);
}

.action__icon img {
  width: 1.375rem;
  height: 1.375rem;
}

.action__text {
  font-size: clamp(.875rem, .82rem + .25vw, 1rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.action:hover {
  background-color: var(--glass-hover);
  border-color: rgb(255 235 213 / 60%);
  transform: translateY(-.125rem);
}

.action:active { transform: scale(.985); }

.action:focus-visible {
  outline: .1875rem solid var(--cream-100);
  outline-offset: .1875rem;
}

.action[aria-disabled="true"],
.action[aria-busy="true"] {
  pointer-events: none;
  filter: grayscale(.35);
  opacity: .62;
}

@media (min-width: 54em) {
  .hero__media img { object-position: center; }

  .hero__shade {
    background:
      linear-gradient(90deg, rgb(22 10 6 / 78%) 0%, rgb(24 12 8 / 46%) 31%, transparent 61%),
      linear-gradient(180deg, rgb(14 7 4 / 22%) 0%, transparent 32%, rgb(13 6 4 / 22%) 100%);
  }

  .hero__content {
    justify-content: flex-start;
    padding: clamp(2rem, 4vw, 4.5rem) clamp(2rem, 6vw, 7rem);
  }

  .brand { position: relative; }

  .choice {
    position: static;
    transform: none;
    align-content: center;
    gap: var(--space-m);
    width: min(31rem, 40vw);
    min-height: calc(100svh - clamp(8rem, 14vw, 15rem));
    margin: 0;
  }

  .choice__intro {
    display: block;
    max-width: 27rem;
    text-shadow: 0 .25rem 1.5rem rgb(0 0 0 / 34%);
    animation: rise .7s .12s cubic-bezier(.2,.8,.2,1) both;
  }

  .choice__eyebrow {
    margin: 0 0 var(--space-xs);
    color: var(--cream-200);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
  }

  h1 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(2.75rem, 4.5vw, 5.5rem);
    font-weight: 400;
    line-height: .93;
    letter-spacing: -.045em;
    text-wrap: balance;
  }

  .action {
    min-height: 4.75rem;
    border-radius: 1.25rem;
    padding-inline: .875rem 1rem;
  }

}

@media (max-height: 43rem) and (max-width: 53.99em) {
  .hero__content { padding-bottom: max(.75rem, env(safe-area-inset-bottom)); }
  .action { min-height: 3.75rem; }
  .choice { gap: .625rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .action { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .action { background: rgb(43 24 17 / 92%); }
  .hero__shade::after { display: none; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes image-arrive {
  from { opacity: .68; transform: scale(1.025); }
  to { opacity: 1; transform: scale(1); }
}
