:root {
  color-scheme: dark;
  --bg: #111310;
  --ink: #f0eee6;
  --muted: #aaada4;
  --accent: #e5b789;
  --glow: #d79b69;
  --line: #ffffff1c;
  --planet-shadow: #35271e;
  font-family: "Segoe UI", Arial, sans-serif;
}
:root[data-mood="nebula"] {
  --bg: #11121b;
  --accent: #b8aff1;
  --glow: #8f7bd4;
  --planet-shadow: #28213c;
}
:root[data-mood="aurora"] {
  --bg: #0d1715;
  --accent: #a7d6bb;
  --glow: #71bba5;
  --planet-shadow: #163b31;
}
* { box-sizing: border-box; }
html { min-width: 320px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  transition: background-color 700ms ease;
  -webkit-font-smoothing: antialiased;
}
::selection { color: var(--bg); background: var(--accent); }
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.page {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}
.page::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse at 78% 43%, color-mix(in srgb, var(--glow) 9%, transparent), transparent 58%);
  content: "";
  pointer-events: none;
}
.shell { width: min(1440px, 100% - 112px); margin-inline: auto; }
.masthead {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.wordmark { display: flex; align-items: center; gap: 12px; font-size: 23px; font-weight: 600; letter-spacing: -1px; }
.wordmark svg { width: 29px; height: 29px; color: var(--accent); }
.wordmark span span { color: var(--muted); font-weight: 400; }
.eyebrow { font-family: "Courier New", monospace; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.masthead-note { color: var(--muted); display: flex; align-items: center; gap: 10px; }
.header-actions { display: flex; align-items: center; gap: 28px; }
.language-picker { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 24px; }
.language-button { min-width: 40px; min-height: 36px; padding: 0 8px; border: 0; border-radius: 20px; color: var(--muted); background: transparent; font: 11px "Courier New", monospace; letter-spacing: 1px; cursor: pointer; }
.language-button:hover { color: var(--ink); }
.language-button[aria-pressed="true"] { color: var(--accent); background: #ffffff12; }
.tiny-star { color: var(--accent); width: 14px; height: 14px; }
main { position: relative; }
.hero {
  min-height: clamp(600px, 73vh, 790px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  position: relative;
}
.hero-copy { position: relative; z-index: 2; padding: 80px 0 94px; }
.overline { margin: 0 0 35px; color: var(--accent); display: flex; align-items: center; gap: 14px; }
.overline::before { content: ""; width: 29px; height: 1px; background: currentColor; }
h1 {
  margin: 0;
  font-size: clamp(64px, 7.5vw, 112px);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.065em;
}
h1 span { display: block; }
h1 .serif {
  margin-top: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.04em;
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  letter-spacing: -0.065em;
}
.intro { margin: 32px 0 0; max-width: 340px; font-size: 16px; line-height: 1.8; color: var(--muted); }
.pause-note { margin-top: 48px; display: flex; align-items: center; gap: 12px; color: var(--ink); font-size: 12px; }
.pause-note svg { width: 20px; height: 20px; color: var(--accent); }
.universe {
  position: absolute;
  width: min(60vw, 860px);
  aspect-ratio: 1;
  right: -5.5%;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}
.orbit-map { position: relative; width: 100%; height: 100%; overflow: visible; }
.orbit-line { fill: none; stroke: var(--accent); stroke-width: 0.65; opacity: 0.23; }
.orbit-line.faint { opacity: 0.1; }
.orbit-dashed { stroke-dasharray: 2 9; opacity: 0.22; }
.orbit-tick { stroke: var(--accent); stroke-width: 0.8; opacity: 0.5; }
.star { fill: var(--ink); opacity: 0.55; }
.star-dim { opacity: 0.2; }
.planet {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 37%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 31% 24%, #fff5db73, transparent 43%),
    radial-gradient(circle at 30% 27%, var(--accent), var(--glow) 24%, var(--planet-shadow) 65%, #080b0b 88%);
  box-shadow: inset -24px -16px 46px #0509089e, inset 2px 2px 3px #fff1d137, 0 0 85px color-mix(in srgb, var(--glow) 8%, transparent);
  transition: box-shadow 700ms ease;
}
.planet::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0.16;
  background-image: url("/grain.svg");
  mix-blend-mode: soft-light;
}
.planet::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 1px solid #fff3df15; }
.planet-orbit {
  position: absolute;
  inset: var(--orbit-inset);
  transform: rotate(var(--orbit-start));
  animation: planetary-orbit var(--orbit-period) linear infinite;
}
.orbiting-planet {
  position: absolute;
  top: 50%;
  left: 100%;
  width: var(--planet-size);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 29% 24%, var(--planet-light), var(--planet-color) 35%, var(--planet-dark) 76%, #0a1013 98%);
  box-shadow: inset -2px -2px 5px #03080a55, 0 0 0 1px #ffffff14;
  transform: translate(-50%, -50%) rotate(calc(-1 * var(--orbit-start)));
  /* Counter-rotation keeps the light direction steady while the orbit moves. */
  animation: planetary-light var(--orbit-period) linear infinite;
}
.orbit-ice { --orbit-inset: 25.5%; --orbit-period: 38s; --orbit-start: -25deg; }
.orbit-rust { --orbit-inset: 17%; --orbit-period: 62s; --orbit-start: 210deg; }
.orbit-ocean { --orbit-inset: 11.25%; --orbit-period: 88s; --orbit-start: 95deg; }
.orbit-ringed { --orbit-inset: 5.625%; --orbit-period: 130s; --orbit-start: 35deg; }
.orbit-moon { --orbit-inset: 25.5%; --orbit-period: 27s; --orbit-start: 150deg; }
.planet-ice { --planet-size: clamp(12px, 2.1vw, 25px); --planet-light: #e3f2f2; --planet-color: #8ab7cb; --planet-dark: #26475e; }
.planet-rust { --planet-size: clamp(11px, 1.7vw, 20px); --planet-light: #f1c4a0; --planet-color: #b8765b; --planet-dark: #4a2c29; }
.planet-ocean { --planet-size: clamp(13px, 2.3vw, 28px); --planet-light: #c7e2d5; --planet-color: #6da396; --planet-dark: #1a4041; }
.planet-ringed {
  --planet-size: clamp(20px, 3.2vw, 38px);
  --planet-light: #f5dfbb;
  --planet-color: #be9a7d;
  --planet-dark: #503d39;
  background:
    repeating-linear-gradient(170deg, #e4cba52e 0 3px, #674c4920 5px 8px),
    radial-gradient(circle at 29% 24%, var(--planet-light), var(--planet-color) 35%, var(--planet-dark) 76%, #171417 98%);
}
.planet-ringed::after {
  content: "";
  position: absolute;
  left: -50%;
  top: 30%;
  width: 200%;
  height: 44%;
  border: 2px solid #d8c2a58c;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #bfa28b18;
  transform: rotate(28deg);
}
.planet-moon { --planet-size: clamp(6px, 0.9vw, 10px); --planet-light: #e5e6e2; --planet-color: #a1a6ab; --planet-dark: #3c424d; }
.map-label { position: absolute; font: 9px/1.7 "Courier New", monospace; letter-spacing: 1.5px; color: var(--muted); }
.map-label.top { top: 16%; right: 17%; }
.map-label.bottom { bottom: 13%; left: 23%; color: var(--accent); }
.map-label::before { content: "+"; margin-right: 9px; color: var(--accent); }
.details {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 32px 0 35px;
  border-top: 1px solid var(--line);
  align-items: center;
}
.footnote { display: flex; align-items: flex-start; gap: 18px; }
.footnote .index { padding-top: 4px; color: var(--accent); font: 11px "Courier New", monospace; }
.footnote p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.footnote strong { display: block; color: var(--ink); font-weight: 400; }
.mood-picker { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.mood-caption { text-align: right; }
.mood-caption .eyebrow { display: block; color: var(--muted); font-size: 9px; letter-spacing: 1.4px; }
.mood-name { display: block; margin-top: 6px; font-size: 13px; }
.mood-buttons { display: flex; gap: 2px; }
.mood-button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; padding: 0; border-radius: 50%; background: none; cursor: pointer; }
.mood-button::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--swatch); transition: transform 200ms ease, outline-color 200ms ease; outline: 1px solid transparent; outline-offset: 5px; }
.mood-button:hover::before { transform: scale(1.12); }
.mood-button[aria-pressed="true"]::before { outline-color: var(--swatch); }
.footer { padding: 24px 0 28px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: #858a80; font: 10px "Courier New", monospace; letter-spacing: 1px; }
.footer span:last-child { text-align: right; }
@keyframes planetary-orbit {
  from { transform: rotate(var(--orbit-start)); }
  to { transform: rotate(calc(var(--orbit-start) + 360deg)); }
}
@keyframes planetary-light {
  from { transform: translate(-50%, -50%) rotate(calc(-1 * var(--orbit-start))); }
  to { transform: translate(-50%, -50%) rotate(calc(-1 * var(--orbit-start) - 360deg)); }
}
@media (min-width: 1600px) { .hero { min-height: 760px; } }
@media (max-width: 1000px) {
  .shell { width: calc(100% - 64px); }
  .masthead { height: 96px; }
  .hero { min-height: 620px; }
  h1 { font-size: clamp(66px, 8.5vw, 86px); }
  .universe { width: 65vw; right: -14%; }
  .map-label.top { right: 23%; }
}
@media (max-width: 700px) {
  .shell { width: calc(100% - 44px); }
  .masthead { height: 88px; }
  .wordmark { font-size: 21px; gap: 8px; }
  .wordmark svg { width: 25px; height: 25px; }
  .masthead-note { display: none; }
  .header-actions { gap: 0; }
  .hero { display: flex; flex-direction: column; min-height: 0; align-items: stretch; }
  .hero-copy { padding: 64px 0 0; }
  .overline { font-size: 9px; letter-spacing: 1.7px; margin-bottom: 28px; }
  h1 { font-size: clamp(44px, 14vw, 86px); }
  .intro { font-size: 15px; margin-top: 25px; max-width: 300px; }
  .pause-note { margin-top: 27px; font-size: 11px; }
  .universe { position: relative; width: 120%; margin: -12px -10% -8px; right: auto; top: auto; transform: none; }
  .map-label.top { right: 19%; }
  .map-label.bottom { bottom: 16%; }
  .details { grid-template-columns: 1fr; gap: 28px; padding: 29px 0; }
  .mood-picker { justify-content: space-between; padding-left: 32px; }
  .mood-caption { text-align: left; }
  .footer { padding: 22px 0; font-size: 8px; letter-spacing: 0.3px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.mood-button[data-mood="dusk"] { --swatch: #e5b789; }
.mood-button[data-mood="nebula"] { --swatch: #b8aff1; }
.mood-button[data-mood="aurora"] { --swatch: #a7d6bb; }
