/* ==========================================================================
   Falyora — falyora.app
   Warm Ember. Tokens are copied verbatim from the app's
   lib/core/theme/app_colors.dart so the site and the app are one system,
   not two that resemble each other.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Fonts, served from this origin.
   The Google Fonts stylesheet was render-blocking on a third-party origin:
   a DNS lookup, a TLS handshake and a round trip before the browser could
   even learn which file to fetch. PageSpeed put that chain at ~2.4 s on
   mobile.

   Privacy weighed as much as speed. This site tells visitors it collects
   nothing; sending every one of them to Google's servers to draw the
   headline would contradict it. A visit to falyora.app now talks to
   falyora.app and nowhere else.

   Both families are variable, so one file covers every weight in use.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('/assets/fonts/fraunces-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('/assets/fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  color-scheme: dark;

  /* Night base */
  --ink: #120E14;
  --ink-raised: #17121A;
  --smoke: #1C161C;
  --smoke-raised: #241C25;
  --ash: #2E2530;

  /* Copper — primary accent */
  --copper: #C87941;
  --copper-deep: #9E5C2E;
  --copper-soft: #E0996A;

  /* Amber — highlight */
  --amber: #E8B55C;
  --amber-soft: #F3D49B;

  /* Plum — tarot counterpoint */
  --plum: #6B4A6E;
  --plum-deep: #3E2A42;
  --plum-soft: #9C7BA0;
  /* Text step: --plum-soft is a stroke colour and only makes 3.55:1 as text
     on the plum card. This reaches 5.38:1. */
  --plum-text: #BC9DC0;

  /* Espresso — coffee surfaces */
  --espresso: #3B2A22;
  --espresso-deep: #241812;

  /* Text on night */
  --parchment: #F2E9DD;
  --parchment-dim: #C4B6A6;
  --parchment-muted: #8A7C70;

  /* Gradients */
  --grad-night: linear-gradient(180deg, #17121A, #100C12);
  --grad-copper: linear-gradient(135deg, #D08A52, #9E5C2E);
  /* Same copper, but the dark end lifted so near-black label text clears AA.
     #9E5C2E gives 3.57:1; #BC7337 gives 5.01:1. */
  --grad-copper-btn: linear-gradient(135deg, #D08A52, #BC7337);
  --grad-plum: linear-gradient(135deg, #3D2B42, #221827);
  --grad-espresso: linear-gradient(135deg, #4A342A, #241812);
  --grad-card: linear-gradient(135deg, #221B23, #1A141A);

  /* Type — Fraunces for display, Inter for body, as in the app */
  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Fluid scale, 16px base */
  --step--1: clamp(0.83rem, 0.80rem + 0.15vw, 0.89rem);
  --step-0: clamp(1.00rem, 0.95rem + 0.25vw, 1.13rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.50vw, 1.60rem);
  --step-2: clamp(1.56rem, 1.38rem + 0.90vw, 2.27rem);
  --step-3: clamp(1.95rem, 1.64rem + 1.55vw, 3.22rem);
  --step-4: clamp(2.44rem, 1.94rem + 2.50vw, 4.57rem);

  /* Space — 8px grid */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-s: 16px;
  --space-m: 24px;
  --space-l: 40px;
  --space-xl: 64px;
  --space-2xl: 96px;
  --space-3xl: 144px;

  /* Radius */
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 20px;
  --radius-pill: 999px;

  /* Motion — nothing overshoots; this brand is calm */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-micro: 180ms;
  --dur-base: 480ms;
  --dur-scene: 900ms;

  /* Layout */
  --wrap: 1120px;
  --gutter: var(--space-m);
  --measure: 62ch;
}

/* --------------------------------------------------------------------------
   2. Reset and base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--parchment);
  background-color: var(--ink);
  background-image: var(--grad-night);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }

input, button, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }

p { text-wrap: pretty; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: rgba(200, 121, 65, 0.35);
  color: var(--parchment);
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */

.wrap {
  width: min(var(--wrap), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-2xl);
}

@media (min-width: 768px) {
  .section { padding-block: var(--space-3xl); }
}

.section--tight { padding-block: var(--space-xl); }

.prose { max-width: var(--measure); }

.stack > * + * { margin-top: var(--space-s); }
.stack-m > * + * { margin-top: var(--space-m); }
.stack-l > * + * { margin-top: var(--space-l); }

.grid {
  display: grid;
  gap: var(--space-m);
}

@media (min-width: 860px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
}

.center { text-align: center; }
.center .prose { margin-inline: auto; }

/* Eyebrow — small label above a heading */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-soft);
}

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--parchment-dim);
}

.muted { color: var(--parchment-muted); }
.dim { color: var(--parchment-dim); }

.hairline {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--ash), transparent);
}

