/* northstar landing — celestial navigation
   dark-primary night sky; light mode = pale dawn chart-paper */

:root {
  --bg-0: #05070f;
  --bg-1: #0a0f22;
  --bg-2: #0e1430;
  --ink: #e9edfa;
  --muted: #98a0c4;
  --faint: #5b6288;
  --line: rgba(146, 166, 255, 0.30);
  --line-soft: rgba(146, 166, 255, 0.14);
  --point: #cfd9ff;
  --star: #ffd98a;
  --star-core: #fff4d6;
  --star-halo: rgba(255, 217, 138, 0.10);
  --accent: #93a3ff;
  --card: rgba(148, 165, 255, 0.05);
  --card-edge: rgba(148, 165, 255, 0.14);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-0: #f2f3fb;
    --bg-1: #e9ebf8;
    --bg-2: #e2e5f5;
    --ink: #171d3a;
    --muted: #4b5378;
    --faint: #8289ad;
    --line: rgba(51, 62, 128, 0.34);
    --line-soft: rgba(51, 62, 128, 0.14);
    --point: #333e80;
    --star: #b07c00;
    --star-core: #8a5f00;
    --star-halo: rgba(176, 124, 0, 0.10);
    --accent: #4152b8;
    --card: rgba(51, 62, 128, 0.04);
    --card-edge: rgba(51, 62, 128, 0.14);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background:
    radial-gradient(1200px 800px at 80% -10%, var(--bg-2), transparent 60%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 45%, var(--bg-0) 100%);
  background-color: var(--bg-0);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- star-field canvas ---------- */
#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.site-header, main { position: relative; z-index: 1; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1060px;
  margin: 0 auto;
  padding: 1.6rem 1.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.18rem;
  letter-spacing: 0.10em;
}
.wordmark:hover { text-decoration: none; }
.wordmark-star { width: 17px; height: 17px; fill: var(--star); }

.site-nav {
  display: flex;
  gap: 1.6rem;
  font-size: 0.86rem;
  letter-spacing: 0.05em;
}
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav .nav-out { color: var(--star); }

@media (max-width: 640px) {
  .site-nav a:not(.nav-out) { display: none; }
}

/* ---------- shared type ---------- */
.eyebrow {
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--star);
  margin-bottom: 1.1rem;
}

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.14;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
h1 em { font-style: italic; color: var(--star); }

h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 2.2rem; }

section { max-width: 1060px; margin: 0 auto; padding: 5.5rem 1.5rem 2rem; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  min-height: 74vh;
  padding-top: 4rem;
}

.lede {
  margin-top: 1.6rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.06rem;
}
.lede strong { color: var(--ink); font-weight: 500; }

.hero-cta {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--faint);
  letter-spacing: 0.03em;
}
.hero-cta a { color: var(--star); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 2.5rem; }
}

/* ---------- constellation chart ---------- */
.hero-chart { width: 100%; }
.constellation { width: 100%; height: auto; display: block; overflow: visible; }

.constellation .grid line {
  stroke: var(--line-soft);
  stroke-width: 1;
  stroke-dasharray: 2 7;
}

.constellation .lines polyline,
.constellation .lines line,
.card-const .lines polyline,
.card-const .lines line {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}

.constellation .points circle,
.card-const .points circle {
  fill: var(--point);
}

.polaris-core { fill: var(--star-core); }
.polaris-flare { fill: var(--star); opacity: 0.9; }
.polaris-halo { fill: var(--star-halo); }

.axis-labels text, .polaris-label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  fill: var(--faint);
}
.polaris-label { text-anchor: middle; font-style: italic; font-family: var(--serif); font-size: 13px; letter-spacing: 0.06em; }

.hero-chart figcaption {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  color: var(--faint);
  font-style: italic;
  text-align: center;
  font-family: var(--serif);
}

@media (prefers-reduced-motion: no-preference) {
  .polaris-flare {
    animation: polaris-breathe 5s ease-in-out infinite;
    transform-origin: center;
    transform-box: fill-box;
  }
  @keyframes polaris-breathe {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.14); opacity: 1; }
  }
  .constellation .points circle { animation: point-twinkle 4s ease-in-out infinite; }
  .constellation .points circle:nth-child(odd) { animation-delay: -2s; }
  .constellation .points circle:nth-child(3n) { animation-delay: -1s; }
  @keyframes point-twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
  }
}

/* ---------- idea cards ---------- */
.section-eyebrow { margin-bottom: 0.8rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.card {
  border: 1px solid var(--card-edge);
  background: var(--card);
  border-radius: 10px;
  padding: 1.7rem 1.6rem 1.9rem;
  backdrop-filter: blur(2px);
}

.card-const { width: 100%; max-width: 130px; height: auto; margin-bottom: 1.1rem; overflow: visible; }

.card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.22rem;
  margin-bottom: 0.55rem;
  letter-spacing: 0.02em;
}

.card p { color: var(--muted); font-size: 0.94rem; }

@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
}

/* ---------- week waypoints ---------- */
.waypoints {
  list-style: none;
  position: relative;
  max-width: 620px;
  padding-left: 0.4rem;
}

.waypoints::before {
  content: "";
  position: absolute;
  left: calc(0.4rem + 6px);
  top: 14px;
  bottom: 26px;
  width: 0;
  border-left: 1px dashed var(--line);
}

.waypoints li {
  display: flex;
  gap: 1.35rem;
  padding-bottom: 2.1rem;
  position: relative;
}

.waypoint-star {
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--point);
  box-shadow: 0 0 0 4px var(--card), 0 0 10px 1px var(--line);
}

.waypoint-star.bright {
  background: var(--star);
  box-shadow: 0 0 0 4px var(--star-halo), 0 0 16px 3px var(--star-halo);
}

.waypoints h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.12rem;
  margin-bottom: 0.15rem;
}

.waypoints p { color: var(--muted); font-size: 0.94rem; }

/* ---------- honest strip ---------- */
.honest-inner {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 3rem 0;
  max-width: 720px;
}
.honest-inner p { color: var(--muted); font-size: 1rem; }
.honest-inner strong { color: var(--ink); font-weight: 500; }
.honest-inner h2 { margin-bottom: 1.2rem; }

/* ---------- footer ---------- */
.site-footer {
  max-width: 1060px;
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}

.footer-star { width: 22px; height: 22px; fill: var(--star); margin-bottom: 1.1rem; }

.footer-cta { font-size: 1.02rem; color: var(--muted); }
.footer-cta a { color: var(--star); }

.footer-fine {
  margin-top: 1.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--faint);
}
.footer-fine + .footer-fine { margin-top: 0.5rem; }
.footer-fine a { color: var(--faint); text-decoration: none; }
.footer-fine a:hover { color: var(--muted); }
