/* Yes Universe: "Night Garden". Fonts are self-hosted; no external requests. */
@font-face { font-family: "Cormorant"; src: url(/fonts/cormorant-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url(/fonts/cormorant-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url(/fonts/cormorant-500i.woff2) format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument"; src: url(/fonts/instrument-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument"; src: url(/fonts/instrument-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --sky: #0e1c1a;
  --leaf: #172b27;
  --moon: #f3eada;
  --mist: #aab9af;
  --star: #e5c27e;
  --rose: #e9a9a2;
  --lilac: #c0b1e3;
  --sage: #9dbfa4;
  --ink: #10201d;
  --line: rgba(243, 234, 218, .16);
  --glow: #1e3a33;
  --measure: 34rem;
  color-scheme: dark light;
}
@media (prefers-color-scheme: light) {
  :root {
    --sky: #e4ebe3; --leaf: #ffffff; --moon: #14302a; --mist: #4a5f56; --star: #8a5e17;
    --line: rgba(20, 48, 42, .16); --glow: #f6f1e4;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--sky);
  color: var(--moon);
  font: 400 1.0625rem/1.6 "Instrument", system-ui, sans-serif;
  /* a quiet star field: two tiled layers of dots, no images */
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(243,234,218,.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 32%, rgba(243,234,218,.4) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 38% 76%, rgba(243,234,218,.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 82%, rgba(243,234,218,.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 8%, rgba(243,234,218,.45) 50%, transparent 51%);
  background-size: 340px 300px, 410px 380px, 520px 460px, 300px 340px, 460px 420px;
}
@media (prefers-color-scheme: light) { body { background-image: none; } }

a { color: var(--star); text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--star); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: "Cormorant", Georgia, serif; font-weight: 600; letter-spacing: -.01em; line-height: 1.02; margin: 0; }
h1 { font-size: clamp(3rem, 8vw, 5.6rem); }
h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h3 { font-size: 1.75rem; line-height: 1.1; }
p { margin: 0 0 1em; max-width: var(--measure); }
.soft { font-family: "Cormorant", Georgia, serif; font-weight: 500; font-size: 1.45rem; line-height: 1.3; }
.mist { color: var(--mist); }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

/* ---------------------------------------------------------------- header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--moon); text-decoration: none; font: 600 1.5rem/1 "Cormorant", serif; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.lang { font-size: .95rem; color: var(--mist); }
.lang a { color: var(--moon); }

/* ---------------------------------------------------------------- hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding: 3rem 0 4.5rem; position: relative; }
.mantra { font: 500 1.15rem/1.3 "Cormorant", serif; font-style: italic; color: var(--star); margin-bottom: .8rem; }
.hero .lede { font: 500 1.6rem/1.3 "Cormorant", serif; margin-top: 1.4rem; max-width: 28rem; }
.hero .badges { margin-top: 2rem; }
.orrery { position: absolute; inset: -6rem -10rem auto auto; width: 560px; height: 560px; pointer-events: none; opacity: .9; z-index: -1; }
.window {
  position: relative; justify-self: center; width: min(340px, 82vw);
  padding: 18px 18px 0; border: 1px solid var(--star);
  border-radius: 999px 999px 26px 26px / 260px 260px 26px 26px;
  background: radial-gradient(circle at 50% 22%, var(--glow), transparent 70%);
}
.window img { border-radius: 999px 999px 18px 18px / 240px 240px 18px 18px; aspect-ratio: 600 / 1300; object-fit: cover; object-position: top; }
.window::after { /* the sill */ content: ""; position: absolute; left: -26px; right: -26px; bottom: -1px; border-bottom: 1px solid var(--star); }

.badges { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 52px; padding: .55rem 1.1rem .55rem .9rem;
  border-radius: 14px; background: var(--moon); color: var(--sky); text-decoration: none; font-weight: 600; line-height: 1.15;
}
.badge small { display: block; font-weight: 400; font-size: .72rem; opacity: .8; }
.badge svg { width: 26px; height: 26px; flex: none; }
.badge.soon { background: transparent; color: var(--moon); border: 1px solid var(--line); }

/* ---------------------------------------------------------------- lookup */
.lookup {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 2.5rem; align-items: start;
  padding: 3rem; border-radius: 28px; background: var(--leaf); margin-bottom: 6rem;
}
.lookup form { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.lookup > div { min-width: 0; }
.lookup input {
  flex: 1; min-width: 0; font: 600 2rem/1 "Cormorant", serif; color: var(--moon); background: var(--sky);
  border: 1px solid var(--line); border-radius: 16px; padding: .6rem 1rem; font-variant-numeric: lining-nums;
}
.lookup button {
  font: 600 1rem "Instrument", sans-serif; border: 0; border-radius: 999px; padding: 0 1.3rem; cursor: pointer;
  background: var(--star); color: var(--ink);
}
.lookup button.ghost { background: transparent; color: var(--moon); border: 1px solid var(--line); }
.reading .num { font: 600 5rem/1 "Cormorant", serif; color: var(--star); font-variant-numeric: lining-nums; }
.reading .essence { font: 500 1.6rem/1.25 "Cormorant", serif; margin: .3rem 0 1rem; }
.reading .note { font-size: .9rem; color: var(--mist); }
.reading dl { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; margin: 1rem 0 0; }
.reading dt { color: var(--star); font-weight: 600; }
.reading dd { margin: 0; }

/* ---------------------------------------------------------------- beds */
.beds { display: grid; gap: 5rem; margin-bottom: 7rem; }
.bed { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; position: relative; }
.bed:nth-child(even) .shot { order: -1; }
.bed .shot { justify-self: center; width: min(300px, 78vw); }
.bed .shot img { border-radius: 26px; border: 1px solid var(--line); }
.bed h2 span { display: block; font: 500 1.1rem/1.3 "Instrument", sans-serif; color: var(--star); letter-spacing: 0; margin-bottom: .6rem; }
.bed ul { margin: 1rem 0 0; padding: 0; list-style: none; max-width: var(--measure); }
.bed li { padding: .55rem 0 .55rem 1.7rem; border-top: 1px solid var(--line); position: relative; }
.bed li::before { /* a small planet instead of a bullet */ content: ""; position: absolute; left: .3rem; top: 1.05rem; width: 9px; height: 9px; border-radius: 50%; background: var(--star); box-shadow: 0 0 10px var(--star); }
.sprig { position: absolute; width: 120px; height: 170px; opacity: .55; pointer-events: none; }

/* ---------------------------------------------------------------- path */
.path { margin-bottom: 7rem; }
.path ol { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: .8rem; counter-reset: stage; }
.path li { text-align: center; }
.path .planet { width: 44px; height: 44px; margin: 0 auto .8rem; border-radius: 50%; border: 1px solid var(--star); position: relative; }
.path li:nth-child(-n+3) .planet { background: radial-gradient(circle at 35% 30%, #f6dfa6, var(--star) 60%, #a77a33); box-shadow: 0 0 22px rgba(229,194,126,.45); border-color: transparent; }
.path .planet.ringed::after { content: ""; position: absolute; left: -12px; right: -12px; top: 17px; height: 10px; border: 1px solid var(--star); border-radius: 50%; transform: rotate(-16deg); }
.path b { display: block; font: 600 1.35rem/1.1 "Cormorant", serif; }
.path small { color: var(--mist); font-size: .85rem; }

/* ---------------------------------------------------------------- not / price / faq */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-bottom: 7rem; }
.nope { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.nope li { font: 500 1.6rem/1.5 "Cormorant", serif; text-decoration: line-through; text-decoration-color: var(--rose); text-decoration-thickness: 2px; color: var(--mist); }
.price { padding: 2.2rem; border-radius: 28px; background: var(--leaf); }
.price .free { color: var(--sage); }
.price .plus { color: var(--star); }
.price h3 { margin: 1.2rem 0 .4rem; }

.faq { max-width: 46rem; margin-bottom: 7rem; }
.faq details { border-top: 1px solid var(--line); padding: 1rem 0; }
.faq summary { cursor: pointer; font: 600 1.4rem/1.3 "Cormorant", serif; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--star); font-family: "Instrument", sans-serif; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: .8rem; }

/* ---------------------------------------------------------------- footer + legal */
footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--mist); font-size: .95rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-bottom: .8rem; }
footer a { color: var(--moon); }
.legal { max-width: 44rem; padding: 2rem 0 4rem; }
.legal h1 { font-size: clamp(2.6rem, 6vw, 3.6rem); margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.8rem; margin: 2.2rem 0 .6rem; }
.legal li { margin-bottom: .4rem; }

@media (max-width: 860px) {
  .hero, .lookup, .bed, .two { grid-template-columns: 1fr; }
  .bed:nth-child(even) .shot { order: 0; }
  .hero { padding-top: 1.5rem; gap: 2.5rem; }
  .orrery { width: 380px; height: 380px; inset: -4rem -9rem auto auto; }
  .lookup { padding: 1.6rem; gap: 1.5rem; }
  .lookup input { flex: 1 1 100%; }
  .lookup button { min-height: 48px; flex: 1; }
  .reading dl { grid-template-columns: 1fr; }
  .reading dd { margin-bottom: .6rem; }
  .path ol { grid-template-columns: repeat(2, 1fr); row-gap: 1.6rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .orrery .spin { transform-origin: 280px 280px; animation: drift 240s linear infinite; }
  @keyframes drift { to { transform: rotate(360deg); } }
}
