/* mores.dev - Flat-design scandinavian developer documentation */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #FFFFFF;
    color: #475569;
    font-family: 'Red Hat Text', sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

/* Top Navigation */
.top-nav {
    position: sticky;
    top: 0;
    background-color: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    z-index: 100;
}

.nav-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.nav-brand {
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: #1E293B;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 28px;
}

.nav-links a {
    font-family: 'Red Hat Text', sans-serif;
    font-size: 14px;
    color: #475569;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: #3B82F6;
    transition: width 200ms ease;
}

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

.nav-links a:hover,
.nav-links a.active {
    color: #3B82F6;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #1E293B;
    transition: transform 200ms ease, opacity 200ms ease;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero Section */
.hero {
    background-color: #3B82F6;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-inner {
    max-width: 720px;
    padding: 60px 24px;
    text-align: left;
}

.hero-title {
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 500;
    font-size: 36px;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.hero-description {
    font-family: 'Red Hat Text', sans-serif;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
}

.hero-link {
    font-family: 'Red Hat Text', sans-serif;
    font-size: 16px;
    color: #FFFFFF;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.hero-link:hover {
    text-decoration-thickness: 2px;
}

/* Content Sections */
.content-section {
    padding: 64px 24px;
}

.section-white {
    background-color: #FFFFFF;
}

.section-gray {
    background-color: #F8FAFC;
}

.section-inner {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
}

/* Section Navigation Labels */
.section-nav {
    text-align: right;
    padding-top: 4px;
}

.nav-label {
    font-family: 'Red Hat Text', sans-serif;
    font-size: 13px;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 150ms ease;
}

.nav-label.active {
    color: #3B82F6;
}

/* Section Content */
.section-content {
    max-width: 720px;
}

.section-title {
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 500;
    font-size: 24px;
    color: #1E293B;
    margin-bottom: 16px;
    padding-left: 16px;
    position: relative;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background-color: #3B82F6;
    border-radius: 2px;
}

.subsection-title {
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 500;
    font-size: 20px;
    color: #1E293B;
    margin-top: 32px;
    margin-bottom: 12px;
}

.section-content p {
    margin-bottom: 16px;
}

.section-content p code {
    font-family: 'Red Hat Mono', monospace;
    font-size: 14px;
    color: #0F172A;
    background-color: #F1F5F9;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Code Blocks */
.code-block {
    background-color: #F1F5F9;
    border-left: 3px solid #3B82F6;
    padding: 20px 24px;
    margin: 16px 0 24px;
    overflow-x: auto;
    transition: border-left-color 150ms ease;
}

.code-block:hover {
    border-left-color: #2563EB;
}

.code-block pre {
    margin: 0;
}

.code-block code {
    font-family: 'Red Hat Mono', monospace;
    font-size: 14px;
    color: #0F172A;
    line-height: 1.6;
}

.code-keyword {
    color: #2563EB;
}

.code-string {
    color: #059669;
}

.code-comment {
    color: #94A3B8;
}

/* Tables */
.doc-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 15px;
}

.doc-table th {
    font-family: 'Red Hat Text', sans-serif;
    font-weight: 400;
    text-align: left;
    padding: 10px 16px;
    border-bottom: 2px solid #E2E8F0;
    color: #1E293B;
}

.doc-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #E2E8F0;
}

.doc-table tbody tr:nth-child(even) {
    background-color: #F8FAFC;
}

.doc-table tbody tr:hover {
    background-color: #EEF2FF;
    transition: background-color 100ms ease;
}

.doc-table code {
    font-family: 'Red Hat Mono', monospace;
    font-size: 13px;
    color: #0F172A;
    background-color: #F1F5F9;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Lists */
.doc-list {
    list-style: none;
    margin: 12px 0 24px;
    padding-left: 0;
}

.doc-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
}

.doc-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background-color: #3B82F6;
}

/* Footer */
.site-footer {
    border-top: 1px solid #E2E8F0;
    padding: 32px 24px;
    text-align: center;
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
}

.site-footer p {
    font-size: 14px;
    color: #475569;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: #FFFFFF;
        flex-direction: column;
        padding: 16px 24px;
        gap: 12px;
        border-bottom: 1px solid #E2E8F0;
    }

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

    .section-inner {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .section-nav {
        display: none;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-inner {
        padding: 40px 24px;
    }
}
