/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cream: #ffe2c7;
    --burnt-orange: #ffb365;
    --black: #000000;
    --dark-cream: #f5d4b0;
}

body {
    font-family: "Crimson Pro", Georgia, serif;
    background-color: var(--cream);
    color: var(--black);
    line-height: 1.7;
    font-size: 18px;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
.site-header {
    padding: 80px 0 10px;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 32px;
}

.site-icon {
    width: 140px;
    height: 140px;
    border-radius: 24px;
    flex-shrink: 0;
}

.header-text {
    flex: 1;
}

.site-title {
    font-size: 64px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 0;
}

.site-subtitle {
    font-size: 24px;
    font-weight: 400;
    color: var(--black);
    opacity: 0.7;
    margin-bottom: 0;
}

/* Main Content */
main {
    padding: 100px 0 60px;
}

/* Section Divider */
.section-divider {
    border: none;
    border-top: 1px solid var(--black);
    margin: 80px 0;
    opacity: 0.3;
}

/* Typography */
.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: -0.01em;
}

.large-text {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 24px;
}

p {
    margin-bottom: 20px;
}

strong {
    font-weight: 600;
}

code {
    background-color: var(--dark-cream);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: "IBM Plex Mono", "SF Mono", Monaco, Consolas, monospace;
    font-size: 0.9em;
}

/* Intro Section */
.intro-section {
    margin-bottom: 0;
    margin-top: 0;
}

.intro-section p:first-child {
    margin-top: 0;
}

/* Component Cards */
.component-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.component-card {
    background-color: transparent;
    padding: 0;
}

.component-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.component-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.component-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tag {
    background-color: var(--burnt-orange);
    color: var(--black);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

.component-link {
    display: inline-block;
    color: var(--black);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border-bottom: 2px solid var(--black);
    padding-bottom: 2px;
    transition: opacity 0.2s;
}

.component-link:hover {
    opacity: 0.6;
}

/* Background Section */
.background-section p {
    font-size: 17px;
    line-height: 1.7;
}

/* Setup Section */
.setup-visual {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 60px;
    gap: 20px;
}

.setup-step {
    flex: 1;
    text-align: center;
}

.step-number {
    width: 48px;
    height: 48px;
    background-color: var(--burnt-orange);
    color: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 16px;
}

.setup-step h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.setup-step p {
    font-size: 15px;
    line-height: 1.5;
}

.setup-arrow {
    font-size: 32px;
    opacity: 0.4;
    flex-shrink: 0;
}

.setup-instructions {
    margin-top: 40px;
}

.instruction-block {
    margin-bottom: 50px;
}

.instruction-block h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

.instruction-block h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.code-block {
    background-color: var(--dark-cream);
    border-radius: 6px;
    padding: 24px;
    margin: 24px 0;
    overflow-x: auto;
}

.code-block pre {
    font-family: "IBM Plex Mono", "SF Mono", Monaco, Consolas, monospace;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre;
}

.note {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.8;
    margin-top: 16px;
}

.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 24px;
}

.client-option {
    background-color: transparent;
}

.client-option h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.client-option ol {
    padding-left: 20px;
    margin-bottom: 16px;
}

.client-option li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.client-option .note {
    margin-top: 12px;
}

.instruction-block ul {
    padding-left: 20px;
}

.instruction-block li {
    margin-bottom: 12px;
    line-height: 1.6;
}

/* Features Section */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    gap: 20px;
}

.feature-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-content p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Architecture Section */
.arch-flow {
    margin-top: 40px;
}

.arch-box {
    background-color: var(--dark-cream);
    border: 2px solid var(--black);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
}

.arch-box h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.arch-box p {
    font-size: 15px;
    margin-bottom: 12px;
}

.arch-box ul {
    padding-left: 20px;
    margin-top: 12px;
}

.arch-box li {
    font-size: 15px;
    margin-bottom: 6px;
}

.arch-highlight {
    background-color: var(--burnt-orange);
}

.arch-arrow {
    text-align: center;
    font-size: 32px;
    margin: 8px 0;
    opacity: 0.4;
}

.arch-clients {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

/* Tech Section */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.tech-category h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.tech-category ul {
    list-style: none;
    padding: 0;
}

.tech-category li {
    font-size: 16px;
    line-height: 1.8;
    padding-left: 16px;
    position: relative;
}

.tech-category li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--burnt-orange);
    font-weight: 700;
}

/* Contribute Section */
.repo-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 32px;
}

.repo-link {
    display: inline-block;
    background-color: var(--burnt-orange);
    color: var(--black);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    transition: opacity 0.2s;
}

.repo-link:hover {
    opacity: 0.8;
}

/* Footer */
.site-footer {
    border-top: 2px solid var(--black);
    padding: 40px 0;
    margin-top: 80px;
}

.site-footer p {
    font-size: 15px;
    margin-bottom: 8px;
}

.site-footer a {
    color: var(--black);
    text-decoration: none;
    border-bottom: 1px solid var(--black);
}

.site-footer a:hover {
    opacity: 0.6;
}

.footer-license {
    opacity: 0.6;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .site-header {
        padding: 50px 0 40px;
    }

    .header-content {
        gap: 24px;
    }

    .site-icon {
        width: 100px;
        height: 100px;
    }

    .site-title {
        font-size: 48px;
    }

    .site-subtitle {
        font-size: 20px;
    }

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

    .large-text {
        font-size: 18px;
    }

    .component-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .setup-visual {
        flex-direction: column;
        gap: 30px;
    }

    .setup-arrow {
        transform: rotate(90deg);
    }

    .client-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .arch-clients {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .repo-links {
        flex-direction: column;
    }

    .repo-link {
        text-align: center;
    }

    .section-divider {
        margin: 60px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .site-icon {
        width: 80px;
        height: 80px;
    }

    .site-title {
        font-size: 40px;
    }

    .site-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 24px;
    }

    .component-icon {
        font-size: 40px;
    }

    .code-block {
        padding: 16px;
    }

    .code-block pre {
        font-size: 13px;
    }
}
