/* Keep the page laid out for its entrance animations, but blank until entry. */
html:not([data-age-verified]) {
  overflow: hidden;
}

html:not([data-age-verified]) body > :not(#age-gate):not(.age-gate-noscript) {
  visibility: hidden;
  pointer-events: none;
}

#age-gate,
.age-gate-noscript {
  visibility: visible;
  color: #2a1a12;
  background: #f5efe6;
  font-family: 'Hanken Grotesk', sans-serif;
  text-align: center;
}

#age-gate {
  box-sizing: border-box;
  width: min(520px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: clamp(28px, 6vw, 56px) clamp(24px, 5vw, 48px);
  border: 1px solid #a2431b;
  border-radius: 14px;
  overflow-y: auto;
}

#age-gate::backdrop {
  background: rgba(31, 22, 17, 0.56);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

#age-gate .age-gate-brand {
  margin: 0 0 12px;
  color: #a2431b;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

#age-gate h2 {
  margin: 0 0 32px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(32px, 6vw, 44px);
  font-weight: 500;
  line-height: 1.15;
}

#age-gate p {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.6;
}

#age-gate .age-gate-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

/* Fallbacks for older pages; the main site supplies the same .btn styles. */
:where(#age-gate) .btn,
:where(#age-gate) .age-gate-exit {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 15px 26px;
  border: none;
  border-radius: 50px;
  background: var(--terra, #bb5a2c);
  color: var(--white, #fffdfb);
  font: 600 15px/1.4 'Hanken Grotesk', sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease, ease), background 0.2s ease;
}

:where(#age-gate) .age-gate-actions .btn.primary,
:where(#age-gate) .age-gate-exit {
  background: var(--ink, #2a1a12);
  color: var(--white, #fffdfb);
  box-shadow: 0 18px 32px -24px rgba(42, 26, 18, 0.85);
}

:where(#age-gate) .age-gate-actions .btn.ghost {
  background: rgba(255, 253, 251, 0.6);
  border: 1px solid rgba(42, 26, 18, 0.22);
  color: rgba(42, 26, 18, 0.82);
}

#age-gate .age-gate-actions .btn {
  min-width: 120px;
  justify-content: center;
}

:where(#age-gate) .btn:hover,
:where(#age-gate) .age-gate-exit:hover {
  background: var(--terra-deep, #a2431b);
  transform: translateY(-2px);
}

:where(#age-gate) .age-gate-actions .btn.ghost:hover {
  background: rgba(255, 255, 255, 0.24);
}

#age-gate :focus-visible {
  outline: 3px solid #2a1a12;
  outline-offset: 4px;
}

.age-gate-noscript {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-content: center;
  padding: 32px;
  font-size: 20px;
  line-height: 1.6;
}
