:root {
  --night: #120a26;
  --night-soft: #1e1140;
  --plum: #2d1859;
  --violet: #6d4be8;
  --dusk: #4a6cff;
  --gold: #e8a34b;
  --rose: #e86a9c;
  --mist: #f8f5ff;
  --lavender: #e8e0ff;
  --ink: #1b1338;
  --muted: #bdb3d5;
  --surface: rgba(248, 245, 255, 0.08);
  --line: rgba(248, 245, 255, 0.15);
  --shadow: 0 28px 90px rgba(9, 4, 25, 0.38);
}

* { box-sizing: border-box; }

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 78% 14%, rgba(109, 75, 232, 0.23), transparent 28rem),
    radial-gradient(circle at 12% 60%, rgba(232, 106, 156, 0.10), transparent 26rem),
    var(--night);
  color: var(--mist);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--mist);
  color: var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.sky {
  position: absolute;
  inset: 0 0 auto;
  height: 58rem;
  pointer-events: none;
  overflow: hidden;
}

.thread {
  position: absolute;
  width: min(58rem, 68vw);
  opacity: 0.22;
}

.thread path {
  stroke: url("#thread-gradient");
  stroke: rgba(232, 163, 75, 0.72);
  stroke-width: 1.15;
}

.thread-one { right: -12rem; top: 2rem; transform: rotate(-7deg); }
.thread-two { left: -24rem; top: 17rem; transform: rotate(9deg); opacity: 0.12; }

.star {
  position: absolute;
  width: 0.65rem;
  height: 0.65rem;
  background: var(--gold);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  box-shadow: 0 0 1.5rem rgba(232, 163, 75, 0.8);
}

.star-one { left: 9%; top: 12rem; }
.star-two { right: 8%; top: 8rem; transform: scale(0.75); }
.star-three { left: 55%; top: 30rem; transform: scale(0.5); opacity: 0.6; }

