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

/* Orbital Homepage */
.orbital-page {
    --space-0: #05060a;
    --space-1: #0b1018;
    --space-2: #16191f;
    --sun-core: rgba(248, 198, 118, 0.22);
    --sun-aura: rgba(234, 129, 64, 0.12);
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    color: #d6dbe5;
    background:
        radial-gradient(circle at 84% 14%, rgba(250, 182, 96, 0.2), transparent 20%),
        radial-gradient(circle at 78% 10%, rgba(255, 146, 74, 0.12), transparent 34%),
        linear-gradient(160deg, #07090e 0%, #0b0f16 45%, #06080d 100%);
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    display: block;
}

.orbital-stage {
    height: 100vh;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    flex: none;
    display: grid;
    place-items: center;
    position: relative;
    isolation: isolate;
}

.sun-glow {
    position: absolute;
    top: -13vh;
    right: -10vw;
    width: min(42vw, 520px);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle, var(--sun-core) 0%, var(--sun-aura) 26%, rgba(0, 0, 0, 0) 68%);
    filter: blur(2px);
    z-index: 0;
    animation: sun-breathe 6.5s ease-in-out infinite;
}

.starfield {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.34;
    background-image:
        radial-gradient(2px 2px at 12% 22%, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0)),
        radial-gradient(1px 1px at 26% 62%, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0)),
        radial-gradient(1.5px 1.5px at 44% 18%, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0)),
        radial-gradient(1.5px 1.5px at 63% 72%, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0)),
        radial-gradient(1px 1px at 78% 36%, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0)),
        radial-gradient(1.25px 1.25px at 86% 20%, rgba(255, 240, 220, 0.5), rgba(255, 255, 255, 0));
}

.matrix-layer {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.66;
}

.orbital-map-shell {
    width: min(88vw, 1200px);
    height: min(76vh, 760px);
    border: 1px solid rgba(130, 144, 162, 0.24);
    border-radius: 22px;
    overflow: hidden;
    background: rgba(9, 12, 18, 0.62);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.66), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    transform: perspective(1600px) rotateX(9deg) rotateZ(-3deg) translateY(-1.5vh);
    z-index: 1;
    animation: map-arrive 900ms cubic-bezier(0.2, 0.72, 0.2, 1) both;
}

.orbital-map {
    width: 100%;
    height: 100%;
    display: block;
}

.contact-panel {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 4;
    width: min(92vw, 340px);
    padding: 0.95rem 0.95rem 0.85rem;
    border-radius: 14px;
    border: 1px solid rgba(145, 154, 170, 0.3);
    background: rgba(8, 12, 18, 0.78);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(7px);
}

.contact-panel h2 {
    margin: 0 0 0.15rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #edf2fa;
}

.contact-subtitle {
    margin: 0 0 0.75rem;
    font-size: 0.74rem;
    color: #9ca9be;
}

.contact-form {
    display: grid;
    gap: 0.45rem;
}

.contact-form label {
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #96a4bb;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(130, 144, 162, 0.45);
    border-radius: 9px;
    background: rgba(9, 13, 21, 0.8);
    color: #e7edf8;
    font: inherit;
    font-size: 0.86rem;
    padding: 0.52rem 0.6rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(255, 190, 120, 0.75);
    box-shadow: 0 0 0 2px rgba(255, 169, 86, 0.16);
}

.contact-form button {
    margin-top: 0.25rem;
    border: 1px solid rgba(246, 194, 128, 0.66);
    border-radius: 999px;
    background: rgba(207, 118, 63, 0.18);
    color: #f5d6b0;
    font: inherit;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.5rem 0.85rem;
    cursor: pointer;
}

.contact-form button:hover {
    background: rgba(207, 118, 63, 0.26);
}

.contact-status {
    min-height: 1.1em;
    margin: 0.2rem 0 0;
    font-size: 0.72rem;
    color: #9eb9dc;
}

.contact-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.leaflet-container {
    background: #090d13;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
}

.leaflet-control-zoom a,
.leaflet-control-layers-toggle {
    background: rgba(10, 14, 22, 0.88);
    color: #c7d0df;
    border-color: rgba(124, 139, 158, 0.5);
}

.leaflet-control-zoom a:hover {
    background: rgba(21, 28, 40, 0.94);
}

.leaflet-control-layers {
    background: rgba(10, 14, 22, 0.88);
    color: #d0d8e4;
    border: 1px solid rgba(124, 139, 158, 0.4);
}

.orbital-footer {
    position: fixed;
    left: 50%;
    bottom: 0.9rem;
    transform: translateX(-50%);
    z-index: 4;
    margin-top: 0;
    padding: 0.3rem 0.65rem;
    border-top: 0;
    border-radius: 999px;
    border: 1px solid rgba(145, 154, 170, 0.22);
    background: rgba(8, 11, 17, 0.48);
    backdrop-filter: blur(5px);
}

