:root {
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #101010;
    color: #f7f7f7;
    --bg: #101010;
    --bg-elevated: #171717;
    --bg-panel: #121212;
    --bg-input: #202020;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --accent: #ffd54f;
    --accent-rgb: 255, 213, 79;
    --text: #f7f7f7;
    --text-muted: rgba(255, 255, 255, 0.62);
    --text-secondary: rgba(255, 255, 255, 0.72);
    --success: #9be15d;
    --danger: #ff6b6b;
    --info: #78dce8;
    --warning: #ff9f43;
    --radius: 10px;
    --radius-sm: 8px;
    --radius-pill: 999px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover,
a:focus-visible {
    text-decoration: underline;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: #101010;
    padding: 8px 14px;
    font-weight: 700;
    z-index: 100;
    border-radius: 0 0 var(--radius-sm) 0;
    transition: top 120ms ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid #fff;
    outline-offset: 0;
}

.site-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.site-header .brand {
    color: var(--accent);
    font-weight: 800;
    font-size: 1.55rem;
    margin-right: auto;
}

.site-nav {
    display: flex;
    align-items: center;
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

.nav-list {
    display: flex;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list a {
    display: block;
    padding: 8px 12px;
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.92rem;
}

.nav-list a:hover,
.nav-list a:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    text-decoration: none;
}

.nav-list a.active {
    background: rgba(var(--accent-rgb), 0.16);
    color: var(--accent);
}

.site-footer {
    padding: 32px 20px;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-tagline {
    color: var(--text-muted);
    margin: 0 0 16px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

.page-header {
    margin-bottom: 20px;
}

.page-header h1 {
    margin: 0 0 8px;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    line-height: 1.15;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin: 0;
    max-width: 720px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin-left: 6px;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--text-secondary);
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
    color: var(--text);
}

main {
    min-height: 60vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.container-narrow {
    max-width: 760px;
    margin: 0 auto;
}

.section {
    margin-bottom: 36px;
}

.section-title {
    font-size: 1.3rem;
    margin: 0 0 14px;
}

@media (max-width: 760px) {
    .site-header {
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-elevated);
        border-bottom: 1px solid var(--border);
        padding: 10px 16px 16px;
        gap: 4px;
    }

    .nav-list.open {
        display: flex;
    }

    .nav-list a {
        border-radius: var(--radius-sm);
        padding: 10px 12px;
    }

    main {
        padding: 16px;
    }
}
