/* Norah's Valley: a session-based, accessible age confirmation. */
html[data-nv-age="pending"],
html[data-nv-age="blocked"] {
  overflow: hidden !important;
  overscroll-behavior: none;
  background: #251018;
}

html[data-nv-age="pending"] body,
html[data-nv-age="blocked"] body {
  overflow: hidden !important;
}

/* One 40%-opacity backdrop keeps the page visible while access is locked. */
html[data-nv-age="pending"]::before,
html[data-nv-age="blocked"]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  background: rgba(0, 0, 0, .4);
  pointer-events: auto;
}

html[data-nv-age="pending"] body > :not(.nv-age-gate):not(.nv-age-noscript):not(script):not(style):not(noscript),
html[data-nv-age="blocked"] body > :not(.nv-age-gate):not(.nv-age-noscript):not(script):not(style):not(noscript) {
  pointer-events: none !important;
}

.nv-age-gate,
.nv-age-restricted,
.nv-age-noscript {
  box-sizing: border-box;
  font-family: var(--sans, "Montserrat", Arial, sans-serif);
  color: #33282b;
  -webkit-font-smoothing: antialiased;
}

.nv-age-gate {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 20px 16px;
  background: transparent;
}

.nv-age-card {
  box-sizing: border-box;
  width: min(100%, 420px);
  margin: auto;
  padding: 24px;
  border: 1px solid #e4d6ca;
  border-top: 4px solid #b4864d;
  border-radius: 6px;
  background: #fff;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .2);
}

.nv-age-card:focus {
  outline: none;
}

.nv-age-logo {
  display: block;
  width: min(100%, 210px);
  height: auto;
  margin: 0 auto 14px;
}

.nv-age-eyebrow {
  margin: 0 0 8px;
  color: #795328;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nv-age-heading {
  margin: 0 0 10px;
  color: #68182a;
  font-family: var(--serif, "Cormorant Garamond", Georgia, serif);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.nv-age-message {
  max-width: 340px;
  margin: 0 auto;
  color: #4d4447;
  font-size: 14px;
  line-height: 1.5;
}

.nv-age-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.nv-age-gate .nv-age-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nv-age-actions > :only-child {
  grid-column: 1 / -1;
}

.nv-age-button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #68182a;
  border-radius: 2px;
  background: #68182a;
  color: #fff;
  font: 600 13px/1.4 var(--sans, "Montserrat", Arial, sans-serif);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease;
  -webkit-tap-highlight-color: transparent;
}

.nv-age-button:hover {
  border-color: #4e1120;
  background: #4e1120;
}

.nv-age-button:focus-visible {
  outline: 3px solid #b4864d;
  outline-offset: 4px;
}

.nv-age-button-secondary {
  border-color: #d9cdd0;
  background: #fff;
  color: #68182a;
}

.nv-age-button-secondary:hover {
  border-color: #68182a;
  background: #f6f3f4;
}

.nv-age-policy {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid #e9e3e5;
  color: #62575c;
  font-size: 11px;
  line-height: 1.5;
}

.nv-age-restricted,
.nv-age-noscript {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  margin: 0;
  padding: 24px 20px;
  background: #251018;
}

.nv-age-noscript {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
}

@media (max-width: 480px) {
  .nv-age-gate,
  .nv-age-restricted,
  .nv-age-noscript {
    padding: 16px;
  }

  .nv-age-card {
    padding: 20px 18px;
  }

  .nv-age-logo {
    width: min(100%, 190px);
    margin-bottom: 12px;
  }

  .nv-age-heading {
    font-size: 30px;
  }

  .nv-age-message {
    font-size: 13px;
  }

  .nv-age-actions {
    margin-top: 14px;
  }
}

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