.orbital-footer p {
    margin: 0;
    font-family: 'Space Grotesk', 'Manrope', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #8f9bb0;
}

@keyframes map-arrive {
    from {
        opacity: 0;
        transform: perspective(1600px) rotateX(9deg) rotateZ(-3deg) translateY(1vh) scale(0.988);
    }
    to {
        opacity: 1;
        transform: perspective(1600px) rotateX(9deg) rotateZ(-3deg) translateY(-1.5vh) scale(1);
    }
}

@keyframes sun-breathe {
    0%,
    100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 0.88;
        transform: scale(1.03);
    }
}

html {
    font-size: 18px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #0a0a0a;
    color: #e5e5e5;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
.site-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem 2rem;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-logo:hover {
    color: #a3a3a3;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.875rem;
    color: #a3a3a3;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
}

/* Main content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

header {
    margin-bottom: 3rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.25rem;
    font-style: italic;
    color: #a3a3a3;
}

.content {
    margin-bottom: 3rem;
}

.content p {
    margin-bottom: 1.25rem;
    color: #d4d4d4;
}

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

.content strong {
    color: #ffffff;
    font-weight: 500;
}

.cta {
    margin-bottom: 4rem;
}

.coming-soon {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #737373;
    font-weight: 500;
}

footer {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid #262626;
}

footer p {
    font-size: 0.875rem;
    color: #525252;
    margin-bottom: 0.25rem;
}

.copyright {
    color: #404040;
}

/* Gazette Layout */
.gazette-main {
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    justify-content: flex-start;
}

.gazette-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #262626;
}

.gazette-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.gazette-header .subtitle {
    font-size: 1rem;
    font-style: italic;
    color: #a3a3a3;
    margin-bottom: 0.5rem;
}

.gazette-header .date {
    font-size: 0.875rem;
    color: #737373;
    font-weight: 500;
}

/* Gazette Archive */
.archive-intro {
    margin-bottom: 3rem;
    color: #a3a3a3;
}

.edition-list {
    list-style: none;
}

.edition-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #262626;
}

.edition-item:first-child {
    padding-top: 0;
}

.edition-link {
    display: block;
    text-decoration: none;
}

.edition-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.25rem;
    transition: color 0.2s ease;
}

.edition-link:hover .edition-title {
    color: #a3a3a3;
}

.edition-date {
    font-size: 0.875rem;
    color: #737373;
}

/* Gazette Content Styling */
.gazette-content article,
.gazette-content section {
    margin-bottom: 3rem;
}

.gazette-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.gazette-content h3 {
    font-size: 1.125rem;
    font-weight: 500;
    color: #e5e5e5;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.gazette-content p {
    color: #d4d4d4;
    margin-bottom: 1rem;
}

.gazette-content p:last-child {
    margin-bottom: 0;
}

.gazette-content em {
    font-style: italic;
    color: #a3a3a3;
}

.gazette-content strong {
    font-weight: 500;
    color: #ffffff;
}

.gazette-content hr {
    border: none;
    border-top: 1px solid #262626;
    margin: 2.5rem 0;
}

.gazette-content ol,
.gazette-content ul {
    margin-bottom: 1.5rem;
    padding-left: 0;
    list-style-position: outside;
    margin-left: 1.25rem;
}

.gazette-content li {
    color: #d4d4d4;
    margin-bottom: 1.25rem;
    padding-left: 0.5rem;
}

.gazette-content li:last-child {
    margin-bottom: 0;
}

.gazette-content a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.gazette-content a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.gazette-content footer {
    margin-top: 3rem;
    text-align: center;
}

.gazette-content footer p {
    color: #525252;
}

/* Back link */
.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: #737373;
    text-decoration: none;
}

.back-link:hover {
    color: #a3a3a3;
}

.back-link::before {
    content: "← ";
}

/* Mobile Responsive */
@media (max-width: 480px) {
    html {
        font-size: 16px;
    }

    .site-nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        gap: 1.25rem;
    }

    main {
        padding: 3rem 1.5rem;
    }

    .gazette-main {
        padding: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.125rem;
    }

    .gazette-header h1 {
        font-size: 1.75rem;
    }

    .gazette-content h2 {
        font-size: 1.25rem;
    }

    .gazette-content h3 {
        font-size: 1rem;
    }

    .orbital-map-shell {
        width: 100vw;
        height: 72vh;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        transform: none;
        animation: none;
    }

    .sun-glow {
        width: 70vw;
        right: -26vw;
        top: -8vh;
    }

    .contact-panel {
        top: auto;
        right: 0.8rem;
        left: 0.8rem;
        bottom: 3.35rem;
        width: auto;
    }
}
