
/* Gecko's PSX Development Corner
   Retro PlayStation / late 90s aesthetic */

:root {
    color-scheme: dark;
    --bg: #050914;
    --panel: #080f22;
    --panel-light: #101c3c;
    --blue: #315cff;
    --blue-bright: #6688ff;
    --text: #c5d2f5;
    --muted: #8198d6;
    --border: #263f91;
    --heading: #e0e7ff;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 24px;
    color: var(--text);
    background:
        radial-gradient(ellipse at 50% 0%, #111d46 0%, transparent 65%),
        var(--bg);
    font-family: Verdana, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.8;
}

.content {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 26px 30px;
    background: rgba(5, 10, 24, 0.96);
    border: 1px solid var(--border);
    box-shadow:
        0 0 0 4px #070c19,
        0 0 32px rgba(39, 76, 255, 0.12);
}

/* Headings */

h1, h2, h3 {
    color: var(--heading);
    line-height: 1.35;
}

h1 {
    margin: 0 0 24px;
    padding: 0 0 18px;
    font-size: clamp(25px, 4vw, 36px);
    font-weight: 700;
    letter-spacing: -1px;
    border-bottom: 2px solid var(--blue);
    text-shadow: 0 0 18px rgba(75, 110, 255, 0.3);
}

h2 {
    margin: 36px 0 20px;
    padding: 10px 14px;
    font-size: 21px;
    font-weight: 600;
    background: linear-gradient(90deg, #172c72, #0a1126);
    border-left: 4px solid var(--blue-bright);
    border-bottom: 1px solid var(--border);
}

h3 {
    margin: 25px 0 8px;
    font-size: 16px;
    font-weight: 700;
}

p {
    margin: 0 0 18px;
}

h3 + p {
    margin-top: 0;
}

/* Links */

a {
    color: #85a3ff;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color 120ms ease;
}

a:hover {
    color: #fff;
    text-decoration: underline;
    text-shadow: 0 0 12px rgba(92, 132, 255, 0.6);
}

a:focus-visible {
    outline: 2px solid #91aaff;
    outline-offset: 4px;
}

/* Lists */

ul {
    margin: 16px 0 26px;
    padding: 16px 20px 16px 42px;
    background: var(--panel);
    border: 1px solid #1b2d60;
}

li {
    padding: 4px 0 4px 4px;
}

li::marker {
    color: var(--blue-bright);
}

/* Section separators */

hr {
    height: 1px;
    margin: 32px 0;
    border: 0;
    background: linear-gradient(
        90deg,
        transparent,
        var(--blue),
        #6d4dff,
        transparent
    );
    opacity: 0.8;
}

/* Technical documentation feel */

::selection {
    color: white;
    background: #284dcc;
}

img {
    max-width: 100%;
    height: auto;
}

/* Responsive layout */

@media (max-width: 640px) {
    body {
        padding: 10px;
        font-size: 14px;
        line-height: 1.75;
    }

    .content {
        padding: 18px 15px;
        box-shadow: none;
    }

    h1 {
        font-size: 26px;
        overflow-wrap: anywhere;
    }

    h2 {
        margin-top: 28px;
        font-size: 19px;
    }

    h3 {
        font-size: 16px;
    }

    ul {
        padding: 12px 12px 12px 30px;
    }

    hr {
        margin: 24px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    a {
        transition: none;
    }
}

h1, h2, h3,
.side-title,
.top-nav {
    font-family: "Oxanium", sans-serif;
}

h1 {
    font-weight: 700;
    letter-spacing: 0.02em;
}

body {
    font-family: Verdana, Arial, sans-serif;
}
