/* Lumia — lumiaastrology.com
   Tokens mirror Sources/Brand/BrandPalette.swift and BrandFont.swift:
   Fraunces interprets, the system font runs the interface, monospace states
   astronomical fact. Gold = the Sun / confident; moon blue = the uncertain. */

:root {
  --paper: #F6F0E4;
  --paper-raised: #FCF9F3;
  --surface: #EFE7D8;
  --hairline: #E2D7C3;
  --ink: #2B2520;
  --ink-dim: #6F6458;
  --sun: #8F6319;
  --moon: #4F6A93;
  --foil-light: #D2A656;
  --foil-dark: #A57628;

  --display: "Fraunces", "New York", Georgia, serif;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --data: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 5vw, 56px);
  --measure: 34rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sun); }
:focus-visible { outline: 2px solid var(--moon); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header ---------- */
.site-head { padding: 22px 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 0 0 1px var(--hairline); }
.brand span {
  font-family: var(--display);
  font-variation-settings: "opsz" 72, "SOFT" 40, "WONK" 1;
  font-size: 22px; letter-spacing: .04em;
}
.site-head nav { display: flex; gap: 22px; font-size: 15px; }
.site-head nav a { text-decoration: none; color: var(--ink-dim); }
.site-head nav a:hover, .site-head nav a[aria-current] { color: var(--ink); }

/* ---------- buttons ---------- */
.store {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper);
  padding: 13px 22px 13px 18px; border-radius: 12px;
  font-size: 16px; font-weight: 600; text-decoration: none;
}
.store:hover { color: var(--paper); background: #3a322b; }
.store svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- hero ---------- */
.hero { padding: clamp(28px, 6vw, 72px) 0 clamp(56px, 8vw, 104px); }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.hero h1 {
  font-family: var(--display);
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
  font-weight: 380;
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: .98;
  letter-spacing: -.025em;
  margin: 0 0 26px;
  text-wrap: balance;
}
.hero .lede {
  font-family: var(--display);
  font-variation-settings: "opsz" 18, "SOFT" 30, "WONK" 0;
  font-weight: 300;
  font-size: clamp(19px, 1.8vw, 22px);
  line-height: 1.55;
  max-width: 30rem;
  margin: 0 0 34px;
}
.hero .fine { margin: 14px 0 0; font-size: 14px; color: var(--ink-dim); }

/* the live sky */
.sky { margin: 0; }
.sky-wheel { width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: 1; }
.sky-wheel svg { width: 100%; height: 100%; overflow: visible; }
.sky figcaption {
  max-width: 560px; margin: 22px auto 0;
  display: grid; grid-template-columns: 1fr; gap: 14px;
}
.sky .caption-text { font-size: 14px; color: var(--ink-dim); margin: 0; }
.ephemeris {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--hairline);
  font-family: var(--data); font-size: 12px; font-variant-numeric: tabular-nums;
}
.ephemeris li { padding: 9px 0 0; color: var(--sun); white-space: nowrap; }
.ephemeris li b { font-weight: 500; color: var(--ink); margin-right: 4px; font-family: var(--ui); }
.ephemeris li.rx { color: var(--moon); }

