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

:root {
    --bg-color: #FFFDF6; /* Warm premium cream */
    --text-color: #000000;
    --border-color: #000000;
    --card-bg: #FFFFFF;
    --shadow-color: #000000;
    --border-width: 3px;
    --radius-card: 8px;
    --radius-btn: 4px;
    --shadow: 5px 5px 0px var(--shadow-color);
    --shadow-hover: 2px 2px 0px var(--shadow-color);
    --shadow-active: 0px 0px 0px var(--shadow-color);

    /* Neo-Brutalist Palette (as requested / reference) */
    --color-yellow: #ffd000;
    --color-lavender: #C4B5FD;
    --color-mint: #A7F3D0;
    --color-coral: #FCA5A5;
    --color-blue: #BFDBFE;
    --color-white: #FFFFFF;
}

.dark-mode {
    --bg-color: #121212;
    --text-color: #FFFDF6;
    --border-color: #FFFDF6;
    --card-bg: #1E1E1E;
    --shadow-color: #FFFDF6;
    --color-white: #1E1E1E;

    --color-yellow: #D97706;
    --color-lavender: #8B5CF6;
    --color-mint: #10B981;
    --color-coral: #EF4444;
    --color-blue: #2563EB;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    padding: 0;
    overflow-x: hidden;
}

/* Typography pairing */
h1 {
    font-family: 'Archivo Black', sans-serif;
    font-weight: 900;
    color: var(--text-color);
    line-height: 1.1;
    font-size: 3.2rem;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.15;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
    letter-spacing: -0.01em;
    border-bottom: none;
    display: block;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
}

p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    font-weight: 400;
}

a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.15s ease;
}

/* Document layout */
.subpage-container {
    max-width: 800px;
    margin-left: 5rem;
    margin-right: auto;
    padding: 3rem 1.5rem 3rem 0;
}

.doc-header {
    margin-bottom: 3.5rem;
    text-align: left;
}

@media (max-width: 900px) {
    h1 {
        font-size: 2.4rem;
    }
    h2 {
        font-size: 1.7rem;
    }
    .subpage-container {
        margin-left: 1.5rem;
        padding: 2rem 1.5rem;
    }
}



/* Legal summary block */
.legal-summary {
    background-color: var(--color-yellow);
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 3.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Section styling - Flat, Clean, Neubrutalist */
.changelog-list {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.legal-section {
    position: relative;
    padding-bottom: 2rem;
    border-bottom: 2px dashed rgba(0, 0, 0, 0.15);
}

.dark-mode .legal-section {
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.legal-section:last-child {
    border-bottom: none;
}

/* Neubrutalist section badges with Space Mono */
.section-badge {
    display: inline-flex;
    align-items: center;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--color-white);
    color: var(--text-color);
    box-shadow: 2px 2px 0px var(--shadow-color);
    margin-bottom: 1rem;
}

.legal-content {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-top: 0.8rem;
}

.legal-content ul {
    list-style: none;
    margin-top: 0.8rem;
    margin-bottom: 0.8rem;
    padding-left: 0.5rem;
}

.legal-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    font-weight: 500;
}

.legal-content ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--color-yellow);
}

.dark-mode .legal-content ul li::before {
    color: var(--text-color);
}

/* Custom Highlight Box */
.highlight {
    background-color: var(--color-yellow);
    border: 2px solid var(--border-color);
    padding: 0.15rem 0.4rem;
    font-weight: 700;
    box-shadow: 2px 2px 0px var(--shadow-color);
    border-radius: 4px;
    display: inline-block;
    margin: 0 0.2rem;
}

.dark-mode .highlight {
    color: #000000;
    border-color: #000000;
    box-shadow: 2px 2px 0px #000000;
}

html {
    scroll-behavior: smooth;
}

/* Footer structure */
.home-footer {
    border-top: var(--border-width) solid var(--border-color);
    padding: 2rem 0 1rem;
    margin-top: 4rem;
    text-align: center;
}

.copyright-text {
    font-family: 'Space Mono', monospace;
    font-size: 0.95rem;
    font-weight: 700;
}

.copyright-symbol {
    font-size: 1.2rem;
    vertical-align: middle;
}

/* Metro Navigation Scrollspy */
.metro-nav {
    position: fixed;
    right: 5rem;
    top: 50%;
    transform: translateY(calc(-50% + 40px));
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 90;
}

.metro-line {
    position: absolute;
    right: 9px; /* Centered on 22px dot */
    top: calc(1.1rem + 11px);
    bottom: calc(1.1rem + 11px);
    width: 4px;
    background-color: var(--border-color);
    z-index: 1;
}

.metro-station {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.3rem;
    margin: 1.1rem 0;
    position: relative;
    z-index: 2;
    cursor: pointer;
    text-decoration: none;
}

.metro-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: #666;
    opacity: 0.5;
    transition: opacity 0.2s ease, color 0.2s ease;
    text-transform: uppercase;
}

.dark-mode .metro-label {
    color: #a3a3a3;
}

.metro-dot {
    width: 22px;
    height: 22px;
    border: 3px solid var(--border-color);
    background-color: var(--bg-color);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

/* Hover styles */
.metro-station:hover .metro-label {
    opacity: 1;
    color: var(--text-color);
}

.metro-station:hover .metro-dot {
    transform: scale(1.15);
}

/* Active styles */
.metro-station.active .metro-label {
    opacity: 1;
    color: var(--text-color);
}

.metro-station.active .metro-dot {
    background-color: var(--text-color) !important;
}

/* Responsive: hide on smaller screens */
@media (max-width: 1200px) {
    .metro-nav {
        display: none;
    }
}