/* --------------------------------------------------------------------------
   4. Brand mark
   -------------------------------------------------------------------------- */

.mark {
  display: block;
  color: var(--copper);
}

.mark__ring { stroke: var(--copper); fill: none; }
.mark__inner { stroke: rgba(200, 121, 65, 0.35); fill: none; }
.mark__crescent { fill: var(--amber); }
.mark__spark { fill: var(--amber-soft); }

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-block: var(--space-s);
  background: rgba(18, 14, 20, 0.72);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease);
}

.site-header[data-scrolled="true"] { border-bottom-color: var(--ash); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--parchment);
}

.brand .mark { width: 30px; height: 30px; flex: none; }

.nav {
  display: none;
  align-items: center;
  gap: var(--space-m);
}

@media (min-width: 860px) { .nav { display: flex; } }

.nav a {
  position: relative;
  text-decoration: none;
  font-size: var(--step--1);
  color: var(--parchment-dim);
  padding-block: var(--space-2xs);
  transition: color var(--dur-micro) var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-micro) var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] { color: var(--parchment); }
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 14px 26px;
  border: 0;
  border-radius: var(--radius-pill);
  font-size: var(--step-0);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur-micro) var(--ease),
              filter var(--dur-micro) var(--ease),
              border-color var(--dur-micro) var(--ease),
              color var(--dur-micro) var(--ease);
}

.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--grad-copper-btn);
  color: #1A1013;
}

.btn--primary:hover { filter: brightness(1.08); }

.btn--ghost {
  background: transparent;
  color: var(--parchment);
  border: 1px solid var(--ash);
}

.btn--ghost:hover {
  border-color: var(--copper);
  color: var(--copper-soft);
}

/* Soon state — the app is still in review, so the CTA informs rather than
   linking to a store page that 404s. One flag in site.js flips it. */
.btn--soon {
  background: transparent;
  color: var(--parchment-dim);
  border: 1px dashed var(--ash);
  cursor: default;
}

.btn--soon:active { transform: none; }

.btn__note {
  font-size: var(--step--1);
  color: var(--parchment-muted);
}

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  padding: var(--space-l) var(--space-m);
  border: 1px solid var(--ash);
  border-radius: var(--radius-l);
  background: var(--grad-card);
  text-decoration: none;
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease);
}

/* The copper hairline along the top edge is the cup's lip, carried over
   from the app's card treatment. */
.card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 121, 65, 0.45), transparent);
}

a.card:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 121, 65, 0.45);
}

.card--coffee { background: var(--grad-espresso); }
.card--tarot { background: var(--grad-plum); }
.card--synastry { background: var(--grad-card); }

.card__icon { width: 56px; height: 56px; }
.card__title { font-size: var(--step-1); }
.card__text { color: var(--parchment-dim); font-size: var(--step-0); }

.card__more {
  margin-top: auto;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--copper-soft);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
}

a.card:hover .card__more { color: var(--amber); }