/* wheel strokes */
.w-ring { fill: none; stroke: url(#foil); }
.w-tick { stroke: var(--sun); }
.w-sign { fill: var(--sun); font-family: var(--ui); text-anchor: middle; dominant-baseline: central; }
.w-planet { fill: var(--ink); font-family: var(--ui); text-anchor: middle; dominant-baseline: central; }
.w-planet.rx { fill: var(--moon); }
.w-pointer { stroke: var(--hairline); stroke-width: 1; }
.w-dot { fill: var(--sun); }
.w-aspect { fill: none; stroke-width: 1; opacity: .7; }
.w-aspect.flowing { stroke: var(--moon); }
.w-aspect.tension { stroke: var(--sun); }

.draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.8s cubic-bezier(.6,.05,.2,1) forwards; }
.fade { opacity: 0; animation: fade .9s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
.w-aspect.fade { animation-name: fade-aspect; }
@keyframes fade-aspect { to { opacity: .7; } }
@media (prefers-reduced-motion: reduce) {
  .draw { animation: none; stroke-dashoffset: 0; }
  .fade { animation: none; opacity: 1; }
  .w-aspect.fade { opacity: .7; }
}

/* ---------- the reading specimen ---------- */
.cause-section { padding: clamp(64px, 9vw, 120px) 0; background: var(--paper-raised); border-block: 1px solid var(--hairline); }
.cause-section .wrap {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  gap: clamp(32px, 7vw, 104px); align-items: start;
}
h2 {
  font-family: var(--display);
  font-variation-settings: "opsz" 96, "SOFT" 40, "WONK" 1;
  font-weight: 400;
  font-size: clamp(32px, 3.8vw, 48px);
  line-height: 1.06; letter-spacing: -.015em;
  margin: 0 0 22px; text-wrap: balance;
}
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1em; color: var(--ink); }
.prose p.dim { color: var(--ink-dim); }

.specimen {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 40px);
  max-width: 30rem;
  justify-self: end;
  width: 100%;
}
.specimen .when { font-size: 13px; color: var(--ink-dim); margin: 0 0 10px; }
.specimen .headline {
  font-family: var(--display);
  font-variation-settings: "opsz" 60, "SOFT" 40, "WONK" 1;
  font-size: 27px; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 14px;
}
.cause {
  font-family: var(--data); font-size: 12px; line-height: 1.5;
  color: var(--sun); border-left: 1.5px solid var(--sun);
  padding-left: 12px; margin: 0 0 22px;
}
.cause.moon { color: var(--moon); border-color: var(--moon); }
.topic { border-top: 1px solid var(--hairline); padding: 15px 0; }
.topic:last-child { padding-bottom: 0; }
.topic .cause { font-family: var(--data); font-size: 12px; margin: 12px 0 0; }
.topic h3 { font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.topic p {
  font-family: var(--display);
  font-variation-settings: "opsz" 14, "SOFT" 30, "WONK" 0;
  font-weight: 300; font-size: 17px; line-height: 1.55; margin: 0;
}

/* ---------- the rest of the app ---------- */
.more { padding: clamp(64px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); }
.more h2 { max-width: 18ch; }
.features {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px); margin-top: 44px;
}
.feature { border-top: 1.5px solid var(--sun); padding-top: 18px; }
.feature h3 {
  font-family: var(--display);
  font-variation-settings: "opsz" 36, "SOFT" 40, "WONK" 1;
  font-weight: 400; font-size: 24px; margin: 0 0 8px;
}
.feature p { margin: 0; color: var(--ink-dim); }
.feature .glyph { color: var(--sun); margin-right: 8px; }

.promises { padding: 0 0 clamp(64px, 9vw, 120px); }
.promises .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(32px, 7vw, 104px); }
.promises ul { list-style: none; margin: 0; padding: 0; }
.promises li { border-top: 1px solid var(--hairline); padding: 16px 0; }
.promises li strong { display: block; font-weight: 600; margin-bottom: 2px; }
.promises li span { color: var(--ink-dim); }

.closing { padding: clamp(56px, 8vw, 96px) 0; text-align: center; border-top: 1px solid var(--hairline); }
.closing img { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 26px; box-shadow: 0 0 0 1px var(--hairline); }
.closing h2 { margin-bottom: 28px; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--hairline); padding: 28px 0 40px; font-size: 14px; color: var(--ink-dim); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--ink); }

/* ---------- document pages (privacy, support) ---------- */
.doc { padding: clamp(32px, 6vw, 72px) 0 clamp(64px, 9vw, 112px); }
.doc article { max-width: 40rem; }
.doc h1 {
  font-family: var(--display);
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
  font-weight: 380; font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1; letter-spacing: -.02em; margin: 0 0 18px;
}
.doc .updated { color: var(--ink-dim); font-size: 15px; margin: 0 0 40px; }
.doc h2 { font-size: clamp(26px, 2.8vw, 32px); margin: 56px 0 16px; }
.doc h3 { font-size: 17px; font-weight: 600; margin: 30px 0 6px; }
.doc p, .doc li { line-height: 1.65; }
.doc p { margin: 0 0 1em; }
.doc ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.doc li { margin-bottom: .45em; }
.doc code { font-family: var(--data); font-size: .86em; background: var(--surface); padding: 1px 5px; border-radius: 4px; }
.doc .contact {
  background: var(--paper-raised); border: 1px solid var(--hairline);
  border-radius: 18px; padding: 22px 24px; margin: 0 0 40px;
}
.doc .contact p:last-child { margin: 0; }
.table-scroll { overflow-x: auto; margin: 0 0 1.2em; }
.doc table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-top: 1px solid var(--hairline); }
.doc th { font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap, .cause-section .wrap, .promises .wrap { grid-template-columns: minmax(0, 1fr); }
  .specimen { justify-self: start; }
  .features { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-head nav { gap: 16px; font-size: 14px; }
  .site-head nav .hide-sm { display: none; }
  .ephemeris { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .store { width: 100%; justify-content: center; }
}
