:root {
    --gold: #C8A84B;
    --crimson: #8B1A1A;
    --dark-bg: #16130d;
    --dark-on: #e9e1d6;
    --light-bg: #f7f5f2;
    --light-on: #211b17;
    --container-max: 1440px;
}

html,
body {
    height: 100%;
    margin: 0;
    font-family: 'Public Sans', system-ui, Arial;
}

.stitch-root {
    background: var(--dark-bg);
    color: var(--dark-on);
}

[data-theme="light"] .stitch-root {
    background: var(--light-bg);
    color: var(--light-on);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 24px;
}

.stitch-header {
    border-bottom: 1px solid rgba(233, 225, 214, 0.04);
}

.stitch-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.brand {
    font-family: Cairo, 'Public Sans';
    font-weight: 700;
    font-size: 18px
}

.theme-toggle {
    background: transparent;
    border: 1px solid rgba(233, 225, 214, 0.06);
    color: inherit;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer
}

.hero {
    padding: 48px 0;
    text-align: right
}

.hero-title {
    font-family: Cairo;
    font-size: 40px;
    margin: 0 0 8px
}

.hero-sub {
    max-width: 900px;
    margin: 0 0 16px;
    line-height: 1.6
}

.hero-actions .btn {
    margin-left: 12px;
    text-decoration: none
}

.btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 4px;
    font-weight: 600
}

.btn.primary {
    background: var(--gold);
    color: #0b0707
}

.btn.ghost {
    border: 1px solid var(--gold);
    color: var(--gold);
    background: transparent
}

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

.card {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border: 1px solid rgba(200, 168, 75, 0.08)
}

.section-title {
    font-family: Cairo;
    font-size: 28px;
    margin-bottom: 8px
}

.list {
    margin-top: 16px
}

.list-item {
    padding: 12px;
    border-bottom: 1px solid rgba(233, 225, 214, 0.04)
}


/* Light theme overrides */

[data-theme="light"] .stitch-header {
    border-color: rgba(33, 27, 23, 0.06)
}

[data-theme="light"] .card {
    background: #fff;
    border-color: rgba(200, 168, 75, 0.12);
    color: var(--light-on)
}


/* Responsiveness */

@media (max-width:640px) {
    .hero-title {
        font-size: 28px
    }
    .container {
        padding: 16px
    }
}