/* --------------------------------------------------------------------------
   8. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding-block: var(--space-xl);
  border-top: 1px solid var(--ash);
  font-size: var(--step--1);
  color: var(--parchment-muted);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-m);
  align-items: center;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-m);
}

.site-footer a {
  color: var(--parchment-dim);
  text-decoration: none;
  transition: color var(--dur-micro) var(--ease);
}

.site-footer a:hover { color: var(--copper-soft); }

/* --------------------------------------------------------------------------
   9. Motion
   Elements start hidden ONLY when JS is available. Without JS the page is
   fully visible — see the .no-js guard in the document head.
   -------------------------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   10. Home page sections
   -------------------------------------------------------------------------- */

.hero {
  padding-block: var(--space-2xl) var(--space-xl);
}

@media (min-width: 768px) {
  .hero { padding-block: var(--space-3xl) var(--space-2xl); }
}

.hero .mark--hero {
  width: clamp(116px, 18vw, 184px);
  height: clamp(116px, 18vw, 184px);
  margin-inline: auto;
  margin-bottom: var(--space-l);
}

.hero .eyebrow { margin-bottom: var(--space-s); }
.hero h1 { margin-bottom: var(--space-m); }
.hero .lede { margin-bottom: var(--space-l); }
.hero .btn { margin-bottom: var(--space-s); }

/* Steps */
.steps { margin-top: var(--space-l); }

.step {
  padding: var(--space-m);
  border-left: 1px solid var(--ash);
}

.step__num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1;
  color: var(--copper);
  margin-bottom: var(--space-xs);
}

.step h3 { margin-bottom: var(--space-2xs); }

/* Honesty — the spine of the brand, so it gets its own surface */
.honesty {
  background: var(--grad-card);
  border-block: 1px solid var(--ash);
}

.honesty h2 { margin-bottom: var(--space-m); }
.honesty .lede { margin-bottom: var(--space-m); }

/* Privacy notes */
.note {
  padding: var(--space-m) 0 0;
  border-top: 1px solid var(--ash);
}

.note h3 {
  font-size: var(--step-0);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: var(--space-2xs);
  color: var(--amber);
}

.closing h2 { margin-bottom: var(--space-l); }

/* --------------------------------------------------------------------------
   11. Mark animation — the mark draws itself on load. Craft, not decoration:
   it says "this was made by hand" before a word is read.
   Ring circumference at r=37 is 232.48.
   -------------------------------------------------------------------------- */

.js .mark__ring--draw {
  stroke-dasharray: 232.48;
  stroke-dashoffset: 232.48;
  animation: mark-draw 1200ms var(--ease) 120ms forwards;
}

.js .mark__crescent--fade {
  opacity: 0;
  animation: mark-fade 700ms var(--ease) 900ms forwards;
}

.js .mark__spark--pop {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: mark-pop 520ms var(--ease) 1450ms forwards;
}

@keyframes mark-draw { to { stroke-dashoffset: 0; } }
@keyframes mark-fade { to { opacity: 1; } }
@keyframes mark-pop {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .js .mark__ring--draw { stroke-dashoffset: 0; animation: none; }
  .js .mark__crescent--fade,
  .js .mark__spark--pop { opacity: 1; animation: none; transform: none; }
}

/* --------------------------------------------------------------------------
   12. Topic pages
   -------------------------------------------------------------------------- */

.topic-hero { padding-block: var(--space-2xl) var(--space-xl); }
.topic-hero .eyebrow { margin-bottom: var(--space-s); }
.topic-hero h1 { margin-bottom: var(--space-m); }

.topic-hero--coffee .eyebrow { color: var(--copper-soft); }
.topic-hero--tarot .eyebrow { color: var(--plum-soft); }
.topic-hero--synastry .eyebrow { color: var(--amber); }

/* --------------------------------------------------------------------------
   13. Cup zones — CSS only, driven by radio inputs so it works with the
   keyboard, with a screen reader, and with JavaScript off.
   -------------------------------------------------------------------------- */

