@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap");

:root {
  --paper: #fffaf5;
  --card: #fffefd;
  --ink: #481b2a;
  --muted: #75636a;
  --line: #ead9d3;
  --rose: #c94f6a;
  --rose-dark: #8f2943;
  --rose-soft: #fff0f2;
  --blue: #527fa8;
  --blue-soft: #eef6fb;
  --sage: #668568;
  --sage-soft: #f0f6ed;
  --gold: #a56d2b;
  --gold-soft: #fff3df;
  --shadow: 0 22px 60px rgba(89, 49, 61, .11);
  --radius: 24px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 0 0, rgba(250, 210, 217, .64), transparent 27rem),
    radial-gradient(circle at 100% 12rem, rgba(219, 236, 219, .64), transparent 25rem),
    var(--paper);
  font-family: "DM Sans", sans-serif;
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: var(--rose-dark); }
button, input, select { font: inherit; }
button { color: inherit; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; background: var(--ink); color: white; padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgba(234,217,211,.82); background: rgba(255,250,245,.91); backdrop-filter: blur(18px); }
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; text-decoration: none; letter-spacing: -.03em; }
.brand img { width: 42px; height: 42px; border-radius: 14px; }
.nav-links { display: flex; align-items: center; gap: 23px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--rose-dark); }
.menu-button { display: none; border: 1px solid var(--line); background: white; border-radius: 12px; padding: 8px 11px; }
.breadcrumbs { padding-top: 22px; color: var(--muted); font-size: 13px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.hero { padding: 64px 0 46px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(32px, 6vw, 78px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--rose-dark); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--rose); }
h1, h2, h3 { font-family: "Fraunces", serif; line-height: 1.08; letter-spacing: -.035em; }
h1 { margin: 0 0 20px; font-size: clamp(46px, 7vw, 78px); }
h2 { margin: 0 0 14px; font-size: clamp(32px, 4.2vw, 49px); }
h3 { margin: 0 0 9px; font-size: 24px; }
p { margin: 0 0 16px; }
.lead { max-width: 720px; color: var(--muted); font-size: clamp(18px, 2vw, 21px); }
.hero-art {
  position: relative;
  display: grid;
  min-height: 440px;
  place-items: center;
  isolation: isolate;
}
.hero-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 88%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 42%, rgba(255,255,255,.8) 0 24%, rgba(255,240,242,.5) 52%, rgba(238,246,235,.18) 70%, transparent 75%);
  filter: blur(18px);
}
.hero-art img {
  position: relative;
  width: min(112%, 620px);
  max-width: none;
  max-height: 500px;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: saturate(.94) contrast(1.02);
  -webkit-mask-image: radial-gradient(ellipse 64% 70% at center, #000 42%, rgba(0,0,0,.82) 56%, transparent 88%);
  mask-image: radial-gradient(ellipse 64% 70% at center, #000 42%, rgba(0,0,0,.82) 56%, transparent 88%);
}
.hero-art.cutout img {
  width: min(118%, 670px);
  mix-blend-mode: normal;
  filter: drop-shadow(0 22px 30px rgba(82,45,57,.1));
  -webkit-mask-image: none;
  mask-image: none;
}
.actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 24px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 11px 19px; background: var(--ink); color: white; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .18s, box-shadow .18s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(72,27,42,.16); }
.button.secondary { border: 1px solid var(--line); background: white; color: var(--ink); }
.button.rose { background: var(--rose-dark); }
.button.small { min-height: 40px; padding: 8px 15px; font-size: 14px; }
.section { padding: 54px 0; }
.section.tint { border-block: 1px solid rgba(234,217,211,.72); background: rgba(255,255,255,.45); }
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head p, .muted { color: var(--muted); }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,254,253,.93); padding: 24px; box-shadow: 0 12px 35px rgba(89,49,61,.065); }
a.card { color: inherit; text-decoration: none; transition: transform .18s, box-shadow .18s; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon { width: 58px; height: 58px; margin-bottom: 17px; border-radius: 18px; display: grid; place-items: center; background: var(--rose-soft); font-size: 27px; overflow: hidden; }
.card-icon img { width: 100%; height: 100%; object-fit: cover; }
.card p { color: var(--muted); }
.text-link { font-weight: 800; text-decoration: none; }
.tool-shell { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; align-items: start; }
.tool-copy { position: sticky; top: 98px; }
.calculator { border: 1px solid var(--line); border-radius: 30px; background: rgba(255,255,255,.94); padding: clamp(22px, 4vw, 34px); box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 15px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 800; }
input, select { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 14px; background: white; padding: 10px 12px; color: var(--ink); }
input:focus, select:focus { outline: 3px solid rgba(201,79,106,.16); border-color: var(--rose); }
.hint { color: var(--muted); font-size: 13px; }
.result { display: none; margin-top: 18px; border: 1px solid #ecc7d1; border-radius: 22px; background: linear-gradient(135deg, var(--rose-soft), var(--blue-soft)); padding: 22px; }
.result.show { display: block; animation: rise .35s ease both; }
.result.revealing [data-result-content] { display: none; }
.result:not(.revealing) [data-reveal-status] { display: none; }
.reveal-status { min-height: 150px; display: grid; place-items: center; text-align: center; }
.reveal-status strong { display: block; margin-top: 12px; font-family: "Fraunces", serif; font-size: 25px; }
.reveal-orbit { width: 52px; height: 52px; border: 3px solid rgba(201,79,106,.18); border-top-color: var(--rose); border-radius: 50%; animation: spin .8s linear infinite; }
.result-kicker { color: var(--rose-dark); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.result-main { margin: 6px 0; font-family: "Fraunces", serif; font-size: 45px; font-weight: 700; line-height: 1; }
.result-headline { margin: 5px 0 12px; font-family: "Fraunces", serif; font-size: 25px; line-height: 1.15; }
.result-details { display: grid; gap: 8px; margin-top: 15px; }
.result-row { display: flex; justify-content: space-between; gap: 15px; border-radius: 12px; background: rgba(255,255,255,.74); padding: 9px 11px; font-size: 14px; }
.result-explanation { margin-top: 16px; }
.result-explanation details { background: rgba(255,255,255,.72); }
.result-explanation ul { margin: 10px 0 0; padding-left: 20px; color: var(--muted); }
.calculation-link { display: inline-block; margin-top: 5px; font-weight: 800; text-decoration: none; }
.calculation-link:hover { text-decoration: underline; }
.next-step { margin-top: 17px; border-top: 1px solid rgba(143,41,67,.16); padding-top: 17px; }
.next-step p { margin-bottom: 10px; color: var(--muted); }
.tool-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0; }
.tool-step { border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.7); padding: 13px; }
.tool-step b { display: block; margin-bottom: 3px; }
.tool-step span { color: var(--muted); font-size: 13px; }
.step-number { width: 25px; height: 25px; display: grid; place-items: center; margin-bottom: 8px; border-radius: 50%; background: var(--rose-soft); color: var(--rose-dark); font-size: 12px; font-weight: 800; }
.saved-votes { display: none; margin: 0 0 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--sage-soft); padding: 15px 17px; }
.saved-votes.show { display: block; }
.saved-votes b { display: block; margin-bottom: 3px; }
.final-vote { margin-top: 16px; border: 1px solid #e7c98e; border-radius: 18px; background: var(--gold-soft); padding: 17px; }
.final-vote h3 { font-size: 22px; }
.vote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.vote-card { border-radius: 13px; background: rgba(255,255,255,.7); padding: 10px; font-size: 13px; }
.vote-card b { display: block; }
.notice { margin-top: 18px; border: 1px solid #e9d2a8; border-radius: 18px; background: var(--gold-soft); padding: 15px 17px; color: #725124; font-size: 14px; }
.note { border-left: 4px solid var(--rose); padding: 10px 0 10px 16px; color: var(--muted); }
.content { max-width: 800px; }
.content h2 { margin-top: 48px; }
.content h3 { margin-top: 30px; }
.content li { margin-bottom: 8px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-block: 24px; }
.fact { border: 1px solid var(--line); border-radius: 18px; background: white; padding: 16px; }
.fact b { display: block; margin-bottom: 4px; }
.fact span { color: var(--muted); font-size: 14px; }
.comparison { overflow-x: auto; margin-top: 26px; border: 1px solid var(--line); border-radius: 22px; background: white; }
.comparison table { width: 100%; min-width: 700px; border-collapse: collapse; }
.comparison th, .comparison td { padding: 15px 17px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison th { color: var(--rose-dark); background: #fff6f6; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.comparison tr:last-child td { border-bottom: 0; }
.comparison td:first-child { font-weight: 800; }
.chart-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: white; }
.gender-chart { width: 100%; min-width: 780px; border-collapse: collapse; font-size: 12px; }
.gender-chart th, .gender-chart td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px; text-align: center; }
.gender-chart th { background: #fff5f5; }
.gender-chart td:first-child { font-weight: 800; background: #fffaf5; }
.gender-chart .girl { background: var(--rose-soft); color: var(--rose-dark); }
.gender-chart .boy { background: var(--blue-soft); color: #315f88; }
.gender-chart .active { outline: 3px solid var(--ink); outline-offset: -3px; }
.timeline { position: relative; display: grid; gap: 16px; margin-top: 28px; }
.timeline::before { content: ""; position: absolute; top: 12px; bottom: 12px; left: 27px; width: 2px; background: var(--line); }
.timeline-item { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 18px; }
.timeline-dot { z-index: 1; width: 56px; height: 56px; display: grid; place-items: center; border: 5px solid var(--paper); border-radius: 50%; background: var(--rose-dark); color: white; font-weight: 800; font-size: 12px; }
.timeline-copy { border: 1px solid var(--line); border-radius: 20px; background: white; padding: 19px; }
.timeline-copy p { color: var(--muted); margin-bottom: 0; }
.quiz { max-width: 760px; margin-inline: auto; }
.progress { height: 9px; overflow: hidden; border-radius: 99px; background: #eee2e4; }
.progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--rose); transition: width .25s; }
.quiz-meta { display: flex; justify-content: space-between; margin-bottom: 9px; color: var(--muted); font-size: 13px; font-weight: 700; }
.question { margin-top: 22px; }
.options { display: grid; gap: 11px; margin-top: 17px; }
.option { width: 100%; border: 1px solid var(--line); border-radius: 16px; background: white; padding: 14px 16px; text-align: left; cursor: pointer; }
.option:hover, .option.selected { border-color: var(--rose); background: var(--rose-soft); }
.option b, .option span { display: block; }
.option span { color: var(--muted); font-size: 13px; }
.quiz-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
.faq { display: grid; gap: 10px; }
details { border: 1px solid var(--line); border-radius: 17px; background: white; padding: 15px 17px; }
summary { cursor: pointer; font-weight: 800; }
details p { margin: 10px 0 0; color: var(--muted); }
.source-list { color: var(--muted); font-size: 14px; }
.cta { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; border-radius: 28px; background: var(--ink); color: white; padding: 30px; }
.cta h2 { color: white; font-size: 34px; }
.cta p { color: #e7d9de; margin: 0; }
.site-footer { margin-top: 50px; border-top: 1px solid var(--line); background: rgba(255,255,255,.48); padding: 40px 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 36px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.footer-links b { display: block; margin-bottom: 8px; }
.footer-links a { display: block; margin-bottom: 6px; color: var(--muted); font-size: 14px; text-decoration: none; }
.copyright { margin-top: 28px; color: var(--muted); font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 850px) {
  .hero-grid, .tool-shell, .footer-grid, .cta { grid-template-columns: 1fr; }
  .hero-art { min-height: 360px; max-width: 540px; margin-inline: auto; }
  .tool-copy { position: static; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .menu-button { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: 64px; left: 20px; right: 20px; flex-direction: column; align-items: stretch; border: 1px solid var(--line); border-radius: 18px; background: white; padding: 16px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
}
@media (max-width: 590px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .hero { padding-top: 40px; }
  .hero-art { min-height: 300px; }
  .hero-art img { width: 108%; max-height: 350px; }
  .hero-art.cutout img { width: 105%; }
  h1 { font-size: 43px; }
  .grid-2, .grid-3, .grid-4, .form-row, .facts, .footer-links, .tool-steps, .vote-grid { grid-template-columns: 1fr; }
  .card, .calculator { padding: 20px; }
  .actions .button { width: 100%; }
}

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