:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f4ede3;
  background: #0e1119;
  font-synthesis: none;
  --ink: #0e1119;
  --panel: #181c28;
  --paper: #f4ede3;
  --muted: #b9b7c0;
  --gold: #dfb78d;
  --gold-light: #f2cda7;
  --hairline: #ffffff1c;
  --serif: "Palatino Linotype", "Times New Roman", "Noto Serif", serif;
  --shell: 1168px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; }
body:has(dialog[open]) { overflow: hidden; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin: 0; }
img { display: block; max-width: 100%; }
button:disabled { cursor: wait; opacity: .74; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }
.shell { width: min(var(--shell), calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 5; inset: 10px auto auto 10px; padding: 10px 16px; background: var(--gold-light); color: var(--ink); border-radius: 5px; translate: 0 -150%; }
.skip-link:focus { translate: 0; }

.site-header { position: relative; z-index: 1; background: #10131c; border-bottom: 1px solid #d7a87522; }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; width: max-content; gap: 11px; font: 600 1.43rem / 1.1 var(--serif); letter-spacing: .015em; white-space: nowrap; }
.header-inner nav { display: flex; align-items: center; gap: 35px; color: #e2dce1; font-size: .95rem; }
.header-inner nav a { padding: 11px 0; }
.header-inner nav a:hover { color: var(--gold-light); }
.header-account { justify-self: end; white-space: nowrap; }
.button { min-height: 45px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 6px; padding: 10px 17px; font-size: .93rem; font-weight: 680; line-height: 1.35; text-align: center; transition: background-color .18s, color .18s, border-color .18s, box-shadow .18s; }
.button-primary { background: var(--gold); color: #211911; border-color: var(--gold); box-shadow: 0 7px 25px #08060944; }
.button-primary:hover { background: #efcaa5; border-color: #efcaa5; box-shadow: 0 8px 29px #08060970; }
.button-outline { color: var(--gold-light); border-color: #dcb18360; background: #eec28c08; }
.button-outline:hover { border-color: var(--gold); background: #eec28c16; }
.icon-account { position: relative; display: inline-block; width: 15px; height: 15px; flex: none; }
.icon-account::before, .icon-account::after { position: absolute; content: ""; left: 50%; translate: -50%; border: 1.4px solid currentColor; }
.icon-account::before { width: 6px; height: 6px; border-radius: 50%; top: 0; }
.icon-account::after { width: 12px; height: 6px; border-radius: 7px 7px 2px 2px; bottom: 0; }

.hero { position: relative; isolation: isolate; min-height: clamp(550px, 48vw, 680px); display: grid; align-items: center; overflow: hidden; background-color: #10131e; }
.hero-image { position: absolute; z-index: -2; inset: 0; background-image: url('/images/hero.webp'), radial-gradient(circle at 74% 42%, #e6c097 0 8%, #9c776b 8.2%, #586070 15%, #30374a 28%, #141825 49%, #10131e 63%); background-size: cover; background-position: center 43%; }
.hero::after { position: absolute; z-index: -1; content: ""; inset: 0; background: linear-gradient(0deg, #0e1119 0%, #0e111914 24%, transparent 72%), linear-gradient(90deg, #10131ef0, #10131dbd 22%, #10131d32 55%, transparent 78%); }
.hero-content { padding-block: 72px 94px; }
.eyebrow { color: var(--gold); font-size: .78rem; font-weight: 650; letter-spacing: .16em; line-height: 1.5; }
.eyebrow-star { display: inline-block; margin-inline-end: 7px; font-size: .9rem; }
.hero h1 { margin-block: 22px 23px; font: 400 clamp(3.2rem, 6.2vw, 6.1rem) / 1.035 var(--serif); letter-spacing: -.052em; text-wrap: balance; }
.hero h1 em { color: var(--gold-light); font-weight: 400; }
.hero-description { color: #e0d9df; max-width: 450px; font-size: 1.05rem; line-height: 1.74; text-wrap: pretty; }
.hero-button { margin-top: 30px; min-height: 51px; padding-inline: 20px; }

.methods { padding-block: 51px 92px; }
.section-heading { text-align: center; margin-inline: auto; margin-bottom: 38px; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 13px; font-size: 1rem; }
.ornament::before, .ornament::after { content: ""; width: 24px; height: 1px; background: #dfb78d6b; }
.section-heading h2, .about h2, .panel h2 { font: 400 clamp(2.05rem, 4.2vw, 3.6rem) / 1.13 var(--serif); letter-spacing: -.035em; text-wrap: balance; }
.section-heading p:last-child { margin-top: 14px; color: var(--muted); line-height: 1.65; text-wrap: balance; }
.method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.method-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #e2c29829; border-radius: 9px; background: #161a25; box-shadow: 0 13px 36px #06080d45; transition: border-color .2s, translate .2s; }
.method-card:has(:focus-visible), .method-card:hover { border-color: #d6ab7983; translate: 0 -3px; }
.method-illustration { min-height: 174px; display: grid; place-items: center; position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid #d9ac7733; }
.method-illustration::after { pointer-events: none; content: ""; position: absolute; z-index: -1; inset: 8px; border: 1px solid #edc7972e; border-radius: 4px 4px 0 0; }
.tarot-illustration { background: radial-gradient(ellipse at 50% 43%, #59374d 0%, #34263d 39%, #211a2f 75%); }
.numerology-illustration { background: radial-gradient(ellipse at 50% 43%, #59412f 0%, #372b2f 41%, #231e2b 76%); }
.astrology-illustration { background: radial-gradient(ellipse at 50% 43%, #293f57 0%, #202e43 44%, #1b2338 76%); }
.card-orbit { position: absolute; z-index: -1; border: 1px solid #e9b88e3d; height: 152px; width: 152px; border-radius: 50%; }
.orbit-two { height: 124px; width: 206px; transform: rotate(-28deg); border-style: dashed; border-color: #e9b88e58; }
.tarot-card { position: absolute; width: 58px; height: 90px; border: 1px solid #d6a97d; border-radius: 5px; background-color: #342437; box-shadow: 0 4px 10px #11101967, inset 0 0 0 4px #342437, inset 0 0 0 5px #b8856661; }
.tarot-left { transform: translate(-27px, 1px) rotate(-19deg); background: repeating-linear-gradient(55deg, #38283f 0 5px, #795365 5px 6px); }
.tarot-right { transform: translate(27px, 1px) rotate(19deg); background: repeating-linear-gradient(-55deg, #38283f 0 5px, #795365 5px 6px); }
.tarot-front { display: grid; align-content: center; justify-items: center; line-height: 1; color: #f0d2ad; gap: 3px; }
.tarot-front span { font: 1.9rem / .9 var(--serif); }
.tarot-front i { font-style: normal; font-size: .65rem; }
.number-wheel { display: grid; place-items: center; position: relative; width: 108px; height: 108px; border: 1px solid #deb688b3; border-radius: 50%; box-shadow: inset 0 0 0 5px #47352d, inset 0 0 0 6px #deb68861, 0 0 30px #eeb27533; color: #f5d3a9; }
.number-wheel::before { position: absolute; content: ""; width: 53px; height: 53px; border: 1px solid #deb68872; transform: rotate(45deg); }
.number-wheel i { font: italic 3rem / 1 var(--serif); }
.wheel-small { position: absolute; font-size: .68rem; }
.wheel-top { top: 9px; }
.wheel-right { right: 12px; }
.wheel-bottom { bottom: 9px; }
.wheel-left { left: 12px; }
.star-map { position: relative; width: 152px; height: 88px; color: #f2d7b9; }
.map-star { position: absolute; z-index: 1; line-height: 1; text-shadow: 0 0 12px #ffdb9d; }
.star-one { left: 2%; top: 52%; font-size: 1.1rem; }
.star-two { left: 24%; top: 30%; font-size: 1rem; }
.star-three { left: 45%; top: 46%; font-size: 1.55rem; }
.star-four { left: 67%; top: 18%; font-size: 1rem; }
.star-five { left: 88%; top: 26%; font-size: 1.1rem; }
.star-map i { position: absolute; border-top: 1px solid #eac899a8; transform-origin: left; }
.star-map i:nth-of-type(1) { left: 7%; top: 62%; width: 38px; transform: rotate(-31deg); }
.star-map i:nth-of-type(2) { left: 29%; top: 39%; width: 34px; transform: rotate(30deg); }
.star-map i:nth-of-type(3) { left: 51%; top: 55%; width: 39px; transform: rotate(-44deg); }
.star-map i:nth-of-type(4) { left: 72%; top: 27%; width: 33px; transform: rotate(12deg); }
.method-detail { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 23px 23px 20px; }
.method-detail h3 { font: 400 1.7rem / 1.1 var(--serif); }
.method-detail p { color: var(--muted); line-height: 1.62; margin-block: 10px 16px; flex: 1; }
.method-action, .text-button { padding: 0; background: none; border: 0; color: var(--gold-light); font-weight: 650; }
.method-action { min-height: 38px; padding-block: 8px; border-bottom: 1px solid #d9ac7761; }
.method-action:hover, .text-button:hover { color: #ffe5c9; text-decoration: underline; text-underline-offset: 4px; }

.about { background: radial-gradient(ellipse at 18% 15%, #211e2b, #151925 65%); border-block: 1px solid #d7a87524; }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(35px, 8vw, 104px); padding-block: 65px; }
.about h2 { margin-block: 13px 15px; }
.about-inner p:not(.eyebrow) { color: var(--muted); line-height: 1.68; }
.about-list { align-self: center; display: grid; gap: 21px; }
.about-list > div { display: flex; align-items: flex-start; gap: 14px; }
.about-list span { color: var(--gold); line-height: 1; font-size: 1.5rem; width: 27px; flex: none; text-align: center; padding-top: 4px; }
.about-list strong { display: block; font-weight: 650; color: var(--paper); margin-bottom: 2px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding-block: 29px; }
.footer-inner .brand { font-size: 1.13rem; }
.footer-inner p, .footer-privacy { color: var(--muted); font-size: .875rem; line-height: 1.55; }
.footer-privacy { flex: none; padding-block: 9px; }

.panel { position: fixed; overflow: auto; color: var(--paper); width: min(100% - 32px, 508px); max-height: calc(100dvh - 32px); scrollbar-color: #765b49 transparent; margin: auto; background: #1a1e2a; border: 1px solid #be946369; border-radius: 12px; box-shadow: 0 20px 95px #04060ac9; padding: 31px; }
.panel::backdrop { background: #07080baf; backdrop-filter: blur(4px); }
.panel-wide { width: min(100% - 32px, 700px); }
.close-button { position: absolute; top: 11px; right: 11px; display: grid; place-items: center; width: 38px; height: 38px; color: var(--paper); background: transparent; border: 1px solid transparent; border-radius: 50%; font-size: 1.65rem; font-weight: 350; line-height: 1; }
.close-button:hover { background: #ffffff12; border-color: var(--hairline); }
.panel h2 { margin-block: 9px 11px; padding-right: 12px; font-size: clamp(1.8rem, 6vw, 2.7rem); text-wrap: pretty; }
.panel-description { color: var(--muted); line-height: 1.65; margin-bottom: 20px; }
.panel form, .reading-fields { display: grid; gap: 15px; }
.panel label { display: grid; min-width: 0; gap: 7px; font-size: .94rem; font-weight: 640; }
.panel label small { color: var(--muted); font-weight: 450; font-size: .83rem; line-height: 1.5; }
.panel input, .panel select, .panel textarea { width: 100%; min-width: 0; color: var(--paper); background-color: #111522; border-radius: 6px; border: 1px solid #ffffff30; padding: 10px 12px; min-height: 45px; font-size: 1rem; font-weight: 450; }
.panel input::placeholder, .panel textarea::placeholder { color: #9b9ba8; }
.panel textarea { min-height: 87px; resize: vertical; }
.panel select { padding-right: 30px; appearance: none; background-image: url('/images/chevron.svg'); background-repeat: no-repeat; background-position: right 11px center; background-size: 12px; }
.input-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.full-width { width: 100%; min-height: 48px; }
.form-message { border: 1px solid #e8a0994b; border-radius: 5px; color: #ffd4c7; background: #5c343b69; font-size: .94rem; line-height: 1.55; padding: 9px 12px; }
.form-message[data-kind="notice"] { border-color: #e8c5994b; color: #f8dfc2; background: #493d3169; }
.form-note { color: var(--muted); line-height: 1.55; font-size: .83rem; }
.auth-switch { margin-top: 21px; color: var(--muted); text-align: center; font-size: .92rem; }
.auth-switch button { margin-left: 4px; min-height: 36px; }
.reading-date { color: var(--muted); font-size: .875rem; margin-bottom: 16px; }
.result-question { color: var(--gold-light); font-size: .94rem; line-height: 1.6; margin-bottom: 15px; overflow-wrap: anywhere; }
.result-summary { color: #ece4e6; white-space: pre-line; overflow-wrap: anywhere; }
.result-context { margin-bottom: 23px; }
.result-context h3, .result-sections h3, .reflection h3 { font: 400 1.32rem / 1.2 var(--serif); margin-bottom: 6px; }
.result-context ul { display: flex; flex-wrap: wrap; list-style: none; gap: 7px; margin: 9px 0 0; padding: 0; }
.result-context li { max-width: 100%; background: #e6af7111; list-style: none; border: 1px solid #e6af714a; border-radius: 6px; color: #f2d4b2; font-size: .87rem; line-height: 1.4; padding: 6px 9px; overflow-wrap: anywhere; }
.result-houses { margin-top: 12px; }
.result-houses summary { color: var(--gold-light); cursor: pointer; width: fit-content; }
.result-houses ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr)); }
.result-houses span { display: block; color: var(--muted); margin-top: 2px; }
.result-sections { display: grid; gap: 17px; }
.result-sections > section { border-top: 1px solid var(--hairline); padding-top: 15px; }
.result-sections p, .reflection p, .privacy-copy p { color: #d3cdd4; line-height: 1.68; white-space: pre-line; overflow-wrap: anywhere; }
.reflection { border: 1px solid #e6af714a; background: #e6af7111; border-radius: 7px; margin-top: 20px; padding: 14px; }
.reflection h3 { color: var(--gold-light); }
.result-history { margin-top: 21px; }
.privacy-copy { display: grid; gap: 13px; }
.history-content { display: grid; gap: 9px; margin-block: 20px; color: var(--muted); line-height: 1.55; }
.history-item { display: grid; gap: 4px; width: 100%; padding: 12px 14px; color: var(--paper); border: 1px solid #ffffff26; border-radius: 7px; background: #111522; text-align: start; overflow-wrap: anywhere; }
.history-item:hover { border-color: #e6af7187; }
.history-item > span { color: var(--gold); font-size: .85rem; }
.history-item > strong { font: 400 1.19rem / 1.25 var(--serif); }
.history-item > small { color: var(--muted); font-size: .86rem; }
.history-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 11px 18px; margin-top: 18px; }
.history-footer .text-button { min-height: 42px; }

@media (max-width: 950px) {
  .shell { width: min(var(--shell), calc(100% - 58px)); }
  .method-grid { gap: 14px; }
  .method-detail { padding: 20px 16px 16px; }
}

@media (max-width: 690px) {
  .shell { width: calc(100% - 40px); }
  .header-inner { min-height: 65px; grid-template-columns: 1fr auto; gap: 12px; }
  .header-inner nav { display: none; }
  .hero { min-height: 545px; }
  .hero-image { background-position: 63% center; }
  .hero::after { background: linear-gradient(0deg, #0e1119, #0e111930 34%, transparent 80%), linear-gradient(90deg, #10131ef4, #10131dc1 52%, #10131d6b 100%); }
  .hero-content { padding-block: 76px; }
  .hero h1 { margin-block: 18px 19px; font-size: clamp(2.25rem, 10.8vw, 4.2rem); }
  .hero-description { font-size: 1rem; }
  .methods { padding-block: 39px 65px; }
  .section-heading { margin-bottom: 27px; }
  .method-grid { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .method-illustration { min-height: 151px; }
  .method-detail { padding: 19px 19px 17px; }
  .about-inner { grid-template-columns: 1fr; gap: 25px; padding-block: 44px; }
  .footer-inner { flex-wrap: wrap; gap: 13px 25px; padding-block: 22px; }
  .footer-inner p { width: 100%; order: 1; }
}

@media (max-width: 380px) {
  .shell { width: calc(100% - 30px); }
  .brand { gap: 7px; font-size: 1.22rem; }
  .brand img { width: 29px; height: 29px; }
  .header-account { padding-inline: 11px; }
  .header-account .icon { display: none; }
  .panel { padding: 22px 18px; }
  .input-columns { grid-template-columns: 1fr; }
}

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