.cup {
  display: grid;
  gap: var(--space-l);
  align-items: center;
}

@media (min-width: 860px) {
  .cup { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
}

/* Inputs stay focusable but out of sight; the labels are the visible control. */
.cup__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.cup__figure { margin: 0; }
.cup__figure svg { width: 100%; height: auto; }

.cup__line {
  fill: none;
  stroke: var(--ash);
  stroke-width: 1.6;
}

.cup__line--faint { stroke: rgba(46, 37, 48, 0.75); stroke-width: 1; }

.zone {
  fill: var(--copper);
  opacity: 0.06;
  transition: opacity var(--dur-base) var(--ease), fill var(--dur-base) var(--ease);
}

#z1:checked ~ .cup__figure .zone--1,
#z2:checked ~ .cup__figure .zone--2,
#z3:checked ~ .cup__figure .zone--3,
#z4:checked ~ .cup__figure .zone--4 {
  opacity: 0.46;
  fill: var(--amber);
}

/* Tabs */
.cup__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-m);
}

.cup__tab {
  padding: 8px 16px;
  border: 1px solid var(--ash);
  border-radius: var(--radius-pill);
  font-size: var(--step--1);
  color: var(--parchment-dim);
  cursor: pointer;
  transition: border-color var(--dur-micro) var(--ease),
              color var(--dur-micro) var(--ease),
              background-color var(--dur-micro) var(--ease);
}

.cup__tab:hover { color: var(--parchment); border-color: var(--copper-deep); }

#z1:checked ~ .cup__panel .cup__tab--1,
#z2:checked ~ .cup__panel .cup__tab--2,
#z3:checked ~ .cup__panel .cup__tab--3,
#z4:checked ~ .cup__panel .cup__tab--4 {
  color: var(--ink);
  background: var(--amber);
  border-color: var(--amber);
}

/* The label has to show focus, because the real input is visually hidden. */
#z1:focus-visible ~ .cup__panel .cup__tab--1,
#z2:focus-visible ~ .cup__panel .cup__tab--2,
#z3:focus-visible ~ .cup__panel .cup__tab--3,
#z4:focus-visible ~ .cup__panel .cup__tab--4 {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* Texts are stacked; only the active one is shown. Height is reserved by the
   tallest so the panel does not jump between zones. */
.cup__texts { display: grid; }
.cup__text {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease),
              visibility var(--dur-base);
}

#z1:checked ~ .cup__panel .cup__text--1,
#z2:checked ~ .cup__panel .cup__text--2,
#z3:checked ~ .cup__panel .cup__text--3,
#z4:checked ~ .cup__panel .cup__text--4 {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.cup__text h2 {
  font-size: var(--step-2);
  margin-bottom: var(--space-xs);
  color: var(--amber);
}

/* --------------------------------------------------------------------------
   14. Tarot spreads
   -------------------------------------------------------------------------- */

.spread {
  padding: var(--space-m);
  border: 1px solid var(--ash);
  border-radius: var(--radius-l);
  background: var(--grad-plum);
}

.spread__fig {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto var(--space-m);
}

.tcard {
  fill: rgba(156, 123, 160, 0.14);
  stroke: var(--plum-soft);
  stroke-width: 1.4;
  transition: fill var(--dur-base) var(--ease);
}

.spread:hover .tcard { fill: rgba(232, 181, 92, 0.12); }

.tnum {
  fill: var(--amber);
  font-family: var(--font-display);
  font-size: 19px;
  text-anchor: middle;
}

.tline {
  stroke: var(--plum-soft);
  stroke-opacity: 0.55;
  stroke-width: 1.3;
  stroke-dasharray: 3 4;
  fill: none;
}

.spread__title { font-size: var(--step-1); margin-bottom: var(--space-2xs); }

.spread__pos {
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  color: var(--plum-text);
  margin-bottom: var(--space-xs);
}

