/*
Theme Name: Space 2047 Safe Base Theme v2
Theme URI: https://space2047.com/
Author: Benjamin Robinson
Description: Safer modular Space 2047 base theme. Contains only layout, header, footer, styling, responsive templates, and a standard WordPress menu location. Space 2047 systems should be added as separate plugins.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: space2047-safe-base-theme-v2
*/

:root {
    --s2047-bg: #030616;
    --s2047-panel: rgba(8, 20, 48, 0.94);
    --s2047-blue: #69f2ff;
    --s2047-gold: #ffd76a;
    --s2047-text: #f4fbff;
    --s2047-muted: #b9d9e8;
    --s2047-border: rgba(105, 242, 255, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(105, 242, 255, 0.16), transparent 32rem),
        radial-gradient(circle at top right, rgba(255, 215, 106, 0.10), transparent 28rem),
        linear-gradient(180deg, #030616 0%, #07142f 52%, #030616 100%);
    color: var(--s2047-text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.65;
}

a {
    color: var(--s2047-gold);
}

a:hover,
a:focus {
    color: #ffffff;
}

img {
    max-width: 100%;
    height: auto;
}

.site-header {
    padding: 26px 16px 22px;
    text-align: center;
    background: rgba(4, 12, 32, 0.96);
    border-bottom: 1px solid var(--s2047-border);
    box-shadow: 0 0 28px rgba(105, 242, 255, 0.14);
    position: relative !important;
    top: auto !important;
    z-index: 1;
}

.site-title {
    margin: 0;
    font-size: clamp(2rem, 7vw, 4.8rem);
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--s2047-blue);
    text-shadow: 0 0 12px rgba(105, 242, 255, 0.8);
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.site-description {
    margin: 12px auto 0;
    max-width: 820px;
    color: var(--s2047-muted);
    font-weight: 700;
}

.main-navigation {
    margin-top: 18px;
    position: relative !important;
    top: auto !important;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    display: inline-block;
    margin: 5px;
}

.main-navigation a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 15px;
    border-radius: 999px;
    border: 1px solid rgba(255, 215, 106, 0.7);
    background: rgba(255, 215, 106, 0.10);
    color: var(--s2047-gold);
    text-decoration: none;
    font-weight: 900;
}

.main-navigation a:hover,
.main-navigation a:focus {
    background: rgba(105, 242, 255, 0.15);
    border-color: var(--s2047-blue);
    color: #fff;
}

.site-main {
    width: min(1180px, calc(100vw - 28px));
    margin: 28px auto;
    padding: clamp(16px, 3vw, 32px);
    border: 1px solid var(--s2047-border);
    border-radius: 22px;
    background:
        radial-gradient(circle at top, rgba(105, 242, 255, 0.12), transparent 25rem),
        var(--s2047-panel);
    box-shadow: 0 0 28px rgba(105, 242, 255, 0.15);
}

.entry-title,
.page-title {
    margin-top: 0;
    text-align: center;
    color: var(--s2047-blue);
    text-shadow: 0 0 10px rgba(105, 242, 255, 0.45);
}

.entry-content {
    overflow-wrap: anywhere;
}

.entry-content > *:first-child {
    margin-top: 0;
}

.wp-block-button__link,
button,
input[type="submit"],
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 215, 106, 0.8);
    background: linear-gradient(135deg, #ffe27a, #bd8d18);
    color: #061124;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.site-footer {
    margin-top: 34px;
    padding: 24px 16px;
    text-align: center;
    color: var(--s2047-muted);
    background: rgba(3, 6, 22, 0.94);
    border-top: 1px solid rgba(105, 242, 255, 0.28);
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/* Safety: base theme never forces sticky headers or sticky menus. */
.sticky,
.is-sticky,
[class*="sticky"],
[class*="Sticky"],
.site-header,
.main-navigation {
    position: relative !important;
    top: auto !important;
}

@media (max-width: 760px) {
    .main-navigation li {
        display: block;
        margin: 7px auto;
    }

    .main-navigation a {
        width: min(100%, 360px);
    }

    .site-main {
        width: min(100vw - 18px, 1180px);
        margin-top: 18px;
        border-radius: 16px;
    }
}
