/* Fairy surface tokens — generated by scripts/sync-design-tokens.ts. */
:root{--fairy-surface:#dfd2bb;--fairy-surface-soft:#d6c7ae;--fairy-surface-line:#bfad8e;--fairy-on-surface:#354057;--fairy-on-surface-muted:#46536a;--fairy-on-surface-accent:#68491e}
@media print{:root{--fairy-surface:#fff;--fairy-surface-soft:#f6f4ee;--fairy-surface-line:#ccc}}
/* End Fairy surface tokens. */

:root {
  color-scheme: dark;
  --night: #171b37;
  --night-soft: #202540;
  --cream: #f4efe4;
  --gold: #e1c795;
  --muted: #c0c2cf;
  --line: #e1c79536;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font: 1rem/1.75 system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }
.wrap { width: min(100%, 1240px); margin-inline: auto; padding-inline: clamp(22px, 4vw, 48px); }
.section-inner { padding-block: clamp(56px, 7vw, 88px); }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h1, h2 { letter-spacing: -.035em; }
h1 { max-width: 11ch; font-size: clamp(2.65rem, 5.1vw, 4.25rem); line-height: 1.09; }
h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.2; }
h3 { font-size: 1.5rem; line-height: 1.3; }
.eyebrow { margin-bottom: 17px; color: var(--gold); font-size: .82rem; font-weight: 600; letter-spacing: .045em; }
.eyebrow > span { margin-right: .5em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.brand { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 62px; min-height: 54px; font-family: Georgia, serif; text-decoration: none; line-height: .9; }
.brand i { font-size: 1.2rem; color: var(--gold); }
.brand span { font-size: 1.95rem; letter-spacing: -.04em; }
.header-tools { display: flex; align-items: center; gap: 28px; }
.site-header nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 32px); }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: .875rem; text-decoration: none; }
.site-header nav a:hover { color: var(--gold); }
.site-header .language-nav { gap: 4px; padding-left: 20px; border-left: 1px solid var(--line); }
.language-nav a { justify-content: center; min-width: 44px; padding: 6px 10px; border-radius: 7px; }
.language-nav a[aria-current="page"] { color: var(--gold); background: #e1c79514; }

.hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(36px, 5vw, 70px); padding-block: clamp(44px, 6vw, 76px) clamp(60px, 7vw, 90px); }
.hero > * { min-width: 0; }
.hero .lead { max-width: 37rem; margin-block: 25px 29px; color: #dedbcf; font-size: 1.125rem; line-height: 1.75; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; max-width: 100%; min-height: 54px; padding: 13px 24px; border: 1px solid var(--gold); border-radius: 100px; color: var(--night); background: var(--gold); font-size: .95rem; font-weight: 650; line-height: 1.5; text-decoration: none; }
.button:hover { color: var(--night); background: var(--fairy-surface); border-color: var(--fairy-surface); text-decoration: none; }
.request-note { max-width: 27rem; margin-top: 13px; color: var(--muted); font-size: .8rem; line-height: 1.65; }
.hero-visual picture { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--night-soft); }
.hero-visual img { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 487; object-fit: cover; }
.reading-note { display: flex; align-items: flex-start; gap: 20px; margin-top: 26px; padding: 26px; border: 1px solid var(--line); border-radius: 16px; }
.note-mark { flex: 0 0 auto; color: var(--gold); font: 2rem/1 Georgia, serif; }
.reading-note h2 { margin-bottom: 12px; font-size: 1.55rem; letter-spacing: -.02em; }
.reading-note p { color: var(--muted); font-size: .9rem; line-height: 1.75; }

.reading-section, .reader-section { color-scheme: light; background: var(--fairy-surface); color: var(--fairy-on-surface); }
.reading-section .eyebrow, .reader-section .eyebrow { color: var(--fairy-on-surface-accent); }
.reading-intro { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 54px; }
.section-heading { max-width: 660px; }
.section-heading > p:last-child { max-width: 610px; margin-top: 21px; color: var(--muted); font-size: 1.0625rem; }
.reading-section .section-heading > p:last-child { color: var(--fairy-on-surface-muted); }
.topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px; margin-top: 42px; }
.topics article { padding-top: 22px; border-top: 1px solid var(--fairy-surface-line); }
.topic-number { display: block; margin-bottom: 16px; color: var(--fairy-on-surface-accent); font-size: .8rem; letter-spacing: .09em; }
.topics h3 { margin-bottom: 14px; }
.topics p { color: var(--fairy-on-surface-muted); font-size: .95rem; }
.reading-boundary { max-width: 760px; margin-top: 38px; color: var(--fairy-on-surface-muted); font-size: .875rem; }
.report-preview { min-width: 0; }
.report-preview picture { display: block; overflow: hidden; border: 1px solid var(--fairy-surface-line); border-radius: 14px; background: var(--fairy-surface-soft); }
.report-preview img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; }
.report-preview figcaption { margin-top: 12px; color: var(--fairy-on-surface-muted); font-size: .75rem; line-height: 1.7; }

