:root {
  --paper: #fffaf1;
  --panel: #fffaf3;
  --ink: #352619;
  --muted: #58483b;
  --accent: #75501d;
  --line: #a5814d44;
  --focus: #74501e;
  --glass: rgba(255, 254, 250, .64);
  --glass-border: rgba(255, 255, 255, .9);
  --glass-shadow: 0 17px 37px -20px #8d5e3a50, inset 0 1px 1px #fffefa;
  --glass-blur: blur(14px) saturate(1.3);
  --gold-fill: linear-gradient(115deg, #f8e7a6 0%, #ebce7f 51%, #d7ab55 100%);
  --gold-hover: linear-gradient(115deg, #fff1bd 0%, #f3d889 53%, #e2b967 100%);
  --ease-glass: cubic-bezier(.22, 1, .36, 1);
  --chrome-height: 90px;
}

body { isolation: isolate; min-height: 100vh; }

.ambience {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(150deg, #fff3db 0%, #fdf0d7 43%, #fff5ee 76%, #f4eaf9 100%);
}

.ambience-light, .ambience-wheel, .ambience-stars { position: absolute; }
.ambience-light {
  inset: -5%;
  background:
    radial-gradient(ellipse at 17% 10%, #efcf8bd4 0%, transparent 44%),
    radial-gradient(ellipse at 86% 20%, #f1d882ba 0%, transparent 48%),
    radial-gradient(ellipse at 89% 63%, #f7c9b2bc 0%, transparent 42%),
    radial-gradient(ellipse at 76% 103%, #dac2f4e0 0%, transparent 53%),
    radial-gradient(ellipse at 19% 77%, #fff9eae6 0%, transparent 48%);
}

.ambience-wheel {
  top: 46%;
  left: 50%;
  width: clamp(580px, 78vw, 1100px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(-8deg);
  opacity: .33;
  background: url("assets/celestial-wheel.svg") center / contain no-repeat;
}

.ambience-stars {
  inset: 0;
  opacity: .58;
  background:
    radial-gradient(circle at 5% 22%, #b07b30 1.5px, transparent 3px),
    radial-gradient(circle at 15% 69%, #a6742e 1px, transparent 2.5px),
    radial-gradient(circle at 22% 42%, #b88740 1.2px, transparent 2.8px),
    radial-gradient(circle at 32% 14%, #9b682e 1.3px, transparent 2.8px),
    radial-gradient(circle at 38% 82%, #b38349 1.2px, transparent 2.9px),
    radial-gradient(circle at 48% 35%, #ac7738 1.1px, transparent 2.7px),
    radial-gradient(circle at 57% 67%, #ac7b35 1px, transparent 2.9px),
    radial-gradient(circle at 66% 12%, #aa7732 1.1px, transparent 2.7px),
    radial-gradient(circle at 72% 88%, #ae7b3c 1.4px, transparent 3px),
    radial-gradient(circle at 81% 47%, #a77631 1.4px, transparent 2.7px),
    radial-gradient(circle at 95% 26%, #bd8939 1.8px, transparent 3.3px),
    radial-gradient(circle at 94% 76%, #ae7b40 1.1px, transparent 2.6px);
}

.ambience-constellations { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.site-header { top: 12px; width: min(100% - var(--gutter) * 2, 1236px); margin: 12px auto 0; background: none; border: 0; }
.site-header .header-inner {
  width: 100%;
  min-height: 66px;
  padding-inline: clamp(13px, 2vw, 25px);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: linear-gradient(168deg, #ffffffe8, #fff9ed9e);
  box-shadow: 0 12px 33px -21px #89632c9c, inset 0 1px 0 #fff;
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

.wordmark { gap: 8px; }
.wordmark img { border-radius: 50%; object-fit: contain; filter: drop-shadow(0 1px 1px #a2763640); }
.wordmark-name { color: #68451d; letter-spacing: -.032em; }
.wordmark-name span { display: inline; }
.site-nav ul { gap: 4px clamp(3px, 1.35vw, 20px); }
.site-nav a { padding-inline: clamp(6px, 1.1vw, 16px); border: 1px solid transparent; border-radius: 999px; color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] {
  background: #fffdf6b8;
  border-color: #fff;
  color: var(--accent);
  text-decoration: none;
}
.site-nav a[aria-current="page"] { box-shadow: 0 3px 12px #a9864420; }

.button { position: relative; isolation: isolate; overflow: hidden; border-radius: 999px; }
.button--primary, .button--light {
  border-color: #b68d4b;
  background: var(--gold-fill);
  box-shadow: inset 0 1px 0 #fff6d8, 0 7px 16px -10px #8e641cca;
  color: #392514;
}
.button--primary:hover, .button--light:hover { background: var(--gold-hover); }
.button--light:focus-visible { outline-color: var(--focus); }
.button--outline { background: #fffdfa91; border-color: #a4804d; }
.button--outline:hover { background: #fffdf6; border-color: #74501e; }
.header-action[aria-current="page"] { background: #fff9e6bc; border-color: #957044; color: var(--ink); }

.home-hero, .home-readers { background: transparent; border-color: transparent; }
.hero-grid { padding-block: clamp(26px, 4.85vw, 69px) clamp(31px, 4.7vw, 67px); gap: clamp(27px, 4.7vw, 66px); }
.hero-kicker {
  width: fit-content;
  padding: 6px 12px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: #684614;
  background: #fffaf2b3;
  box-shadow: inset 0 1px 0 #fff8;
}
.hero-kicker::before { display: none; }
.hero-copy h1 { margin-top: 14px; font-size: clamp(2.95rem, 5.45vw, 5.1rem); }
.hero-accent { color: #80551f; }
.hero-manifesto {
  max-width: 540px;
  margin-top: clamp(16px, 2.3vw, 31px);
  padding: clamp(13px, 2.1vw, 25px);
  border: 1px solid var(--glass-border);
  border-radius: clamp(18px, 2.5vw, 27px);
  background: linear-gradient(143deg, #fffdf5d9, var(--glass));
  box-shadow: var(--glass-shadow), 0 0 26px #ffe8a777;
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.hero-manifesto .hero-description { margin: 0; }
.hero-actions { margin-top: 14px; gap: 7px 11px; }
.hero-actions .button { min-height: 46px; }

.hero-frame {
  --mirror-axis: 80%;
  aspect-ratio: 1.18;
  border-radius: 40px;
  background: radial-gradient(ellipse at 50% 50%, #fff9ddee 0%, #fffbec6c 44%, transparent 71%);
  color: #a36b2c;
}
.hero-frame::before { border-color: #b5874666; inset: 5% 8%; border-radius: 50%; }
.hero-halo, .hero-floor, .hero-sheen { position: absolute; pointer-events: none; }
.hero-halo {
  inset: 3% 1% 6%;
  background: radial-gradient(ellipse at 50% 45%, #fffdf8 4%, #ffefabaf 38%, #f6be624a 55%, transparent 71%),
    radial-gradient(ellipse at 72% 57%, #f2c1f38a 5%, transparent 59%);
  opacity: .83;
}
.hero-floor {
  top: calc(var(--mirror-axis) - 2%);
  width: 82%;
  height: 20%;
  background: radial-gradient(ellipse at 50% 22%, #fff9d7e8 2%, #ffdb7b76 22%, #edb5d84d 47%, transparent 70%);
}
.hero-floor::before {
  position: absolute;
  top: 12%;
  inset-inline: 12%;
  height: 2px;
  content: '';
  background: linear-gradient(90deg, transparent, #d99c458a 28%, #ffffec 50%, #d99c458a 72%, transparent);
  box-shadow: 0 0 10px #ffc971;
}
.celestial-ring { width: 76%; opacity: .87; border-color: #bb94596b; }
.celestial-orbit { width: 83%; border-color: #b3894b90; }
.celestial-orbit::before, .celestial-orbit::after {
  position: absolute;
  width: clamp(4px, .68vw, 8px);
  aspect-ratio: 1;
  border-radius: 50%;
  content: '';
  background: #fffbd9;
  box-shadow: 0 0 6px 2px #fff7c9, 0 0 13px 4px #efac54ad;
}
.celestial-orbit::before { top: 9%; left: 21%; }
.celestial-orbit::after { bottom: 9%; right: 21%; }
.frame-star--top { top: 5%; left: 18%; }
.deck-cards, .deck-reflection { position: absolute; inset: 0; }
.deck-reflection {
  pointer-events: none;
  clip-path: inset(var(--mirror-axis) 0 0);
  mask-image: linear-gradient(transparent var(--mirror-axis), #000 83%, #0008 91%, transparent 99%);
  filter: blur(.45px) saturate(.9);
  opacity: .52;
}
.deck-reflection .deck-cards { transform: scaleY(-1); transform-origin: 50% var(--mirror-axis); }
.deck-reflection .deck-card > img { box-shadow: none; }
.hero-sheen {
  inset: 7% 15% 19%;
  overflow: hidden;
  mask-image: radial-gradient(ellipse, #000 15%, #000b 48%, transparent 74%);
}
.hero-sheen::before {
  position: absolute;
  inset: -14% 0;
  content: '';
  background: linear-gradient(113deg, transparent 41%, #ffe08000 44%, #ffe0809c 48%, #fff8dfed 50%, #ffffff58 53%, transparent 58%);
  opacity: 0;
  transform: translateX(-60%);
}
.deck-card {
  top: auto;
  bottom: calc(100% - var(--mirror-axis) + clamp(7px, 1.45vw, 15px));
  width: 25%;
  transform: translateX(-50%) rotate(var(--card-angle));
}
.deck-card > img {
  width: 100%;
  height: auto;
  padding: clamp(3px, .58vw, 7px);
  border: 1px solid #fffdfa;
  border-radius: clamp(8px, 1.38vw, 16px);
  background: linear-gradient(145deg, #fffefd, #fff7e4a8);
  box-shadow: 0 18px 27px -11px #85623c92, 0 0 24px -9px #e3a441d9, inset 0 1px 1px #fff;
  pointer-events: none;
  transform: translateY(var(--card-lift, 0px)) perspective(700px) rotateX(var(--card-pitch, 0deg));
}
.deck-card--left { left: 18%; --card-angle: -6deg; --fan-in: 20%; }
.deck-card--right { left: 82%; --card-angle: 6deg; --fan-in: -20%; }
.deck-card--middle { --card-angle: 0deg; --fan-in: 0%; width: 28%; }
.tarot-art-link { display: block; border-radius: 28px; text-decoration: none; }
.tarot-art-action {
  display: flex;
  width: fit-content;
  min-height: 44px;
  padding-inline: 8px;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-size: .79rem;
  font-weight: 600;
  white-space: nowrap;
}
.tarot-art-link:hover .tarot-art-action, .tarot-art-link:focus-visible .tarot-art-action { text-decoration: underline; text-underline-offset: .26em; }

.methods { padding-top: clamp(29px, 4.6vw, 65px); }
.method-grid, .guide-links { gap: clamp(9px, 1.65vw, 21px); border: 0; }
.method, .guide-links li, .booking-band {
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  background: linear-gradient(150deg, #ffffffbb, var(--glass));
  box-shadow: var(--glass-shadow);
}
.method { transition: transform 230ms var(--ease-glass); }
.method + .method, .guide-links li + li { border: 1px solid var(--glass-border); }
.method:focus-within { border-color: #a47b45; }
.method-symbol { background: #fff1cada; }
.method--lenormand .method-symbol { background: #fae2eecc; }
.method--astrology .method-symbol { background: #edf0efcc; }
.method-link { border-top: 1px solid #c49d6743; }
.reader-feature { padding-block: clamp(28px, 4.4vw, 60px); }
.reader-preview {
  min-width: 0;
  padding: clamp(6px, 1.2vw, 13px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  background: var(--glass);
  box-shadow: var(--glass-shadow);
}
.reader-preview-photo { border-radius: 14px 14px 8px 8px; }
.reader-preview-copy { padding: 9px 5px 3px; border: 0; }
.guide-links li { border-radius: 17px; }
.booking-band { color: var(--ink); background: linear-gradient(115deg, #fff9e6ec, #f9db8fb5 62%, #f6dfdabf); }
.booking-band p { color: var(--muted); }
.site-footer { background: linear-gradient(155deg, #fff6d9bd, #fff9f0c9); border-color: #c99f6654; }

@media (hover: hover) and (pointer: fine) {
  .method:hover { transform: translateY(-4px); }
  .button--primary::after, .button--light::after {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(112deg, transparent 20%, #fff9e088 47%, transparent 73%);
    transform: translateX(-120%);
    transition: transform 520ms var(--ease-glass);
    pointer-events: none;
  }
  .button--primary:hover::after, .button--light:hover::after { transform: translateX(120%); }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  [data-motion-ready] .deck-card > img { transition: transform 240ms var(--ease-glass); }
  [data-motion-ready] :is(
    .deck > .deck-cards > .deck-card:hover,
    .deck:has(> .deck-cards > .deck-card--left:hover) .deck-reflection .deck-card--left,
    .deck:has(> .deck-cards > .deck-card--middle:hover) .deck-reflection .deck-card--middle,
    .deck:has(> .deck-cards > .deck-card--right:hover) .deck-reflection .deck-card--right
  ) {
    --card-lift: -7px;
    --card-pitch: 5deg;
  }
}

@media (max-width: 759px) {
  :root { --chrome-height: 75px; }
  .site-header { top: 8px; margin-top: 8px; }
  .site-header .header-inner { min-height: 58px; gap: 0 8px; }
  .wordmark-name { font-size: clamp(.97rem, 3.3vw, 1.21rem); }
  .wordmark img { width: 35px; height: 35px; }
  .site-nav[data-enhanced][data-open] {
    right: 0;
    top: calc(100% + 9px);
    width: min(252px, 100%);
    padding: 6px;
    max-height: calc(100vh - var(--chrome-height) - 14px);
    max-height: calc(100dvh - var(--chrome-height) - 14px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-color: var(--glass-border);
    border-radius: 17px;
    background: #fff9edf2;
    box-shadow: var(--glass-shadow);
  }
  .site-nav[data-enhanced] ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; }
  .site-nav[data-enhanced] .nav-booking { grid-column: 1 / -1; }
  .site-nav[data-enhanced] a { min-height: 44px; justify-content: center; padding-inline: 5px; border-radius: 10px; }
  .site-nav[data-enhanced] .nav-booking a { background: #efd8a766; }
  .site-nav[data-enhanced] a:hover { background: #f2dfbd; }
  .menu-toggle { min-height: 44px; border-color: #927147; border-radius: 999px; background: #ffffff6d; }
  .menu-toggle:hover { background: #fff9ee; }
  .hero-grid { gap: 13px; padding-block: 20px 22px; }
  .hero-copy h1 { margin-top: 10px; font-size: clamp(2.48rem, 8.7vw, 4.25rem); }
  .hero-manifesto { margin-top: 13px; }
  .hero-actions { margin-top: 11px; }
  .hero-actions .button { min-height: 44px; padding-inline: 12px; font-size: .79rem; }
  .hero-frame { aspect-ratio: 1.38; border-radius: 27px; }
  .ambience-wheel { top: 45%; left: 54%; opacity: .26; }
}

@media (min-width: 380px) and (max-width: 510px) {
  .hero-accent { display: block; }
}

@media (max-width: 545px) {
  .method { padding-inline: 17px; }
  .reader-preview { border-radius: 16px; }
  .reader-preview-photo { border-radius: 10px 10px 6px 6px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy h1 { animation: headline-settle 640ms var(--ease-glass) both; }
  .site-nav[data-enhanced][data-open] { animation: menu-settle 225ms var(--ease-glass) both; }
  .deck-card { animation: tarot-fan 1.05s var(--ease-glass) both; }
  .deck-card--right { animation-delay: 115ms; }
  .deck-card--middle { animation-delay: 210ms; }

  [data-motion-ready] .hero-halo { animation: halo-breathe 4.4s ease-in-out; }
  [data-motion-ready] .celestial-orbit { animation: orbit-turn 4.4s var(--ease-glass) both; }
  [data-motion-ready] .hero-sheen::before { animation: prism-sweep 2.2s var(--ease-glass) .3s; }
  .reader-preview-photo[data-portrait-visible] img { animation: portrait-settle 650ms var(--ease-glass) both; }
  .reader-preview--thu .reader-preview-photo[data-portrait-visible] img { animation-delay: 90ms; }
}

@keyframes headline-settle {
  from { opacity: .74; transform: translateY(9px); }
  to { opacity: 1; transform: none; }
}
@keyframes menu-settle {
  from { opacity: .72; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
@keyframes tarot-fan {
  from { opacity: .48; transform: translateX(calc(-50% + var(--fan-in))) scale(.92); }
  to { opacity: 1; transform: translateX(-50%) rotate(var(--card-angle)); }
}
@keyframes halo-breathe {
  0%, 100% { opacity: .83; transform: none; }
  50% { opacity: 1; transform: scale(1.085); }
}
@keyframes orbit-turn {
  to { transform: rotate(28deg); }
}
@keyframes prism-sweep {
  0%, 44% { opacity: 0; transform: translateX(-60%); }
  53% { opacity: .78; }
  71%, 100% { opacity: 0; transform: translateX(66%); }
}

@keyframes portrait-settle {
  from { opacity: .86; transform: scale(1.04) translateY(2px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ambience-constellations { display: none; }
  .hero-copy h1, .deck-card { animation: none; }
  .method:hover, .button--primary::after, .button--light::after { transform: none; }
  .button--primary::after, .button--light::after { display: none; }
}

@media (forced-colors: active) {
  .ambience { display: none; }
  .hero-halo, .hero-floor, .hero-sheen, .deck-reflection { display: none; }
  .site-header .header-inner, .site-nav[data-enhanced][data-open], .hero-manifesto, .method, .reader-preview, .guide-links li, .booking-band { border: 1px solid CanvasText; }
  .site-nav a[aria-current="page"] { border-color: LinkText; }
}
