/* Orbit Calendar — modeled on therawmaterials.com via DESIGN.md.
   Each section is a pair of rounded color boxes. Sidebar card of the current
   section stretches to fill the column. */

:root {
  /* Palette (Sept 2026): Carolina's set, plus our purple. */
  --paper:  #eee9e5;   /* 238 233 229 — replaces pure white */
  --ink:    #192028;   /* 25 32 40 — replaces pure black */
  --red:    #ff1c66;   /* 255 28 102 */
  --amber:  #ffa809;   /* 255 168 9 — footer (darkened from #ffbc09 for white type) */
  --pink:   #e856bc;   /* 232 86 188 — About (darkened from #fb9cc8 for white type) */
  --green:  #7cae2a;   /* 124 174 42 — Ingresses */
  --teal:   #00b6b5;   /* 0 182 181 — Moon Phases */
  --blue:   #006cff;   /* 0 108 255 — Aspects */
  --violet: #962dd3;   /* 150 45 211 — Void */
  /* Earlier picks, not in use: */
  --amber-light: #ffbc09;
  --red-first: #ff000c;
  --blue-bright: #2a32ff;
  --pink-light: #fb9cc8;
  --teal-dark: #00a3a3;
  --blue-deep: #0245de;
  --pulse-violet: #5900cc;

  /* Reserve: the previous palette (Raw Materials brights). Not used on the page. */
  --crimson: #ff003d;          /* "magenta", held in reserve */
  --ember-orange: #ff3d00;
  --cobalt-blue: #2835f8;
  --voltage-green: #05ff00;
  --pure-white: #ffffff;
  --pure-black: #000000;

  --font-ui: "roc-grotesk-variable", "roc-grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-display: "roc-grotesk-wide", "Helvetica Neue", Arial, sans-serif;
  /* Box numbers and number pills: Roc Grotesk Extra Wide, to set them apart from the headlines. */
  --font-num: "roc-grotesk-extrawide", "roc-grotesk-wide", "Helvetica Neue", Arial, sans-serif;

  /* Tracking for all running text. Display type sets its own. */
  --track: 0.02em;
  /* Outline on a colored shape: a darker shade of that shape's own color. */
  --shade: 72%;

  --radius: 16px;
  --gap: 16px;
  --side-w: 184px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* current section, set by app.js */
  --cur: #192028;
  --cur-fg: #eee9e5;
}

* { box-sizing: border-box; }

html { background: var(--paper); color: var(--ink); overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font-ui);
  font-variation-settings: "wdth" 100, "wght" 400;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.38;
  letter-spacing: var(--track);
  font-feature-settings: "ss02";
}
strong, b { font-variation-settings: "wdth" 100, "wght" 600; font-weight: 600; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Sidebar ------------------------------------------------------------------ */

.side {
  position: fixed;
  top: var(--gap);
  bottom: var(--gap);
  left: var(--gap);
  width: var(--side-w);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10;
}
.side a {
  position: relative;
  flex: 0 0 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--c);
  color: var(--paper);
  text-decoration: none;
  line-height: 1.15;
  transition: flex-grow 0.7s var(--ease), box-shadow 0.2s;
}
.side a.on-light { color: var(--ink); }
.side a .n { font-size: 12px; }
.side a .l { font-size: 17px; letter-spacing: var(--track); }
.side a:hover { box-shadow: inset 0 0 0 3px var(--paper); }
.side a.active { flex-grow: 1; }
.side a.active::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 34px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.side a.logo {
  flex-basis: 96px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--paper) var(--shade), black);
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.side a.logo:hover { box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--paper) var(--shade), black); }
.side a.logo .l { font-family: var(--font-display); font-size: 11px; letter-spacing: 0; }
.side a.logo.active::after { display: none; }
.logo svg { width: 96px; height: 48px; overflow: visible; }
.logo .ring { fill: none; stroke: currentColor; stroke-width: 1.5; }
.logo .sun { fill: currentColor; }
.logo .orbiter { fill: var(--red); }

/* Subscribe card: off-white with red type and a red edge, like the hero. */
.side a.quiet { background: var(--paper); color: var(--red); box-shadow: inset 0 0 0 1.5px var(--red); }
.side a.quiet:hover { box-shadow: inset 0 0 0 3px var(--red); }

/* Main column -------------------------------------------------------------- */

main {
  margin-left: calc(var(--side-w) + var(--gap) * 2);
  margin-right: var(--gap);
  padding-top: var(--gap);
}