.story-section { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 62px; border-bottom: 1px solid var(--line); }
.fairy-portrait { width: min(100%, 340px); margin-inline: auto; }
.fairy-portrait picture { display: block; }
.fairy-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.fairy-portrait figcaption { margin-top: 8px; color: var(--muted); text-align: center; font-size: .75rem; }
.story-copy { min-width: 0; }
.story-copy > p:not(.eyebrow) { max-width: 620px; margin-top: 22px; color: var(--muted); font-size: 1rem; }
.story-signature { display: block; margin-top: 22px; color: var(--gold); font: 1.3rem Georgia, serif; }

.how-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 36px 70px; }
.steps { display: grid; gap: 30px; padding: 0; margin: 0; list-style: none; }
.steps li { display: flex; align-items: flex-start; gap: 20px; }
.step-number { display: grid; flex: 0 0 42px; place-items: center; height: 42px; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); font: 1.1rem Georgia, serif; }
.steps h3 { margin: 2px 0 9px; font-size: 1.4rem; }
.steps p { color: var(--muted); font-size: .95rem; }
.birth-time-note { grid-column: 2; margin-left: 62px; padding-top: 22px; border-top: 1px solid var(--line); }
.birth-time-note h3 { margin-bottom: 9px; font-size: 1.15rem; }
.birth-time-note p { color: var(--muted); font-size: .875rem; }

.reader-inner { display: grid; grid-template-columns: .85fr 1.15fr; align-items: start; gap: 38px 70px; padding-block: 58px; }
.reader-intro h2 { font-size: clamp(1.65rem, 2.8vw, 2rem); }
blockquote p { font: clamp(1.5rem, 2.6vw, 1.9rem)/1.5 Georgia, serif; letter-spacing: -.015em; }
figcaption { margin-top: 20px; color: var(--fairy-on-surface-muted); font-size: .8rem; line-height: 1.7; }
figcaption span { font-style: italic; }
.original-feedback { margin-top: 14px; color: var(--fairy-on-surface-muted); font-size: .82rem; }
.original-feedback summary { display: list-item; width: fit-content; min-height: 44px; padding-block: 10px; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.original-feedback summary:focus-visible { outline-color: var(--fairy-on-surface-accent); }
.original-feedback p { padding: 15px 18px; margin-top: 4px; border-left: 2px solid var(--fairy-surface-line); line-height: 1.8; }

.request-section { max-width: 760px; text-align: center; }
.closing-star { display: block; margin-bottom: 22px; color: var(--gold); font-size: 1.8rem; line-height: 1; }
.request-section > p:not(.request-note) { max-width: 560px; margin: 24px auto 29px; color: var(--muted); font-size: 1.0625rem; }
.request-section .request-note { margin-inline: auto; }
.site-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; padding-block: 25px 32px; border-top: 1px solid var(--line); }
.footer-brand { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 44px; font: 1.4rem Georgia, serif; text-decoration: none; }
.site-footer p { max-width: 550px; color: var(--muted); font-size: .8rem; line-height: 1.8; }
.site-footer p a { display: inline-block; min-height: 44px; padding-block: 9px; }
.site-footer p a:hover { color: var(--gold); }
.skip { position: fixed; top: -120px; left: 20px; z-index: 10; min-height: 44px; padding: 12px 20px; background: var(--gold); color: var(--night); }
.skip:focus { top: 12px; }

