/* Astrokin landing page. Tokens from the Celeste design system (doc/prototype/v1, apps/web tokens.css). */
@font-face { font-family: 'Lora'; src: url('/fonts/lora-latin-wght-normal.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lora'; src: url('/fonts/lora-latin-wght-italic.woff2') format('woff2'); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('/fonts/manrope-latin-wght-normal.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }

:root {
  color-scheme: light;
  --ground: #ececef;
  --card: #fff;
  --line: #e0e0e6;
  --line-strong: #c9c9d2;
  --ink: #1a1a21;
  --ink-2: #53535f;
  --ink-3: #6c6c79;
  --accent: #4c4796;
  --accent-hover: #3c387a;
  --accent-soft: #e3e1f4;
  --accent-deep: #2d2a5c;
  --charcoal: #2a2932;
  --lilac: #b9a7e6;
  --display: 'Lora', Georgia, serif;
  --ui: 'Manrope', system-ui, sans-serif;
  --gap: clamp(72px, 10vw, 136px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 16px/1.65 var(--ui); -webkit-font-smoothing: antialiased; text-wrap: pretty; overflow-x: clip; }
body::before { /* paper grain */
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .45;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.33 0 0 0 0 0.3 0 0 0 -1.6 1.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: #c7c3ea; color: var(--accent-deep); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.wrap { width: min(100%, 1240px); margin-inline: auto; padding-inline: clamp(18px, 4vw, 48px); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--card); padding: 8px 14px; border-radius: 6px; }

.overline { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--card) 86%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { height: 60px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); }
.mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--card); color: var(--accent); box-shadow: 0 1px 2px rgb(26 26 33 / .08), 0 4px 12px rgb(76 71 150 / .14); }
.name { display: inline-flex; align-items: baseline; gap: .45em; line-height: 1; }
.astro { font-family: var(--display); font-size: 22px; letter-spacing: .02em; }
.kin { font-size: 10.5px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--accent); }
.menu { display: flex; gap: 2px; }
.menu a { display: block; padding: 6px 11px; border-radius: 6px; font-size: 13px; font-weight: 600; color: #3f3f4a; white-space: nowrap; }
.menu a:hover { background: var(--accent-soft); color: var(--accent-deep); }
.status { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 5px 9px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink-2); white-space: nowrap; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px; align-items: center; min-height: min(760px, calc(100svh - 60px)); padding-block: 48px 64px; }
.hero-text { display: flex; flex-direction: column; gap: 26px; }
.hero-text > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero-text > :nth-child(2) { animation-delay: .08s; }
.hero-text > :nth-child(3) { animation-delay: .18s; }
.hero-text > :nth-child(4) { animation-delay: .28s; }
.hero-text > :nth-child(5) { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 6.6vw, 90px); line-height: 1.02; letter-spacing: -.018em; }
h1 em, h2 em, .statement em { font-style: italic; color: var(--accent); }
.lead { font-size: clamp(16px, 1.4vw, 18.5px); color: var(--ink-2); max-width: 50ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.button { display: inline-flex; align-items: center; gap: 14px; height: 50px; padding: 0 9px 0 22px; border-radius: 6px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; transition: background .12s ease-out; }
.button:hover { background: var(--accent-hover); color: #fff; }
.arrow { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 4px; background: rgb(255 255 255 / .18); font-size: 15px; }
.textlink { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); border-bottom: 2px solid var(--lilac); padding-bottom: 3px; }
.note { font-size: 13px; color: var(--ink-3); }

.orb { position: relative; width: 100%; max-width: 620px; aspect-ratio: 1; justify-self: center; container-type: inline-size; }
.orb-disc { position: absolute; inset: 5%; border-radius: 50%; background: var(--card); box-shadow: 0 1px 2px rgb(26 26 33 / .04), 0 30px 90px rgb(76 71 150 / .14); animation: disc 1.4s cubic-bezier(.2,.7,.2,1) both; }
@keyframes disc { from { opacity: 0; transform: scale(.94); } }
.orb canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.wordmark { position: absolute; left: 50%; top: 59%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2.4cqw; line-height: 1; }
.w-astro { font-family: var(--display); font-size: 13cqw; letter-spacing: .02em; animation: word 1.3s 1.7s cubic-bezier(.2,.7,.2,1) both; }
.w-kin { font-size: 3.4cqw; font-weight: 700; letter-spacing: .42em; padding-left: .42em; text-transform: uppercase; color: var(--accent); animation: kin 1.3s 2.1s cubic-bezier(.2,.7,.2,1) both; }
@keyframes word { from { opacity: 0; transform: translateY(2cqw); filter: blur(6px); } }
@keyframes kin { from { opacity: 0; letter-spacing: 1em; } }

.statement { padding-block: calc(var(--gap) * .45) 0; }
.statement p { font-family: var(--display); font-size: clamp(26px, 3.4vw, 44px); line-height: 1.32; max-width: 26ch; margin-left: auto; padding-top: 28px; border-top: 1px solid var(--line-strong); }

.section { padding-top: var(--gap); }
.head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(31px, 3.8vw, 50px); line-height: 1.12; letter-spacing: -.01em; max-width: 20ch; }
.sub { color: var(--ink-2); max-width: 56ch; }

