:root {
  color-scheme: light;
  --paper: #f2efe5;
  --ink: #121820;
  --electric: #3f62ff;
  --line: rgba(255, 255, 255, 0.28);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--ink); }

body {
  margin: 0;
  color: var(--paper);
}

a { color: inherit; }

.gate {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  background: #081124;
  padding: 20px;
}

.gate__image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(5, 9, 18, 0.36), rgba(5, 9, 18, 0.58)),
    url("/assets/age-gate/age-gate-background.png") center / cover no-repeat;
  transform: scale(1.02);
}

.gate__panel {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 420px);
  flex-direction: column;
  gap: 22px;
  padding: 28px 24px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(8, 17, 36, 0.88);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  text-align: center;
  backdrop-filter: blur(12px);
}

.wordmark {
  display: inline-flex;
  width: max-content;
  flex-direction: column;
  color: var(--ink);
  font-family: "Arial Narrow", "Aptos Narrow", Impact, sans-serif;
  font-size: 1rem;
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.wordmark--light { color: #fff; }

.eyebrow {
  margin: 0 0 14px;
  font-family: ui-monospace, "Cascadia Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gate h1,
.restricted h1 {
  margin: 0;
  font-family: "Arial Narrow", "Aptos Narrow", Impact, sans-serif;
  font-size: clamp(2.65rem, 12vw, 6.5rem);
  font-stretch: condensed;
  font-weight: 900;
  line-height: 0.91;
  letter-spacing: -0.055em;
  text-wrap: balance;
  text-transform: uppercase;
}

.gate h1 {
  font-size: clamp(1.8rem, 8vw, 2.6rem);
  line-height: 1;
}

.gate__question > p:last-child {
  max-width: 36rem;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.94rem;
  line-height: 1.55;
}

.gate__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.gate-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  font-family: ui-monospace, "Cascadia Mono", monospace;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.gate-button--yes {
  border-color: var(--electric);
  background: var(--electric);
  color: #fff;
}

.gate-button--no { background: rgba(5, 9, 18, 0.44); }
.gate-button:hover { transform: translateY(-2px); }
.gate-button:focus-visible, a:focus-visible { outline: 3px solid #ffd447; outline-offset: 4px; }

.gate__legal {
  width: max-content;
  margin: -4px auto 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.72rem;
  text-underline-offset: 3px;
}

.restricted-page { background: var(--paper); color: var(--ink); }

.restricted {
  display: flex;
  width: min(100%, 760px);
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  padding: 28px 20px;
}

.restricted .wordmark { margin-bottom: auto; }
.restricted .eyebrow { margin-top: 72px; color: #52606d; }
.restricted h1 { font-size: clamp(3.4rem, 15vw, 7rem); }
.restricted > p:not(.eyebrow) { max-width: 42rem; font-size: 1rem; line-height: 1.65; }
.restricted .gate-button { width: min(100%, 330px); margin-top: 16px; }
.restricted__contact { margin-top: auto; padding-top: 56px; color: #52606d; font-size: 0.8rem !important; }

@media (min-width: 760px) {
  .gate__panel { padding: 32px; }
  .gate__image { background-position: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
