/* stevengilmer.css — v2.0 */

/* ==========================================================================
   CUSTOM PROPERTIES
   ========================================================================== */

:root {
    /* Cosmic palette */
    --void: #07060b;
    --deep-space: #0d0b14;
    --nebula: #1a1528;
    --stardust: #2d2540;
    --plasma: #00e5ff;
    --plasma-dim: rgba(0, 229, 255, 0.15);
    --plasma-glow: rgba(0, 229, 255, 0.4);
    --nova: #ff3cac;
    --nova-dim: rgba(255, 60, 172, 0.15);
    --solar: #f5c842;
    --white: #f0eef5;
    --white-dim: rgba(240, 238, 245, 0.55);
    --white-muted: rgba(240, 238, 245, 0.3);
    --rule: rgba(240, 238, 245, 0.08);

    /* Typography */
    --font-wordmark: 'Helios', 'Futura', 'Jost', sans-serif;
    --font-heading: 'Kento', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-nuance: 'EB Garamond', Georgia, serif;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--white);
    background: var(--void);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   STARFIELD BACKGROUND
   ========================================================================== */

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(1px 1px at 20% 30%, var(--white) 0%, transparent 100%),
        radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at 60% 20%, rgba(255,255,255,0.8) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 80% 50%, var(--plasma) 0%, transparent 100%),
        radial-gradient(1px 1px at 10% 80%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 70% 90%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 30% 50%, var(--nova) 0%, transparent 100%),
        radial-gradient(1px 1px at 90% 10%, rgba(255,255,255,0.7) 0%, transparent 100%),
        radial-gradient(1px 1px at 50% 60%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 15% 45%, rgba(255,255,255,0.5) 0%, transparent 100%);
    background-size: 200% 200%;
    animation: starDrift 60s ease-in-out infinite;
    z-index: -2;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, transparent 0%, var(--void) 70%);
    z-index: -1;
    pointer-events: none;
}

@keyframes starDrift {
    0%, 100% { background-position: 0% 0%; }
    25% { background-position: 50% 25%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 75%; }
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.site {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8vh 2rem 4vh;
}

/* ==========================================================================
   HERO — WORDMARK DOMINANT
   ========================================================================== */

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wordmark {
    font-family: var(--font-wordmark);
    font-size: clamp(1.6rem, 7vw, 6.5rem);
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--white);
    line-height: 1;
    margin-bottom: 1.5rem;
    white-space: nowrap;
}

.tagline {
    font-family: var(--font-nuance);
    font-style: italic;
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    color: var(--white-dim);
    letter-spacing: 0.04em;
}

/* ==========================================================================
   MARK SPACE — vertical breathing room for the future mark
   ========================================================================== */

.mark-space {
    height: clamp(6rem, 15vh, 12rem);
}

/* ==========================================================================
   NAV BAR — subordinate, fixed top
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 2rem;
    background: linear-gradient(180deg, var(--void) 0%, transparent 100%);
}

.nav {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 3.5rem;
}

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

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--plasma);
    transition: width 0.25s ease;
}

.nav-links a:hover {
    color: var(--white-dim);
}

.nav-links a:hover::after {
    width: 100%;
}

/* RSS icon — nav */
.nav-rss {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-muted);
    margin-left: 1.5rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-rss:hover {
    color: var(--plasma);
    transform: scale(1.1);
}

.nav-rss svg {
    display: block;
}

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
    z-index: 110;
}

.nav-toggle__bar {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--white-muted);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

/* Hamburger → X animation */
.nav--open .nav-toggle__bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
    background: var(--plasma);
}

.nav--open .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}

.nav--open .nav-toggle__bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
    background: var(--plasma);
}

/* ==========================================================================
   SITE FOOTER — professional, three-row
   ========================================================================== */

.site-footer {
    border-top: 1px solid var(--rule);
    padding: 3rem 2rem 2rem;
}

.footer-inner {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

/* Contact */
.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.footer-email,
.footer-phone {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--white-muted);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.footer-email:hover,
.footer-phone:hover {
    color: var(--plasma);
}

.footer-address {
    font-family: var(--font-body);
    font-style: normal;
    font-size: 0.75rem;
    color: var(--white-muted);
    line-height: 1.6;
    margin-top: 0.25rem;
    opacity: 0.7;
}

/* Social icons */
.footer-social {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-social a {
    color: var(--white-muted);
    transition: color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social a:hover {
    color: var(--plasma);
    transform: translateY(-2px);
}

.footer-social svg {
    display: block;
}

/* Legal */
.footer-legal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    font-family: var(--font-body);
    font-size: 0.65rem;
    color: var(--white-muted);
    letter-spacing: 0.04em;
    opacity: 0.5;
}

.footer-legal a {
    color: var(--white-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: var(--plasma);
}

.footer-rss-link {
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.6rem;
    font-weight: 600;
}

/* ==========================================================================
   GEOMETRIC ACCENT
   ========================================================================== */

.geo-ring {
    position: fixed;
    border: 1px solid var(--stardust);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.2;
}

.geo-ring--1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation: ringRotate 40s linear infinite;
}

.geo-ring--2 {
    width: 600px;
    height: 600px;
    bottom: -200px;
    left: -200px;
    animation: ringRotate 60s linear infinite reverse;
    border-style: dashed;
}

.geo-ring--3 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    animation: ringPulse 4s ease-in-out infinite;
    border-color: var(--nova-dim);
}

@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 700px) {
    .site {
        padding: 6vh 1.5rem 3vh;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        inset: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        background: var(--void);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 105;
    }

    .nav--open .nav-links {
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        font-size: 0.85rem;
        letter-spacing: 0.16em;
        color: var(--white-dim);
    }

    .footer-social {
        gap: 1.25rem;
    }

    .geo-ring--1,
    .geo-ring--2,
    .geo-ring--3 {
        display: none;
    }
}
