@font-face { font-family: "Marcellus"; src: url("/fonts/Marcellus-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("/fonts/Alegreya-Regular.ttf") format("truetype"); font-display: swap; font-weight: 400; }
@font-face { font-family: "Alegreya"; src: url("/fonts/Alegreya-Bold.ttf") format("truetype"); font-display: swap; font-weight: 700; }

:root {
  color-scheme: light;
  --paper: #fffaf0;
  --paper-deep: #f4e9db;
  --ink: #2c2140;
  --muted: #6d6176;
  --night: #171a47;
  --night-soft: #292451;
  --plum: #654276;
  --plum-dark: #432a56;
  --rose: #d9a7c8;
  --gold: #d4a755;
  --green: #49644f;
  --line: rgba(82, 55, 88, 0.18);
  --shadow: 0 22px 60px rgba(35, 24, 63, 0.15);
  --radius: 6px;
  font-family: "Alegreya", Georgia, serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font-size: 18px; line-height: 1.55; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: 0.13; z-index: 20; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E"); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Marcellus", Georgia, serif; font-weight: 400; line-height: 1.12; letter-spacing: 0; }
h2 { font-size: 44px; margin-bottom: 20px; }
h3 { font-size: 24px; margin-bottom: 10px; }
.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; }
.section { max-width: 1240px; margin: 0 auto; padding: 104px 40px; }
.section-heading { max-width: 720px; margin-bottom: 48px; }
.section-heading.centered { text-align: center; margin-inline: auto; }
.section-heading > p:last-child { color: var(--muted); font-size: 20px; }
.eyebrow { margin-bottom: 14px; color: var(--plum); font-family: system-ui, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.23em; text-transform: uppercase; }
.eyebrow.light { color: #f7df9b; }
.lead { color: var(--muted); font-size: 21px; }

.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--plum); border-radius: 5px; background: var(--plum); color: #fff; padding: 12px 22px; font-family: system-ui, sans-serif; font-size: 14px; font-weight: 700; text-decoration: none; transition: background 180ms ease, border-color 180ms ease, transform 180ms ease; }
.button:hover { background: var(--plum-dark); border-color: var(--plum-dark); transform: translateY(-1px); }
.button:focus-visible, .text-link:focus-visible, .main-nav a:focus-visible, .preview-page:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #edc56f; outline-offset: 3px; }
.button-small { min-height: 40px; padding: 9px 16px; }
.button-light { border-color: #fff7df; background: #fff7df; color: var(--night); }
.button-light:hover { border-color: #f1d58f; background: #f1d58f; }
.button-outline { background: transparent; color: var(--plum); }
.button-outline:hover { color: #fff; }
.button.is-disabled { cursor: not-allowed; opacity: 0.58; transform: none; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--plum-dark); font-family: system-ui, sans-serif; font-size: 14px; font-weight: 750; text-decoration: underline; text-decoration-color: var(--rose); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.text-link.light { color: #fff8e8; }

.site-header { position: sticky; top: 0; z-index: 30; height: 76px; border-bottom: 1px solid rgba(84, 59, 91, 0.13); background: rgba(255, 250, 240, 0.94); backdrop-filter: blur(14px); }
.header-inner { display: flex; max-width: 1360px; height: 100%; align-items: center; justify-content: space-between; margin: auto; padding: 0 32px; }
.brand { display: block; width: 176px; height: 58px; overflow: hidden; }
.brand img { width: 100%; height: 100%; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 27px; font-family: system-ui, sans-serif; font-size: 13px; font-weight: 650; }
.main-nav > a:not(.button):not(.icon-link) { text-decoration: none; }
.main-nav > a:not(.button):not(.icon-link):hover { color: var(--plum); }
.language-pill { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.icon-link { display: inline-grid; width: 36px; height: 36px; place-items: center; color: var(--plum); }
.icon-link.is-muted { opacity: 0.55; }
.menu-button { display: none; border: 0; background: transparent; color: var(--ink); padding: 10px; }

.hero { position: relative; min-height: calc(100vh - 76px); max-height: 940px; overflow: hidden; background: var(--night); color: white; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-veil { position: absolute; inset: 0; background: rgba(10, 12, 45, 0.35); }
.hero-content { position: relative; z-index: 2; width: min(540px, calc(100% - 48px)); margin-left: max(7vw, 32px); padding-top: clamp(110px, 18vh, 180px); text-shadow: 0 2px 24px rgba(8, 8, 33, 0.75); }
.hero-logo { width: min(520px, 88vw); max-height: 190px; object-fit: contain; object-position: left center; margin: -15px 0 4px -22px; filter: drop-shadow(0 9px 22px rgba(7, 7, 27, 0.28)); }
.hero-subtitle { margin-bottom: 16px; color: #fff5dc; font-family: "Marcellus", Georgia, serif; font-size: 32px; line-height: 1.2; }
.hero-copy { max-width: 500px; color: #fffdf6; font-size: 20px; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 30px; }

.discover { padding-bottom: 116px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pillars article { padding: 38px 42px; }
.pillars article + article { border-left: 1px solid var(--line); }
.pillars svg, .book-features svg, .resource-list svg { color: var(--plum); stroke-width: 1.6; }
.pillars p { margin-bottom: 0; color: var(--muted); }

.book-section { background: #eee4ef; }
.book-inner { display: grid; max-width: 1200px; grid-template-columns: 0.78fr 1.22fr; align-items: center; gap: 92px; margin: auto; padding: 100px 40px; }
.cover-stage { position: relative; padding: 22px 28px 34px; }
.cover-stage::before { content: ""; position: absolute; inset: 9% 0 2% 8%; border: 1px solid rgba(73, 48, 83, 0.2); background: #fbf6ed; transform: rotate(-2deg); }
.cover-stage img { position: relative; width: min(420px, 100%); margin: auto; border-radius: 3px; box-shadow: var(--shadow); }
.volume-label { display: block; margin-bottom: 8px; color: var(--gold); font-family: "Marcellus", Georgia, serif; font-size: 19px; }
.book-copy h2 { max-width: 650px; font-size: 56px; }
.book-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 38px 0; padding: 28px 0; border-top: 1px solid rgba(85, 61, 92, 0.16); border-bottom: 1px solid rgba(85, 61, 92, 0.16); }
.book-features div { display: grid; gap: 7px; }
.book-features svg { width: 22px; }
.book-features strong { font-family: system-ui, sans-serif; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.book-features span { color: var(--muted); font-size: 16px; line-height: 1.35; }

.preview-section { max-width: 1400px; overflow: hidden; }
.preview-gallery { display: flex; align-items: stretch; gap: 18px; overflow-x: auto; overscroll-behavior-inline: contain; padding: 30px 12px 62px; scroll-padding-inline: 12px; scroll-snap-type: x mandatory; scrollbar-color: rgba(101, 66, 118, 0.48) transparent; scrollbar-width: thin; }
.preview-page { position: relative; overflow: hidden; border: 0; border-radius: 4px; background: transparent; padding: 0; box-shadow: 0 16px 38px rgba(44, 33, 64, 0.13); cursor: zoom-in; transition: transform 180ms ease, box-shadow 180ms ease; }
.preview-page { flex: 0 0 calc((100% - 36px) / 3); scroll-snap-align: start; }
.preview-page:hover { transform: translateY(-7px) scale(1.02); box-shadow: 0 22px 48px rgba(44, 33, 64, 0.2); z-index: 3; }
.preview-page img { width: 100%; aspect-ratio: 17 / 22; background: #fff; object-fit: contain; }
.preview-page > span { position: absolute; right: 9px; bottom: 9px; display: flex; align-items: center; gap: 6px; border-radius: 4px; background: rgba(255, 250, 240, 0.92); color: var(--ink); padding: 7px 10px; font-family: system-ui, sans-serif; font-size: 11px; font-weight: 700; opacity: 0; transition: opacity 150ms ease; }
.preview-page:hover > span, .preview-page:focus-visible > span { opacity: 1; }
.center-action { display: flex; justify-content: center; }
.page-dialog { width: fit-content; height: fit-content; max-width: 96vw; max-height: 94vh; border: 0; border-radius: 6px; background: #171a47; padding: 20px; box-shadow: 0 30px 90px rgba(0,0,0,.42); display: grid; place-items: center; }
.page-dialog:not([open]) { display: none; }
.page-dialog::backdrop { background: rgba(10, 9, 28, 0.82); backdrop-filter: blur(4px); }
.flipbook-stage { width: min(1100px, 90vw); height: min(74vh, 740px); display: grid; place-items: center; }
.flipbook-inner { width: 100%; height: 100%; }
.flipbook-stage img, .flipbook-stage canvas { display: block; max-width: 100%; }
.dialog-close, .dialog-nav { position: absolute; z-index: 2; display: grid; width: 44px; height: 44px; place-items: center; border: 0; border-radius: 50%; background: #fffaf0; color: var(--night); cursor: pointer; }
.dialog-close { top: 14px; right: 14px; }
.dialog-nav { top: 50%; transform: translateY(-50%); }
.dialog-nav.previous { left: 14px; }
.dialog-nav.next { right: 14px; }

.selena-section { display: grid; grid-template-columns: minmax(350px, 0.9fr) minmax(420px, 1.1fr); min-height: 720px; background: #f4ede2; }
.selena-art { display: grid; max-height: 780px; overflow: hidden; place-items: center; background: #fffdf8; }
.selena-art img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.selena-copy { align-self: center; max-width: 660px; padding: 80px 10vw 80px 8vw; }
.selena-copy h2 { font-size: 52px; }
.selena-copy > p:not(.eyebrow) { color: var(--muted); font-size: 21px; }

.beyond-section { position: relative; min-height: 540px; display: grid; place-items: center; overflow: hidden; background: var(--night); color: white; text-align: center; }
.beyond-section::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #171a47 0%, #24204f 58%, #191a42 100%); }
.beyond-section::after { content: "✦  ·  ✧  ·  ✦       ·  ✧  ·       ✦  ·  ✧"; position: absolute; top: 20%; left: 50%; width: min(920px, 88vw); transform: translateX(-50%); overflow: hidden; color: rgba(247, 223, 155, 0.3); font-size: 16px; letter-spacing: 1.05em; white-space: nowrap; }
.beyond-section > div { position: relative; max-width: 760px; padding: 90px 32px; }
.beyond-section h2 { font-size: 48px; }
.beyond-section p:not(.eyebrow) { color: #eee8f2; font-size: 20px; }

.newsletter { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 100px; align-items: start; }
.newsletter-intro h2 { font-size: 46px; }
.newsletter-intro > p:last-child { color: var(--muted); }
.newsletter-form { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 18px; }
.newsletter-form label { color: var(--ink); font-family: system-ui, sans-serif; font-size: 13px; font-weight: 700; }
.newsletter-form label span { color: var(--muted); font-weight: 400; }
.newsletter-form input[type="text"], .newsletter-form input[type="email"] { width: 100%; min-height: 50px; margin-top: 7px; border: 1px solid rgba(73, 53, 80, 0.25); border-radius: 4px; background: #fffdf8; color: var(--ink); padding: 10px 13px; }
.newsletter-form input:disabled { cursor: not-allowed; opacity: 0.58; }
.newsletter-form .consent { grid-column: 1 / -1; display: flex; gap: 10px; font-family: "Alegreya", Georgia, serif; font-weight: 400; line-height: 1.4; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--plum); }
.newsletter-form .button { justify-self: start; }
.newsletter-form .button:disabled { cursor: not-allowed; opacity: 0.58; transform: none; }
.form-message { grid-column: 1 / -1; margin: 0; color: var(--plum); }
.form-message[hidden] { display: none; }
.form-message.error { color: #9b3131; }
.form-message.success { color: var(--green); }
.form-message.notice { color: var(--muted); }
.newsletter-form button[disabled] { cursor: progress; opacity: 0.7; transform: none; }

.instagram-section { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; border-top: 1px solid var(--line); background: #f0e8dd; padding: 48px max(6vw, 30px); }
.instagram-section > svg { color: var(--plum); }
.instagram-section .eyebrow { margin-bottom: 5px; }
.instagram-section h2 { margin: 0; font-size: 30px; }

.site-footer { position: relative; min-height: 380px; overflow: hidden; background: var(--night); color: white; }
.footer-landscape { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 46%; opacity: 0.44; }
.footer-shade { position: absolute; inset: 0; background: rgba(15, 17, 55, 0.64); }
.footer-inner { position: relative; display: flex; min-height: 380px; flex-direction: column; align-items: center; justify-content: center; max-width: 1200px; margin: auto; padding: 62px 30px 36px; text-align: center; }
.footer-logo { width: 290px; max-height: 108px; object-fit: contain; margin-bottom: 10px; }
.footer-inner p { max-width: 520px; color: #efe9f0; }
.footer-inner nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 26px; margin: 24px 0 38px; font-family: system-ui, sans-serif; font-size: 13px; }
.footer-inner nav a { display: inline-flex; align-items: center; gap: 6px; color: white; text-decoration: none; }
.footer-inner nav a:hover { color: #f7df9b; }
.footer-inner small { color: #d7d1df; font-family: system-ui, sans-serif; font-size: 11px; }

.inner-page { min-height: 80vh; }
.volume-hero { position: relative; min-height: 620px; display: flex; align-items: center; overflow: hidden; background: var(--night) url("/images/hero/celestra-hero.webp") center / cover; color: white; }
.volume-hero::before { content: ""; position: absolute; inset: 0; background: rgba(15, 16, 51, 0.48); }
.volume-hero > div { position: relative; max-width: 650px; margin-left: max(7vw, 32px); padding: 100px 0; }
.volume-hero h1 { font-size: 62px; }
.volume-hero p:not(.eyebrow) { font-size: 21px; }
.resource-band { max-width: 1240px; }
.resource-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.resource-list article { border-top: 1px solid var(--line); padding-top: 28px; }
.resource-list p { color: var(--muted); }
.preview-gallery.compact { max-width: 1180px; margin-inline: auto; }
.legal-page { min-height: 70vh; max-width: 760px; margin: auto; padding: 130px 32px; }
.legal-page h1 { font-size: 52px; }
.legal-page > p:not(.eyebrow) { color: var(--muted); }

@media (max-width: 1040px) {
  h2 { font-size: 38px; }
  .menu-button { display: inline-grid; place-items: center; }
  .main-nav { position: absolute; top: 76px; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); background: var(--paper); padding: 16px 24px 26px; box-shadow: 0 18px 40px rgba(44,33,64,.14); }
  .main-nav.is-open { display: flex; }
  .main-nav > a:not(.button), .language-pill { padding: 14px 5px; border-bottom: 1px solid var(--line); }
  .main-nav .icon-link { display: none; }
  .main-nav .button { margin-top: 16px; }
  .book-inner { gap: 48px; }
  .book-copy h2 { font-size: 46px; }
  .book-features { grid-template-columns: 1fr; }
  .book-features div { grid-template-columns: auto 150px 1fr; align-items: center; }
  .selena-copy { padding-inline: 7vw; }
  .newsletter { gap: 55px; }
}

@media (max-width: 780px) {
  body { font-size: 17px; }
  .section { padding: 78px 22px; }
  .header-inner { padding: 0 18px; }
  .brand { width: 150px; }
  .hero { min-height: 720px; max-height: none; }
  .hero-image { object-position: 100% center; }
  .hero-veil { background: linear-gradient(90deg, rgba(12, 14, 48, 0.82) 0%, rgba(12, 14, 48, 0.55) 40%, rgba(12, 14, 48, 0.16) 62%, rgba(12, 14, 48, 0) 82%); }
  .hero-content { width: min(175px, 44%); margin: 0; padding: 64px 0 30px 18px; }
  .hero-logo { width: min(175px, 44vw); margin: 0 0 12px -6px; }
  .hero-subtitle { margin-bottom: 12px; font-size: 22px; }
  .hero-copy { margin-bottom: 0; font-size: 16px; line-height: 1.6; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 14px; margin-top: 18px; }
  .hero-actions .button { padding: 13px 18px; font-size: 15.5px; }
  .hero-actions .text-link { font-size: 15px; }
  .pillars { grid-template-columns: 1fr; }
  .pillars article { padding: 30px 8px; }
  .pillars article + article { border-top: 1px solid var(--line); border-left: 0; }
  .book-inner { grid-template-columns: 1fr; padding: 78px 22px; }
  .cover-stage { max-width: 430px; margin: auto; }
  .book-copy h2 { font-size: 42px; }
  .preview-gallery, .preview-gallery.compact { gap: 15px; margin: 0 -22px; padding: 24px 22px 50px; scroll-padding-inline: 22px; }
  .preview-page { flex-basis: 100%; min-width: 100%; scroll-snap-align: center; transform: none !important; }
  .preview-page > span { opacity: 1; }
  .page-dialog { padding: 48px 8px 12px; }
  .flipbook-stage { width: min(480px, 86vw, calc(min(70vh, 640px) * 0.75)); aspect-ratio: 1086 / 1448; height: auto; }
  .dialog-nav { top: auto; bottom: 10px; }
  .dialog-nav.previous { left: 16px; }
  .dialog-nav.next { right: 16px; }
  .selena-section { grid-template-columns: 1fr; }
  .selena-art { height: auto; max-height: none; }
  .selena-art img { height: auto; }
  .selena-copy { padding: 72px 24px; }
  .selena-copy h2 { font-size: 40px; }
  .beyond-section h2 { font-size: 38px; }
  .newsletter { grid-template-columns: 1fr; gap: 30px; }
  .newsletter-form { grid-template-columns: 1fr; }
  .newsletter-form .consent { grid-column: 1; }
  .instagram-section { grid-template-columns: auto 1fr; }
  .instagram-section .button { grid-column: 1 / -1; justify-self: start; }
  .volume-hero { min-height: 560px; background-position: 63% center; }
  .volume-hero > div { margin: 0 24px; }
  .volume-hero h1 { font-size: 48px; }
  .resource-list { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  h2 { font-size: 34px; }
  .hero { min-height: 680px; }
  .hero-content { width: min(165px, 47%); }
  .hero-logo { width: min(155px, 42vw); }
  .hero-subtitle { font-size: 20px; }
  .hero-copy { font-size: 15px; }
  .book-copy h2, .selena-copy h2 { font-size: 36px; }
  .book-features div { grid-template-columns: auto 1fr; }
  .book-features span { grid-column: 2; }
  .selena-art { height: auto; }
  .instagram-section { padding-inline: 22px; }
  .instagram-section h2 { font-size: 25px; }
  .volume-hero h1, .legal-page h1 { font-size: 40px; }
}

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