:root {
    --paper: #f5f8ff;
    --surface: #ffffff;
    --surface-blue: #eef4ff;
    --ink: #071a35;
    --muted: #5d6b82;
    --line: #ccd7ea;
    --blue: #062a63;
    --blue-hover: #041f4a;
    --red: #d51f2a;
    --red-deep: #a91520;
}

body {
    min-height: 100vh;
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(6, 42, 99, 0.12), rgba(213, 31, 42, 0.04) 340px, rgba(255, 255, 255, 0) 620px),
        var(--paper);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
select,
input,
textarea {
    font: inherit;
}

.page-shell {
    min-height: 100vh;
}

.intro-section {
    padding: 56px 0 32px;
    border-bottom: 1px solid var(--line);
}

.eyebrow {
    margin-bottom: 8px;
    color: var(--red);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(2.6rem, 7vw, 5.4rem);
    font-weight: 900;
    letter-spacing: 0;
}

.lead {
    margin-top: 10px;
    color: var(--blue);
    font-size: clamp(1.2rem, 2.2vw, 1.7rem);
    font-weight: 700;
}

.intro-copy {
    max-width: 780px;
    margin: 20px 0 0;
    color: #343536;
    font-size: 1.08rem;
    line-height: 1.7;
}

.satire-note {
    padding: 18px;
    border: 1px solid var(--line);
    border-left: 6px solid var(--red);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    color: #20314c;
    line-height: 1.55;
}

.generator-section {
    padding: 34px 0 56px;
}

.generator-panel,
.result-panel {
    height: 100%;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 46px rgba(7, 26, 53, 0.09);
}

.form-label {
    font-weight: 750;
}

.form-select,
.form-control,
.btn {
    border-radius: 8px;
}

.form-select,
.form-control {
    min-height: 46px;
}

.btn {
    min-height: 46px;
    white-space: normal;
}

.form-select:focus,
.form-control:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 0.2rem rgba(6, 42, 99, 0.16);
}

.btn-primary {
    border-color: var(--blue);
    background: var(--blue);
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: var(--blue-hover);
    background: var(--blue-hover);
}

.btn-outline-dark {
    border-color: var(--blue);
    color: var(--blue);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
    border-color: var(--blue);
    background: var(--blue);
    color: #ffffff;
}

.btn-dark {
    border-color: var(--red);
    background: var(--red);
}

.btn-dark:hover,
.btn-dark:focus {
    border-color: var(--red-deep);
    background: var(--red-deep);
}

.result-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.result-heading h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 850;
}

.statement-output {
    min-height: 280px;
    padding: 26px;
    border: 1px solid #b9c8df;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff, #f7faff);
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.75;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.statement-output.empty {
    color: var(--muted);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.seo-section {
    padding: 0 0 48px;
}

.seo-copy {
    max-width: 860px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.seo-copy h2 {
    margin-bottom: 12px;
    color: var(--ink);
    font-size: 1.45rem;
    font-weight: 850;
}

.seo-copy p {
    margin: 0;
    line-height: 1.75;
}

.seo-note {
    margin-top: 14px !important;
    padding-left: 14px;
    border-left: 4px solid var(--red);
    color: #20314c;
    font-weight: 650;
}

.site-footer {
    padding: 22px 0;
    border-top: 1px solid var(--line);
    background: #ffffff;
    color: var(--muted);
}

.site-footer p {
    margin: 0;
    font-size: 0.95rem;
}

@media (max-width: 767.98px) {
    body {
        background:
            linear-gradient(180deg, rgba(6, 42, 99, 0.13), rgba(255, 255, 255, 0) 420px),
            var(--paper);
    }

    .intro-section {
        padding: 28px 0 22px;
    }

    .eyebrow {
        font-size: 0.72rem;
        line-height: 1.35;
    }

    h1 {
        font-size: clamp(2.25rem, 14vw, 3.35rem);
        line-height: 0.98;
        overflow-wrap: anywhere;
    }

    .lead {
        margin-top: 12px;
        font-size: 1.12rem;
        line-height: 1.35;
    }

    .intro-copy {
        margin-top: 16px;
        font-size: 1rem;
        line-height: 1.58;
    }

    .satire-note {
        padding: 14px 15px;
        border-left-width: 4px;
        font-size: 0.95rem;
    }

    .generator-section {
        padding: 22px 0 34px;
    }

    .generator-panel,
    .result-panel {
        padding: 16px;
        box-shadow: 0 12px 28px rgba(7, 26, 53, 0.07);
    }

    .generator-panel .mb-3 {
        margin-bottom: 0.85rem !important;
    }

    .form-label {
        margin-bottom: 0.38rem;
        font-size: 0.95rem;
        line-height: 1.35;
    }

    .form-select,
    .form-control {
        min-height: 48px;
        font-size: 1rem;
    }

    .form-text {
        font-size: 0.84rem;
        line-height: 1.45;
    }

    .btn {
        min-height: 50px;
        padding: 0.68rem 0.9rem;
        line-height: 1.25;
    }

    .result-heading {
        display: block;
        margin-bottom: 14px;
    }

    .result-heading h2 {
        font-size: 1.42rem;
    }

    .statement-output {
        min-height: 190px;
        padding: 16px;
        font-size: 1.06rem;
        line-height: 1.62;
    }

    .result-actions .btn {
        width: 100%;
    }

    .seo-section {
        padding-bottom: 34px;
    }

    .seo-copy {
        padding-top: 22px;
    }

    .seo-copy h2 {
        font-size: 1.18rem;
        line-height: 1.35;
    }

    .seo-copy p,
    .site-footer p {
        font-size: 0.94rem;
        line-height: 1.6;
    }

    .seo-note {
        padding-left: 12px;
    }
}

@media (max-width: 389.98px) {
    .generator-panel,
    .result-panel {
        padding: 14px;
    }

    h1 {
        font-size: clamp(2rem, 13vw, 2.8rem);
    }

    .statement-output {
        padding: 14px;
        font-size: 1rem;
    }
}
