@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500 600; font-display: swap; src: url(/fonts/cormorant-garamond-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500 600; font-display: swap; src: url(/fonts/cormorant-garamond-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500 600; font-display: swap; src: url(/fonts/cormorant-garamond-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500 600; font-display: swap; src: url(/fonts/cormorant-garamond-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/inter-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/inter-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Moon Calendar. Served as /site.css together with fonts/fonts.css (see server.mjs). */

:root {
  --bg: #060818;
  --panel: rgba(255, 255, 255, 0.028);
  --panel-strong: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.17);
  --text: #e7e9f3;
  --text-2: #aab1cd;
  --muted: #8189ac;
  --accent: #b9c6ff;
  --accent-strong: #d9dffe;
  --phase: #e9ebf6;
  --apsis: #7fb2ff;
  --eclipse: #ff9070;
  --planet: #c7a0ff;
  --season: #f2c462;
  --radius: 14px;
  --serif: 'Cormorant Garamond', 'Iowan Old Style', 'Palatino Linotype', 'Songti SC', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.55 var(--sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
/* A still sky: a soft glow behind the hero and a scatter of stars. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1.2px 1.2px at 7% 12%, rgba(255, 255, 255, 0.6) 50%, transparent 52%),
    radial-gradient(1px 1px at 18% 64%, rgba(255, 255, 255, 0.45) 50%, transparent 52%),
    radial-gradient(1.3px 1.3px at 29% 31%, rgba(255, 255, 255, 0.5) 50%, transparent 52%),
    radial-gradient(1px 1px at 37% 83%, rgba(255, 255, 255, 0.35) 50%, transparent 52%),
    radial-gradient(1px 1px at 46% 9%, rgba(255, 255, 255, 0.4) 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 58% 71%, rgba(255, 255, 255, 0.45) 50%, transparent 52%),
    radial-gradient(1px 1px at 66% 22%, rgba(255, 255, 255, 0.5) 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 74% 52%, rgba(255, 255, 255, 0.35) 50%, transparent 52%),
    radial-gradient(1px 1px at 83% 88%, rgba(255, 255, 255, 0.45) 50%, transparent 52%),
    radial-gradient(1.3px 1.3px at 91% 16%, rgba(255, 255, 255, 0.55) 50%, transparent 52%),
    radial-gradient(1px 1px at 96% 61%, rgba(255, 255, 255, 0.4) 50%, transparent 52%),
    radial-gradient(1px 1px at 3% 92%, rgba(255, 255, 255, 0.35) 50%, transparent 52%),
    radial-gradient(ellipse 80% 55% at 50% 0%, #0d1233 0%, rgba(6, 8, 24, 0) 70%);
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
small { font-size: 0.82em; color: var(--muted); }
button { font: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 10px 14px; border-radius: 8px; background: #11163a; color: var(--text);
}
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }
.fine-print { margin-top: 12px; font-size: 12.5px; color: var(--muted); max-width: 78ch; }
.eyebrow {
  font: 600 12px/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.panel {
  padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
}

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1120px; margin: 0 auto; padding: 16px 20px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 9px;
  font: 600 23px/1 var(--serif); letter-spacing: 0.01em; color: var(--text); text-decoration: none;
}
.wordmark:hover { color: var(--text); }
.wordmark svg { width: 19px; height: 19px; color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.site-nav > a, .location-button, .lang-menu summary {
  padding: 7px 12px; border: 1px solid transparent; border-radius: 999px;
  background: none; color: var(--text-2); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.site-nav > a:hover, .location-button:hover, .lang-menu summary:hover { color: var(--text); background: var(--panel-strong); }
.location-button { display: inline-flex; align-items: center; gap: 6px; max-width: 230px; border-color: var(--line); }
.location-button svg { flex: none; width: 15px; height: 15px; }
.location-button span { overflow: hidden; text-overflow: ellipsis; }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; border-color: var(--line); font-weight: 600; font-size: 12.5px; letter-spacing: 0.06em; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20;
  min-width: 160px; margin: 0; padding: 6px; list-style: none;
  border: 1px solid var(--line-strong); border-radius: 12px; background: #0c1030;
}
.lang-menu a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text-2); text-decoration: none; }
.lang-menu a:hover, .lang-menu a[aria-current] { color: var(--text); background: var(--panel-strong); }

main { max-width: 1120px; margin: 0 auto; padding: 0 20px 72px; }
main > section { margin-top: 68px; }
main > section:first-child, main > .crumbs + section { margin-top: 8px; }
.section-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px;
  margin-bottom: 18px;
}
.section-head h1, .section-head h2, section > h2 { font: 600 31px/1.1 var(--serif); }
.section-head p { color: var(--muted); font-size: 14px; }
.crumbs { margin-top: 4px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-eyebrow { margin: 28px 0 6px; }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 500px) minmax(0, 1fr); align-items: center; gap: 12px 44px;
}
.hero-moon { position: relative; width: 100%; aspect-ratio: 1; }
/* The drawing leaves room around the disc for its glow, so it is let out past the box a little. */
.hero-moon > svg { position: absolute; inset: -11%; width: 122%; height: 122%; overflow: visible; transition: opacity 0.5s ease; }
/* With scripts on, the Moon appears when the live one is ready (or after a short wait). */
.js:not(.moon-ready) .hero-moon > svg { opacity: 0; }
.hero-moon > svg.is-entering { opacity: 0; }
.hero h1 { font: 600 clamp(42px, 6.2vw, 70px)/1 var(--serif); letter-spacing: -0.005em; margin-top: 12px; }
.hero-lit { margin-top: 14px; font-size: 19px; color: var(--text-2); }
.hero-sentence { margin-top: 18px; max-width: 46ch; font-size: 17px; line-height: 1.5; transition: opacity 0.2s; }
.hero-sentence.is-stale { opacity: 0.35; }
.hero-place { margin-top: 12px; }
.link-button {
  padding: 0; border: 0; background: none; color: var(--accent); cursor: pointer;
  font-size: 14px; text-decoration: underline dotted; text-underline-offset: 4px;
}
.link-button:hover { color: var(--accent-strong); }
.scrub { margin-top: 26px; max-width: 430px; }
.scrub input[type="range"] { width: 100%; margin: 0; accent-color: var(--accent); }
.scrub-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 8px; min-height: 30px; font-size: 13px; color: var(--text-2); }
.scrub-row output { margin-right: auto; }
.chip-button, .cal-nav a, .day-nav a {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
  color: var(--text-2); font: 500 13px/1.3 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.chip-button:hover, .cal-nav a:hover, .day-nav a:hover { color: var(--text); border-color: var(--line-strong); background: var(--panel-strong); }
.chip-button[aria-pressed="true"] { color: var(--text); border-color: var(--accent); }
.day-hero h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; }
.hero-phase { margin-top: 12px; font: 600 27px/1.2 var(--serif); }

/* Tags and dots */
.tags { display: inline-flex; flex-wrap: wrap; gap: 5px; margin-left: 4px; vertical-align: middle; }
.tag {
  padding: 2px 8px; border-radius: 999px; background: rgba(185, 198, 255, 0.13);
  color: var(--accent-strong); font: 600 11px/1.5 var(--sans); letter-spacing: 0.01em; white-space: nowrap;
}
.tag.live { background: rgba(120, 220, 160, 0.14); color: #a8ecc4; }
.dot { display: inline-block; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.dot.phase { background: var(--phase); }
.dot.apsis { background: var(--apsis); }
.dot.eclipse { background: var(--eclipse); }
.dot.planet { background: var(--planet); }
.dot.season { background: var(--season); }

/* Today */
.today-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 14px; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.trio dt, .facts dt { font: 600 11px/1.3 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.trio dd { margin-top: 4px; font-size: 25px; font-weight: 500; line-height: 1.15; }
.trio dd small { font-size: 13px; font-weight: 400; }
.facts-panel h3 { font: 600 11px/1.3 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.facts-panel > p { color: var(--text-2); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; margin: 20px 0; }
.facts dd { margin-top: 3px; font-size: 16px; }

.sky-plot {
  position: relative; height: 196px; overflow: hidden;
  border: 1px solid var(--line); border-radius: 10px; background: #070a1f;
}
.sky-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sun-day { fill: rgba(128, 162, 255, 0.22); }
.sun-civil { fill: rgba(128, 162, 255, 0.14); }
.sun-nautical { fill: rgba(128, 162, 255, 0.085); }
.sun-astro { fill: rgba(128, 162, 255, 0.04); }
.sun-night { fill: none; }
.sky-plot .ground { fill: rgba(0, 0, 0, 0.36); }
.sky-plot line, .sky-plot path { vector-effect: non-scaling-stroke; fill: none; }
.sky-plot .grid { stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; }
.sky-plot .horizon { stroke: rgba(255, 255, 255, 0.32); stroke-width: 1; }
.moon-below { stroke: rgba(205, 212, 240, 0.36); stroke-width: 1.5; stroke-dasharray: 3 4; }
.moon-above { stroke: #f1f3fb; stroke-width: 2.5; stroke-linejoin: round; }
.sky-alt { position: absolute; left: 8px; transform: translateY(-50%); font-size: 11px; color: var(--muted); }
.sky-alt.horizon { transform: translateY(-125%); }
.sky-marker {
  position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px;
  border-radius: 50%; background: #f1f3fb; box-shadow: 0 0 0 3px rgba(6, 8, 24, 0.75);
}
.sky-marker b { position: absolute; left: 50%; bottom: 13px; transform: translateX(-50%); font: 600 12px/1 var(--sans); white-space: nowrap; }
.sky-marker.rise b, .sky-marker.set b, .sky-marker.is-high b { top: 14px; bottom: auto; }
.sky-marker.at-start b { left: -2px; transform: none; }
.sky-marker.at-end b { left: auto; right: -2px; transform: none; }
.sky-now { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px solid var(--season); }
.sky-now i { position: absolute; top: 6px; left: 6px; font: normal 600 11px/1 var(--sans); color: var(--season); white-space: nowrap; }
.sky-now.at-end i { left: auto; right: 6px; }
.sky-now-dot {
  position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px;
  border-radius: 50%; background: var(--season); box-shadow: 0 0 0 3px rgba(6, 8, 24, 0.75);
}
.sky-hours { position: relative; height: 24px; font-size: 11px; color: var(--muted); }
.sky-hours span { position: absolute; top: 7px; transform: translateX(-50%); white-space: nowrap; }
.sky-hours span:first-child { transform: none; }
.sky-hours span:last-child { transform: translateX(-100%); }
.sky-chart figcaption { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.key { display: inline-flex; align-items: center; gap: 6px; }
.key::before { content: ''; width: 14px; height: 8px; border-radius: 2px; background: rgba(128, 162, 255, 0.3); }
.key.moon::before { height: 2.5px; background: #f1f3fb; }
.key.twilight::before { background: rgba(128, 162, 255, 0.14); }
.key.night::before { background: #070a1f; border: 1px solid var(--line-strong); }

/* Coming phases */
.phase-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.phase-cards a {
  display: block; height: 100%; padding: 20px 14px 18px; text-align: center; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
}
.phase-cards a:hover { border-color: var(--line-strong); background: var(--panel-strong); }
.phase-cards .moon-icon { display: block; width: 88px; height: 88px; margin: 0 auto 12px; }
.phase-cards h3 { font: 600 22px/1.15 var(--serif); }
.phase-cards .when { margin-top: 6px; font-size: 13.5px; color: var(--text-2); }
.phase-cards .tags { margin: 8px 0 0; justify-content: center; }
.countdown { margin-top: 2px; font-size: 13px; color: var(--accent); }
.distance { margin-top: 12px; }
.distance h3, .coming-cards h3 + .when { color: var(--text-2); }
.distance h3 { font: 600 11px/1.3 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.distance-now { margin: 6px 0 16px; color: var(--text-2); }
.distance-now strong { font-size: 22px; font-weight: 500; color: var(--text); }
.gauge { position: relative; height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgba(185, 198, 255, 0.55), rgba(185, 198, 255, 0.1)); }
.gauge-mark {
  position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(185, 198, 255, 0.25);
}
.gauge-ends { display: flex; justify-content: space-between; gap: 12px; margin-top: 9px; font-size: 12px; color: var(--muted); }
.apsis-list { display: flex; flex-wrap: wrap; gap: 6px 30px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 14px; }
.apsis-list span { color: var(--muted); margin-right: 4px; }
.apsis-list.wide { margin-top: 20px; }

/* Calendar */
.cal-nav { display: flex; gap: 8px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.cal-weekday { padding: 4px 0 6px; text-align: center; font: 600 11px/1.3 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.cal-day {
  display: grid; justify-items: center; align-content: start; gap: 3px; height: 126px; padding: 9px 4px 6px;
  border: 1px solid transparent; border-radius: 10px; background: var(--panel);
  color: var(--text-2); text-decoration: none;
}
.cal-day:hover { color: var(--text); border-color: var(--line-strong); background: var(--panel-strong); }
.cal-day.is-today { border-color: rgba(185, 198, 255, 0.6); background: rgba(185, 198, 255, 0.085); color: var(--text); }
.cal-num { justify-self: start; padding-left: 6px; font-size: 13px; line-height: 1; }
.cal-day.is-today .cal-num { font-weight: 600; }
.cal-day .moon-icon { width: 60px; height: 60px; }
.cal-sub { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; line-height: 1.25; }
.cal-day.is-phase .cal-sub { color: var(--text); font-weight: 600; }
.cal-marks { display: flex; gap: 4px; height: 6px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.calendar .events-title { margin: 34px 0 12px; font: 600 22px/1.2 var(--serif); }

.agenda { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.agenda li { display: grid; grid-template-columns: 138px 8px minmax(0, 1fr); gap: 0 14px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.agenda-when { display: flex; flex-direction: column; font-size: 14px; color: var(--text-2); }
.agenda-when span { color: var(--muted); font-size: 13px; }
.agenda .dot { width: 8px; height: 8px; margin-top: 7px; }
.agenda h3, .agenda h4 { margin: 0; font: 600 15.5px/1.35 var(--sans); }
.agenda :is(h3, h4) a { color: inherit; text-decoration: none; }
.agenda :is(h3, h4) a:hover { text-decoration: underline; }
.agenda p { margin-top: 3px; font-size: 14px; color: var(--text-2); max-width: 74ch; }

/* Tables */
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { padding: 11px 14px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); font-weight: 400; }
table.data thead th { font: 600 11px/1.3 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
table.data tbody th { font-weight: 600; }
table.data tbody tr:last-child > * { border-bottom: 0; }
table.data tr.is-hidden th { color: var(--text-2); font-weight: 500; }
.planet-dot { display: inline-block; width: 9px; height: 9px; margin-right: 9px; border-radius: 50%; background: #c9c3b8; }
.planet-dot.venus { background: #f1d9a0; }
.planet-dot.mars { background: #e0775a; }
.planet-dot.jupiter { background: #d9b48a; }
.planet-dot.saturn { background: #e4cf95; }
.planet-dot.uranus { background: #8fdbe0; }
.planet-dot.neptune { background: #6f8ff0; }
.phases-table td a { font-weight: 600; text-decoration: none; }
.phases-table td a:hover { text-decoration: underline; }
.phases-table .tags { display: flex; margin: 4px 0 0; }

/* Coming up, about */
.coming-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.coming-cards h3 { margin-top: 8px; font: 600 22px/1.2 var(--serif); }
.coming-cards h3 a { color: inherit; text-decoration: none; }
.coming-cards h3 a:hover { text-decoration: underline; }
.coming-cards .when { margin-top: 6px; font-size: 13.5px; color: var(--text-2); }
.coming-cards p + p { margin-top: 8px; }
.coming-cards .countdown ~ p { font-size: 14px; color: var(--text-2); }
.coming-cards .dot { width: 8px; height: 8px; }
.prose { max-width: 74ch; color: var(--text-2); }
.prose p + p { margin-top: 12px; }

/* Day and year pages */
.exact summary { cursor: pointer; }
.exact summary h2 { display: inline; font: 600 27px/1.1 var(--serif); }
.exact .table-wrap { margin-top: 14px; max-width: 640px; }
.exact table.data th { color: var(--text-2); font-weight: 400; }
.day-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 48px; }
.year-head h1 { font: 600 clamp(38px, 5.4vw, 60px)/1.02 var(--serif); }
.lead { margin: 12px 0 18px; font-size: 17px; color: var(--text-2); }
/* position: relative keeps the visually hidden day labels inside the scrolling box. */
.year-strip { position: relative; overflow-x: auto; padding-bottom: 4px; }
.year-row { display: grid; grid-template-columns: 44px minmax(600px, 1fr); align-items: center; gap: 8px; }
.year-row + .year-row { margin-top: 3px; }
.year-month { font-size: 12.5px; color: var(--text-2); text-decoration: none; }
.year-month:hover { text-decoration: underline; }
.year-row ol { display: grid; grid-template-columns: repeat(31, minmax(0, 1fr)); gap: 2px; margin: 0; padding: 0; list-style: none; }
.year-row li a { display: block; border-radius: 50%; }
.year-row li a.is-today { outline: 2px solid var(--accent); outline-offset: 1px; }
.year-row .moon-icon { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.not-found { padding: 80px 0; text-align: center; }
.not-found h1 { font: 600 44px/1.1 var(--serif); }
.not-found p { margin-top: 14px; color: var(--text-2); }

/* Buttons, dialog, footer */
.button {
  display: inline-block; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--panel-strong); color: var(--text); font: 600 14px/1.3 var(--sans); text-decoration: none; cursor: pointer;
}
.button:hover { background: rgba(255, 255, 255, 0.09); color: var(--text); }
.icon-button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; color: var(--text-2); font-size: 24px; line-height: 1; cursor: pointer; }
.icon-button:hover { color: var(--text); background: var(--panel-strong); }
.location-dialog {
  width: min(440px, calc(100vw - 32px)); padding: 22px;
  border: 1px solid var(--line-strong); border-radius: 16px; background: #0b0f2a; color: var(--text);
}
.location-dialog::backdrop { background: rgba(2, 3, 12, 0.72); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.dialog-head h2 { font: 600 26px/1.1 var(--serif); }
.dialog-note { color: var(--text-2); font-size: 14px; }
.dialog-note.small { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.location-dialog label { display: block; margin: 18px 0 6px; font: 600 11px/1.3 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.location-dialog input[type="search"] {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: rgba(255, 255, 255, 0.04); color: var(--text); font: inherit;
}
.location-results { max-height: 264px; margin: 8px 0 0; padding: 0; overflow: auto; list-style: none; }
.location-results button {
  display: block; width: 100%; padding: 9px 12px; border: 0; border-radius: 8px;
  background: none; color: var(--text); text-align: left; cursor: pointer;
}
.location-results button:hover, .location-results button:focus-visible { background: var(--panel-strong); }
.location-results small { display: block; }
.location-status { min-height: 20px; margin: 6px 0 12px; font-size: 13px; color: var(--text-2); }
.site-footer {
  max-width: 1120px; margin: 0 auto; padding: 26px 20px 44px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 13px;
}
.site-footer .credits { margin-top: 6px; font-size: 12px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 0; }
  .hero-moon { max-width: 380px; }
  .hero-moon > svg { inset: 0; width: 100%; height: 100%; }
  .hero-sentence { margin-left: auto; margin-right: auto; }
  .scrub { margin-left: auto; margin-right: auto; }
  .scrub-row { justify-content: center; }
  .scrub-row output { flex-basis: 100%; margin: 0; text-align: center; }
  .today-grid, .coming-cards { grid-template-columns: minmax(0, 1fr); }
  .phase-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  body { font-size: 14.5px; }
  main { padding: 0 14px 56px; }
  main > section { margin-top: 52px; }
  .site-header { padding: 12px 14px; gap: 8px; }
  .wordmark { font-size: 19px; white-space: nowrap; }
  .site-nav { min-width: 0; }
  .site-nav > a { display: none; }
  .location-button { min-width: 0; max-width: 150px; padding: 7px 10px; }
  .section-head h1, .section-head h2, section > h2 { font-size: 27px; }
  .panel { padding: 16px; }
  .trio dd { font-size: clamp(16px, 4.7vw, 21px); white-space: nowrap; }
  .trio dd small { display: block; margin-top: 2px; }
  .sky-plot { height: 168px; }
  .sky-hours .minor { display: none; }
  .cal-grid { gap: 3px; }
  .cal-day { height: 92px; padding: 7px 1px 5px; gap: 2px; border-radius: 8px; }
  .cal-num { padding-left: 5px; font-size: 12px; }
  .cal-day .moon-icon { width: 34px; height: 34px; }
  .cal-sub { font-size: 9.5px; }
  .cal-marks { gap: 3px; height: 5px; }
  .cal-marks .dot { width: 5px; height: 5px; }
  .cal-nav a span { display: none; }
  .agenda li { grid-template-columns: 84px 8px minmax(0, 1fr); gap: 0 10px; }
  .phase-cards .moon-icon { width: 68px; height: 68px; }
  .facts { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
