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

:root {
  --color-background: #f4f7f8;
  --color-foreground: #121820;
  --color-primary: #1f4d63;
  --color-primary-foreground: #f7fbfc;
  --color-muted: #5b6b75;
  --color-ring: #2f6f88;
  --font-body: Figtree, system-ui, sans-serif;
  --font-display: Syne, system-ui, sans-serif;
  --image-width: 44%;
}

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

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

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-primary);
}

button {
  font: inherit;
}

.age-gate {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--color-background);
}

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

.age-gate__form {
  order: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.age-gate__inner {
  width: min(100%, 420px);
  text-align: center;
}

.age-gate__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: 0 0 1.75rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #102029;
}

.age-gate__mark {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  background: linear-gradient(140deg, #2f6f88, #16323f);
  box-shadow: 0 0 0 4px rgba(47, 111, 136, 0.12);
}

.age-gate__heading {
  margin: 0 0 1.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-transform: uppercase;
}

.age-gate__actions {
  display: grid;
  gap: 0.75rem;
}

.age-gate__btn {
  min-height: 52px;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, opacity 160ms ease;
}

.age-gate__btn:hover {
  transform: translateY(-1px);
}

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

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

.age-gate__btn--secondary {
  border: 1px solid rgba(31, 77, 99, 0.35);
  color: var(--color-foreground);
  background: #fff;
}

.age-gate__btn--secondary:hover {
  background: #e4edf1;
}

.age-gate__disclaimer {
  margin: 1.25rem 0 0;
  color: var(--color-muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

.age-gate__disclaimer a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.age-gate__btn:focus-visible,
.age-gate__disclaimer a:focus-visible {
  outline: 2px solid var(--color-ring);
  outline-offset: 3px;
}

.age-gate__media {
  order: 1;
  position: relative;
  overflow: hidden;
  background: #16323f;
}

.age-gate__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

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

  .age-gate__form {
    order: 1;
    padding: 2.5rem 3rem;
  }

  .age-gate__inner {
    text-align: left;
  }

  .age-gate__brand {
    justify-content: flex-start;
  }

  .age-gate__media {
    order: 2;
    min-height: 100vh;
    min-height: 100dvh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .age-gate__btn {
    transition: none;
  }
}