.entering-wrap {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--paper);
  padding: var(--gap) 0;
  margin: calc(var(--gap) * -1) 0 0;
}
.entering {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
  padding: 0 24px;
  border-radius: 99px;
  background: var(--cur);
  color: var(--cur-fg);
  font-size: 14px;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--cur) var(--shade), black);
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.entering b { font-weight: 400; font-variation-settings: "wdth" 100, "wght" 400; }
.typed { white-space: nowrap; }
.caret {
  display: inline-block;
  width: 1px;
  height: 1.05em;
  margin-left: 2px;
  background: currentColor;
  vertical-align: -0.15em;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.entering .count i {
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 1px;
}

.sec { margin-bottom: var(--gap); scroll-margin-top: 72px; }

.box {
  position: relative;
  border-radius: var(--radius);
  background: var(--c);
  color: var(--fg);
  padding: 56px 64px 112px;
  margin-bottom: var(--gap);
  overflow: hidden;
}
.box.outline { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }

/* Title box: number up top, huge title at the bottom ---------------------- */

.title-box {
  min-height: clamp(380px, 78vh, 820px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.num {
  font-family: var(--font-num);
  font-variation-settings: normal;
  font-weight: 400;
  font-size: clamp(72px, 9vw, 150px);
  line-height: 1;
  letter-spacing: -0.03em;
}
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 8.4vw, 170px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0;
}
/* word-by-word rise, set up by app.js */
h2 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
h2 .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); }
.in h2 .w > span { transform: none; }
.num { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.in .num { opacity: 1; transform: none; }

/* Ruled statement: lined-paper rules under every line, drawn left to right -- */

.ruled {
  --lh: 1.2em;
  margin: 0 0 48px;
  font-size: clamp(32px, 4.6vw, 84px);
  line-height: var(--lh);
  letter-spacing: -0.03em;
  background-image: linear-gradient(to bottom, transparent calc(100% - 1px), color-mix(in srgb, var(--fg) 45%, transparent) calc(100% - 1px));
  background-size: 0% var(--lh);
  background-repeat: repeat-y;
  transition: background-size 1.4s var(--ease), opacity 0.9s var(--ease), transform 0.9s var(--ease);
  opacity: 0;
  transform: translateY(30px);
}
.ruled.in { background-size: 100% var(--lh); opacity: 1; transform: none; }
.ruled .tag {
  display: inline-block;
  font-family: var(--font-num);
  font-variation-settings: normal;
  font-weight: 400;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0;
  padding: 4px 12px;
  margin-right: 0.8em;
  border: 1.5px solid currentColor;
  border-radius: 99px;
  vertical-align: 0.55em;
}

.copy { max-width: 680px; margin: 0 0 32px; font-size: 20px; line-height: 1.4; }
.copy p { margin: 0 0 14px; }
.copy p:last-child { margin: 0; }

/* Buttons ------------------------------------------------------------------ */

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 48px; }
.btn {
  display: inline-block;
  min-width: 14em;
  text-align: center;
  padding: 16px 24px;
  border-radius: var(--radius);
  font-size: 17px;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid var(--fg);
  transition: background-color 0.12s, color 0.12s, box-shadow 0.12s, transform 0.15s var(--ease);
}
.btn.fill { background: var(--fg); color: var(--c); }
.btn.line { background: transparent; color: var(--fg); }
/* Hover: filled, a ring of the section color inside a thin edge. */
.btn:hover { background: var(--fg); color: var(--c); box-shadow: inset 0 0 0 4px var(--c); transform: translateY(-2px); }

/* Next up ------------------------------------------------------------------ */

.next[hidden] { display: none; }
.next h3 {
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin: 0 0 8px;
}
.next ol { list-style: none; margin: 0; padding: 0; }
.next li {
  display: grid;
  grid-template-columns: 11em 1fr;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid color-mix(in srgb, var(--fg) 40%, transparent);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.next li:last-child { border-bottom: 1px solid color-mix(in srgb, var(--fg) 40%, transparent); }
.next.in li { opacity: 1; transform: none; }
.next .when { font-size: 15px; line-height: 1.35; }
.next .when small { display: block; font-size: 14px; opacity: 0.8; }
.next .what { font-size: clamp(20px, 1.9vw, 28px); line-height: 1.2; letter-spacing: 0; }
.next .what small { display: block; font-size: 15px; letter-spacing: var(--track); margin-top: 6px; opacity: 0.85; }
.next .now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: var(--fg);
  color: var(--c);
  border-radius: 99px;
  /* letter-spacing adds space after the last letter, so the right side gets 0.14em less */
  padding: 0 calc(9px - 0.14em) 0 9px;
  margin-left: 10px;
  vertical-align: 3px;
}

/* Hero --------------------------------------------------------------------- */