/* Misunderstood cards */
.myth {
  padding-top: var(--space-m);
  border-top: 1px solid var(--ash);
}

.myth h2 {
  font-size: var(--step-2);
  color: var(--amber);
  margin-bottom: var(--space-2xs);
}

.myth strong { color: var(--parchment); font-weight: 600; }

.tarrow {
  fill: none;
  stroke: var(--plum-soft);
  stroke-opacity: 0.7;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   15. Synastry wheel
   -------------------------------------------------------------------------- */

.wheelblock {
  display: grid;
  gap: var(--space-l);
  align-items: center;
}

@media (min-width: 860px) {
  .wheelblock { grid-template-columns: 1.1fr 1fr; gap: var(--space-xl); }
}

.wheel { margin: 0; }
.wheel svg { width: 100%; max-width: 440px; height: auto; margin-inline: auto; }

.wring { fill: none; stroke: var(--ash); stroke-width: 1.4; }
.wring--faint { stroke-opacity: 0.55; stroke-dasharray: 2 5; }

.wtick { stroke: var(--ash); stroke-width: 1; stroke-opacity: 0.8; }

/* The aspects are the computed part, so they carry the brightest ink. */
.wasp {
  stroke: var(--copper);
  stroke-width: 1.3;
  stroke-opacity: 0.85;
  fill: none;
}

.glyph { fill: none; stroke-width: 0.09; stroke-linecap: round; stroke-linejoin: round; }
.glyph .gfill { fill: currentColor; stroke: none; }
.glyph circle, .glyph path { stroke: currentColor; }
.glyph--a { color: var(--amber); }
.glyph--b { color: var(--plum-soft); }

.wheel__legend .legend__row {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--step--1);
  color: var(--parchment-dim);
  margin-bottom: var(--space-xs);
}

.swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex: none;
}

.swatch--a { background: var(--amber); }
.swatch--b { background: var(--plum-soft); }
.swatch--asp { background: var(--copper); border-radius: 2px; height: 3px; width: 20px; }

/* --------------------------------------------------------------------------
   16. Legal pages and FAQ
   -------------------------------------------------------------------------- */

.legal {
  max-width: 68ch;
  margin-inline: auto;
}

.legal h1 { margin-bottom: var(--space-2xs); }

.legal__updated {
  font-size: var(--step--1);
  margin-bottom: var(--space-xl);
}

.legal h2 {
  font-size: var(--step-1);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-s);
  color: var(--amber);
}

.legal h3 {
  font-size: var(--step-0);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0;
  margin-top: var(--space-m);
  margin-bottom: var(--space-2xs);
  color: var(--copper-soft);
}

.legal p { margin-bottom: var(--space-s); color: var(--parchment-dim); }
.legal ul, .legal ol { margin: 0 0 var(--space-s) var(--space-m); color: var(--parchment-dim); }
.legal li { margin-bottom: var(--space-2xs); }
.legal a { color: var(--copper-soft); }
.legal strong { color: var(--parchment); }

/* The callout carried over from the original legal pages. */
.legal .callout {
  padding: var(--space-m);
  margin-bottom: var(--space-l);
  border: 1px solid var(--ash);
  border-left: 2px solid var(--copper);
  border-radius: var(--radius-m);
  background: var(--grad-card);
}

.legal .callout p:last-child { margin-bottom: 0; }

/* FAQ — native <details>, so it opens without JavaScript. */
.faq { margin-inline: auto; }

.faq__item {
  border-bottom: 1px solid var(--ash);
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-m) 36px var(--space-m) 0;
  position: relative;
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.25;
  transition: color var(--dur-micro) var(--ease);
}

.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--copper-soft); }

.faq__item summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -7px;
  border-right: 1.6px solid var(--copper);
  border-bottom: 1.6px solid var(--copper);
  transform: rotate(45deg);
  transition: transform var(--dur-base) var(--ease);
}

