/* ==========================================================================
   Layout — Serif Editorial
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-6);
    padding-right: var(--space-6);
}

/* ── Sections (Generous whitespace) ────────────────────────────────────── */
.section {
    padding-top: var(--space-32);
    padding-bottom: var(--space-32);
    position: relative;
}

.section--tonal {
    background-color: var(--muted);
}

/* ── Section Headers with Rule Lines ───────────────────────────────────── */
.section__label {
    font-family: var(--font-mono);
    font-size: var(--text-caption);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.section__label::before,
.section__label::after {
    content: '';
    height: 1px;
    flex: 1;
    background-color: var(--border);
}

.section__title {
    font-size: var(--text-display);
    font-weight: 400;
    margin-bottom: var(--space-6);
    max-width: 20ch;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.section__desc {
    font-size: var(--text-body-lg);
    color: var(--muted-foreground);
    max-width: 55ch;
    margin-bottom: var(--space-16);
    line-height: 1.75;
}

/* ── Grid ──────────────────────────────────────────────────────────────── */
.grid {
    display: grid;
    gap: var(--space-8);
}

.grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

/* ── Buttons (Refined, not pill-shaped) ────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0 var(--space-8);
    height: 44px;
    font-family: var(--font-body);
    font-size: var(--text-label);
    font-weight: 500;
    letter-spacing: 0.03em;
    border-radius: var(--radius-md);
    transition: all var(--duration) var(--ease-out);
    white-space: nowrap;
    cursor: pointer;
    touch-action: manipulation;
}

/* Filled — Gold accent */
.btn--primary {
    background-color: var(--accent);
    color: var(--accent-foreground);
    border: none;
    box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
    background-color: var(--accent-secondary);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn--primary:active {
    transform: translateY(0);
}

/* Outlined — Strong border */
.btn--outline {
    background-color: transparent;
    color: var(--foreground);
    border: 1px solid var(--foreground);
}

.btn--outline:hover {
    background-color: var(--muted);
    border-color: var(--accent);
    color: var(--accent);
}

/* ── Thin Rule Line ────────────────────────────────────────────────────── */
.rule {
    border: none;
    height: 1px;
    background-color: var(--border);
    margin: var(--space-16) 0;
}

/* ── Scroll Reveal ─────────────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transition: opacity calc(600ms * var(--anim-duration)) var(--ease-out);
}

.reveal.is-visible {
    opacity: 1;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .section__title {
        font-size: var(--text-headline);
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }

    .section {
        padding-top: var(--space-20);
        padding-bottom: var(--space-20);
    }

    .grid--2,
    .grid--3 {
        grid-template-columns: 1fr;
    }

    .section__desc {
        font-size: var(--text-body);
    }

    .btn {
        height: 48px;
        min-height: 44px;
    }
}