:root {
  --paper: #f7f3e9;
  --ink: #303b34;
  --muted: #647065;
  --line: #d6d9cc;
  --green: #315d49;
  --mint: #e4e8d9;
  --gold: #a57c36;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Arial, Helvetica, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
a:hover {
  color: var(--green);
}
a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 6px;
}
img {
  max-width: 100%;
  display: block;
}
.wrap {
  width: min(1180px, calc(100% - 96px));
  margin-inline: auto;
}
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 118px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font: 27px/1 var(--serif);
  text-decoration: none;
  letter-spacing: -1px;
  white-space: nowrap;
}
.wordmark span {
  font-style: italic;
  font-size: 1.2em;
}
.wordmark i {
  font-size: 22px;
  color: var(--gold);
  margin-left: 6px;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14px;
}
.site-header nav a {
  text-decoration: none;
}
.site-header nav a[aria-current] {
  text-decoration: underline;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.6;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: 1px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
}
h1 {
  font-size: clamp(46px, 5.8vw, 78px);
  line-height: 1.07;
  letter-spacing: -3.3px;
}
h2 {
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.15;
  letter-spacing: -1.7px;
}
h3 {
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.6px;
}
em {
  font-weight: 400;
  color: var(--green);
}
.hero {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 30px;
  align-items: center;
  padding-block: 66px 78px;
}
.hero-copy .eyebrow {
  margin-bottom: 32px;
}
.hero-copy h1 {
  margin-bottom: 26px;
}
.intro {
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 34px;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 45px;
  padding: 14px 24px;
  border-radius: 3px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}