.faq__item[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -2px;
}

.faq__item p { padding-bottom: var(--space-m); }

/* --------------------------------------------------------------------------
   17. Scene animations
   Each of these has a job. The tarot cards turn because that is the gesture
   the feature is built on; the wheel draws because the aspects are computed,
   and watching the line arrive says "this was worked out" better than a
   sentence would.
   -------------------------------------------------------------------------- */

/* Tarot — cards turn face up, one after another */
.js .spread .tslot {
  transform: scaleX(0);
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  transition: transform 520ms var(--ease), opacity 300ms var(--ease);
}

.js .spread.is-visible .tslot { transform: none; opacity: 1; }

.js .spread .tslot:nth-of-type(2) { transition-delay: 110ms; }
.js .spread .tslot:nth-of-type(3) { transition-delay: 220ms; }
.js .spread .tslot:nth-of-type(4) { transition-delay: 330ms; }

.js .spread .tline,
.js .spread .tarrow {
  opacity: 0;
  transition: opacity 400ms var(--ease) 440ms;
}

.js .spread.is-visible .tline,
.js .spread.is-visible .tarrow { opacity: 1; }

/* Synastry — rings first, then the computed chords, then the glyphs */
.js .wheelblock .wring,
.js .wheelblock .wasp {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.js .wheelblock.is-visible .wring {
  animation: draw 1100ms var(--ease) forwards;
}

.js .wheelblock.is-visible .wasp {
  animation: draw 620ms var(--ease) forwards;
}

.js .wheelblock.is-visible .wasp--1 { animation-delay: 700ms; }
.js .wheelblock.is-visible .wasp--2 { animation-delay: 800ms; }
.js .wheelblock.is-visible .wasp--3 { animation-delay: 900ms; }
.js .wheelblock.is-visible .wasp--4 { animation-delay: 1000ms; }
.js .wheelblock.is-visible .wasp--5 { animation-delay: 1100ms; }

.js .wheelblock .wtick { opacity: 0; transition: opacity 500ms var(--ease) 500ms; }
.js .wheelblock.is-visible .wtick { opacity: 1; }

.js .wheelblock .glyph {
  opacity: 0;
  transition: opacity 500ms var(--ease) 1250ms;
}

.js .wheelblock.is-visible .glyph { opacity: 1; }

@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .js .spread .tslot { transform: none; opacity: 1; transition: none; }
  .js .spread .tline,
  .js .spread .tarrow { opacity: 1; transition: none; }
  .js .wheelblock .wring,
  .js .wheelblock .wasp { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
  .js .wheelblock .wtick,
  .js .wheelblock .glyph { opacity: 1; transition: none; }
}

/* --------------------------------------------------------------------------
   18. Failsafe
   If site.js never arrives, the inline head script still adds .js-failsafe
   after seven seconds. Motion is a nicety; a page nobody can read is not.
   -------------------------------------------------------------------------- */

.js-failsafe [data-reveal],
.js-failsafe .tslot,
.js-failsafe .tline,
.js-failsafe .tarrow,
.js-failsafe .wtick,
.js-failsafe .glyph,
.js-failsafe .wring,
.js-failsafe .wasp,
.js-failsafe .mark__ring--draw,
.js-failsafe .mark__crescent--fade,
.js-failsafe .mark__spark--pop {
  transition: none !important;
  animation: none !important;
}

.js-failsafe [data-reveal],
.js-failsafe .tslot,
.js-failsafe .tline,
.js-failsafe .tarrow,
.js-failsafe .wtick,
.js-failsafe .glyph,
.js-failsafe .mark__crescent--fade,
.js-failsafe .mark__spark--pop {
  opacity: 1 !important;
  transform: none !important;
}

.js-failsafe .wring,
.js-failsafe .wasp,
.js-failsafe .mark__ring--draw {
  stroke-dasharray: none !important;
  stroke-dashoffset: 0 !important;
}
