@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --bg: #07101c;
    --bg-soft: #0d1827;
    --panel: #111f31;
    --text: #eef4fb;
    --muted: #aab8c8;
    --line: rgba(255,255,255,.10);
    --accent: #8ec5ff;
    --accent-2: #d8eaff;
    --light: #f4f7fa;
    --light-text: #172333;
    --light-muted: #5d6b79;
    --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Inter, system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
}

a { color: inherit; text-decoration: none; }

.container {
    width: min(calc(100% - 40px), var(--max));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(7,16,28,.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.nav-wrap {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 245px;
}
/*
.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(142,197,255,.45);
    border-radius: 50%;
    color: var(--accent);
    font-size: 20px;
}
*/

.brand-logo {
    width: 76px;
    height: 76px;
    max-width: 76px;
    max-height: 76px;
    display: block;
    object-fit: contain;
    flex: 0 0 76px;
}

.brand strong {
    display: block;
    font-family: "Space Grotesk", sans-serif;
    font-size: 15px;
    letter-spacing: .01em;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

nav a {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

nav a:hover, nav a.active { color: var(--text); }

.hero {
    min-height: 680px;
    display: grid;
    align-items: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 75% 25%, rgba(82,139,201,.22), transparent 25%),
        radial-gradient(circle at 20% 65%, rgba(60,100,150,.12), transparent 28%),
        linear-gradient(180deg, #06101d 0%, #0a1726 100%);
}

.hero-stars,
.hero-stars::before,
.hero-stars::after {
    position: absolute;
    inset: 0;
    content: "";
    background-image:
        radial-gradient(circle, rgba(255,255,255,.8) 1px, transparent 1.5px),
        radial-gradient(circle, rgba(255,255,255,.5) 1px, transparent 1.5px);
    background-size: 170px 170px, 230px 230px;
    background-position: 20px 30px, 90px 80px;
    opacity: .22;
}

.hero-stars::before {
    transform: translate(80px, 100px);
    opacity: .14;
}

.hero-stars::after {
    transform: translate(-100px, -80px);
    opacity: .10;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 90px 0;
    max-width: 820px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
}

h1, h2, h3 {
    font-family: "Space Grotesk", sans-serif;
    line-height: 1.12;
    margin-top: 0;
}

h1 {
    font-size: clamp(46px, 7vw, 84px);
    letter-spacing: -.045em;
    margin-bottom: 26px;
}

.hero h1 span {
    color: var(--accent-2);
}

.hero-text {
    max-width: 650px;
    color: var(--muted);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.button {
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.button.primary {
    background: var(--accent);
    color: #08111c;
}

.button.secondary {
    border: 1px solid var(--line);
    color: var(--text);
}

.section {
    padding: 105px 0;
    background: var(--light);
    color: var(--light-text);
}

.section-dark {
    background: var(--bg-soft);
    color: var(--text);
}

.section-heading {
    max-width: 720px;
    margin-bottom: 48px;
}

.section h2, .page-hero h1 {
    font-size: clamp(34px, 5vw, 54px);
    letter-spacing: -.035em;
    margin-bottom: 18px;
}

.section-heading > p:last-child,
.split > div > p {
    color: var(--light-muted);
}

.section-dark .section-heading > p:last-child,
.section-dark .split > div > p {
    color: var(--muted);
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.card {
    padding: 30px;
    border: 1px solid #dce3e9;
    background: white;
    border-radius: 10px;
}

.card-icon {
    font-size: 28px;
    margin-bottom: 18px;
}

.card h3 {
    font-size: 23px;
    margin-bottom: 10px;
}

.card p {
    margin: 0;
    color: var(--light-muted);
    font-size: 14px;
}

/* Cards inside dark sections */

.section-dark .card {
    background: #162334;
    border-color: #26384d;
}

.section-dark .card h3 {
    color: #f2f6fa;
}

.section-dark .card p {
    color: #b9c7d6;
}

.section-dark .card .text-link {
    color: var(--accent);
}

.meteor-activity {
    background: #f7f9fb;
}

.meteor-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 35px;
}

.meteor-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 22px;
}

.meteor-card h3 {
    margin-bottom: 5px;
}

.meteor-status {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 18px;
}

.meteor-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

.meteor-link {
    margin: 15px 0 0;
    font-size: 14px;
}

.meteor-credit {
    margin-top: 30px;
    font-size: 12px;
    color: var(--muted);
}

@media (max-width: 700px) {

    .meteor-grid {
        grid-template-columns: 1fr;
    }

}

.live-camera-card {
    max-width: 1100px;
    margin: 0 auto;
}

.live-image-wrap {
    margin-top: 30px;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,.15);
}

.live-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

.live-status {
    margin-top: 12px;
    font-size: 12px;
    color: var(--muted);
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: start;
}

.stat-panel {
    display: grid;
    gap: 12px;
}

.stat {
    padding: 25px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.035);
    border-radius: 8px;
}

.stat strong {
    display: block;
    font-family: "Space Grotesk", sans-serif;
    font-size: 34px;
}

.stat span {
    color: var(--muted);
    font-size: 13px;
}

.history-grid {
    align-items: start;
}

.history-image {
    width: 85%;
    margin: 0 0 3rem;
}

.history-image img {
    width: 100%;
    display: block;
    border-radius: 8px;
    filter: grayscale(100%);
    box-shadow: 0 20px 50px rgba(0,0,0,.12);
}

.caption {
    margin: 10px 0 0;
    color: var(--light-muted);
    font-size: 11px;
    line-height: 1.5;
}

@media (max-width: 700px) {
    .history-image {
        width: 100%;
    }
}

.history-placeholder {
    min-height: 360px;
    padding: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    border: 1px dashed #b9c6d2;
    border-radius: 8px;
    background: #edf2f6;
}

.history-placeholder.large {
    min-height: 300px;
    margin-bottom: 45px;
}

.history-placeholder .placeholder-symbol {
    font-size: 38px;
    color: #6d9bc4;
    margin-bottom: 18px;
}

.history-placeholder h3,
.history-placeholder h2 {
    margin-bottom: 12px;
}

.history-placeholder p:last-child {
    max-width: 600px;
    margin: 0;
    color: var(--light-muted);
}

.text-link {
    display: inline-block;
    margin-top: 16px;
    color: #285f8f;
    font-weight: 700;
    font-size: 14px;
}

.section-dark .text-link { color: var(--accent); }

.camera-placeholder {
    min-height: 300px;
    display: grid;
    place-items: center;
    text-align: center;
    border: 1px dashed rgba(255,255,255,.22);
    border-radius: 10px;
    padding: 50px;
}

.live-stream {
    max-width: 1000px;
    margin: 0 auto;
    background: #050b12;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    overflow: hidden;
}

.live-stream-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,.10);
    font-size: 13px;
    font-weight: 600;
}

.live-indicator {
    color: #ff5b5b;
    font-weight: 700;
    letter-spacing: .08em;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.stream-caption {
    margin: 0;
    padding: 16px 20px 20px;
    color: var(--muted);
    font-size: 12px;
}

.camera-symbol {
    font-size: 48px;
    color: var(--accent);
}

.camera-placeholder h3 { margin: 12px 0 5px; }
.camera-placeholder p { margin: 0; color: var(--muted); }

.page-hero {
    padding: 120px 0 95px;
    background:
        radial-gradient(circle at 80% 30%, rgba(82,139,201,.18), transparent 30%),
        var(--bg);
}

.page-hero p:last-child {
    max-width: 700px;
    color: var(--muted);
    font-size: 18px;
}

.article {
    max-width: 900px;
}

.article-image {
    width: 100%;
    display: block;
    border-radius: 8px;
    filter: grayscale(100%);
}

.article h2 {
    margin-top: 55px;
}

.article p {
    max-width: 760px;
    color: var(--light-muted);
}

/* Dark educational callout */

.callout-dark {
    border-left: 3px solid var(--accent);
    background: rgba(255, 255, 255, 0.045);
    padding: 28px 30px;
    margin-top: 36px;
    border-radius: 0 6px 6px 0;
}

.callout-dark strong {
    display: block;
    color: var(--text);
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.callout-dark p {
    margin: 0;
    color: var(--muted);
}

/* Educational callouts on light sections */

.callout {
    margin: 40px 0;
    padding: 28px 30px;
    border-left: 3px solid #6d9bc4;
    background: #e8eef4;
    color: #172333;
}

.callout strong,
.callout h3 {
    display: block;
    margin: 0 0 10px 0;
    color: #172333 !important;
    opacity: 1 !important;
    font-size: 1.05rem;
    font-weight: 700;
}

.callout p {
    margin: 0;
    color: #5d6b79 !important;
    opacity: 1 !important;
}

/* Historical evidence and sources */

.evidence-box {
    margin: 40px 0;
    padding: 28px 30px;
    border: 1px solid #dce3e9;
    border-radius: 8px;
    background: #ffffff;
}

.evidence-box h3 {
    margin-bottom: 10px;
}

.evidence-box p {
    margin-bottom: 10px;
}

.source-list {
    max-width: 760px;
    padding-left: 22px;
    color: var(--light-muted);
}

.source-list li {
    margin-bottom: 12px;
}

.historical-note {
    font-size: 12px;
    font-style: italic;
}

.site-footer {
    background: #040a12;
    border-top: 1px solid var(--line);
    padding: 45px 0;
    color: var(--muted);
}

.footer-wrap {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.footer-wrap strong { color: var(--text); }
.footer-wrap p { margin: 5px 0 0; font-size: 12px; }
.footer-note { text-align: right; }

.footer-social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-social img {
    display: block;
    width: 22px;
    height: 22px;
}

.footer-social a:hover {
    opacity: 0.7;
}

.contact-card {
    max-width: 700px;
    margin-top: 35px;
    padding: 30px;
    border: 1px solid #dce3e9;
    background: white;
    border-radius: 10px;
}

.contact-card h2 {
    margin-bottom: 12px;
}

.contact-card p {
    margin-bottom: 15px;
}

.contact-card p:last-child {
    margin-bottom: 0;
}

/* Allsky previous-night products */

.allsky-products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    align-items: start;
}

.allsky-product {
    background: #050b12;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    overflow: hidden;
}

.allsky-product-image {
    display: block;
    width: 100%;
    height: auto;
    background: #000;
}

.allsky-product-caption {
    padding: 16px 20px 20px;
}

.allsky-product-caption h3 {
    margin: 0 0 6px;
    font-size: 20px;
    color: var(--text);
}

.allsky-product-caption p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 700px) {
    .allsky-products {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .nav-wrap {
        align-items: flex-start;
        padding: 15px 0;
        flex-direction: column;
    }

    nav {
        justify-content: flex-start;
        gap: 12px 18px;
    }

    .hero { min-height: 600px; }
    .cards, .split { grid-template-columns: 1fr; }
    .split { gap: 40px; }
    .section { padding: 75px 0; }
    .footer-wrap { flex-direction: column; }
    .footer-note { text-align: left; }
}

/* Altitude and azimuth diagram */

.sky-coordinates-figure {
    margin: 48px 0;
}

.sky-coordinates-figure img {
    display: block;
    width: 100%;
    max-width: 1100px;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.sky-coordinates-figure figcaption {
    margin-top: 14px;
    font-size: 0.9rem;
    color: var(--muted);
}

.celestial-sphere-image {
    margin: 36px 0 40px 0;
    text-align: center;
}

.celestial-sphere-image img {
    display: block;
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: 0 auto;
    border-radius: 6px;
}
