:root {
    --black: #050505;
    --panel: #10100e;
    --panel-soft: #17150f;
    --gold: #d4af37;
    --gold-light: #f2d57a;
    --text: #f3ead2;
    --muted: #c6b98f;
    --border: rgba(212, 175, 55, 0.35);
}
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);

    background:
        radial-gradient(
            circle at top,
            rgba(212, 175, 55, 0.12),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            #090806 0%,
            var(--black) 100%
        );

    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.75;
}

.constitution-page {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
    padding: 64px 0 96px;
}

.constitution-header {
    margin-bottom: 42px;
    padding: 52px 40px;
    text-align: center;

    border: 1px solid var(--border);
    border-radius: 24px;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(212, 175, 55, 0.14),
            transparent 48%
        ),
        rgba(13, 12, 9, 0.92);

    box-shadow:
        0 0 45px rgba(212, 175, 55, 0.08),
        inset 0 0 30px rgba(212, 175, 55, 0.04);
}
.constitution-header p:first-child {
    margin: 0 0 18px;

    color: var(--gold);
    font-family: "Segoe UI", sans-serif;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.constitution-header h1 {
    margin: 0;

    color: var(--gold-light);
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 1.08;

    text-shadow:
        0 0 20px rgba(212, 175, 55, 0.22);
}

.constitution-header p:last-child {
    max-width: 700px;
    margin: 20px auto 0;

    color: var(--muted);
    font-family: "Segoe UI", sans-serif;
    font-size: 1rem;
    letter-spacing: 0.08em;
}

.constitution-document {
    padding: 50px;

    border: 1px solid var(--border);
    border-radius: 24px;

    background:
        linear-gradient(
            180deg,
            rgba(24, 21, 14, 0.94),
            rgba(8, 8, 7, 0.97)
        );

    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.42),
        inset 0 0 40px rgba(212, 175, 55, 0.025);
}
.constitution-document > section {
    padding: 18px 0 28px;
}

.constitution-document > section + section {
    margin-top: 28px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}

.constitution-document h2 {
    margin: 0 0 28px;

    color: var(--gold-light);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.2;
    text-align: center;
}

.constitution-document h2::after {
    content: "";
    display: block;

    width: 90px;
    height: 1px;
    margin: 18px auto 0;

    background: linear-gradient(
        90deg,
        transparent,
        var(--gold),
        transparent
    );
}

.constitution-document p {
    margin: 0 0 20px;

    color: var(--text);
    font-size: 1.08rem;
}

.constitutional-article {
    margin: 0 0 24px;
    padding: 26px 28px;

    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            rgba(212, 175, 55, 0.045),
            rgba(255, 255, 255, 0.012)
        );
}
.constitutional-article h3 {
    margin: 0 0 14px;

    color: var(--gold);
    font-family: "Segoe UI", sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.constitutional-article p:last-child {
    margin-bottom: 0;
}

#preamble {
    font-size: 1.08rem;
}

#preamble p:first-of-type::first-letter {
    float: left;

    margin: 8px 10px 0 0;

    color: var(--gold-light);
    font-size: 4.6rem;
    font-weight: 700;
    line-height: 0.72;
}

::selection {
    color: #050505;
    background: var(--gold-light);
}

@media (max-width: 700px) {
    .constitution-page {
        width: min(100% - 20px, 1100px);
        padding: 24px 0 48px;
    }

    .constitution-header {
        padding: 34px 22px;
        border-radius: 18px;
    }

    .constitution-document {
        padding: 24px 18px;
        border-radius: 18px;
    }

    .constitutional-article {
        padding: 22px 18px;
    }

    .constitution-document p {
        font-size: 1rem;
    }
}