/* traditions */
.traditions { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 14px; }
.traditions li { grid-column: span 2; position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 22px; background: var(--card); border-radius: 8px; transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, background .25s, color .25s; }
.traditions li:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgb(45 42 92 / .22); background: var(--accent-deep); color: #fff; }
.traditions li:hover :is(p, small, .num) { color: #d9d2f5; }
.traditions li:hover .script { color: var(--lilac); }
.num { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.script { display: flex; align-items: center; justify-content: center; height: 118px; font-family: var(--display); font-size: 29px; color: var(--accent); white-space: nowrap; border-bottom: 1px solid color-mix(in srgb, currentColor 16%, transparent); margin-bottom: 8px; transition: color .25s; }
.script:lang(bo) { font-size: 40px; }
.traditions h3 { font-family: var(--display); font-weight: 500; font-size: 19px; line-height: 1.25; }
.traditions h3 small { display: block; font-family: var(--ui); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: 3px; }
.traditions p { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: s; }
.steps li { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 34px 26px 0 0; border-top: 1px solid var(--line-strong); }
.steps li::before { content: ''; position: absolute; top: -7px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 3px var(--accent); }
.step { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.steps h3 { font-family: var(--display); font-weight: 400; font-size: 23px; line-height: 1.25; }
.steps p { font-size: 14px; color: var(--ink-2); }

/* reading */
.reading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.reading .head { margin: 0; }
.relations { display: grid; margin-top: 14px; }
.relations > div { padding: 16px 0; border-top: 1px solid var(--line-strong); }
.relations dt { display: flex; align-items: center; gap: 14px; font-family: var(--display); font-size: 20px; }
.relations dd { padding-left: 50px; font-size: 14px; color: var(--ink-2); }
.glyph { position: relative; width: 36px; height: 20px; flex: none; }
.glyph::before, .glyph::after { content: ''; position: absolute; top: 3px; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--accent); }
.converge::before { left: 8px; background: var(--accent); } .converge::after { left: 14px; background: var(--accent); }
.complement::before { left: 6px; background: var(--accent); } .complement::after { left: 16px; }
.diverge::before { left: 0; background: var(--accent); } .diverge::after { right: 0; background: var(--lilac); }
.silent::before { left: 6px; } .silent::after { left: 18px; border-style: dashed; border-color: var(--ink-3); }

.specimen { background: var(--charcoal); color: #fff; border-radius: 10px; padding: clamp(22px, 3.4vw, 40px); box-shadow: 0 30px 70px rgb(26 26 33 / .22); }
.specimen figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 22px; }
.specimen .overline { color: var(--lilac); }
.chip-dark { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 3px; background: rgb(255 255 255 / .1); }
.specimen-title { font-family: var(--display); font-size: clamp(22px, 2.3vw, 28px); line-height: 1.3; margin-bottom: 20px; }
.specimen li { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 14px; padding: 13px 0; border-top: 1px solid rgb(255 255 255 / .12); font-size: 14px; }
.specimen li b { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #c9c9d2; padding-top: 3px; }
.specimen .quiet span { color: #a9a9b6; font-style: italic; font-family: var(--display); }
.verdict { margin-top: 18px; padding: 16px 18px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgb(185 167 230 / .45); font-size: 14px; color: #e6e4f2; }
.verdict b { color: var(--lilac); }

/* themes */
.themes ul { display: flex; flex-wrap: wrap; gap: 8px 0; align-items: baseline; font-family: var(--display); font-size: clamp(24px, 3.6vw, 46px); line-height: 1.3; }
.themes li:not(:last-child)::after { content: '·'; color: var(--lilac); padding-inline: .45em; }
.themes li:nth-child(even) { font-style: italic; color: var(--accent); }
.fine { margin-top: 24px; font-size: 13px; color: var(--ink-3); }

/* principles: the one Celeste gradient of the page */
.principles { border-radius: 10px; padding: clamp(28px, 5.5vw, 72px); color: #fff; background: linear-gradient(150deg, #2d2a5c 0%, #46418a 55%, #6c63b8 100%); display: flex; flex-direction: column; gap: 18px; }
.principles .overline { color: #d9d2f5; }
.plist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin-top: 24px; }
.plist > div { padding: 24px 0; border-top: 1px solid rgb(255 255 255 / .24); }
.plist h3 { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 24px; margin-bottom: 8px; }
.plist p { font-size: 14.5px; color: #ecebf8; max-width: 46ch; }

/* faq */
.faq { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 40px; align-items: start; }
details { background: var(--card); border-radius: 8px; margin-bottom: 8px; padding: 0 22px; }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 0; font-family: var(--display); font-size: 19px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-family: var(--ui); color: var(--accent); font-size: 22px; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding-bottom: 20px; font-size: 14.5px; color: var(--ink-2); max-width: 62ch; }

.footer { margin-top: var(--gap); padding-block: 36px 48px; border-top: 1px solid var(--line-strong); display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 28px; align-items: start; font-size: 13px; color: var(--ink-2); }
.footer .name { color: var(--ink); margin-bottom: 8px; }

@media (max-width: 1080px) {
  .menu { display: none; }
  .traditions li { grid-column: span 5; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 0; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 24px; }
  .orb { order: -1; max-width: 460px; }
  .reading, .faq, .footer { grid-template-columns: minmax(0, 1fr); }
  .plist { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .traditions li { grid-column: 1 / -1; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .specimen li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .script { height: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
