@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces-Italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #f6efe4;
  --ink-dim: #eadccb;
  --brass: #f0d7ad;
  --wood-dark: #24160f;
  --button-ink: #3c2216;
  color-scheme: dark;
}

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

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  color: var(--ink);
  background: var(--wood-dark);
  font-family: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  font-weight: 550;
  font-style: normal;
  line-height: 1.4;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #8a3d24;
  color: #fff8ee;
}

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--wood-dark);
  background-image:
    radial-gradient(ellipse 130% 95% at 50% 42%, transparent 34%, rgba(10, 5, 3, 0.58) 100%),
    radial-gradient(ellipse 68% 46% at 50% 34%, rgba(255, 196, 128, 0.16), transparent 70%),
    url("assets/barn-wood.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

main {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(100%, 52rem);
  margin-inline: auto;
  padding:
    calc(1.35rem + env(safe-area-inset-top))
    max(1.2rem, env(safe-area-inset-right))
    1rem
    max(1.2rem, env(safe-area-inset-left));
  text-align: center;
}

h1 {
  width: min(100%, 42rem);
  margin: 0;
  line-height: 0;
}

.logo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1954 / 639;
}

.copy {
  position: relative;
  width: min(100%, 34rem);
  margin-top: 0.15rem;
}

.copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 46%;
  width: 118%;
  height: 128%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(32, 16, 10, 0.5) 0%, rgba(32, 16, 10, 0.18) 56%, transparent 76%);
  pointer-events: none;
}

.lede {
  max-width: 16em;
  margin: 0.95rem auto 0;
  text-wrap: balance;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.28rem, 4.7vw, 1.85rem);
  line-height: 1.25;
  color: var(--ink);
  text-shadow:
    0 1px 1px rgba(0, 0, 0, 0.75),
    0 10px 22px rgba(20, 8, 4, 0.45);
}

.soon {
  margin: 1.05rem 0 0;
  padding-left: 0.32em;
  font-size: 0.78rem;
  font-weight: 550;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 28rem;
  margin: 1.15rem auto 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(236, 214, 180, 0.32);
  text-align: center;
}

.facts div {
  padding: 0 0.35rem;
}

.facts div + div {
  border-left: 1px solid rgba(236, 214, 180, 0.22);
}

.facts dt {
  font-size: 0.68rem;
  font-weight: 550;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.facts abbr {
  text-decoration: none;
  border-bottom: 0;
}

.facts dd {
  margin: 0.22rem 0 0;
  font-size: clamp(1.65rem, 6vw, 2.15rem);
  font-weight: 550;
  line-height: 0.95;
  color: #fbf6ee;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.enter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 22.5rem);
  min-height: 52px;
  margin: 1.35rem auto 0;
  padding: 0.8rem 1rem;
  border: 1px solid #6a452c;
  border-radius: 4px;
  background: linear-gradient(180deg, #fbf6ee 0%, #e6d0aa 100%);
  color: var(--button-ink);
  font-weight: 550;
  font-size: clamp(0.98rem, 3.5vw, 1.08rem);
  line-height: 1.25;
  letter-spacing: 0.012em;
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(255, 220, 170, 0.4);
  box-shadow:
    inset 0 1px 0 #fffaf3,
    inset 0 0 0 2px rgba(122, 80, 44, 0.16),
    0 10px 20px rgba(28, 12, 6, 0.32);
}

.enter:active {
  transform: translateY(1px);
}

.howdy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 0.75rem;
  padding: 0.2rem 0.4rem;
  color: var(--brass);
  font-size: clamp(0.95rem, 3.4vw, 1.05rem);
  font-weight: 550;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(240, 215, 173, 0.55);
  text-underline-offset: 0.22em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  touch-action: manipulation;
}

footer {
  position: relative;
  z-index: 1;
  padding:
    0.45rem
    max(1.15rem, env(safe-area-inset-right))
    calc(0.85rem + env(safe-area-inset-bottom))
    max(1.15rem, env(safe-area-inset-left));
  background: linear-gradient(180deg, transparent, rgba(22, 11, 7, 0.5) 42%, rgba(16, 8, 5, 0.74));
}

footer p {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
  text-wrap: balance;
  font-size: 0.8rem;
  font-weight: 550;
  line-height: 1.45;
  color: #f3e7d8;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}

a:focus-visible,
.enter:focus-visible {
  outline: 2px solid #f6efe4;
  outline-offset: 3px;
}

@media (hover: hover) {
  .enter:hover {
    background: linear-gradient(180deg, #fffaf4 0%, #f0ddc2 100%);
    box-shadow:
      inset 0 1px 0 #fffaf3,
      inset 0 0 0 2px rgba(122, 80, 44, 0.2),
      0 12px 24px rgba(28, 12, 6, 0.4);
  }

  .howdy:hover {
    color: #fff6e6;
    text-decoration-color: currentColor;
  }
}

@media (min-width: 720px) {
  main {
    padding-top: calc(2rem + env(safe-area-inset-top));
    padding-bottom: 1.4rem;
  }

  .lede {
    margin-top: 1.15rem;
  }

  .soon {
    margin-top: 1.15rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 380px) {
  .facts dt {
    letter-spacing: 0.08em;
    font-size: 0.6rem;
  }

  .soon {
    letter-spacing: 0.24em;
    padding-left: 0.24em;
  }
}

@media (max-height: 700px) {
  main {
    padding-top: calc(0.85rem + env(safe-area-inset-top));
    padding-bottom: 0.7rem;
  }

  .lede {
    margin-top: 0.65rem;
  }

  .soon,
  .facts {
    margin-top: 0.7rem;
  }

  .facts {
    padding-top: 0.6rem;
  }

  .enter {
    margin-top: 0.9rem;
  }
}

@media (max-height: 560px) {
  h1 {
    width: min(78%, 28rem);
  }

  .lede {
    margin-top: 0.4rem;
    font-size: 1.05rem;
  }

  .soon {
    margin-top: 0.4rem;
  }

  .facts {
    margin-top: 0.45rem;
    padding-top: 0.4rem;
  }

  .facts dd {
    font-size: 1.35rem;
  }

  .enter {
    margin-top: 0.55rem;
    min-height: 44px;
  }

  .howdy {
    margin-top: 0.15rem;
    min-height: 36px;
  }

  footer {
    padding-top: 0.2rem;
    padding-bottom: calc(0.45rem + env(safe-area-inset-bottom));
  }

  footer p {
    font-size: 0.7rem;
  }
}

@media (forced-colors: active) {
  .stage,
  .copy::before {
    display: none;
  }

  body {
    background: Canvas;
    color: CanvasText;
  }

  .lede,
  .soon,
  .facts dt,
  .facts dd,
  footer p,
  .howdy {
    color: CanvasText;
    text-shadow: none;
  }

  .facts,
  .facts div + div {
    border-color: CanvasText;
  }

  .enter {
    background: ButtonFace;
    color: ButtonText;
    border: 2px solid ButtonText;
    box-shadow: none;
  }
}

@media print {
  .stage,
  .copy::before {
    display: none;
  }

  body {
    background: #fff;
    color: #1a120c;
  }

  .lede,
  .soon,
  .facts dt,
  .facts dd,
  footer p,
  .howdy {
    color: #1a120c;
    text-shadow: none;
  }

  .enter {
    background: #fff;
    color: #1a120c;
    border: 2px solid #1a120c;
    box-shadow: none;
  }
}
