/* Lesson, sky-event and Solar System pages: the landing page's night sky, set for long reading. */
body:has(.page) { background: linear-gradient(to bottom, var(--sky-top), var(--sky-low) 100%); }
body:has(.page) .foot { background: var(--land); max-width: none; padding-left: max(clamp(16px, 4vw, 48px), calc((100% - 1200px) / 2 + 48px)); }
.horizon { background: transparent; }
.page { padding-top: clamp(16px, 4vw, 40px); padding-bottom: clamp(48px, 8vw, 96px); }
.page h1 { font-size: clamp(2.25rem, 6vw, 4rem); font-weight: 800; letter-spacing: -.02em; }
.page > h1::after, .lesson h1::after { content: ''; display: block; width: min(100%, 320px); height: 6px; margin-top: 20px; background: var(--ink); }
.page > .lede, .lesson .lede { margin-top: 24px; max-width: 60ch; }
.page section { margin-top: clamp(40px, 6vw, 64px); padding-top: 32px; border-top: 1px solid var(--rule); }
.page section h2 { font-size: clamp(1.5rem, 3vw, 2rem); }

.crumbs { margin-bottom: 24px; font-size: .95rem; color: var(--soft); }
.crumbs a { color: var(--soft); }
.crumbs [aria-current] { color: var(--ink); }
.kicker { margin-bottom: 14px; color: var(--soft); font-weight: 500; font-size: 1rem; }

.lesson { max-width: 760px; }
.prose { margin-top: 32px; font-family: var(--read); font-size: 1.12rem; line-height: 1.72; color: color-mix(in srgb, var(--ink) 92%, var(--soft)); }
.prose strong { font-weight: 600; color: var(--ink); }
.page .lede { font-family: var(--read); font-style: italic; font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.55; }
.prose p, .prose ul { margin: 0 0 1.1em; }
.prose h2 { font-family: var(--ui); margin: 1.8em 0 .6em; font-size: clamp(1.4rem, 2.6vw, 1.75rem); font-weight: 700; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose a { text-underline-offset: 3px; }

.plate { margin: 32px 0 0; }
.plate img { width: 100%; max-height: 460px; object-fit: cover; border-radius: 6px; border: 1px solid var(--rule); background: #000; }
.plate figcaption { margin-top: 10px; color: var(--soft); font-size: .95rem; }
.credit { display: block; margin-top: 4px; font-size: .85rem; }

.facts { margin: 32px 0 0; border-top: 3px solid var(--ink); }
.facts div { display: grid; grid-template-columns: minmax(110px, 180px) 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--soft); }
.facts dd { margin: 0; }

.callout { margin-top: 40px; padding: 24px; border: 2px solid var(--ink); border-radius: 6px; }
.callout h2 { font-size: 1.5rem; }
.callout p { margin: 10px 0 20px; color: var(--soft); }
.button { display: inline-block; padding: 12px 24px; background: var(--ink); color: #000; font-weight: 700; text-decoration: none; border-radius: 999px; }
.button:hover { box-shadow: 0 0 0 3px var(--sky), 0 0 0 5px var(--ink); }
.page > p > .button { margin-top: 28px; }

.cards, .worlds, .events { list-style: none; margin: 24px 0 0; padding: 0; }
.cards, .worlds { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.cards a, .worlds a { display: block; height: 100%; padding: 18px 20px; border: 1px solid var(--rule); border-top: 3px solid var(--ink); text-decoration: none; }
.cards a:hover, .worlds a:hover { background: rgba(242, 238, 227, .06); }
.cards h3, .worlds h3 { font-size: 1.2rem; font-weight: 700; }
.cards p, .worlds p { margin-top: 8px; color: var(--soft); font-size: 1rem; }
.cards .fine { display: block; margin-top: 12px; }
.worlds img, .worlds .dot { width: 72px; height: 72px; margin-bottom: 14px; border-radius: 50%; object-fit: cover; background: #222; }
.worlds .dot { display: block; }

.events li a { display: grid; grid-template-columns: 88px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.events time { font-weight: 800; font-size: 1.15rem; }
.events span { color: var(--soft); }
.events strong { color: var(--ink); font-weight: 700; }
.events a:hover strong { text-decoration: underline; }

.pager { margin-top: 48px; display: flex; justify-content: space-between; gap: 16px; }
.pager a { max-width: 48%; text-decoration: none; font-weight: 700; }
.pager a[rel="next"] { text-align: right; margin-left: auto; }
.pager span { display: block; color: var(--soft); font-weight: 400; font-size: .9rem; }

.bar nav .open { color: var(--ink); font-weight: 700; }
@media (max-width: 760px) {
  .bar nav .open { display: inline; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .events li a { grid-template-columns: 64px 1fr; }
}
