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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

:root {
  --color-background: 241 240 240;
  --color-foreground: 0 0 0;
  --color-foreground-rgb: 0 0 0;
  --font-heading-family: Montserrat, sans-serif;
  --font-body-family: Inter, sans-serif;
  --page-margin: 24px;
}

body {
  font-family: var(--font-body-family);
  color: rgb(var(--color-foreground));
  background-color: rgb(var(--color-background));
  -webkit-font-smoothing: antialiased;
}

#MainContent {
  padding: 0;
  margin: 0;
}

.age-gate {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  overflow: hidden;
}

.age-gate__grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 35vh 1fr;
  min-height: 100vh;
  min-height: 100dvh;
}

.age-gate__form-wrapper {
  order: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--page-margin, 24px);
  background: rgb(var(--color-background));
}

.age-gate__media {
  order: 1;
  position: relative;
  min-height: 160px;
  max-height: 35vh;
  background: rgb(var(--color-foreground-rgb) / 0.06);
  overflow: hidden;
}

.age-gate__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media screen and (min-width: 750px) {
  .age-gate__grid {
    grid-template-columns: 1fr var(--age-gate-image-width, 40%);
    grid-template-rows: 1fr;
  }

  .age-gate__form-wrapper {
    order: 1;
  }

  .age-gate__media {
    order: 2;
    min-height: 100%;
    max-height: none;
  }
}

.age-gate__form-inner {
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.age-gate__heading {
  font-family: var(--font-heading-family);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
  color: rgb(var(--color-foreground));
  margin: 0 0 2rem;
}

.age-gate__buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.age-gate__btn {
  display: block;
  width: 100%;
  padding: 1rem 1.5rem;
  font-family: var(--font-body-family);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid currentColor;
  border-radius: 22px;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.age-gate__btn--primary {
  background: rgb(var(--color-foreground));
  color: rgb(var(--color-background));
  border-color: rgb(var(--color-foreground));
}

.age-gate__btn--primary:hover {
  opacity: 0.85;
}

.age-gate__btn--secondary {
  background: transparent;
  color: rgb(var(--color-foreground));
}

.age-gate__btn--secondary:hover {
  background: rgb(var(--color-foreground-rgb) / 0.08);
}

.age-gate__disclaimer {
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgb(var(--color-foreground) / 0.8);
  margin: 0;
}

.age-gate__link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.age-gate__link:hover {
  opacity: 0.8;
}

.age-gate__btn:focus-visible,
.age-gate__link:focus-visible {
  outline: 2px solid rgb(var(--color-foreground));
  outline-offset: 3px;
}