.site-header,
main,
footer {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 6.5rem;
  gap: 2rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--mist);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.mark {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.8rem;
  background: linear-gradient(145deg, var(--violet), #8a67ef);
  box-shadow: 0 0.6rem 1.8rem rgba(109, 75, 232, 0.28);
}

.mark svg { width: 1.75rem; height: 1.75rem; }
.mark path { fill: none; stroke: white; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mark .mark-star { fill: var(--gold); stroke: none; }

.header-actions,
.utility-nav,
.language-switch {
  display: flex;
  align-items: center;
}

.header-actions { gap: 1.4rem; }
.utility-nav { gap: 1.25rem; }
.utility-nav a,
footer nav a {
  color: var(--lavender);
  font-size: 0.94rem;
  text-decoration: none;
  text-underline-offset: 0.3rem;
}
.utility-nav a:hover,
.utility-nav a:focus-visible,
footer nav a:hover,
footer nav a:focus-visible { text-decoration: underline; }

.language-switch {
  gap: 0.2rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(248, 245, 255, 0.06);
}

.language-switch button {
  min-width: 2.8rem;
  min-height: 2.4rem;
  padding: 0.4rem 0.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 700 0.86rem/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  background: var(--mist);
  color: var(--ink);
  box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.18);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(22rem, 0.94fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
  min-height: 43rem;
  padding: 4.2rem 0 7.5rem;
}

.eyebrow {
  margin: 0 0 1.1rem;
  color: #d9c8ff;
  font-size: 0.88rem;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1, h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 560;
  letter-spacing: -0.035em;
  line-height: 1.03;
}

h1 {
  max-width: 11.5ch;
  margin-bottom: 1.5rem;
  font-size: clamp(3.8rem, 7.2vw, 6.6rem);
}

h1 em {
  color: var(--gold);
  font-weight: 500;
}

h2 { font-size: clamp(2.7rem, 5vw, 4.6rem); }

.hero-lede {
  max-width: 38rem;
  margin-bottom: 2rem;
  color: #d6cfe4;
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  line-height: 1.65;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 4.15rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 1rem;
  background: var(--mist);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 1.15rem 2.8rem rgba(0, 0, 0, 0.28);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.store-button:hover { transform: translateY(-2px); box-shadow: 0 1.35rem 3rem rgba(0, 0, 0, 0.36); }
.store-button:focus-visible,
.text-cta:focus-visible,
.language-switch button:focus-visible,
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.store-button svg { width: 2rem; height: 2rem; fill: currentColor; }
.store-button span { display: grid; line-height: 1.05; }
.store-button small { font-size: 0.73rem; font-weight: 600; }
.store-button strong { margin-top: 0.18rem; font-size: 1.25rem; }
.store-note { color: var(--muted); font-size: 0.95rem; }

.sample-link {
  color: var(--mist);
  font-size: 0.98rem;
  font-weight: 690;
  text-decoration-color: rgba(232, 163, 75, 0.8);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35rem;
}
.sample-link:hover { color: var(--gold); }

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 35rem;
}

.app-icon-frame {
  position: relative;
  z-index: 2;
  width: min(25rem, 76vw);
  aspect-ratio: 1;
  padding: 0.7rem;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 27%;
  background: rgba(255,255,255,0.08);
  box-shadow: 0 2.5rem 7rem rgba(8, 2, 23, 0.64), 0 0 5rem rgba(109, 75, 232, 0.24);
  transform: rotate(2.5deg);
}
.app-icon-frame::after {
  content: "";
  position: absolute;
  inset: 0.7rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 25%;
  pointer-events: none;
}
.app-icon-frame img { display: block; width: 100%; height: 100%; border-radius: 24%; object-fit: cover; }

.orbit { position: absolute; border: 1px solid rgba(232, 163, 75, 0.24); border-radius: 50%; }
.orbit-one { width: 31rem; height: 18rem; transform: rotate(-24deg); }
.orbit-two { width: 34rem; height: 21rem; border-color: rgba(109, 75, 232, 0.34); transform: rotate(35deg); }

.story-section {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
  padding: 7.5rem 0;
  border-top: 1px solid var(--line);
}

.section-intro h2 { max-width: 10ch; margin-bottom: 1.4rem; }
.section-intro > p:last-child { max-width: 34rem; color: var(--muted); font-size: 1.08rem; }

.story-card {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4.3rem);
  border-radius: 1.75rem 1.75rem 1.75rem 0.55rem;
  background:
    radial-gradient(circle at 90% 5%, rgba(232, 163, 75, 0.22), transparent 15rem),
    var(--mist);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.story-card-ornament { position: absolute; top: 2rem; right: 2rem; display: flex; gap: 0.35rem; }
.story-card-ornament span { display: block; width: 0.42rem; height: 0.42rem; background: var(--gold); transform: rotate(45deg); }
.story-meta { display: flex; justify-content: space-between; gap: 1rem; color: #695d80; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.story-kicker { color: var(--violet); }
.story-card h3 { margin: 1.45rem 0 1.25rem; font: 600 clamp(2.2rem, 4vw, 3.8rem)/1.05 Georgia, "Times New Roman", serif; letter-spacing: -0.03em; }
.story-copy { font: 400 clamp(1.03rem, 1.4vw, 1.17rem)/1.82 Georgia, "Times New Roman", serif; }
.story-copy p { margin-bottom: 1rem; }
.story-copy p:first-child::first-letter { float: left; padding: 0.08em 0.12em 0 0; color: var(--violet); font: 650 4.1em/0.73 Georgia, "Times New Roman", serif; }
.excerpt-note { margin: 1.8rem 0 0; color: #756b87; font-size: 0.88rem; font-weight: 650; }

.ritual-section { padding: 7.5rem 0; }
.section-intro.compact { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 3rem; }
.section-intro.compact h2 { max-width: 13ch; margin-bottom: 0; }
.ritual-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ritual-grid article { min-height: 17rem; padding: 2rem; border: 1px solid var(--line); border-radius: 1.35rem; background: linear-gradient(145deg, rgba(248,245,255,0.075), rgba(248,245,255,0.025)); }
.ritual-grid article:nth-child(2) { transform: translateY(1.2rem); }
.ritual-icon { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 3.1rem; border-radius: 0.9rem; background: rgba(109, 75, 232, 0.22); color: #d9c8ff; font-size: 1.35rem; }
.ritual-grid article:nth-child(2) .ritual-icon { background: rgba(232, 163, 75, 0.18); color: var(--gold); }
.ritual-grid article:nth-child(3) .ritual-icon { background: rgba(232, 106, 156, 0.18); color: #ff9fc4; }
.ritual-grid h3 { margin-bottom: 0.65rem; font: 600 1.55rem/1.15 Georgia, "Times New Roman", serif; }
.ritual-grid p { margin-bottom: 0; color: var(--muted); }

.closing-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 6rem;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 1.8rem;
  background: linear-gradient(125deg, rgba(109, 75, 232, 0.95), rgba(74, 108, 255, 0.72));
  box-shadow: 0 2rem 6rem rgba(11, 6, 32, 0.36);
}
.closing-section h2 { max-width: 13ch; margin-bottom: 0; font-size: clamp(2.4rem, 5vw, 4rem); }
.closing-section .eyebrow { color: white; opacity: 0.8; }
.text-cta { flex: 0 0 auto; padding: 1rem 1.35rem; border-radius: 999px; background: var(--mist); color: var(--ink); font-weight: 760; text-decoration: none; }

footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 2rem;
  align-items: center;
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer-wordmark { font-size: 1.2rem; }
.footer-wordmark .mark { width: 2rem; height: 2rem; border-radius: 0.65rem; }
.footer-wordmark .mark svg { width: 1.4rem; height: 1.4rem; }
footer p { grid-column: 1; margin: 0; }
footer nav { grid-column: 2; grid-row: 1; display: flex; gap: 1.25rem; }
footer small { grid-column: 2; grid-row: 2; text-align: right; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; padding-top: 3rem; }
  .hero-copy { max-width: 46rem; }
  .hero-art { min-height: 31rem; }
  .story-section { grid-template-columns: 1fr; }
  .section-intro h2 { max-width: 14ch; }
  .ritual-grid { grid-template-columns: 1fr; }
  .ritual-grid article { min-height: 0; }
  .ritual-grid article:nth-child(2) { transform: none; }
  .ritual-icon { margin-bottom: 1.8rem; }
}

@media (max-width: 640px) {
  .site-header, main, footer { width: min(100% - 2rem, 1180px); }
  .site-header { align-items: flex-start; min-height: 7.2rem; padding-top: 1rem; }
  .header-actions { gap: 0.7rem; }
  .utility-nav { display: none; }
  .hero { min-height: auto; padding: 3rem 0 5rem; }
  h1 { font-size: clamp(3.35rem, 16vw, 5rem); }
  .hero-art { min-height: 25rem; }
  .app-icon-frame { width: min(20rem, 78vw); }
  .orbit-one { width: 24rem; height: 15rem; }
  .orbit-two { width: 27rem; height: 17rem; }
  .story-section, .ritual-section { padding: 5rem 0; }
  .story-card { padding: 2rem 1.35rem; border-radius: 1.35rem 1.35rem 1.35rem 0.45rem; }
  .story-meta { align-items: flex-start; flex-direction: column; gap: 0.15rem; }
  .story-card-ornament { top: 1.35rem; right: 1.35rem; }
  .section-intro.compact { display: block; }
  .closing-section { align-items: flex-start; flex-direction: column; margin-bottom: 4rem; }
  .text-cta { width: 100%; text-align: center; }
  footer { grid-template-columns: 1fr; }
  footer nav, footer small { grid-column: 1; grid-row: auto; text-align: left; }
}

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