.hero { padding: 40px 48px 32px; min-height: calc(100vh - 88px); display: flex; flex-direction: column; }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.subhead {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.9vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 13em;
  margin: 8px 0 0;
  text-indent: 3em;
}
.giant {
  font-family: var(--font-display);
  font-size: clamp(64px, 12vw, 250px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  margin: 0;
  color: var(--red);
  will-change: transform;
}
.g1 { text-align: right; }
.g2 {
  border-top: 1.5px solid var(--ink);
  padding-top: 0.12em;
  margin-top: 0.1em;
}
.hero-body {
  font-size: 18px;
  border-top: 1.5px solid var(--ink);
  padding-top: 24px;
  margin-top: auto;
}
/* One column; on wide windows it stops about two-thirds of the way across. */
.hero-body p { margin: 0 0 12px; max-width: max(640px, 66%); }
.hero-foot { display: flex; justify-content: space-between; font-size: 14px; color: var(--red); padding-top: 16px; }

/* Subscribe pills ---------------------------------------------------------- */

.pills-box { min-height: clamp(380px, 70vh, 760px); display: flex; flex-direction: column; justify-content: space-between; }
.pills { display: flex; flex-wrap: wrap; margin-top: 48px; }
.pill {
  font-size: clamp(44px, 7vw, 140px);
  line-height: 1;
  letter-spacing: -0.04em;
  padding: 0.12em 0.45em 0.2em;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  margin: 0 -1.5px -1.5px 0;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), background-color 0.25s, color 0.25s;
}
.pill.dot { width: 1.3em; }
.in .pill { opacity: 1; transform: none; }
.pill:hover { background: var(--ink); color: var(--paper); }
/* Subscribe: big words in red, like the hero. */
#subscribe .num, #subscribe .pill { color: var(--red); }
#subscribe .pill { border-color: var(--fg); }
#subscribe .pill:hover { background: var(--red); color: var(--paper); border-color: var(--red); }
#subscribe .pill.dot:hover { background: var(--red); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--gap); }
.card { border-radius: var(--radius); background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--fg); padding: 28px; }
.card .cap {
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin: 0 0 16px;
}
.card ol { margin: 0; padding-left: 22px; font-size: 18px; }
.card li { margin-bottom: 10px; }
.card li:last-child { margin: 0; }
.card code { font: inherit; background: color-mix(in srgb, var(--fg) 14%, transparent); border-radius: 6px; padding: 1px 6px; }

/* Footer (08) ------------------------------------------------------------ */

.foot { display: block; }
.foot-box { min-height: 0; gap: 40px; }
.foot .pills { margin: 0; }
.foot .pill { border-color: var(--fg); color: var(--fg); text-decoration: none; }
.foot .pill:hover { background: var(--red); border-color: var(--red); color: var(--paper); }
.foot .pill.link { background: var(--fg); color: var(--c); }
.foot .pill.link:hover { background: var(--red); border-color: var(--red); color: var(--paper); }
.foot-legal { padding-top: 28px; padding-bottom: 28px; font-size: 15px; }
.foot-legal p { margin: 0; }

/* Generic reveal ----------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Progress bar ------------------------------------------------------------- */

.progress { position: fixed; left: 0; right: 0; bottom: 0; height: 5px; z-index: 20; pointer-events: none; }
.progress .bar { height: 100%; background: var(--cur); transform-origin: left; transform: scaleX(0); transition: background-color 0.5s; }

/* Phone / narrow ----------------------------------------------------------- */

@media (max-width: 900px) {
  :root { --gap: 10px; }
  .side {
    position: sticky;
    top: 0; bottom: auto; left: auto;
    width: auto;
    flex-direction: row;
    gap: 8px;
    padding: 10px;
    overflow-x: auto;
    background: var(--paper);
    scrollbar-width: none;
  }
  .side::-webkit-scrollbar { display: none; }
  .side a { flex: 0 0 auto; min-height: 56px; padding: 8px 14px; transition: box-shadow 0.2s; }
  .side a.active { flex-grow: 0; box-shadow: inset 0 0 0 3px var(--paper), 0 0 0 1.5px color-mix(in srgb, var(--c) var(--shade), black); }
  .side a.quiet.active { box-shadow: inset 0 0 0 3px var(--red); }
  .side a.active::after { display: none; }
  .side a.logo { flex-basis: auto; padding: 4px 10px; }
  .side a.logo .l { display: none; }
  .logo svg { width: 64px; height: 32px; }
  .side a .l { font-size: 14px; white-space: nowrap; }
  main { margin: 0 var(--gap); padding-top: 0; }
  .entering-wrap { display: none; }
  .box { padding: 28px 20px 56px; }
  .hero { padding: 24px 20px; min-height: 0; }
  .hero-top { flex-direction: column; gap: 24px; }
  .subhead { text-indent: 0; }
  .title-box { min-height: 56vh; }
  .ruled { font-size: 30px; }
  .ruled .tag { font-size: 12px; }
  .copy { font-size: 17px; }
  .actions .btn { flex: 1 1 0; min-width: 0; padding: 14px 10px; }
  .next li { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .sec { scroll-margin-top: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal, .ruled, .num, .pill, .next li { opacity: 1 !important; transform: none !important; }
  .ruled { background-size: 100% var(--lh) !important; }
  h2 .w > span { transform: none !important; }
}
