:root { color-scheme: dark; --navy:#0b1428; --gold:#f1d195; --paper:#f5ebdc; --line:#b6955b; }
* { box-sizing:border-box }
body { margin:0; background:var(--navy); color:#faf1e4; font-family:Georgia,"Times New Roman",serif; line-height:1.5 }
a { color:inherit }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline:3px solid #87bafb; outline-offset:3px }
.site-bar { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px 30px; padding:10px max(5vw,20px); background:#090f1d; border-bottom:1px solid #9a79454d }
.site-bar nav { display:flex; flex-wrap:wrap; gap:8px 28px }
.site-bar a { text-decoration:none }
.brand { color:var(--gold); letter-spacing:.14em; font-size:1.2rem }
.brand span { font-size:1.5em; vertical-align:middle }
.hero { position:relative; isolation:isolate; display:grid; grid-template-columns:minmax(0,440px) 1fr; align-items:center; min-height:405px; padding:42px max(5vw,20px); overflow:hidden }
.hero-art { position:absolute; inset:0; z-index:-1; background:url('/assets/sidereal/celestial-horizon.webp') center/cover no-repeat }
.hero-content { text-shadow:0 1px 10px #050914 }
.eyebrow { color:var(--gold); letter-spacing:.12em; text-transform:uppercase; font-size:.85rem; margin:0 }
h1,h2,h3,p { margin-top:0 }
.hero-content .hero-name { color:var(--gold); font-size:clamp(2.6rem,5vw,4rem); line-height:1.01; margin:.2em 0 }
.signature { font-size:clamp(1.2rem,2.4vw,1.65rem); font-style:italic; line-height:1.25 }
h2 { font-size:clamp(1.55rem,3vw,2.3rem); line-height:1.17; text-align:center; margin:0 0 24px }
h3 { font-size:1.25rem }
.actions { display:flex; flex-wrap:wrap; gap:10px }
.gold,.outline { display:inline-block; border:1px solid #d5ac68; border-radius:7px; padding:9px 15px; font:700 1rem Georgia,serif; text-decoration:none; cursor:pointer; text-shadow:none }
.gold { color:#23180d; background:linear-gradient(#f8dfab,#d4a251); box-shadow:inset 0 0 0 1px #ffffff35,0 4px 12px #0004 }
.outline { background:#0a1529e8; color:#fff3df }
.western { display:inline-block; margin-top:12px; text-underline-offset:3px }
.benefits { list-style:none; display:flex; justify-content:space-evenly; gap:10px; padding:12px max(4vw,14px); border-block:1px solid #a58a5d70; margin:0; text-align:center; color:var(--gold) }
.inner { width:min(1100px,calc(100% - 36px)); margin:auto; padding:32px 0 }
.ivory { background:var(--paper); color:#171727 }
.steps,.two,.calculation,.charts { display:grid; gap:18px; grid-template-columns:repeat(2,minmax(0,1fr)) }
.steps { grid-template-columns:repeat(3,minmax(0,1fr)); padding:0; list-style:none; counter-reset:step }
.steps li,.two article,details { border:1px solid #bfa983; border-radius:8px; padding:13px 17px; background:#fff9ef7a }
.steps li::before { counter-increment:step; content:counter(step); display:inline-grid; place-items:center; margin-right:9px; width:24px; height:24px; border-radius:50%; background:#e6c989 }
.steps p,.two p { margin:5px 0 0 }
.calculator,.closing { background:radial-gradient(ellipse at 70% 0%,#202e50,var(--navy) 74%) }
.calculator h2,.calculator h3,.closing h2 { color:var(--gold) }
.calculation { align-items:start }
.calculation-copy { padding:16px }
form { display:grid; gap:9px; border:1px solid var(--line); border-radius:9px; padding:17px; background:#0a1328 }
label { display:grid; gap:3px }
input,select { min-width:0; width:100%; border:1px solid #c3a878; border-radius:5px; background:#fbf4e9; color:#191724; padding:8px; font:inherit; color-scheme:light }
#status:empty { display:none }
#resultats { margin-top:20px }
.chart { margin:0; min-width:0; color:#f1d195; background:#0a1328; border:1px solid currentColor; border-radius:10px; padding:12px; text-align:center }
.chart.sidereal { color:#aaceef }
.chart canvas { max-width:100%; width:330px; height:auto }
.scroll { overflow:auto }
table { width:100%; border-collapse:collapse; text-align:left }
th,td { padding:8px; border-bottom:1px solid #a08a5a70 }
details { margin:8px auto; max-width:780px }
summary { cursor:pointer; font-weight:bold }
details p { margin:9px 0 0 }
.closing { text-align:center; padding:36px 18px }
@media(max-width:720px) {
 .hero { display:flex; flex-direction:column; align-items:stretch; padding-bottom:0 }
 .hero-art { position:relative; margin-inline:calc(-1 * max(5vw,20px)); min-height:215px; background-position:85% 50%; background-size:auto 100% }
 .steps,.two,.calculation,.charts { grid-template-columns:1fr }
 .calculation-copy { padding:4px 0 }
 .benefits { font-size:.85rem }
}
.books .two article { color:#faf1e4; background:#0a1328; border-color:var(--line) }
.books [data-price] { color:var(--gold); font-size:1.3rem }
.books details { background:#071022; border-color:#917246; color:#faf1e4 }
#output li { margin-block:6px }

/* Fidelity pass: preserve the original celestial artwork and functional UI. */
.hero { grid-template-columns:minmax(0, .9fr) minmax(0,1.1fr); gap:14px; padding:30px max(3vw,18px); min-height:0; background:#071326 url('/assets/sidereal/celestial-horizon.webp') left bottom/auto 100% no-repeat; }
.hero-content { position:relative; z-index:1; background:linear-gradient(90deg,#081429e8,#081429a0 85%,transparent); padding:12px; }
.hero-art { position:relative; inset:auto; z-index:0; min-width:0; width:100%; aspect-ratio:1098/683; background-position:right center; background-size:186.52% 100%; border-radius:8px; }
.wheel-label { position:absolute; top:76%; transform:translateX(-50%); padding:2px 12px; border:1px solid #d3ad6d; border-radius:6px; color:#fff2d7; background:#0c172be8; font-size:clamp(.78rem,1.5vw,1.1rem); white-space:nowrap; box-shadow:0 0 0 2px #0a1428,0 0 12px #d8b47255; }
.wheel-label.tropical { left:26%; }.wheel-label.sidereal { left:67%; border-color:#94bfe9; }
.eyebrow { display:inline-block; border:1px solid #a78b54; border-radius:20px; padding:4px 12px; letter-spacing:.05em; text-transform:none; }
.inner > h2 { display:flex; align-items:center; justify-content:center; gap:16px; }
.inner > h2::before,.inner > h2::after { content:""; flex:1; max-width:145px; min-width:12px; height:1px; background:linear-gradient(90deg,transparent,#b99554); }
.inner > h2::after { transform:rotate(180deg); }
.steps { margin-top:32px; gap:30px; }
.steps li { position:relative; padding:23px 14px 15px 54px; min-width:0; box-shadow:inset 0 0 0 2px #fff9ef; }
.steps li::before { position:absolute; left:50%; top:-15px; transform:translateX(-50%); width:30px; height:30px; border:1px solid #c3a064; box-shadow:0 2px 8px #946b3333; }
.step-icon { position:absolute; top:24px; left:12px; width:30px; height:30px; color:#a47b35; }
.steps li:not(:last-child)::after { content:"→"; position:absolute; top:50%; right:-25px; color:#8c6c37; font-size:1.3rem; }
.benefits li { flex:1; padding:0 8px; }.benefits li+li { border-left:1px solid #a58a5d70; }
.calculator { background:linear-gradient(100deg,#071326dd,#0b1835bb),url('/assets/sidereal/celestial-horizon.webp') center/cover; }
.calculation-copy { padding:5px 0; }
form { box-shadow:inset 0 0 0 3px #c6a36d30,0 7px 22px #0005; }
.example-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:12px 0; }
.example-card { display:flex; align-items:center; gap:10px; min-width:0; padding:11px; border:1px solid #c5a46b; border-radius:8px; background:linear-gradient(120deg,#111a2c,#80663c45); box-shadow:inset 0 0 12px #edc67a15; }
.example-card:nth-child(even) { border-color:#729ac0; background:linear-gradient(120deg,#111a2c,#426d9e55); }
.example-card .symbol { flex:none; font-size:1.9rem; color:#e7c581; line-height:1; }.example-card:nth-child(even) .symbol { color:#b0d5fb; }
.example-card strong { display:block; color:#fff1d5; font-size:1.15rem; }.example-note { font-size:.9rem; }
.sky-explainer { display:grid; grid-template-columns:minmax(80px,35%) 1fr; overflow:hidden; padding:0!important; }
.sky-explainer .illustration { min-height:120px; background:#0b1a32 url('/assets/sidereal/celestial-horizon.webp') no-repeat; background-size:auto 225%; }
.sky-explainer.tropical .illustration { background-position:67% 96%; }.sky-explainer.sidereal .illustration { background-position:100% 0%; }
.sky-explainer .description { padding:15px; }.sky-explainer h3 { margin-bottom:4px; }
.books .two article { display:grid; grid-template-columns:minmax(100px,34%) minmax(0,1fr); align-items:start; gap:18px; padding:20px; background:linear-gradient(145deg,#0d1b36,#080f20); box-shadow:inset 0 0 0 3px #c6a36d27; }
.book-figure { margin:8px 8px 14px 4px; perspective:650px; }.book-cover { position:relative; aspect-ratio:2/3; transform:rotateY(-13deg); border:1px solid #c5a46b; border-radius:2px 4px 4px 2px; box-shadow:5px 1px #e2d2ad,9px 2px #a89c86,12px 3px #192037,10px 13px 20px #0008; background:#08142a center/cover no-repeat; }
.book-cover::before { content:""; position:absolute; inset:0 auto 0 0; width:6%; background:linear-gradient(90deg,#0009,transparent); border-right:1px solid #b78f4c66; }
.book-title { position:absolute; top:8%; left:10%; right:10%; color:#f8d995; font-weight:bold; font-size:clamp(.9rem,2vw,1.4rem); text-align:center; line-height:1.1; text-shadow:0 2px 4px #000; }
.book-title small { display:block; font-size:.45em; letter-spacing:.12em; margin-bottom:.8em; }.book-figure figcaption { margin-top:13px; font-size:.78rem; text-align:center; }
.books [data-price] { border:1px solid #b99b5f; border-radius:6px; padding:8px; background:#101c34; text-align:center; }
.faq { position:relative; isolation:isolate; overflow:hidden; }.faq::before,.faq::after { content:""; z-index:-1; position:absolute; width:170px; aspect-ratio:1; border:2px solid #b69a5c; border-radius:50%; opacity:.32; background:repeating-conic-gradient(from 15deg,#b69a5c 0deg 1deg,transparent 1deg 30deg); box-shadow:inset 0 0 0 14px #f5ebdc,inset 0 0 0 15px #b69a5c; }.faq::before { left:-85px; bottom:-30px; }.faq::after { right:-85px; top:10px; }
.closing { background:linear-gradient(#071326a0,#07132665),url('/assets/sidereal/celestial-horizon.webp') center bottom/cover; padding:46px 18px; }.closing .actions { justify-content:center; }
@media(max-width:900px){.books .two {grid-template-columns:1fr}.books .two article{grid-template-columns:minmax(100px,28%) minmax(0,1fr)}}
@media(max-width:720px){
 .hero { display:flex; gap:0; padding:18px 0 0; background:#081429; overflow:visible; }.hero-content { padding:10px 18px 0; }.hero-art { margin:0; min-height:0; border-radius:0; background-size:186.52% 100%; background-position:right center; }
 .steps { gap:30px; }.steps li:not(:last-child)::after { content:"↓"; top:auto; right:50%; bottom:-28px; transform:translateX(50%); }.benefits { gap:0; flex-wrap:wrap; }.benefits li { padding:4px; }
 .book-title { font-size:clamp(.85rem,3vw,1.4rem); }.faq::before,.faq::after {opacity:.16}.sky-explainer .illustration{min-height:100px}
}
@media(max-width:360px){.example-card {padding:7px;gap:5px}.example-card .symbol{font-size:1.3rem}.example-card strong{font-size:1rem}.books .two article{grid-template-columns:1fr}.book-figure{width:55%;margin-inline:auto}}

.site-bar .language-nav { position:relative; margin:0; padding:4px 10px; background:#0b1428; color:#f5e7ce; border:1px solid #957749; border-radius:15px; z-index:5; }
.language-nav nav { position:absolute; right:0; top:calc(100% + 5px); display:grid; width:150px; gap:0; background:#0b1428; border:1px solid #957749; border-radius:8px; box-shadow:0 8px 22px #0009; }
.language-nav nav a { padding:6px 12px; }.language-nav nav a:hover { background:#25334d; }
.hero-content > .outline { margin-top:10px; }.hero-content .actions a { max-width:100%; }
@media(max-width:720px){ .site-bar { gap:8px 12px; padding:8px 14px; }.site-bar > nav { gap:8px 14px; }.language-nav nav { right:0; }.hero-content .actions { display:grid; grid-template-columns:1fr; }.hero-content .actions a { text-align:center; } }

/* One continuous hero image: no second background, no inset picture frame. */
.hero { display:grid; grid-template-columns:minmax(0,46%) minmax(0,54%); gap:0; min-height:max(360px,33.35vw); padding:24px max(4vw,20px); background:#081429; overflow:hidden; }
.hero-art { position:absolute; inset:auto 0 0; width:100%; height:auto; aspect-ratio:2048/683; min-height:0; margin:0; border-radius:0; background-size:100% 100%; background-position:center; pointer-events:none; }
.hero-content { position:relative; z-index:1; grid-column:1; background:none; padding:0; text-shadow:0 2px 7px #050914; }
.hero-content p { max-width:38ch; }
.wheel-label { top:76%; }.wheel-label.tropical { left:60.4%; }.wheel-label.sidereal { left:82.4%; }
@media(min-width:901px) and (max-width:1200px){.hero-content .hero-name{font-size:clamp(2.5rem,4.2vw,3.5rem)}.hero-content .signature{font-size:1.25rem}.hero-content p{margin-bottom:10px}.hero-content .gold,.hero-content .outline{font-size:.92rem;padding:8px 12px}}
@media(max-width:900px){
 .hero { display:flex; flex-direction:column; align-items:stretch; padding:24px 0 0; min-height:0; }
 .hero-content { padding:0 max(5vw,20px); text-align:left; }
 .hero-content p { max-width:45ch; }
 .hero-art { position:relative; inset:auto; width:100%; aspect-ratio:1098/683; background-size:186.52% 100%; background-position:right center; }
 .wheel-label.tropical { left:26%; }.wheel-label.sidereal { left:67%; }
 .hero-content .actions { display:flex; flex-wrap:wrap; }
 .steps,.calculation,.charts { grid-template-columns:1fr; }
 .steps li:not(:last-child)::after { content:"↓"; top:auto; right:50%; bottom:-28px; transform:translateX(50%); }
}
@media(max-width:480px){.hero-content .hero-name{font-size:2.8rem}.hero-content .actions{display:grid;grid-template-columns:1fr}.hero-content .actions a{padding:12px}.hero-content>.outline{display:block;text-align:center}.hero-art{margin-top:12px}.benefits{font-size:.76rem}.wheel-label{padding:2px 8px}}

/* Editorial and book presentation, following the ivory/gold reference. */
.sky-explainer { grid-template-columns:minmax(110px,36%) minmax(0,1fr); align-items:stretch; background:#fcf4e7; border-color:#cdbb9d; }
.sky-explainer .illustration { background:none; min-height:135px; position:relative; overflow:hidden; display:grid; }
.sky-explainer .illustration svg { width:100%; height:100%; position:absolute; inset:0; }
.sky-explainer .description { align-self:center; padding:16px; }
.sky-method-note { text-align:center; color:#594b35; font-size:.92rem; margin:15px 0 0; }
.books { background:radial-gradient(ellipse at 35% 20%,#20304b55,transparent 60%),linear-gradient(180deg,#071326b0,#08152de6),url('/assets/sidereal/celestial-horizon.webp') center/cover; }
.books .two { grid-template-columns:1fr; gap:28px; }
.books .two article { grid-template-columns:minmax(155px,25%) minmax(0,1fr); gap:clamp(20px,4vw,48px); align-items:center; padding:clamp(18px,3vw,36px); border:1px solid #af8e58; border-radius:10px; background:linear-gradient(130deg,#0b182d99,#0c1729ee); box-shadow:inset 0 0 0 3px #b99a6120,0 8px 28px #0004; }
.books .book-figure { width:min(100%,250px); margin:8px auto 0; perspective:950px; }
.books .book-cover { transform:rotateY(-12deg); box-shadow:5px 1px #f0deba,9px 2px #cfbda0,13px 3px #988c77,17px 4px #293147,16px 20px 28px #0009; }
.books .book-title { font-size:clamp(1.25rem,3vw,2rem); }
.books .book-info { min-width:0; }
.books h3 { font-size:clamp(1.55rem,3vw,2.1rem); color:var(--gold); margin:0 0 8px; }
.books .book-length { display:inline-block; color:#f3d397; letter-spacing:.04em; font-size:.9rem; margin:0 0 8px; }
.books details { padding:0; overflow:hidden; margin:14px 0; color:#1d2030; background:#f8edda; border-color:#d6ba89; }
.books details summary { padding:10px 14px; color:#302819; background:#e9d7b6; }
.books details ol { list-style:none; margin:0; padding:4px 12px 8px; }
.books details li { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:baseline; gap:12px; padding:6px 2px; border-bottom:1px solid #bdab893b; }
.books details li:last-child { border:0; }
.books details li .pages { font-weight:700; color:#59472b; white-space:nowrap; }
.books [data-price] { margin:14px 0 6px; border:1px solid #c5a467; border-radius:7px; padding:12px 16px; background:linear-gradient(135deg,#1b2941,#0b1324); box-shadow:inset 0 0 0 3px #a88b5230; color:#f6d79a; font-size:clamp(1.1rem,2.4vw,1.6rem); text-align:center; }
.books .book-status { color:#e4d7bb; font-size:.9rem; text-align:center; margin:0; }
@media(max-width:620px){.books .two article{grid-template-columns:1fr;gap:18px}.books .book-figure{width:min(58%,210px)}.books .book-title{font-size:clamp(1.1rem,5vw,1.6rem)}.books h3{text-align:center}.books .book-length{display:block;text-align:center}.sky-explainer{grid-template-columns:100px minmax(0,1fr)}.sky-explainer .description{padding:12px}.books details li{font-size:.93rem}}

form label[hidden] { display:none }

.hero-content h1 { color: var(--gold); font-size: clamp(1.15rem, 2.15vw, 1.65rem); line-height: 1.2; overflow-wrap: anywhere; margin: .3em 0 .55em; }

.book-notify { margin-block-start: 1rem; }
.book-notify summary { width: fit-content; cursor: pointer; }
.book-notify form { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; margin-block-start: .75rem; }
.book-notify form [hidden] { display: none; }
.book-notify .book-consent { display: flex; gap: .5rem; align-items: flex-start; }
.book-notify input[type="checkbox"] { width: auto; flex: none; margin: .25em 0 0; }
.book-notify button { justify-self: start; }

/* Actual localized PDF cover; no title overlay or cropped illustration. */
.books .book-cover-real{display:block;width:100%;height:auto;aspect-ratio:3/4;object-fit:contain;transform:rotateY(-12deg);border:1px solid #c5a46b;border-radius:2px 4px 4px 2px;box-shadow:5px 1px #f0deba,9px 2px #cfbda0,13px 3px #988c77,17px 4px #293147,16px 20px 28px #0009;background:#08142a;}

.books .book-purchase{margin-top:12px}.books .book-purchase summary{display:block;cursor:pointer;text-align:center;padding:12px}.books .book-purchase form{display:grid;gap:10px;margin-top:12px;grid-template-columns:1fr}.books .book-purchase form input:not([type=checkbox]),.books .book-purchase select{width:100%;min-width:0}.books .book-purchase .book-consent{display:flex;align-items:flex-start;gap:8px}.books .book-purchase .book-consent input{flex:0 0 auto;margin-top:4px}.books [hidden]{display:none!important}