@media (max-width: 899px) {
  .header-tools { gap: 20px; }
  .site-header .language-nav { padding-left: 14px; }
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { max-width: 640px; }
  h1 { max-width: 14ch; font-size: clamp(2.65rem, 6.8vw, 3.7rem); }
  .hero-visual { max-width: 720px; }
  .hero-visual picture { border-radius: 16px; }
  .reading-note { padding: 23px; }
  .reading-intro { grid-template-columns: 1fr; gap: 30px; }
  .report-preview { max-width: 720px; }
  .story-section { grid-template-columns: 1fr; gap: 30px; }
  .fairy-portrait { width: min(100%, 320px); }
  .story-copy { max-width: 660px; }
  .topics { gap: 26px; }
  .how-section, .reader-inner { grid-template-columns: 1fr; gap: 34px; }
  .birth-time-note { grid-column: 1; margin-left: 62px; }
  .reader-inner figure { max-width: 680px; }
}

@media (max-width: 650px) {
  .site-header { padding-block: 16px; }
  .site-header .page-nav { display: none; }
  .site-header .language-nav { padding-left: 0; border-left: 0; }
  .site-header nav { gap: 16px; }
  .site-header nav a { font-size: .8rem; }
  .site-header .language-nav a { font-size: .75rem; }
  .brand { min-width: 54px; min-height: 50px; }
  .brand i { font-size: 1.05rem; }
  .brand span { font-size: 1.75rem; }
  .hero { padding-top: 36px; padding-bottom: 52px; }
  .eyebrow { font-size: .76rem; }
  h1 { font-size: clamp(2.6rem, 9.5vw, 3.6rem); }
  .hero .lead { margin-top: 22px; font-size: 1.0625rem; }
  .button { gap: 22px; padding-inline: 22px; }
  .reading-note { gap: 16px; padding: 21px; }
  .reading-note h2 { font-size: 1.4rem; }
  .reading-note p { font-size: .9rem; }
  .section-inner { padding-block: 52px; }
  .section-heading > p:last-child { font-size: 1rem; }
  .fairy-portrait { width: min(75vw, 300px); }
  .story-section { gap: 28px; }
  .story-copy > p:not(.eyebrow) { margin-top: 19px; }
  .topics { grid-template-columns: 1fr; gap: 28px; margin-top: 32px; }
  .topic-number { margin-bottom: 10px; }
  .topics h3 { margin-bottom: 10px; }
  .topics p { max-width: 38rem; }
  .reading-boundary { margin-top: 30px; }
  .steps { gap: 28px; }
  .steps li { gap: 16px; }
  .steps h3 { font-size: 1.3rem; }
  .step-number { flex-basis: 36px; height: 36px; }
  .birth-time-note { margin-left: 52px; }
  .reader-inner { padding-block: 48px; gap: 28px; }
  .request-section h2 { font-size: 2rem; }
  .site-footer { flex-direction: column; gap: 10px; padding-block: 22px 28px; }
}

@media print {
  :root { color-scheme: light; }
  body { background: #fff; color: #222; }
  .site-header nav, .hero-visual picture, .fairy-portrait, .button, .request-note, .skip, .closing-star { display: none; }
  .wrap { width: 100%; padding-inline: 0; }
  .site-header, .site-footer { border-color: #ccc; }
  .hero, .section-inner, .reader-inner { padding-block: 24px; }
  .hero, .how-section, .reader-inner, .reading-intro, .story-section { display: block; }
  h1 { max-width: none; font-size: 2.5rem; }
  h2 { font-size: 1.8rem; }
  .eyebrow, .brand i, .topic-number, .step-number, .note-mark { color: #444; }
  .hero .lead, .reading-note p, .section-heading > p:last-child, .steps p, .birth-time-note p, .site-footer p, .story-copy > p:not(.eyebrow), .story-signature, .request-section > p:not(.request-note) { color: #333; }
  .reading-section, .reader-section { background: #fff; color: #222; }
  .hero-visual { margin-top: 20px; }
  .reading-note, .birth-time-note { border-color: #ccc; }
  .topics { gap: 24px; }
  .report-preview { max-width: 380px; margin-top: 20px; }
  .how-section .section-heading, .reader-intro { margin-bottom: 24px; }
  .birth-time-note { margin: 24px 0 0; }
  .request-section { text-align: left; }
  .request-section > p:not(.request-note) { max-width: none; margin-inline: 0; }
  .site-footer p a { padding: 0; }
}
