@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('/fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('/fonts/inter-700.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 500; font-display: swap; src: url('/fonts/spacegrotesk-500.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 700; font-display: swap; src: url('/fonts/spacegrotesk-700.woff2') format('woff2'); }

/* joshuaaah.com color bible -- canonical tokens, copied verbatim (memory/feedback_joshuaaah_color_bible.md) */
:root {
  --jx-bg: #FFFFFF;
  --jx-surface: #F7F6FA;
  --jx-surface-alt: #ECEAF1;
  --jx-black: #000000;
  --jx-black-soft: #0D0D10;
  --jx-primary: #1A0633;
  --jx-primary-hover: #2E1152;
  --jx-primary-deep: #0F0320;
  --jx-silver: #C4CED4;
  --jx-accent: #0D9488;
  --jx-accent-hover: #14B8A6;
  --jx-accent-text: #0F766E;
  --jx-text: #121117;
  --jx-text-secondary: #6B6974;
  --jx-text-on-dark: #F2F1F5;
  --jx-border: #D8D5E0;
  --jx-success: #16A34A;
  --jx-warning: #D97706;
  --jx-spotlight: #F97316;
  --jx-spotlight-hover: #FB923C;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --font-sans: 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
  --nav-height: 60px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--jx-text);
  background:
    radial-gradient(1100px 600px at 12% -10%, rgba(13,148,136,0.05), transparent 60%),
    radial-gradient(900px 560px at 110% 10%, rgba(26,6,51,0.07), transparent 55%),
    var(--jx-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.01em; margin: 0; }
button, input, select { font: inherit; }
a { color: var(--jx-primary); }
a:hover, a:focus-visible { color: var(--jx-accent-text); }
:focus-visible { outline: 2px solid var(--jx-accent); outline-offset: 2px; }
/* header: purple fading into black, sticky */
.bar {
  position: sticky; top: 0; z-index: 20; height: var(--nav-height);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 max(16px, env(safe-area-inset-left));
  background: linear-gradient(90deg, var(--jx-primary) 0%, var(--jx-primary-deep) 55%, var(--jx-black) 100%);
  color: #fff; box-shadow: 0 1px 0 rgba(196,206,212,0.18), 0 6px 20px rgba(15,3,32,0.18);
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand b { font-family: var(--font-display); font-size: 1.12rem; letter-spacing: 0.01em; }
.brand small { color: var(--jx-silver); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.bar nav a { color: #fff; text-decoration: none; font-size: 0.9rem; padding: 6px 10px; border-radius: var(--radius-sm); }
.bar nav a:hover { background: var(--jx-primary-hover); color: #fff; }

main { max-width: 1180px; margin: 0 auto; padding: 22px 16px 40px; }

/* ---- lead: clock, place, countdown chips ---- */
.lead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; padding: 4px 2px 18px; border-bottom: 1px solid var(--jx-border); margin-bottom: 20px; }
.lead-text { min-width: 0; }
.kicker { margin: 0; color: var(--jx-accent-text); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.lead h1 { font-size: clamp(1.75rem, 5vw, 2.6rem); line-height: 1.08; margin: 4px 0 10px; color: var(--jx-primary); }
.place-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.place-btn { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--jx-border); background: #fff; border-radius: 999px; padding: 6px 14px; cursor: pointer; font-weight: 600; color: var(--jx-text); max-width: 100%; }
.place-btn #place-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place-btn:hover { border-color: var(--jx-accent); box-shadow: 0 0 0 3px rgba(13,148,136,0.12); }
.place-btn .pin { color: var(--jx-spotlight); }
.place-btn .chev { color: var(--jx-text-secondary); font-size: 0.8rem; }
.coords { color: var(--jx-text-secondary); font-size: 0.85rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.chips { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 0 1 470px; }
.chip-cd { border-radius: 999px; padding: 8px 16px; font-size: 0.9rem; font-variant-numeric: tabular-nums; border: 1px solid var(--jx-border); background: #fff; color: var(--jx-text); line-height: 1.35; }
.chip-cd:empty { display: none; }
.chip-cd b { font-family: var(--font-display); font-weight: 700; }
.chip-cd.teal { border-color: rgba(13,148,136,0.45); background: linear-gradient(90deg, rgba(13,148,136,0.10), #fff 70%); }
.chip-cd.teal b { color: var(--jx-accent-text); }
.chip-cd.orange { border-color: rgba(249,115,22,0.45); background: linear-gradient(90deg, rgba(249,115,22,0.10), #fff 70%); }
.chip-cd.orange b { color: #C2410C; }
.chip-cd.hot { background: linear-gradient(90deg, var(--jx-spotlight), var(--jx-spotlight-hover)); color: #1a0a00; border-color: var(--jx-spotlight); box-shadow: 0 0 18px rgba(249,115,22,0.45); }
.chip-cd.purple { background: linear-gradient(90deg, var(--jx-primary), var(--jx-primary-deep)); color: var(--jx-text-on-dark); border-color: var(--jx-primary); }
.chip-cd.muted, .chip-cd.wait { color: var(--jx-text-secondary); background: var(--jx-surface); }
@media (max-width: 480px) { .chip-cd { border-radius: var(--radius-md); font-size: 0.86rem; } }

/* ---- stage: sky map + side column ---- */
.stage { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 920px) { .stage { grid-template-columns: 1fr; } }
.skycard { background: linear-gradient(160deg, var(--jx-primary) 0%, var(--jx-primary-deep) 55%, var(--jx-black-soft) 100%); color: var(--jx-text-on-dark); border-radius: var(--radius-lg); padding: 14px 14px 16px; border: 1px solid var(--jx-primary-hover); box-shadow: 0 18px 40px rgba(15,3,32,0.25); scroll-margin-top: calc(var(--nav-height) + 10px); }
.skyhead { display: flex; justify-content: space-between; align-items: center; padding: 2px 6px 8px; }
.skyhead h2 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--jx-silver); }
.live { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--jx-accent-hover); display: inline-flex; align-items: center; gap: 6px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--jx-accent-hover); box-shadow: 0 0 8px var(--jx-accent-hover); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .live i { animation: none; } }
.map-wrap { width: 100%; max-width: 580px; margin: 0 auto; aspect-ratio: 1; }
#skymap { width: 100%; height: 100%; display: block; }
#skymap text { font-family: var(--font-sans); }
.sm-ring { fill: none; stroke: rgba(196,206,212,0.22); stroke-dasharray: 2 5; }
.sm-cross { stroke: rgba(196,206,212,0.10); }
.sm-horizon { fill: none; stroke: rgba(196,206,212,0.55); stroke-width: 1.4; }
.sm-tick { stroke: rgba(196,206,212,0.5); }
.sm-alt { fill: rgba(196,206,212,0.5); font-size: 11px; }
#skymap .sm-card { fill: #fff; font-family: var(--font-display); font-weight: 700; font-size: 18px; text-anchor: middle; dominant-baseline: central; }
#skymap .sm-card.minor { fill: var(--jx-silver); font-size: 11px; font-weight: 500; }
.sm-starname { fill: rgba(196,206,212,0.75); font-size: 10px; }
.sm-bodyname { fill: #F2F1F5; font-size: 12px; font-weight: 600; paint-order: stroke; stroke: rgba(13,13,16,0.7); stroke-width: 3px; }
.sm-sat { stroke-width: 1; }
.sm-sat.dark { fill: none; stroke: rgba(196,206,212,0.45); }
.sm-sat.lit { fill: rgba(196,206,212,0.85); stroke: none; }
.sm-sat.vis { fill: var(--jx-spotlight-hover); stroke: #fff; stroke-width: 0.6; filter: url(#sm-glow); }
.sm-sat.featured.dark { stroke: var(--jx-accent-hover); stroke-width: 1.6; }
.sm-sat.featured.lit { fill: var(--jx-accent-hover); }
.sm-satname { fill: var(--jx-accent-hover); font-size: 12px; font-weight: 700; paint-order: stroke; stroke: rgba(13,13,16,0.75); stroke-width: 3px; }
.sm-satname.vis { fill: var(--jx-spotlight-hover); }
.sm-path { fill: none; stroke: var(--jx-accent-hover); stroke-width: 1.6; stroke-dasharray: 4 4; stroke-opacity: 0.6; stroke-linejoin: round; }
.sm-path.vis { stroke-dasharray: none; stroke-width: 3.2; stroke-opacity: 1; filter: url(#sm-glow); }
.sm-tickmark { stroke: rgba(20,184,166,0.65); stroke-width: 1.2; }
.sm-tickmark.vis { stroke: #fff; }
.sm-ticklbl { fill: #E6FFFB; font-size: 10.5px; font-variant-numeric: tabular-nums; paint-order: stroke; stroke: rgba(13,13,16,0.8); stroke-width: 3px; }
.sm-endpt { fill: var(--jx-accent-hover); stroke: #fff; stroke-width: 1; }
.sm-endpt.out { fill: var(--jx-primary-deep); stroke: var(--jx-accent-hover); }
.sm-now { fill: none; stroke: var(--jx-spotlight-hover); stroke-width: 2; }
.track-cap { margin: 8px 6px 4px; font-size: 0.88rem; color: #E9E6EF; line-height: 1.45; }
.track-cap b { color: var(--jx-accent-hover); }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 6px 4px; padding: 0; font-size: 0.78rem; color: var(--jx-silver); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.legend i.k-vis { background: var(--jx-spotlight-hover); box-shadow: 0 0 6px var(--jx-spotlight); }
.legend i.k-lit { background: var(--jx-silver); }
.legend i.k-dark { border: 1px solid var(--jx-silver); }
.legend i.k-path { width: 18px; height: 3px; border-radius: 2px; background: var(--jx-accent-hover); }
.maphint, .upnow { margin: 6px 6px 0; font-size: 0.8rem; color: var(--jx-silver); line-height: 1.45; }
.maphint b { color: #fff; }
.upnow:empty { display: none; }

.side-col { display: grid; gap: 16px; min-width: 0; }
.card { background: linear-gradient(165deg, var(--jx-surface-alt), #ffffff); border: 1px solid var(--jx-border); border-radius: var(--radius-lg); padding: 16px 18px; min-width: 0; }
.card > h2 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--jx-text-secondary); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.card > h2::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--jx-accent); box-shadow: 0 0 8px rgba(13,148,136,0.6); }
.card.night > h2::before { background: var(--jx-primary); box-shadow: 0 0 8px rgba(46,17,82,0.6); }
.sum { margin: 0 0 10px; font-size: 0.92rem; line-height: 1.45; }
.sum.moon { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--jx-border); }
.facts { margin: 0; display: grid; gap: 6px; }
.facts div { display: flex; justify-content: space-between; gap: 10px; border-top: 1px dashed var(--jx-border); padding-top: 6px; }
.facts dt { color: var(--jx-text-secondary); font-size: 0.86rem; }
.facts dd { margin: 0; font-weight: 600; font-size: 0.9rem; text-align: right; font-variant-numeric: tabular-nums; }
.muted { color: var(--jx-text-secondary); font-weight: 400; }
.sub { color: var(--jx-text-secondary); margin: 0 0 8px; font-size: 0.88rem; line-height: 1.45; }
.note { color: var(--jx-text-secondary); font-size: 0.8rem; margin: 10px 2px 0; line-height: 1.45; }

/* pass lists */
.passlist { list-style: none; margin: 0; padding: 0; }
.passlist li.empty { color: var(--jx-text-secondary); font-size: 0.9rem; padding: 8px 0; }
.pass { border-top: 1px solid var(--jx-border); }
.pass:first-child { border-top: 0; }
.pass button { appearance: none; border: 0; background: transparent; font: inherit; color: inherit; text-align: left; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; padding: 10px 6px; cursor: pointer; border-radius: var(--radius-sm); }
.pass button:hover { background: rgba(13,148,136,0.06); }
.pass.sel button { background: rgba(13,148,136,0.10); box-shadow: inset 3px 0 0 var(--jx-accent); }
.pass .when { display: flex; flex-direction: column; }
.pass .day { font-size: 0.74rem; font-weight: 700; color: var(--jx-text-secondary); text-transform: uppercase; letter-spacing: 0.06em; }
.pass .t { font-family: var(--font-display); font-weight: 700; color: var(--jx-primary); font-variant-numeric: tabular-nums; font-size: 1rem; }
.pass .what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pass .sname { font-weight: 700; font-size: 0.92rem; overflow-wrap: anywhere; }
.pass .times { font-size: 0.8rem; color: var(--jx-text-secondary); font-variant-numeric: tabular-nums; }
.pass .path { font-size: 0.88rem; }
.pass .fade { font-size: 0.78rem; color: var(--jx-text-secondary); font-style: italic; }
.pass .state { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.pill { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 0.76rem; font-weight: 700; white-space: nowrap; }
.pill.vis { background: var(--jx-spotlight); color: #1a0a00; }
.pill.no { background: var(--jx-surface-alt); color: var(--jx-text-secondary); font-weight: 600; }
.cd { font-size: 0.78rem; font-variant-numeric: tabular-nums; color: var(--jx-accent-text); font-weight: 600; white-space: nowrap; }
.cd.now { color: #C2410C; }
.pass.dim .t, .pass.dim .path, .pass.dim .sname { color: var(--jx-text-secondary); }
.pass.dim .t { font-weight: 500; }
@media (max-width: 620px) {
  .pass button { grid-template-columns: 74px minmax(0, 1fr); }
  .pass .state { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; text-align: left; }
  .pill { white-space: normal; }
}

/* sections below */
.block { margin-top: 30px; }
.block-head { margin-bottom: 12px; }
.block-head h2 { font-size: 1.5rem; color: var(--jx-primary); margin-bottom: 4px; }
.block-head .sub { max-width: 780px; }
.seg { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 0.84rem; color: var(--jx-text-secondary); }
.seg button { border: 1px solid var(--jx-border); background: #fff; color: var(--jx-text); border-radius: 999px; padding: 5px 13px; font-weight: 600; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--jx-primary); border-color: var(--jx-primary); color: #fff; }
.more { margin-top: 8px; border: 1px solid var(--jx-border); background: #fff; border-radius: 999px; padding: 7px 16px; font-weight: 600; cursor: pointer; color: var(--jx-primary); }
.more:hover { border-color: var(--jx-accent); }
.planet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 14px; }
.planet h3 { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; color: var(--jx-primary); margin-bottom: 6px; }
.planet .dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(18,17,23,0.25); flex: none; }
.planet .mag { margin-left: auto; font-family: var(--font-sans); font-size: 0.74rem; font-weight: 700; background: var(--jx-primary); color: #fff; padding: 2px 9px; border-radius: 999px; }
.planet .now-line { margin: 0; font-weight: 600; font-size: 0.92rem; }
.planet.up .now-line { color: var(--jx-accent-text); }
.planet .tonight { margin: 4px 0 10px; font-size: 0.86rem; color: var(--jx-text-secondary); line-height: 1.4; }

/* place sheet */
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--jx-primary); background: var(--jx-primary); color: #fff; border-radius: 999px; padding: 8px 15px; font-weight: 600; font-size: 0.9rem; cursor: pointer; }
.chip:hover { background: var(--jx-primary-hover); }
/* place sheet */
.sheet-scrim { position: fixed; inset: 0; background: rgba(18,17,23,0.55); z-index: 40; }
.sheet { position: fixed; z-index: 41; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(460px, calc(100vw - 32px)); max-height: min(640px, calc(100vh - 32px)); overflow: auto; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--jx-border); padding: 16px 18px; box-shadow: 0 24px 60px rgba(15,3,32,0.35); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.sheet-head h2 { font-size: 1.2rem; color: var(--jx-primary); }
.x { border: 0; background: var(--jx-surface); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; }
.chip.wide { width: 100%; justify-content: center; }
.geo-msg { font-size: 0.82rem; color: var(--jx-text-secondary); margin: 6px 0; min-height: 1em; }
.filter { width: 100%; padding: 9px 12px; border: 1px solid var(--jx-border); border-radius: var(--radius-sm); margin-bottom: 8px; }
.place-list { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow: auto; border: 1px solid var(--jx-border); border-radius: var(--radius-sm); }
.place-list button { width: 100%; text-align: left; border: 0; background: #fff; padding: 9px 12px; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--jx-surface-alt); }
.place-list li:first-child button { border-top: 0; }
.place-list button:hover, .place-list button[aria-current="true"] { background: var(--jx-surface); }
.place-list small { color: var(--jx-text-secondary); }
.custom { margin-top: 12px; }
.custom summary { cursor: pointer; font-weight: 600; color: var(--jx-primary); }
.custom form { display: grid; gap: 8px; margin-top: 8px; }
.custom label { display: grid; gap: 3px; font-size: 0.85rem; color: var(--jx-text-secondary); }
.custom input, .custom select { padding: 8px 10px; border: 1px solid var(--jx-border); border-radius: var(--radius-sm); color: var(--jx-text); background: #fff; width: 100%; }

.foot { background: linear-gradient(90deg, var(--jx-black) 0%, var(--jx-primary-deep) 50%, var(--jx-primary) 100%); color: var(--jx-text-on-dark); padding: 22px 16px 28px; font-size: 0.84rem; line-height: 1.55; }
.foot p { max-width: 1148px; margin: 0 auto 10px; color: #d9d6e2; }
.foot b { color: #fff; }
.foot a { color: var(--jx-silver); }
.foot a:hover { color: var(--jx-accent-hover); }
