:root {
  color-scheme: dark;
  --wine: #100709;
  --plum: #1f0b10;
  --pink: #f4a6b4;
  --red: #c42b42;
  --accent: #e34458;
  --gold: #d8b478;
  --cream: #fff4f2;
  --muted: #c9a7ac;
  --line: #d8b47833;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  isolation: isolate;
  background: #120609;
  color: var(--cream);
  font: 14px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body.gate-open { overflow: hidden; }
[hidden] { display: none !important; }
a { color: inherit; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 23px; height: 23px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; left: 16px; top: 16px; padding: 12px; background: var(--cream); color: var(--wine); z-index: 5; clip-path: inset(100%); }
.skip-link:focus { clip-path: none; }
.page {
  position: relative;
  z-index: 1;
  max-width: 460px;
  margin: auto;
  padding: 0 max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}
.masthead { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; text-align: center; height: 58px; border-bottom: 1px solid var(--line); gap: 12px; }
.monogram { font: italic 32px var(--serif); letter-spacing: -3px; text-decoration: none; min-width: 48px; min-height: 48px; display: flex; align-items: center; }
.monogram span { color: var(--gold); }
.masthead > span { font-size: 8px; letter-spacing: 1.6px; color: var(--muted); }
.masthead > .icon { justify-self: end; color: var(--gold); width: 17px; }
.profile { text-align: center; padding-top: 18px; }
.profile h1 { font-size: clamp(40px, 10.8vw, 52px); margin-top: var(--space-4); }
.name-heart { font: 16px var(--sans); display: inline-block; vertical-align: middle; letter-spacing: 0; }
.portrait-frame { width: 160px; aspect-ratio: 1; padding: 5px; margin: 0 auto; border: 1px solid #d8b478aa; border-radius: 50%; box-shadow: 0 0 42px #c42b4228; }
.portrait { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: inherit; display: block; }
.eyebrow { margin: 0 0 16px; font-size: 9px; letter-spacing: 2.4px; color: var(--pink); }
.eyebrow span { margin-left: 5px; color: var(--gold); }
h1, .welcome-card h2 { font: normal clamp(46px, 12vw, 64px)/1.04 var(--serif); letter-spacing: -1.8px; margin: 0; }
h1 em, .welcome-card h2 em { color: var(--gold); font-weight: normal; }
h1:focus { outline: none; }
.bio { max-width: 330px; margin: var(--space-4) auto; color: var(--muted); font-size: 15px; text-wrap: pretty; line-height: 1.75; }
.bio p { margin: 0; }
.bio p:first-child { color: var(--cream); font-size: 15px; margin: 0; }
.bio p:first-child span { color: var(--pink); }
.links { text-align: center; display: grid; gap: 20px; }
.cta { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 62px; padding: 12px 14px; border-radius: 15px; text-decoration: none; border: 1px solid transparent; transition: transform .2s, box-shadow .2s, border-color .2s; }
.cta-primary { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(115deg, #b7243d, #cc304a 45%, #981d37); color: var(--cream); border-color: #f4a6b460; box-shadow: 0 7px 24px #0003, 0 0 25px #c42b4235; }
.cta-secondary { background: #1f0b1080; border-color: #c42b4260; }
.cta-secondary > .icon { color: var(--pink); }
.cta:hover { transform: translateY(-2px); border-color: var(--pink); box-shadow: 0 10px 30px #f4a6b414; }
.cta:active, .enter-button:active { transform: scale(.985); }
.section-divider { display: flex; align-items: center; justify-content: center; gap: 15px; color: var(--gold); margin: 0 auto 21px; }
.section-divider span { width: 48px; height: 1px; background: var(--line); }
footer { border-top: 1px solid var(--line); text-align: center; padding-top: var(--space-3); font-size: 12px; color: var(--muted); }
/* Główna treść pozostaje w HTML; dialog jest jedynie ekranem powitalnym. */
.welcome-gate {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  border: 0;
  color: var(--cream);
  background: #120609;
  overflow-y: auto;
}
.welcome-gate[open] { display: flex; align-items: center; justify-content: center; }
.welcome-gate::backdrop { background: var(--wine); }
.welcome-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  margin: auto;
  padding: 44px 25px 33px;
  text-align: center;
  border: 1px solid #d8b47866;
  border-radius: 25px;
  background: linear-gradient(145deg, #52152165, #1f0b1099);
  box-shadow: 0 28px 90px #09010650, inset 0 1px 0 #fff4f208;
}
.gate-ornament { display: block; color: var(--gold); font: 35px var(--serif); margin-bottom: 25px; }
.welcome-card .eyebrow { font-size: 8px; letter-spacing: 3px; margin-bottom: 22px; color: var(--muted); }
.welcome-card h2 { font-size: clamp(40px, 10.8vw, 59px); }
#welcome-description { font: italic 16px/1.8 var(--serif); color: #e0b8be; margin: 23px 0 31px; }
#welcome-description span { font-size: 12px; }
.enter-button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 58px; padding: 18px 21px; font: 600 10px/1.5 var(--sans); letter-spacing: 1.4px; color: var(--cream); border: 1px solid #d8b47855; border-radius: 12px; background: linear-gradient(110deg, #a72138, #c42b42 55%, #a42b3b); box-shadow: 0 8px 30px #e3445818; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.enter-button span { font-size: 20px; line-height: 1; }
.enter-button:hover { box-shadow: 0 8px 30px #f4a6b430; }
.page.is-entering { animation: reveal .5s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (min-width: 600px) {
  .profile { padding-top: 40px; }
  .portrait-frame { width: 206px; }
  .welcome-card { padding: 46px 40px 36px; }
}
@media (max-width: 350px) {
  .masthead > span { font-size: 7px; letter-spacing: 1px; }
  .cta { padding: 12px 10px; gap: 8px; }
  .welcome-card { padding-left: 20px; padding-right: 20px; }
  .enter-button { font-size: 9px; letter-spacing: 1px; padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cta:hover, .cta:active, .enter-button:active { transform: none; }
}

/* FAQ natywne: klawiatura i rozwijanie działają także bez JavaScript. */
.faq { margin: var(--space-5) 0 36px; }
.faq h2 { font: normal 24px/1.3 var(--serif); text-align: center; margin: 0 0 19px; }
.faq h2 em { color: var(--pink); font-weight: normal; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details + details { margin-top: var(--space-2); }
.faq summary { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 64px; padding: 18px 26px; font-size: 14px; font-weight: 500; line-height: 1.6; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); content: '+'; color: var(--gold); font-size: 20px; flex-shrink: 0; }
.faq details[open] summary::after { content: '−'; }
.faq details[open] summary { color: var(--pink); }
.faq details p { font-size: 14px; line-height: 1.8; color: var(--cream); margin: 0 auto; max-width: 330px; text-align: center; padding: 0 12px 18px; }


.cta strong { min-width: 0; font-size: 15px; font-weight: 600; line-height: 1.5; text-wrap: balance; }
.age-badge { flex-shrink: 0; border: 1px solid #fff4f270; border-radius: 6px; padding: 2px 6px; font-size: 12px; font-weight: 600; line-height: 1.6; color: var(--cream); }
.cta-primary:hover, .cta-primary:focus-visible { box-shadow: 0 9px 32px #c42b4255; border-color: #f4a6b4b0; }
footer .copyright { margin: 0; color: var(--cream); }


/* Połysk reaguje tylko na interakcję; bez zapętlonej animacji. */
.cta-primary::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(110deg, transparent 15%, #fff4f218 45%, transparent 70%); transform: translateX(-110%); transition: transform .65s ease; }
.cta-primary:hover::before, .cta-primary:focus-visible::before { transform: translateX(110%); }
.cta-secondary { box-shadow: inset 0 1px 0 #f4a6b408; }
.cta-secondary:hover, .cta-secondary:focus-visible { border-color: #e34458a0; box-shadow: 0 0 20px #c42b421c, inset 0 0 12px #c42b4208; }
@media (max-width: 400px) { .cta { padding-left: 10px; padding-right: 10px; gap: 8px; } }
@media (max-width: 350px) { .cta-secondary .icon { width: 20px; height: 20px; } }
@media (prefers-reduced-motion: reduce) { .cta-primary::before { display: none; } }

.cta-primary strong { white-space: nowrap; text-wrap: nowrap; }
@media (max-width: 400px) { .cta-primary { gap: 7px; } .cta-primary strong { font-size: 14px; } }
@media (max-width: 350px) {
  .cta-primary { gap: 6px; padding-inline: 9px; }
  .cta-primary strong { font-size: 12px; }
  .cta-primary .age-badge { padding-inline: 4px; font-size: 11px; }
}

/* Dwie miękkie poświaty ponad bazowym tłem, pod zawartością.
   Dialog ma własną kopię warstwy, ponieważ showModal używa top layer. */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}
.aurora::before, .aurora::after {
  content: '';
  position: absolute;
  width: 110%;
  height: 90%;
  pointer-events: none;
  will-change: transform, opacity;
}
.aurora::before {
  left: -38%;
  top: -22%;
  background: radial-gradient(ellipse, #9b244a 0%, #71152f99 27%, #52101f40 47%, transparent 70%);
  animation: cherry-aurora-one 14s ease-in-out infinite;
}
.aurora::after {
  right: -38%;
  bottom: -22%;
  background: radial-gradient(ellipse, #a22a3e 0%, #721526aa 25%, #300a1655 48%, transparent 70%);
  animation: cherry-aurora-two 18s ease-in-out -4s infinite;
}
@keyframes cherry-aurora-one {
  0%, 100% { transform: translate3d(-8%, -5%, 0) scale(.9); opacity: .48; }
  50% { transform: translate3d(38%, 30%, 0) scale(1.15); opacity: .8; }
}
@keyframes cherry-aurora-two {
  0%, 100% { transform: translate3d(8%, 4%, 0) scale(.92); opacity: .5; }
  50% { transform: translate3d(-35%, -26%, 0) scale(1.12); opacity: .76; }
}
/* Nie renderuj niewidocznej kopii pod otwartym dialogiem. */
body.gate-open > .aurora { visibility: hidden; }
body.gate-open > .aurora::before, body.gate-open > .aurora::after { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .aurora::before, .aurora::after { animation: none; will-change: auto; }
  .aurora::before { transform: translate3d(12%, 8%, 0); opacity: .55; }
  .aurora::after { transform: translate3d(-12%, -8%, 0); opacity: .5; }
}