.button:hover {
  background: var(--ink);
  color: #fff;
}
.beta-note {
  font-size: 11px;
  color: var(--muted);
  margin: 15px 0 0;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 28px;
}
.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  max-width: 100%;
  padding: 15px 21px;
  border: 1px solid var(--green);
  border-radius: 4px;
  background: var(--green);
  color: #fff;
  font: 14px/1.5 var(--sans);
  text-decoration: none;
}
a.download-button:hover {
  background: var(--ink);
  color: #fff;
}
.download-button:disabled {
  background: #e3e3de;
  border-color: #cecfca;
  color: #5e625e;
  opacity: 1;
  cursor: not-allowed;
}
.download-status {
  border-left: 1px solid #b9bcb6;
  padding-left: 18px;
  font-size: 12px;
}
.hero-art {
  isolation: isolate;
  position: relative;
  aspect-ratio: 0.91;
  border-radius: 48% 48% 4px 4px;
  background: var(--mint);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.g-portrait {
  height: 85%;
  width: auto;
  max-width: 95%;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 16px 10px #27362815);
}
.orbit {
  border: 1px solid #a2ae914f;
  border-radius: 50%;
  position: absolute;
  width: 126%;
  height: 83%;
  left: -13%;
  top: 13%;
  transform: rotate(-35deg);
}
.orbit-two {
  width: 102%;
  height: 67%;
  left: -1%;
  top: 21%;
  transform: rotate(35deg);
}
.star {
  position: absolute;
  color: #8d9466;
  z-index: 3;
}
.star-one {
  font-size: 35px;
  left: 14%;
  top: 26%;
}
.star-two {
  font-size: 52px;
  right: 10%;
  top: 44%;
}
.star-three {
  font-size: 28px;
  right: 23%;
  top: 15%;
}
.art-caption {
  position: absolute;
  left: 0;
  right: 0;
  top: 10%;
  text-align: center;
  font-size: 11px;
  letter-spacing: 2.4px;
  color: #465139;
}
.g-signature {
  position: absolute;
  bottom: 7%;
  right: 8%;
  font: italic 48px var(--serif);
  z-index: 3;
  transform: rotate(-9deg);
}
.g-signature span {
  font-size: 20px;
  vertical-align: top;
}
.welcome {
  padding: 68px 0 76px;
  border-top: 1px solid var(--line);
}
.welcome > .eyebrow {
  margin-bottom: 24px;
}
.welcome > p:not(.eyebrow) {
  max-width: 550px;
  margin: 24px 0 42px;
  color: var(--muted);
}
product-preview { --feature-gap: 32px; display: block; position: relative; margin-top: 36px; border-radius: 28px; }
.feature-track { border-radius: inherit; }
/* Reserve one full-height row before JS loads. Native scrolling remains usable
   if the enhancement fails; all slides still participate in row sizing. */
.feature-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: var(--feature-gap); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.feature-track::-webkit-scrollbar { display: none; }
.feature-panel { scroll-snap-align: start; }
product-preview[data-ready] .feature-track { grid-auto-flow: row; gap: 0; scroll-snap-type: none; }
product-preview[data-ready] { overflow: hidden; }
product-preview[data-ready] .feature-track { display: grid; overflow: hidden; touch-action: pan-y pinch-zoom; }
product-preview[data-ready] .feature-track { cursor: grab; user-select: none; -webkit-user-select: none; }
product-preview[data-ready] .feature-track.is-dragging,
product-preview[data-ready] .feature-track.is-dragging * { cursor: grabbing; }
.feature-track img { -webkit-user-drag: none; }
.feature-panel {
  --feature-wash: #eee7db;
  --feature-orbit: #d5c5a9;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  min-width: 0;
  padding: 40px 64px 78px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--feature-wash);
}
#feature-tarot-reading { --feature-wash: #eae6ed; --feature-orbit: #c8b9d2; }
#feature-city { --feature-wash: #e2e9e1; --feature-orbit: #b1c3ae; }
.feature-panel + .feature-panel { margin-top: 0; }
product-preview[data-ready] .feature-panel {
  grid-area: 1 / 1;
  margin-top: 0;
  padding-bottom: 78px;
  visibility: hidden;
  pointer-events: none;
}
product-preview[data-ready] .feature-panel.is-active { visibility: visible; pointer-events: auto; z-index: 1; }
product-preview[data-ready] .feature-panel.is-leaving { visibility: visible; }
.ritual-number { display: block; font-size: 11px; letter-spacing: 1.8px; color: #596057; }
.feature-copy { position: relative; z-index: 1; width: 100%; max-width: 370px; justify-self: center; }
.feature-copy h3 { margin: 20px 0; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.3; text-wrap: balance; }
html[lang="en"] #feature-city .feature-copy { container-type: inline-size; }
html[lang="en"] #city-title { white-space: nowrap; font-size: min(40px, 10.5cqi); }
.feature-copy p { margin: 0; color: #535c52; font-size: 16px; line-height: 1.85; text-wrap: pretty; }
.feature-copy .feature-note { margin-top: 20px; font-size: 12px; line-height: 1.7; color: #62695f; }
.feature-detail { display: inline-flex; align-items: center; min-height: 44px; margin-top: 20px; padding-block: 7px; font-size: 13px; }
.feature-screen { position: relative; display: grid; place-items: center; margin: 0; padding: 6px 0; }
.feature-screen::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: min(360px, 110%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--feature-orbit);
  background: #ffffff24;
}
.feature-screen::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: min(430px, 130%);
  aspect-ratio: 1;
  border: 1px solid var(--feature-orbit);
  border-radius: 50%;
  opacity: .4;
}
.feature-screen img {
  display: block;
  width: 224px;
  height: auto;
  max-width: 100%;
  border-radius: 26px;
  box-shadow: 0 20px 40px #343c3026, 0 2px 6px #343c3010;
}
.feature-dots { position: absolute; z-index: 3; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 0; margin: 0; }
.feature-dots[hidden] { display: none; }
.feature-dots button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.feature-dots span { width: 8px; height: 8px; border-radius: 50%; background: #b7bbae; transition: background-color .2s, box-shadow .2s; }
.feature-dots button[aria-current="true"] span { background: var(--ink); box-shadow: 0 0 0 4px #303b3410; }
.feature-dots button:hover span { background: var(--green); }
.feature-dots button:focus-visible, .welcome summary:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.feature-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.travel-journal { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 64px; border-top: 1px solid var(--line); }
.travel-heading, .travel-playlist { width: 100%; max-width: 960px; margin-inline: auto; }
.travel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.travel-heading .eyebrow { margin: 0 0 18px; }
.travel-heading h2 { margin: 0; font-size: clamp(34px, 3.3vw, 46px); line-height: 1.2; letter-spacing: -1px; text-wrap: balance; }
.travel-playlist { min-width: 0; }
/* Keep YouTube's 200px minimum height when narrow screens cannot fit a 16:9 viewport. */
.travel-playlist iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; min-height: 200px; border: 0; border-radius: 18px; background: #111; }
.external-link-icon { display: inline-block; flex-shrink: 0; font: .85em/1 var(--sans); color: var(--muted); vertical-align: .05em; }
.travel-playlist-link { margin: 14px 0 0; text-align: right; font-size: 13px; }
.travel-playlist-link a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.travel-playlist-link a:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.beta-section,
.download-section {
  border-top: 1px solid var(--line);
  padding: 60px 0 70px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}
.beta-section h2,
.download-section h2 {
  margin-bottom: 0;
}
.beta-section > div > p:not(.eyebrow),
.download-section > div > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 15px;
  max-width: 425px;
}
.text-link {
  font-size: 13px;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.site-footer .wordmark {
  font-size: 23px;
}
.site-footer p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
  margin-bottom: 0;
}
.site-footer nav {
  display: flex;
  justify-content: flex-end;
  gap: 26px;
  font-size: 12px;
  align-items: flex-start;
}
.site-footer nav a {
  text-decoration: none;
}
.footer-links {
  display: grid;
  justify-self: end;
  align-content: start;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}
.footer-instagram {
  display: grid;
  place-items: center;
  justify-self: end;
  width: 44px;
  height: 44px;
  margin-right: -14px;
  color: var(--muted);
  text-decoration: none;
}
.footer-instagram svg,
.footer-instagram img {
  display: block;
  grid-area: 1 / 1;
  transition: opacity 160ms ease;
}
.footer-instagram svg {
  width: 20px;
  height: 20px;
}
.footer-instagram img {
  width: 16px;
  height: 16px;
  opacity: 0;
}
.footer-instagram:is(:hover, :focus-visible, :active) svg {
  opacity: 0;
}
.footer-instagram:is(:hover, :focus-visible, :active) img {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .footer-instagram :is(svg, img) { transition: none; }
}
.colophon {
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
  font-size: 10px !important;
  letter-spacing: 0.4px;
}
.document {
  max-width: 900px;
  padding-top: 74px;
  padding-bottom: 90px;
}
.document-heading h1 {
  font-size: 64px;
  margin: 22px 0;
}
.document-heading > p:last-child {
  color: var(--muted);
  font-size: 15px;
}
.policy-intro {
  font-size: 17px;
  margin: 38px 0 30px;
}
.contents {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 25px;
  border-block: 1px solid var(--line);
  padding: 20px 0;
  font-size: 12px;
}
.prose {
  max-width: 760px;
}
.prose section {
  margin-top: 42px;
}
.prose h2 {
  font-size: 29px;
  line-height: 1.3;
  letter-spacing: -0.6px;
  margin-bottom: 18px;
}
.prose p,
.prose li {
  font-size: 15px;
  line-height: 1.85;
  color: #4d594f;
}
.prose li {
  margin-bottom: 13px;
}
.prose ul {
  padding-left: 22px;
}
.prose strong {
  color: var(--ink);
}
.prose a,
.policy-intro a {
  overflow-wrap: anywhere;
}
.contact-panel {
  background: var(--mint);
  padding: 30px 34px;
  margin: 36px 0 42px;
}
.contact-panel .eyebrow {
  margin-bottom: 12px;
}
.contact-email {
  font: clamp(21px, 3.6vw, 33px)/1.4 var(--serif);
  letter-spacing: -0.7px;
  overflow-wrap: anywhere;
  text-decoration: none;
}
.contact-panel > p:last-child {
  margin: 15px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.not-found {
  padding-block: 100px 120px;
}
.not-found p:not(.eyebrow) {
  color: var(--muted);
  margin-bottom: 30px;
}
@media (min-width: 1500px) {
  .hero {
    padding-block: 85px;
  }
  .hero-art {
    max-height: 570px;
  }
}
@media (max-width: 800px) {
  .travel-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .wrap {
    width: calc(100% - 48px);
  }
  .site-header {
    min-height: 90px;
  }
  .hero {
    gap: 20px;
    padding-block: 50px;
  }
  .hero h1 {
    font-size: 52px;
    letter-spacing: -2.4px;
  }
  .hero-copy .eyebrow {
    font-size: 9px;
    letter-spacing: 1.3px;
  }
  .intro {
    font-size: 15px;
  }
  .desktop-break {
    display: none;
  }
  .feature-panel { gap: 28px; padding: 32px 32px 78px; }
  .feature-copy h3 { font-size: 28px; }
  .beta-section,
  .download-section {
    gap: 40px;
  }
  .document-heading h1 {
    font-size: 54px;
  }
  .site-footer nav {
    gap: 20px;
  }
}
@media (max-width: 600px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .site-header {
    min-height: 83px;
  }
  .wordmark {
    font-size: 24px;
  }
  .site-header nav {
    gap: 20px;
    font-size: 12px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-block: 42px 40px;
    gap: 33px;
  }
  .hero-copy .eyebrow {
    margin-bottom: 23px;
    font-size: 9px;
  }
  .hero h1 {
    font-size: clamp(45px, 11.5vw, 65px);
    letter-spacing: -2.2px;
    margin-bottom: 22px;
  }
  .intro {
    font-size: 16px;
    max-width: 330px;
    margin-bottom: 26px;
  }
  .hero-art {
    width: 100%;
    max-width: 420px;
    justify-self: center;
    aspect-ratio: 1.04;
  }
  .g-portrait {
    height: 87%;
  }
  .art-caption {
    top: 8%;
    font-size: 10px;
  }
  .beta-note {
    font-size: 10px;
  }
  .welcome {
    padding-block: 42px;
  }
  .welcome > p:not(.eyebrow) {
    font-size: 15px;
    margin-top: 20px;
    margin-bottom: 28px;
  }
  .welcome h2 {
    font-size: 34px;
    letter-spacing: -1.2px;
  }
  product-preview { --feature-gap: 20px; margin-top: 28px; border-radius: 24px; }
  .feature-track, .feature-panel { border-radius: 24px; }
  .feature-panel { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 28px; padding: 30px 24px 78px; }
  .feature-copy { max-width: 340px; text-align: center; }
  .ritual-number { font-size: 10px; letter-spacing: 1.3px; }
  .feature-copy h3 { margin: 12px 0 14px; font-size: 28px; }
  .feature-copy p { font-size: 14px; line-height: 1.75; }
  .feature-copy .feature-note { margin-top: 12px; font-size: 11px; }
  .feature-screen { align-self: end; padding: 0; }
  .feature-screen img { width: 196px; border-radius: 23px; }
  .feature-screen::before { width: 270px; }
  .feature-screen::after { width: 330px; }
  .feature-dots { bottom: 10px; }
  .travel-journal { gap: 28px; padding-block: 42px; }
  .travel-heading h2 { font-size: 34px; }
  .travel-heading .eyebrow { margin-bottom: 18px; }
  .beta-section,
  .download-section {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-block: 38px 44px;
  }
  .beta-section h2,
  .download-section h2 {
    font-size: 38px;
  }
  .site-footer {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-block: 30px 22px;
  }
  .site-footer nav {
    justify-content: flex-start;
  }
  .footer-links {
    justify-self: start;
  }
  .colophon {
    gap: 10px;
    flex-direction: column;
  }
  .document {
    padding-block: 43px 52px;
  }
  .document-heading h1 {
    font-size: 46px;
    letter-spacing: -2px;
    margin-block: 18px;
  }
  .document-heading > p:last-child {
    font-size: 13px;
  }
  .policy-intro {
    font-size: 15px;
    margin-top: 26px;
  }
  .contents {
    gap: 12px 20px;
  }
  .prose section {
    margin-top: 32px;
  }
  .prose h2 {
    font-size: 25px;
  }
  .prose p,
  .prose li {
    font-size: 14px;
  }
  .contact-panel {
    padding: 25px 20px;
  }
  .contact-email {
    font-size: clamp(18px, 5.5vw, 23px);
  }
  .not-found {
    padding-block: 70px 85px;
  }
  .not-found h1 {
    font-size: 44px;
    letter-spacing: -2px;
  }
}
@media (max-width: 360px) {
  html:lang(zh) .hero h1 { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .feature-dots span { transition: none; }
  html {
    scroll-behavior: auto;
  }
}
@media (scripting: none) {
  .feature-track { display: block; overflow: visible; }
}

/* Keep language choice with secondary footer controls, away from the hero. */
.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-bottom .colophon {
  flex: 1;
  margin: 0;
  gap: 10px 24px;
  flex-wrap: wrap;
}
.language-selector {
  position: relative;
  flex: none;
  color: var(--muted);
  font-size: 12px;
}
.language-selector summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 4px;
  list-style: none;
  cursor: pointer;
  border-radius: 6px;
}
.language-selector summary::-webkit-details-marker {
  display: none;
}
.language-selector summary:hover,
.language-selector[open] summary {
  color: var(--green);
}
.language-selector summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.language-selector > summary .disclosure-chevron { transform: rotate(180deg); }
.language-selector[open] > summary .disclosure-chevron { transform: rotate(0); }
.language-options {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: calc(100% + 6px);
  width: 176px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgb(48 59 52 / 10%);
}
.language-options a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
}
.language-options a:hover,
.language-options a:focus-visible {
  background: var(--mint);
  outline-offset: -2px;
}
.language-options a[aria-current='page'] {
  color: var(--green);
}
.language-options a[aria-current='page']::after {
  content: '✓';
}
.site-footer nav {
  flex-wrap: wrap;
}
/* CJK headings need natural spacing and line height rather than Latin display tracking. */
html:is(:lang(zh), :lang(ja)) :is(h1, h2, h3) {
  letter-spacing: normal;
  line-height: 1.35;
}
html:is(:lang(zh), :lang(ja)) em {
  font-style: normal;
}
html:lang(ja) .document-heading h1 em {
  display: inline-block;
}

/* Feature stories and the reading room share the existing Meet G palette. */
.app-navigation { position: relative; }
.app-navigation summary { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none; white-space: nowrap; }
.app-navigation summary::-webkit-details-marker { display: none; }
.app-navigation summary:focus-visible { outline: 2px solid var(--green); outline-offset: 6px; }
/* Keep the panel against its trigger so native details has no hover dead zone. */
.app-navigation > div { position: absolute; z-index: 20; top: 100%; left: -22px; width: 220px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: 0 16px 35px #303b3414; }
.app-navigation > div a { display: block; padding: 12px 10px; border-radius: 6px; }
.app-navigation > div a:focus-visible { background: var(--mint); box-shadow: inset 2px 0 var(--green); }
.app-navigation > div a:focus-visible { outline-offset: -2px; }
.disclosure-chevron { display: block; width: 14px; height: 14px; flex: 0 0 14px; transform-origin: center; transition: transform .15s; }
details[open] > summary > .disclosure-chevron { transform: rotate(180deg); }
.story-breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; padding-block: 26px; font-size: 12px; color: var(--muted); }
.story-breadcrumb a { text-decoration: none; }
.story-breadcrumb a:hover { text-decoration: underline; }
.story-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; align-items: center; padding: 20px 0 70px; }
.story-copy h1 { max-width: 650px; margin: 24px 0; font-size: clamp(46px, 5.5vw, 76px); }
.story-intro { max-width: 510px; font-size: 18px; line-height: 1.8; color: var(--muted); margin-bottom: 30px; }
.story-text-link { display: block; width: fit-content; margin-top: 24px; font-size: 13px; text-decoration: none; }
.story-text-link:hover { text-decoration: underline; }
.story-visual { isolation: isolate; position: relative; display: flex; flex-direction: column; align-items: center; margin: 0; padding: 34px 20px 22px; border-radius: 160px 160px 24px 24px; background: #e7eadf; overflow: hidden; }
.story-tarot-reading .story-visual { background: #eee5d8; }
.story-city .story-visual { background: #e1e9e5; }
.story-visual img { position: relative; width: 272px; height: auto; border: 1px solid #303b3420; border-radius: 30px; box-shadow: 0 20px 42px #23392a1a; }
.story-visual figcaption { margin-top: 22px; font-size: 11px; color: #526153; text-align: center; }
.story-orbit { position: absolute; z-index: -1; width: 520px; height: 520px; top: 90px; border: 1px solid #315d4920; border-radius: 50%; }
.story-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); padding: 28px 0; }
.story-facts > div { padding: 0 28px; border-left: 1px solid var(--line); }
.story-facts > div:first-child { padding-left: 0; border: 0; }
.story-facts p { margin: 12px 0 0; font: 22px/1.4 var(--serif); }
.story-body { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2.2fr); gap: 70px; padding: 76px 0 35px; }
.story-margin > p:not(.eyebrow) { font: 30px/1.35 var(--serif); }
.story-margin > a { font-size: 13px; }
.story-body .prose h2, .reading-body .prose h2 { margin: 44px 0 20px; font-size: 31px; }
.story-body .prose h2:first-child, .reading-body .prose > :first-child { margin-top: 0; }
.story-body .prose p, .story-body .prose li, .reading-body .prose p, .reading-body .prose li { font-size: 16px; }
.reading-next { padding: 50px 0 86px; }
.reading-next-heading { margin-bottom: 30px; }
.reading-next h2 { font-size: 38px; }
.reading-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.reading-card { display: flex; flex-direction: column; text-decoration: none; padding: 28px; border: 1px solid var(--line); border-radius: 16px; }
.reading-card:focus-visible { background: var(--mint); border-color: #315d4966; box-shadow: 0 8px 20px #303b340a; }
.reading-card:focus-visible h3 { text-decoration-color: currentColor; }
.reading-card h3 { font-size: 28px; margin: 16px 0; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.reading-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.reading-heading { max-width: 850px; padding: 34px 0 44px; }
.reading-heading h1 { margin: 20px 0 28px; font-size: clamp(43px, 5.5vw, 72px); }
.reading-heading h1:last-child { margin-bottom: 0; }
.reading-deck { max-width: 700px; font-size: 20px; color: var(--muted); }
.reading-body { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2.7fr); gap: 64px; border-top: 1px solid var(--line); padding: 42px 0; }
.reading-body aside { min-width: 0; }
.reading-contents { position: sticky; top: 32px; padding-right: 15px; }
.reading-contents ol { list-style: none; padding: 0; margin: 18px 0 0; }
.reading-contents li { margin: 0 0 16px; font-size: 13px; line-height: 1.5; }
.reading-contents a { color: var(--muted); text-decoration: none; }
.reading-contents a:hover { color: var(--green); text-decoration: underline; }
.reading-contents summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; list-style: none; cursor: pointer; font-size: 13px; color: var(--ink); }
.reading-contents summary::-webkit-details-marker { display: none; }
.reading-contents summary:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.reading-body .prose, .story-body .prose { max-width: 680px; }
.reading-body .prose > p:first-child { font-size: 18px; line-height: 1.8; color: var(--ink); margin-bottom: 30px; }
.spread-example { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 28px 0; }
.spread-example > div { background: var(--mint); border: 1px solid var(--line); border-radius: 12px; padding: 22px 16px; }
.spread-example span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 28px; }
.spread-example strong { display: block; font: 24px var(--serif); }
.reading-body .spread-example p { font-size: 13px; line-height: 1.6; margin: 12px 0 0; }
.library-heading { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 50px; align-items: end; padding: 36px 0 52px; }
.library-heading h1 { font-size: clamp(44px, 5.2vw, 70px); margin: 22px 0 0; }
.library-heading > p { font-size: 17px; color: var(--muted); max-width: 340px; margin: 0 0 8px; }
.library-topic { display: grid; grid-template-columns: 1fr 2.2fr; gap: 60px; padding: 40px 0; border-top: 1px solid var(--line); }
.library-topic h2 { font-size: 38px; margin: 12px 0; }
.library-entry { position: relative; isolation: isolate; display: block; text-decoration: none; padding: 20px 0; border-bottom: 1px solid var(--line); }
.library-entry::before { content: ''; position: absolute; z-index: -1; inset: 6px -14px; border-radius: 10px; background: var(--mint); opacity: 0; pointer-events: none; }
.library-entry:first-child::before { top: -10px; }
.library-entry:last-child::before { bottom: -10px; }
.library-entry:focus-visible::before { opacity: 1; }
.library-entry:first-child { padding-top: 0; }
.library-entry:last-child { border-bottom: 0; padding-bottom: 0; }
.library-entry h3 { margin: 0 0 10px; font-size: 30px; color: var(--green); text-decoration: underline; text-decoration-color: #315d4940; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.library-entry p { margin: 0; max-width: 570px; font-size: 15px; color: var(--muted); }
.library-entry:focus-visible h3 { text-decoration-color: currentColor; }
.library-app { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; padding: 42px; margin: 30px 0 86px; border-radius: 20px; background: var(--mint); }
.library-app h2 { font-size: 38px; margin: 14px 0; }
.library-app p { color: var(--muted); }
.library-app nav a { display: block; padding: 16px 0; border-bottom: 1px solid #315d4930; text-decoration: none; }
.library-app nav a:last-child { border: 0; }
.library-app nav a:is(:hover, :focus-visible), .contact-email:is(:hover, :focus-visible) { text-decoration: underline; text-decoration-thickness: 1px; }
@media (max-width: 800px) {
  .story-hero { gap: 30px; }
  .story-copy h1 { letter-spacing: -2px; }
  .story-visual img { width: 224px; }
  .story-body, .reading-body { grid-template-columns: 1fr; gap: 26px; }
  .story-margin { display: none; }
  .reading-contents { position: static; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
  .reading-contents ol { display: flex; flex-wrap: wrap; gap: 10px 24px; }
  .reading-contents li { margin-bottom: 6px; }
  .reading-cards { grid-template-columns: 1fr; }
  .reading-card { padding: 24px; }
  .reading-card h3 { margin: 10px 0; }
  .reading-card p { max-width: 600px; }
  .library-heading { grid-template-columns: 1fr; gap: 24px; }
  .library-heading > p { max-width: 560px; }
  .library-topic { gap: 30px; grid-template-columns: 1fr 2fr; }
}
@media (max-width: 600px) {
  .site-header { flex-wrap: wrap; gap: 16px; padding-block: 23px; }
  .site-header nav { width: 100%; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
  .site-header nav > a { white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
  .site-header summary { padding-block: 6px; }
  .app-navigation > div { left: 0; right: auto; }
  .story-breadcrumb { padding-block: 22px; font-size: 11px; }
  .story-hero { grid-template-columns: 1fr; gap: 36px; padding: 16px 0 40px; }
  .story-copy h1 { font-size: 48px; letter-spacing: -2px; }
  .story-intro { font-size: 16px; }
  .story-visual { max-width: 360px; width: 100%; margin-inline: auto; padding-top: 28px; }
  .story-facts { grid-template-columns: 1fr; gap: 20px; padding-block: 24px; }
  .story-facts > div, .story-facts > div:first-child { padding: 0 0 20px; border: 0; border-bottom: 1px solid var(--line); }
  .story-facts > div:last-child { border: 0; padding-bottom: 0; }
  .story-facts p { font-size: 21px; margin-top: 8px; }
  .story-body { padding-top: 42px; }
  .reading-next { padding: 32px 0 52px; }
  .reading-next h2, .library-app h2 { font-size: 32px; }
  .reading-heading { padding: 22px 0 30px; }
  .reading-heading h1 { letter-spacing: -1.8px; font-size: clamp(34px, 8vw, 44px); }
  .reading-deck { font-size: 17px; }
  .reading-body { padding-block: 26px; }
  .reading-body .prose > p:first-child { font-size: 17px; }
  .story-body .prose h2, .reading-body .prose h2 { font-size: 28px; }
  .spread-example { gap: 7px; }
  .spread-example > div { padding: 16px 10px; }
  .spread-example strong { font-size: 20px; }
  .reading-body .spread-example p { font-size: 12px; }
  .library-heading { padding: 22px 0 32px; }
  .library-heading h1 { font-size: 44px; letter-spacing: -1.8px; }
  .library-topic { grid-template-columns: 1fr; gap: 22px; padding: 28px 0; }
  .library-topic h2 { font-size: 32px; }
  .library-entry h3 { font-size: 27px; }
  .library-app { grid-template-columns: 1fr; gap: 12px; padding: 26px; margin-bottom: 52px; }
}

/* Chinese editorial pages use comfortable character spacing and reading rhythm. */
html:is(:lang(zh), :lang(ja)) :is(.story-copy, .reading-heading, .library-heading) h1 { letter-spacing: 0; line-height: 1.3; text-wrap: balance; }
html:lang(zh-Hans) :is(.story-body, .reading-body) .prose { line-height: 1.95; }
html:lang(zh-Hans) .library-heading em { font-style: normal; }
@media (max-width: 600px) {
  html:lang(zh-Hans) .library-heading h1 { font-size: clamp(34px, 10.7vw, 44px); }
}

/* Small secondary text needs a darker tone on mint surfaces than on paper. */
.library-app p,
.spread-example span,
.reading-card:focus-visible p,
.contact-panel > p:last-child,
.language-options a:focus-visible { color: #5c685e; }

/* Product walkthroughs: readable steps alongside a concrete on-screen example. */
.feature-walkthrough { padding: 62px 0 0; }
.feature-walkthrough > header { max-width: 710px; }
.feature-walkthrough h2 { font-size: clamp(30px, 3.4vw, 44px); margin: 16px 0 20px; text-wrap: balance; }
.feature-walkthrough > header > p:last-child { color: var(--muted); line-height: 1.85; }
.walkthrough-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 24px; padding: 0; margin: 34px 0; list-style: none; }
.walkthrough-steps li { padding: 26px 0 10px; border-top: 1px solid var(--line); }
.walkthrough-number { color: var(--green); font: 28px var(--serif); }
.walkthrough-steps h3 { font-size: 23px; line-height: 1.5; margin: 20px 0 12px; }
.walkthrough-steps p { font-size: 15px; color: var(--muted); line-height: 1.85; }
.walkthrough-example { background: var(--mint); padding: 24px 30px; border-radius: 18px; }
.walkthrough-example summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; list-style: none; cursor: pointer; }
.walkthrough-example summary::-webkit-details-marker { display: none; }
.walkthrough-example summary:focus-visible { outline: 2px solid var(--green); outline-offset: 8px; }
.walkthrough-example .eyebrow, .walkthrough-example .example-title { display: block; }
.walkthrough-example .example-title { font: 24px/1.5 var(--serif); margin-top: 8px; }
.walkthrough-example > div { max-width: 680px; margin-top: 24px; }
.walkthrough-example a { font-size: 13px; }
.walkthrough-example > div:last-child p { font-size: 15px; line-height: 1.9; margin: 0 0 16px; }
.walkthrough-example > div:last-child p:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
  .feature-walkthrough { padding-top: 40px; }
  .walkthrough-steps { grid-template-columns: 1fr; gap: 10px; }
  .walkthrough-steps li { padding-top: 18px; }
  .walkthrough-steps h3 { margin-top: 10px; }
  .walkthrough-example { padding: 22px; }
  .walkthrough-example .example-title { font-size: 22px; }
}
/* Reading-room navigation and illustrated lessons. */
.site-header { position: relative; z-index: 30; }
.app-navigation > div { max-height: min(660px, calc(100dvh - 160px)); overflow-y: auto; }
.app-navigation .navigation-all { border-bottom: 1px solid var(--line); border-radius: 0; margin-bottom: 8px; }
.app-navigation > div a { line-height: 1.5; }
.lesson-figure { display: grid; grid-template-columns: minmax(150px, .85fr) minmax(0, 1.2fr); gap: 32px; align-items: center; margin: 32px 0 40px; padding: 30px; border-radius: 20px; background: #e9ecdf; }
.lesson-figure figure { margin: 0; }
.lesson-figure img { display: block; width: 100%; max-width: 230px; height: auto; margin-inline: auto; border-radius: 12px; }
.lesson-figure.is-card { background: #efe6d7; }
.lesson-figure.is-card img { border-radius: 6px; }
.reading-body .lesson-figure figcaption { font-size: 11px; line-height: 1.7; color: #596252; }
.lesson-figure figcaption { margin-top: 14px; }
.reading-body .lesson-notes p { font-size: 15px; margin: 0 0 20px; }
.reading-body .lesson-notes p:last-child { margin-bottom: 0; }
.lesson-notes strong { display: block; margin-bottom: 6px; font-size: 17px; color: var(--ink); }
.lesson-figure.is-diagram { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; background: #eeece2; }
.lesson-figure.is-diagram img { width: 100%; max-width: none; border-radius: 0; background: #fff; }
.lesson-figure.is-diagram figure { align-self: start; }
.reading-body .lesson-figure.is-diagram figcaption { font-size: 12px; }
.lesson-figure.is-diagram .lesson-notes p { font-size: 14px; line-height: 1.8; }
.lesson-figure.is-diagram .lesson-notes strong { font-size: 16px; }
.zodiac-key { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: -16px 0 32px; }
.zodiac-key span { padding: 9px 8px; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; line-height: 1.5; text-align: center; }
.knowledge-extra { margin: 28px 0; padding: 18px 22px; border: 1px solid var(--line); border-radius: 12px; background: #fffdf8; }
.knowledge-extra summary { cursor: pointer; font-weight: 600; line-height: 1.7; }
.knowledge-extra summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
.knowledge-extra figure { margin: 22px 0 0; }
.knowledge-extra img { display: block; width: 100%; max-width: 440px; height: auto; margin-inline: auto; background: #fff; }
.knowledge-extra figcaption { margin-top: 18px; font-size: 13px; line-height: 1.8; }
.lesson-figure.is-panorama { display: block; }
.lesson-figure.is-panorama img { width: 100%; max-width: none; border-radius: 6px; }
.reading-body .lesson-figure.is-panorama figcaption { font-size: 12px; text-align: left; }
.lesson-figure.is-panorama .lesson-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 26px; }
.lesson-figure.is-panorama .lesson-notes p { margin: 0; font-size: 14px; line-height: 1.8; }
.lesson-figure.is-panorama .lesson-notes strong { font-size: 16px; }
.knowledge-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 30px 0; }
.knowledge-comparison figure { margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: #fffdf8; }
.knowledge-comparison .comparison-image { height: 240px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.knowledge-comparison img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.knowledge-comparison figcaption { font-size: 14px; line-height: 1.8; }
.knowledge-comparison figcaption strong { display: block; color: var(--ink); font: 23px/1.5 var(--serif); margin-bottom: 10px; }
.reading-body .lesson-note { border-left: 2px solid #9b8052; padding: 8px 0 8px 22px; margin-block: 28px; color: var(--ink); }
.reading-body .lesson-note p { margin: 0; }
.card-study { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 30px 0 12px; }
.card-study figure { margin: 0; min-width: 0; }
.card-study img { display: block; width: 100%; max-width: 180px; height: auto; border-radius: 6px; margin: 14px auto; }
.card-study figcaption { font-size: 14px; line-height: 1.7; }
.card-study figcaption strong { display: block; margin-bottom: 6px; }
.reading-body .card-study figcaption p { font-size: inherit; line-height: inherit; margin: 0 0 10px; }
.reading-body .card-study figcaption p:last-child { margin-bottom: 0; }
.card-study .card-position { font-size: 12px; color: var(--muted); }
.lesson-sources { margin-top: 42px; padding: 22px 0; border-top: 1px solid var(--line); }
.reading-body .lesson-sources p, .reading-body .lesson-sources li { font-size: 14px; }
.lesson-sources ul { padding-left: 20px; }
.concept-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin: 26px 0; }
.concept-grid > div { padding: 18px; border-top: 2px solid var(--line); background: #fffdf8; border-radius: 0 0 10px 10px; }
.concept-grid dt { font-weight: 600; margin-bottom: 8px; }
.concept-grid dd { margin: 0; color: #4d594f; font-size: 15px; line-height: 1.8; }
.reading-body .reading-points, .story-body .reading-points { margin-block: 24px; padding-left: 24px; }
.reading-body .reading-points li, .story-body .reading-points li { padding-left: 4px; margin-bottom: 14px; }
.reading-example { margin: 26px 0; padding: 20px 24px; border-left: 3px solid var(--gold); background: #eeece2; border-radius: 0 12px 12px 0; }
.reading-example p { margin: 0; }
.question-examples { margin: 26px 0; }
.question-examples > div { display: grid; grid-template-columns: minmax(90px, 1fr) 3fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.question-examples > div:first-child { border-top: 1px solid var(--line); }
.question-examples dt { font-weight: 600; }
.question-examples dd { margin: 0; }
@media (max-width: 600px) {
  .question-examples > div { grid-template-columns: 1fr; gap: 8px; }
}
.reading-detail { padding: 18px 20px; margin: 26px 0; border: 1px solid var(--line); border-radius: 12px; background: #fffdf8; }
.reading-detail summary { cursor: pointer; font-weight: 600; line-height: 1.7; }
.reading-detail summary:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; }
.reading-detail > :last-child { margin-bottom: 0; }
.reading-body .reading-detail p, .reading-body .reading-detail li { font-size: 15px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
/* Keep reading links recognizable at rest, with feedback that does not reflow text. */
.reading-body .prose a, .story-body .prose a { text-decoration-color: #315d4970; text-decoration-thickness: 1px; }
.reading-body .prose a:focus-visible, .story-body .prose a:focus-visible { color: var(--green); text-decoration-color: currentColor; background-color: #315d4910; }
@media (hover: hover) and (pointer: fine) {
  .app-navigation > div a:hover { background: var(--mint); box-shadow: inset 2px 0 var(--green); }
  .library-entry:hover::before { opacity: 1; }
  .library-entry:hover h3, .reading-card:hover h3 { text-decoration-color: currentColor; }
  .reading-card:hover { background: var(--mint); border-color: #315d4966; box-shadow: 0 8px 20px #303b340a; }
  .reading-card:hover p { color: #5c685e; }
  .reading-body .prose a:hover, .story-body .prose a:hover { text-decoration-color: currentColor; background-color: #315d4910; }
}
@media (prefers-reduced-motion: no-preference) {
  .app-navigation > div a { transition: color .18s ease, background-color .18s ease, box-shadow .18s ease; }
  .library-entry::before { transition: opacity .2s ease; }
  .library-entry > div { transition: transform .22s cubic-bezier(.22, 1, .36, 1); }
  .library-entry h3, .reading-card h3 { transition: color .18s ease, text-decoration-color .18s ease; }
  .reading-card { transition: transform .22s cubic-bezier(.22, 1, .36, 1), background-color .2s ease, border-color .2s ease, box-shadow .2s ease; }
  .reading-card p { transition: color .18s ease; }
  .reading-body .prose a, .story-body .prose a { transition: color .18s ease, text-decoration-color .18s ease, background-color .18s ease; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .library-entry:hover > div { transform: translateX(4px); }
  .reading-card:hover { transform: translateY(-3px); }
  .reading-card:active { transform: translateY(-1px); }
}
@media (prefers-reduced-motion: reduce) {
  .disclosure-chevron { transition: none; }
}
@media (max-width: 600px) {
  .site-header .app-navigation { position: static; }
  .site-header .app-navigation > div { top: calc(100% - 5px); left: 0; right: 0; width: auto; max-height: calc(100dvh - 150px); }
  .lesson-figure { gap: 24px; padding: 24px; grid-template-columns: 1fr; }
  .lesson-figure.is-diagram { grid-template-columns: 1fr; padding: 20px; gap: 24px; }
  .zodiac-key { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .zodiac-key span { padding: 8px 3px; font-size: 12px; }
  .knowledge-extra { padding: 16px; }
  .lesson-figure.is-panorama { padding: 18px; }
  .lesson-figure.is-panorama .lesson-notes { grid-template-columns: 1fr; gap: 20px; }
  .knowledge-comparison { grid-template-columns: 1fr; gap: 16px; }
  .knowledge-comparison .comparison-image { height: 220px; }
  .lesson-figure img { max-width: 210px; }
  .lesson-figure figcaption { text-align: center; }
  .card-study { grid-template-columns: 1fr; gap: 24px; }
  .card-study figure { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 12px 18px; align-items: start; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
  .card-study .card-position { grid-column: 1 / -1; }
  .card-study img { width: 86px; margin: 0; }
  .card-study figcaption { font-size: 14px; }
  .card-study .card-position { font-size: 11px; }
  .reading-detail { padding: 16px; }
  .reading-example { padding: 18px; }
}

.cosmic-header {
  position: relative;
  z-index: 20;
  background: #000;
  color: #e9e8df;
}
.cosmic-header .site-header { border-color: #e4ead11c; }
.cosmic-header .wordmark i { color: #ccba8a; }
.cosmic-header a:hover { color: #e7cfa0; }
.cosmic-header :is(a, summary):focus-visible { outline-color: #e7cfa0; }
.cosmic-header .app-navigation > div {
  background: #11191f;
  border-color: #c6d2bf29;
  box-shadow: 0 18px 40px #0006;
}
.cosmic-header .app-navigation > div a:is(:hover, :focus-visible) {
  background: #242e30;
  color: #f2dfb6;
  box-shadow: inset 2px 0 #c7b88c;
}
.cosmic-hero {
  position: relative;
  isolation: isolate;
  --dawn-height: clamp(72px, 9svh, 96px);
  background: #000;
  color: #f2f0e8;
}
.cosmic-stage {
  --cosmic-header-height: 118px;
  position: relative;
  display: grid;
  align-items: center;
  /* Leave the welcome copy in view; longer translations can grow naturally. */
  min-height: calc(100svh - var(--cosmic-header-height) - var(--dawn-height) - 160px);
  background: #000;
}
.cosmic-hero .hero {
  position: relative;
  z-index: 2;
  padding-block: 52px 24px;
  pointer-events: none;
}
.cosmic-hero .hero-copy { pointer-events: none; }
.cosmic-hero .hero-copy > :is(p, h1),
.cosmic-hero .hero-actions > :is(a, button) { pointer-events: auto; }
.cosmic-hero .hero-copy > .eyebrow { width: fit-content; }
.cosmic-hero .hero-copy .eyebrow { color: #adb9ae; }
.cosmic-hero h1 { text-shadow: 0 2px 32px #000; }
.cosmic-hero h1 em { color: #d4c498; }
.cosmic-hero .intro { color: #b2bbb5; }
.cosmic-hero .text-link { color: #d8ddcf; }
.cosmic-hero .text-link:hover { color: #f2dfb6; }
.cosmic-hero a:focus-visible { outline-color: #e7cfa0; }
.cosmic-hero .download-button-featured {
  min-height: 60px;
  gap: 12px;
  padding: 15px 22px;
  border: 1px solid #ecd7a6;
  border-radius: 12px;
  background: linear-gradient(135deg, #ead8ad, #cdb781);
  color: #25271f;
  box-shadow: inset 0 1px 0 #fff5d966, 0 7px 28px #d3b67a20;
  font-size: 15px;
  font-weight: 600;
}
.cosmic-hero a.download-button-featured:hover { background: #f0dfb8; color: #191d17; }
.cosmic-hero .download-button-featured:disabled { opacity: 1; cursor: default; }
.download-icon { flex: 0 0 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.cosmic-hero .download-status {
  border: 1px solid #514a3230;
  border-radius: 5px;
  padding: 3px 7px;
  background: #fffae72b;
  color: #51482e;
  font-size: 11px;
  font-weight: 500;
}
.cosmic-hero .hero-art {
  background: transparent;
  border-radius: 0;
  overflow: visible;
}
.cosmic-hero .g-portrait {
  filter: drop-shadow(0 18px 18px #0006);
}
.cosmic-hero .g-motion {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  filter: none;
  pointer-events: none;
}
.g-motion-poster,
.g-motion video {
  position: absolute;
  top: 0;
  left: 50%;
  width: auto;
  height: 100%;
  max-width: none;
  /* The wider transparent canvas keeps a full tail swing. Size by height so
     extra side room does not shrink G. */
  transform: translateX(-50%);
  object-fit: contain;
}
.g-motion video { opacity: 0; }
.g-motion[data-state="playing"] .g-motion-poster { opacity: 0; }
.g-motion[data-state="playing"] video { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .g-motion[data-state] .g-motion-poster { opacity: 1; }
  .g-motion[data-state] video { opacity: 0; }
}
.cosmic-space {
  --body-scale: 1;
  --body-floor: 0px;
  position: absolute;
  z-index: 1;
  isolation: isolate;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.cosmic-depth {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent, #000 16%, #000 72%, transparent);
}
.cosmic-milkyway {
  position: absolute;
  top: -30%;
  left: 12%;
  width: 110%;
  height: 160%;
  max-width: none;
  object-fit: cover;
  transform: rotate(-24deg);
  opacity: .52;
  filter: saturate(.65);
  mask-image: radial-gradient(ellipse at 58% 48%, #000 12%, #000b 42%, transparent 72%);
}
.cosmic-depth::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #000c 0%, #0009 30%, transparent 68%),
    radial-gradient(ellipse at 72% 48%, transparent 25%, #0007 75%);
}
.cosmic-stars {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: #e2e7ed;
  color: #c9dcf3;
  mask-image: linear-gradient(180deg, #0008, #000 20%, #000 80%, transparent);
}
.cosmic-star-group { opacity: .92; }
.cosmic-star { opacity: var(--star-peak, .4); }
.cosmic-star-group:nth-of-type(3n) { fill: #e7d0a5; }
.cosmic-star-group:nth-of-type(4n) { fill: #c0d6e7; }
.cosmic-star-bright {
  fill: #fff6df;
}
.cosmic-comet {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 3px;
  height: 3px;
  margin: -1.5px;
  border-radius: 50%;
  background: #fff9eb;
  box-shadow: 0 0 7px 1px #dce9f178;
  opacity: 0;
  pointer-events: none;
}
.cosmic-comet::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 1px;
  width: var(--comet-tail, 160px);
  height: 2px;
  transform-origin: left center;
  transform: translateY(-50%) rotate(var(--comet-angle, -35deg));
  background: linear-gradient(90deg, #f6eddac9, #c7dceb66 24%, #b4c9dc1f 60%, transparent);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.cosmic-planet {
  position: absolute;
  z-index: 2;
  --body-size: calc(var(--body-base) * var(--body-scale) + var(--body-floor));
  --planet-width: calc(var(--body-size) * var(--image-factor));
  width: var(--planet-width);
  aspect-ratio: 1;
  left: clamp(calc(var(--planet-width) / 2 + 14px), calc(var(--slot-x) + var(--slot-offset-x, 0px)), calc(100% - var(--planet-width) / 2 - 14px));
  top: calc(var(--slot-y) + var(--slot-offset-y, 0px));
  transform: translate(-50%, -50%);
  pointer-events: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d7ceb9;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.cosmic-visual {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  transform: rotate(var(--planet-angle, 0deg)) scaleX(var(--planet-flip, 1)) scale(var(--planet-zoom, 1));
  pointer-events: none;
}
.cosmic-visual img { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; clip-path: circle(var(--body-radius) at var(--body-cx) var(--body-cy)); }
.cosmic-planet[hidden] { display: none; }
.cosmic-planets-canvas { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.cosmic-space[data-renderer='webgl'] .cosmic-planet { z-index: 3; }
.cosmic-space[data-renderer='webgl'] .cosmic-planet:not(.cosmic-saturn) { --image-factor: 1 !important; aspect-ratio: 1; height: var(--planet-width); }
.cosmic-space[data-renderer='webgl'] .cosmic-visual > :is(img, .solar-corona, .saturn-ring-activity) { visibility: hidden; }
.cosmic-space[data-renderer='webgl'] :is(.solar-prominence, .saturn-ring-current) { animation: none; }
.cosmic-planet[data-active='true'] .cosmic-visual { filter: brightness(1.06); }
.cosmic-planet::before { content: ''; position: absolute; inset: -10px; min-width: 44px; min-height: 44px; }
.cosmic-planet:focus-visible { outline: 1px solid #d4c498b3; outline-offset: 8px; border-radius: 50%; }
.cosmic-planet[aria-expanded='true'] img { filter: brightness(1.16); }
.cosmic-planet:disabled { cursor: default; }
.cosmic-planet-name {
  position: absolute;
  left: 50%;
  top: calc(100% + 12px);
  transform: translateX(-50%);
  padding: 3px 8px;
  background: #090b0bdb;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}
.cosmic-planet:focus-visible .cosmic-planet-name { opacity: 1; }
@media (hover: hover) {
  .cosmic-planet:hover .cosmic-planet-name { opacity: 1; }
}
.cosmic-planet[aria-expanded='true'] .cosmic-planet-name { opacity: 0; }
.cosmic-hit-area { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.cosmic-impact { position: absolute; width: 0; height: 0; pointer-events: none; }
.cosmic-impact::before {
  content: '';
  position: absolute;
  left: -4px;
  top: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff5d5 0%, #d9a66f88 40%, transparent 72%);
  opacity: 0;
}
.cosmic-impact i { position: absolute; width: 2px; height: 2px; background: #e2bf8a; border-radius: 50%; opacity: 0; }
.cosmic-planet-card {
  position: fixed;
  z-index: 10;
  width: min(292px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  padding: 25px;
  border: 1px solid #d4c49840;
  border-radius: 16px;
  background: #101411f5;
  box-shadow: 0 18px 54px #0008;
  color: #eeeae0;
  text-align: left;
}
.cosmic-planet-card[hidden] { display: none; }
.cosmic-planet-card:focus { outline: none; }
.cosmic-card-close {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #c4c8bc;
  font-size: 24px;
  cursor: pointer;
}
.cosmic-card-close:hover { color: #fff5d5; }
.cosmic-card-close:focus-visible { outline: 1px solid #d4c498; border-radius: 8px; }
.cosmic-card-eyebrow { margin: 0 20px 12px 0; color: #aaa99b; font-size: 11px; letter-spacing: .08em; }
.cosmic-planet-card h2 { margin: 0 0 6px; font-size: 24px; line-height: 1.25; color: #f0e5cc; }
.cosmic-card-theme { margin: 0 0 16px; color: #c5b78f; font-size: 12px; }
.cosmic-card-description { margin: 0 0 20px; color: #bdc4ba; font-size: 14px; line-height: 1.8; }
.cosmic-card-link { color: #e0d0a8; font-size: 13px; text-decoration: underline; text-underline-offset: 5px; }
.cosmic-card-link:hover { color: #fff1cb; }
.cosmic-planet[data-slot='upper-left'] { --slot-x: 16%; --slot-y: 12%; }
.cosmic-planet[data-slot='upper-middle'] { --slot-x: 49%; --slot-y: 18%; }
.cosmic-planet[data-slot='upper-right'] { --slot-x: 88%; --slot-y: 20%; }
.cosmic-planet[data-slot='lower-left'] { --slot-x: 4.5%; --slot-y: 70%; }
.cosmic-planet[data-slot='lower-middle'] { --slot-x: 56%; --slot-y: 81%; }
.cosmic-moon img { object-fit: contain; }
.cosmic-venus img { object-position: left center; }
.cosmic-jupiter { aspect-ratio: 4 / 5; --planet-flip: -1; }
.cosmic-jupiter img { object-fit: contain; clip-path: ellipse(62% 47% at 72% 50%); }
.cosmic-saturn { aspect-ratio: 1920 / 929; --planet-angle: -18deg; }
.cosmic-saturn img { object-fit: contain; clip-path: url(#cosmic-saturn-silhouette); }
.cosmic-sun img { filter: brightness(.85) saturate(.82); }
.cosmic-sun[aria-expanded='true'] img { filter: brightness(.95) saturate(.85); }
/* Local surface activity only: the sphere, its hit area and the ring plane
   stay fixed. Reuse the photograph's real corona outside the opaque disk. */
.solar-corona {
  position: absolute;
  inset: 0;
  mask-image: radial-gradient(circle at var(--body-cx) var(--body-cy), transparent calc(var(--body-size) * .47), #000 calc(var(--body-size) * .515), #000 calc(var(--body-size) * .59), transparent calc(var(--body-size) * .7));
  mix-blend-mode: screen;
  opacity: .55;
  pointer-events: none;
}
.solar-prominence {
  position: absolute;
  inset: 0;
  background: url('/assets/cosmos/sun.jpg') center / cover;
  mask-image: radial-gradient(ellipse 65% 65% at var(--plume-x) var(--plume-y), #000 10%, #0009 40%, transparent 85%);
  transform-origin: var(--body-cx) var(--body-cy);
  opacity: .45;
  pointer-events: none;
}
.saturn-ring-activity { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.solar-prominence:nth-child(1) { --activity-cycle: 14s; --activity-delay: -5s; --plume-x: 80%; --plume-y: 20%; }
.solar-prominence:nth-child(2) { --activity-cycle: 19s; --activity-delay: -13s; --plume-x: 80%; --plume-y: 80%; }
.solar-prominence:nth-child(3) { --activity-cycle: 16s; --activity-delay: -2s; --plume-x: 20%; --plume-y: 80%; }
.solar-prominence:nth-child(4) { --activity-cycle: 12s; --activity-delay: -8s; --plume-x: 20%; --plume-y: 20%; }
.saturn-ring-current:nth-child(1) { --ring-cycle: 88s; --ring-delay: -23s; --ring-width: 6; --ring-opacity: .21; }
.saturn-ring-current:nth-child(2) { --ring-cycle: 69s; --ring-delay: -41s; --ring-width: 8; --ring-opacity: .17; }
.saturn-ring-current:nth-child(3) { --ring-cycle: 53s; --ring-delay: -9s; --ring-width: 5; --ring-opacity: .13; }
.saturn-ring-current {
  fill: none;
  stroke: #ded1af;
  stroke-width: var(--ring-width);
  stroke-linecap: round;
  stroke-dasharray: 40 115 8 177 65 210 15 370;
  opacity: var(--ring-opacity);
  filter: blur(.8px);
}
.cosmic-dawn {
  --dawn-curve: clamp(70px, 7vw, 100px);
  position: relative;
  z-index: 3;
  height: var(--dawn-height);
  overflow: hidden;
  background: #000;
  pointer-events: none;
}
.cosmic-dawn::before {
  content: '';
  position: absolute;
  z-index: 1;
  top: 12px;
  left: -30%;
  width: 160%;
  height: calc(100% + var(--dawn-curve));
  /* Keep the horizon shallow at every width; resolve to paper before the seam. */
  border-radius: 50% 50% 0 0 / var(--dawn-curve) var(--dawn-curve) 0 0;
  background: linear-gradient(180deg, #efe5d5 0, #f4eee3 24px, var(--paper, #f7f3e9) 56px);
  box-shadow: 0 -1px 2px #e3cca166, 0 -6px 16px #d2ad6a1f;
}
.cosmic-dawn::after {
  content: '';
  position: absolute;
  inset: 0 8% auto;
  height: 64px;
  background: radial-gradient(ellipse at 50% 65%, #c39c5a24, #a17d3b0d 36%, transparent 68%);
}
.home-cosmos .welcome { border-top: 0; padding-top: 20px; }
@keyframes cosmic-twinkle {
  0%, 100% { opacity: calc(var(--star-peak) * .12); }
  25% { opacity: calc(var(--star-peak) * .55); }
  42% { opacity: var(--star-peak); }
  62% { opacity: calc(var(--star-peak) * .25); }
  78% { opacity: calc(var(--star-peak) * .6); }
  91% { opacity: calc(var(--star-peak) * .18); }
}
@keyframes cosmic-vanish {
  0%, 12%, 100% { opacity: 0; }
  30% { opacity: calc(var(--star-peak) * .24); }
  45% { opacity: var(--star-peak); }
  62% { opacity: calc(var(--star-peak) * .55); }
  82% { opacity: calc(var(--star-peak) * .08); }
  92% { opacity: 0; }
}
@keyframes cosmic-star-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(var(--drift-x), var(--drift-y)); }
}
@keyframes cosmic-comet-flight {
  0% { opacity: 0; transform: translate3d(var(--comet-start-x), var(--comet-start-y), 0); }
  12% { opacity: .78; }
  38% { opacity: var(--comet-mid-opacity, .42); }
  72% { opacity: var(--comet-late-opacity, .12); }
  100% { opacity: var(--comet-end-opacity, 0); transform: translate3d(var(--comet-end-x), var(--comet-end-y), 0); }
}
@keyframes solar-prominence-rise {
  0%, 100% { opacity: .16; transform: scale(.98); }
  38% { opacity: .75; transform: scale(1.025); }
  65% { opacity: .48; transform: scale(1.06); }
  84% { opacity: .2; transform: scale(1.08); }
}
@keyframes saturn-ring-orbit {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}
@keyframes cosmic-impact-flash {
  0% { opacity: .9; transform: scale(.55); }
  24% { opacity: .7; transform: scale(1.7); }
  100% { opacity: 0; transform: scale(2.4); }
}
@keyframes cosmic-impact-spark {
  0% { opacity: .8; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--spark-x), var(--spark-y)) scale(.3); }
}
@media (prefers-reduced-motion: no-preference) {
  .cosmic-visual { transition: transform .38s cubic-bezier(.2, .7, .2, 1), filter .25s ease; }
  .cosmic-planet[data-active='true'] { --planet-zoom: 1.12; }
  .cosmic-planet-name { transition: opacity .25s; }
  .cosmic-comet[data-flying] { animation: cosmic-comet-flight var(--comet-duration, 2s) linear both; }
  .cosmic-star { animation: cosmic-twinkle var(--star-cycle) var(--star-delay) ease-in-out infinite; }
  .cosmic-star-vanishing { animation-name: cosmic-vanish; }
  .cosmic-star-group { animation: cosmic-star-drift var(--drift-cycle) var(--drift-delay) ease-in-out infinite; }
  .solar-prominence { animation: solar-prominence-rise var(--activity-cycle) var(--activity-delay) ease-in-out infinite; }
  .saturn-ring-current { animation: saturn-ring-orbit var(--ring-cycle) var(--ring-delay) linear infinite; }
  .cosmic-stage[data-motion='paused'] :is(.cosmic-star-group, .cosmic-star, .solar-prominence, .saturn-ring-current) { animation-play-state: paused; }
  .cosmic-planet[data-impacting] .cosmic-impact::before { animation: cosmic-impact-flash .65s ease-out both; }
  .cosmic-planet[data-impacting] .cosmic-impact i { animation: cosmic-impact-spark .65s ease-out both; }
}
@media (min-width: 1001px) {
  .cosmic-hero .hero { padding-top: clamp(48px, 8svh, 96px); }
  .cosmic-hero .hero-art {
    height: clamp(360px, calc(100svh - 440px), 540px);
    aspect-ratio: auto;
  }
  .cosmic-planet {
    /* Grow with both viewport dimensions, with a cap for ultrawide screens.
       The increasing function preserves the relative sphere diameter order. */
    --body-size: clamp(calc(var(--body-base) * 1.2), calc(var(--body-base) * .95 + min(4.5vw, 6svh)), calc(var(--body-base) * 1.9));
    top: clamp(calc(var(--body-size) * .6 + 14px), calc(var(--slot-y) + var(--slot-offset-y, 0px)), calc(100% - var(--body-size) * .6 - 14px));
  }
  .cosmic-planet[data-slot='upper-left'] { --slot-x: 32%; }
  .cosmic-planet[data-slot='upper-middle'] { --slot-x: 57%; }
  .cosmic-planet[data-slot='upper-right'] { --slot-y: 15%; }
}
@media (min-width: 1001px) and (max-height: 820px) {
  .cosmic-hero .hero { padding-top: 48px; }
  .cosmic-hero h1 { font-size: clamp(58px, 5vw, 68px); }
  .cosmic-hero .hero-copy .eyebrow { margin-bottom: 24px; }
  .cosmic-hero .intro { margin-bottom: 24px; }
  /* The Sun needs the wider gap beside G when the headline sits higher. */
  .cosmic-planet[data-slot='upper-left'] { --slot-x: 59%; }
  .cosmic-planet[data-slot='upper-middle'] { --slot-x: 32%; }
}
@media (min-width: 1001px) and (max-width: 1150px) {
  .cosmic-hero .hero-copy > .eyebrow { max-width: 170px; }
}
@media (min-width: 601px) and (max-width: 1000px) {
  .cosmic-space { --body-scale: .72; --body-floor: 4px; }
  .cosmic-planet[data-slot='upper-left'] { --slot-x: 18%; --slot-y: 8%; }
  .cosmic-planet[data-slot='upper-middle'] { --slot-x: 49%; --slot-y: 8%; }
  .cosmic-planet[data-slot='upper-right'] { --slot-x: 86%; --slot-y: 18%; }
  .cosmic-planet[data-slot='lower-left'] { --slot-x: 5.5%; --slot-y: 83%; }
  .cosmic-planet[data-slot='lower-middle'] { --slot-x: 49%; --slot-y: 83%; }
}
@media (max-width: 800px) {
  .cosmic-stage { --cosmic-header-height: 90px; }
}
@media (max-width: 600px) {
  .cosmic-stage { --cosmic-header-height: 136px; }
  .cosmic-hero { --dawn-height: 48px; }
  .cosmic-hero .hero { padding-block: 22px 6px; gap: 12px; }
  .cosmic-hero .hero-copy { padding-right: 0; }
  .cosmic-hero .hero-copy .eyebrow { margin-bottom: 14px; }
  .cosmic-hero h1 { margin-bottom: 14px; }
  .cosmic-hero .intro { margin-bottom: 20px; }
  .cosmic-hero:lang(ja) .hero-actions { column-gap: 12px; }
  .cosmic-hero:lang(ja) .download-button-featured { padding-inline: 14px; gap: 8px; font-size: 13px; }
  .cosmic-hero:lang(ja) .download-status { padding-inline: 5px; font-size: 10px; }
  .cosmic-hero .hero-copy > .eyebrow { max-width: calc(100% - 104px); }
  .cosmic-hero .hero-art {
    max-width: 360px;
    height: clamp(190px, 27svh, 280px);
    aspect-ratio: auto;
  }
  .cosmic-space { --body-scale: .48; --body-floor: 14px; }
  .cosmic-milkyway {
    top: 16%;
    left: -70%;
    width: 250%;
    height: 100%;
    opacity: .4;
    transform: rotate(-32deg);
  }
  .cosmic-depth::after {
    background: linear-gradient(180deg, #000a 0%, #0008 35%, transparent 65%, #0005);
  }
  .cosmic-distant-stars { opacity: .7; }
  /* Keep one light, one outer planet and one small body on phone layouts.
     CSS also applies before JS and when the optional renderer is unavailable. */
  .cosmic-planet:is([data-slot='upper-middle'], [data-slot='lower-middle']) { display: none; }
  .cosmic-planet[data-slot='upper-left'] { --slot-x: 82%; --slot-y: 50px; }
  .cosmic-planet[data-slot='upper-middle'] { --slot-x: 88%; --slot-y: 50%; }
  .cosmic-planet[data-slot='upper-right'] { --slot-x: 82%; --slot-y: 57%; }
  .cosmic-planet[data-slot='lower-left'] { --slot-x: 10%; --slot-y: 70%; }
  .cosmic-planet[data-slot='lower-middle'] { --slot-x: 16%; --slot-y: 88%; }
  .cosmic-dawn { --dawn-curve: 60px; }
  .cosmic-dawn::before {
    top: 8px;
    left: -40%;
    width: 180%;
    background: linear-gradient(180deg, #efe5d5 0, #f4eee3 16px, var(--paper, #f7f3e9) 40px);
  }
  .cosmic-dawn::after { height: 40px; }
  .home-cosmos .welcome { padding-top: 12px; }
  .home-cosmos .welcome > .eyebrow { margin-bottom: 16px; }
}


/* Selected navigation: quiet paper, a fine divider, and four visible destinations. */
.site-header{position:relative;min-height:104px;padding-block:20px;border-bottom:1px solid #d5d9ca;gap:32px;z-index:90}
.site-header .wordmark{font-size:29px;letter-spacing:-1px}
.site-header .site-mobile-menu{display:none}
.site-header .main-navigation{gap:30px;font-size:13px}
.site-header .main-navigation>a{display:inline-flex;align-items:center;white-space:nowrap}
.site-header .main-navigation>a,.site-header .app-navigation>summary{min-height:44px;padding:12px 0}
.site-header .main-navigation :is(a,summary)[aria-current]{text-decoration:none;color:var(--green)}
.site-header .main-navigation>a[aria-current]{box-shadow:inset 0 -1px #aa874c}
.site-header .main-navigation>a:hover{color:var(--green)}
.site-header .app-navigation>div{left:-20px;top:calc(100% + 8px);width:230px;padding:10px;border-radius:4px;background:var(--paper);border:1px solid var(--line);box-shadow:0 16px 40px #303b3417;font:13px/1.5 var(--sans);color:var(--ink)}
.site-header :is(a,summary):focus-visible{outline:2px solid var(--gold);outline-offset:5px}
.cosmic-header .app-navigation>div{background:#11191f;border-color:#c6d2bf29;color:#e9e8df}
.cosmic-header .main-navigation :is(a,summary)[aria-current],.cosmic-header .main-navigation>a:hover{color:#e7cfa0}
@media(max-width:800px){
  .site-header{min-height:80px;flex-direction:row;flex-wrap:nowrap;padding-block:14px;gap:20px}
  .site-header .site-desktop-navigation{display:none}
  .site-header .site-mobile-menu{display:block}
  .site-mobile-menu>summary{display:flex;align-items:center;gap:12px;min-height:44px;list-style:none;font:13px var(--sans);cursor:pointer;letter-spacing:0}
  .site-mobile-menu>summary::-webkit-details-marker{display:none}
  .menu-lines{position:relative;width:19px;height:12px;border-block:1px solid currentColor}
  .menu-lines::after{content:'';position:absolute;left:0;right:0;top:50%;border-top:1px solid currentColor;transform:translateY(-50%)}
  .site-header .site-mobile-navigation{position:absolute;z-index:80;left:0;right:0;top:100%;display:flex;flex-direction:column;align-items:stretch;gap:0;width:auto;max-height:calc(100dvh - 100px);overflow:auto;padding:14px 20px 20px;border:1px solid var(--line);border-radius:0 0 5px 5px;background:var(--paper);box-shadow:0 18px 30px #303b3414;font:14px var(--sans);text-align:left;letter-spacing:0}
  .site-mobile-navigation>a,.site-mobile-navigation>.app-navigation{border-bottom:1px solid var(--line)}
  .site-header .site-mobile-navigation>a{padding:14px 0;min-height:54px}
  .site-mobile-navigation .app-navigation>summary{justify-content:space-between;padding:14px 0;min-height:54px}
  .site-header .site-mobile-navigation .app-navigation>div{position:static;width:auto;max-height:none;padding:0 0 12px 12px;border:0;border-radius:0;background:transparent;box-shadow:none}
  .site-header .site-mobile-navigation>a[aria-current]{box-shadow:inset 2px 0 #aa874c;padding-left:14px;font-weight:600}
  .cosmic-header .site-mobile-navigation{background:#11191f;border-color:#c6d2bf29}
  .cosmic-header .site-mobile-navigation>a,.cosmic-header .site-mobile-navigation>.app-navigation{border-color:#c6d2bf29}
}
