* { box-sizing: border-box; }

@font-face { font-family: "Montserrat"; src: url("/assets/montserrat-latin.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("/assets/open-sans-latin.woff2") format("woff2"); font-style: normal; font-weight: 300 800; font-display: swap; }

:root {
  color-scheme: light;
  font-family: "Open Sans", ui-sans-serif, system-ui, sans-serif;
  color: #302b24;
  background: #f6f3ed;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --ink: #302b24;
  --muted: #655f55;
  --paper: #fffefa;
  --amber: #b66124;
  --amber-dark: #824016;
  --font-display: "Montserrat", "Open Sans", sans-serif;
}

html { min-width: 320px; min-height: 100%; }
body { min-height: 100vh; min-height: 100svh; margin: 0; padding: 44px 20px 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; isolation: isolate; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; z-index: -3; background: linear-gradient(135deg, #f8f5ee 10%, #f2eadc 100%); }
.page-backdrop { position: fixed; inset: 0; z-index: -2; display: block; overflow: hidden; pointer-events: none; }
.page-backdrop img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .36; filter: blur(1.2px); }
body::after { content: ""; position: fixed; inset: 0; z-index: -1; background: rgb(246 243 237 / .55); pointer-events: none; }
.selector { width: min(100%, 510px); padding: 40px 38px 26px; text-align: center; background: rgb(255 254 250 / .94); border-radius: 16px; box-shadow: 0 18px 54px rgb(61 45 26 / .16); }
.product-name { margin: 0; font-family: var(--font-display); font-size: 13px; font-weight: 750; line-height: 1.5; letter-spacing: .05em; text-transform: uppercase; }
.product-name span { color: var(--amber-dark); }
.accent-rule { display: block; width: 34px; height: 3px; margin: 19px auto 23px; border-radius: 2px; background: var(--amber); }
h1 { max-width: 16ch; margin: 0 auto; font-family: var(--font-display); font-size: clamp(28px, 6vw, 34px); line-height: 1.16; letter-spacing: -.03em; font-weight: 760; text-wrap: balance; }
.intro { max-width: 38ch; margin: 14px auto 27px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.gender-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gender-choice { min-height: 74px; padding: 18px 14px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid #dccbb5; border-radius: 9px; color: var(--amber-dark); background: #fffefa; font-family: var(--font-display); font-size: 16px; font-weight: 700; line-height: 1.25; text-decoration: none; transition: background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease; }
.choice-icon { width: 30px; height: 38px; flex: 0 0 auto; }
.choice-arrow { width: 20px; height: 20px; margin-left: auto; flex: 0 0 auto; }
.gender-choice[href] { cursor: pointer; }
.gender-choice[href]:hover { background: #fbf1e4; box-shadow: 0 5px 16px rgb(61 45 26 / .11); transform: translateY(-2px); }
.gender-choice[aria-disabled="true"] { color: #777064; background: #f2efe8; cursor: not-allowed; }
.gender-choice:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }
.route-status { margin: 15px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.privacy-policy-trigger { min-height: 44px; padding: 10px 8px; border: 0; color: #4f493f; background: transparent; font: inherit; font-size: 11px; line-height: 1.4; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.privacy-policy-trigger:hover { color: var(--amber-dark); }
.privacy-policy-trigger:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 3px; }
dialog { width: min(500px, calc(100% - 32px)); max-height: min(82vh, 640px); max-height: min(82svh, 640px); overflow: auto; padding: 28px; border: 1px solid #dccbb5; border-radius: 12px; color: var(--ink); background: var(--paper); box-shadow: 0 18px 54px rgb(61 45 26 / .22); }
dialog::backdrop { background: rgb(35 31 26 / .58); }
dialog h2 { margin: 0 74px 18px 0; font-family: var(--font-display); font-size: 20px; line-height: 1.3; }
dialog p { margin: 0 0 12px; color: #4f493f; font-size: 14px; line-height: 1.65; }
.dialog-close { float: right; min-height: 44px; padding: 8px 12px; border: 1px solid #dccbb5; border-radius: 7px; color: var(--ink); background: var(--paper); font: inherit; font-size: 12px; cursor: pointer; }
.dialog-close:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.page-footer { width: min(100%, 550px); margin-top: 22px; text-align: center; color: #4f493f; font-size: 11px; line-height: 1.65; }
::selection { color: #fffefa; background: var(--amber-dark); }

@media (max-width: 520px) {
  body { padding: 28px 16px 20px; }
  .page-backdrop img { opacity: .29; }
  .selector { padding: 30px 22px 20px; }
  .gender-choices { grid-template-columns: 1fr; gap: 10px; }
  .gender-choice { min-height: 58px; }
  .page-footer { margin-top: 16px; }
  dialog { padding: 24px 20px; }
}

@media (max-height: 620px) and (min-width: 521px) {
  body { padding-top: 20px; padding-bottom: 20px; }
  .selector { padding-top: 28px; padding-bottom: 18px; }
  .accent-rule { margin: 12px auto 16px; }
  .intro { margin-bottom: 18px; }
}

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

.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.consent-button { min-height: 44px; padding: 9px 14px; border: 1px solid #6d6254; border-radius: 7px; background: var(--paper); color: var(--ink); font: 650 14px/1.3 var(--font-display); cursor: pointer; }
.consent-accept { border-color: var(--amber-dark); background: var(--amber-dark); color: #fff; }
.consent-button:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

.country-choice-set > a { grid-column: 1 / -1; }
.selector-icon { font-size: 26px; }
