:root {
    color-scheme: light;

    --rhra-navy: #03132F;
    --rhra-royal: #08265C;
    --rhra-blue: #0755D9;
    --rhra-gold: #F4D18A;
    --rhra-metallic: #C48B36;
    --rhra-pearl: #F8F8FC;
    --rhra-slate: #A8B8D0;
    --rhra-white: #FFFFFF;
    --rhra-text: #17233B;
    --rhra-muted: #52617A;
    --rhra-border: #DCE3ED;
    --rhra-success: #176B45;
    --rhra-danger: #A52222;

    --rhra-display:
        "Cormorant Garamond", Georgia, serif;

    --rhra-body:
        Inter, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;

    --rhra-container: 1240px;
    --rhra-card-radius: 16px;
    --rhra-button-radius: 12px;
    --rhra-input-radius: 10px;
    --rhra-control-height: 48px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--rhra-pearl);
    color: var(--rhra-text);
    font-family: var(--rhra-body);
    font-size: 1rem;
    line-height: 1.65;
    overflow-wrap: break-word;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

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

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: var(--rhra-blue);
    text-underline-offset: 4px;
}

:focus-visible {
    outline: 3px solid var(--rhra-blue);
    outline-offset: 4px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 3rem);
}

h3 {
    font-size: 1.15rem;
}

.rhra-display {
    font-family: var(--rhra-display);
    font-weight: 600;
    letter-spacing: -.025em;
}

.rhra-container {
    width: min(
        calc(100% - 32px),
        var(--rhra-container)
    );
    margin-inline: auto;
    min-width: 0;
}

.rhra-section {
    padding-block: clamp(40px, 7vw, 96px);
}

.rhra-dark {
    background: var(--rhra-navy);
    color: var(--rhra-white);
}

.rhra-dark :focus-visible {
    outline-color: var(--rhra-gold);
}

.rhra-dark a:not(.rhra-button) {
    color: var(--rhra-gold);
}

.rhra-eyebrow {
    margin-bottom: 16px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.rhra-dark .rhra-eyebrow {
    color: var(--rhra-gold);
}

.rhra-lead {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.7;
    max-width: 65ch;
}

.rhra-muted {
    color: var(--rhra-muted);
}

.rhra-dark .rhra-muted {
    color: var(--rhra-slate);
}

.rhra-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.rhra-grid > * {
    min-width: 0;
}

.rhra-card {
    min-width: 0;
    padding: 24px;
    background: var(--rhra-white);
    color: var(--rhra-text);
    border: 1px solid var(--rhra-border);
    border-radius: var(--rhra-card-radius);
}

.rhra-card p:last-child {
    margin-bottom: 0;
}

.rhra-card-dark {
    background: var(--rhra-royal);
    color: var(--rhra-white);
    border-color: #34496B;
}

.rhra-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: var(--rhra-control-height);
    max-width: 100%;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: var(--rhra-button-radius);
    background: var(--rhra-navy);
    color: var(--rhra-white);
    font-weight: 650;
    line-height: 1.4;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition:
        background-color 160ms ease,
        border-color 160ms ease;
}

.rhra-button:hover {
    background: var(--rhra-royal);
}

.rhra-button-gold {
    background: var(--rhra-gold);
    color: var(--rhra-navy);
}

.rhra-button-gold:hover {
    background: #EBC477;
}

.rhra-button-outline {
    background: transparent;
    border-color: var(--rhra-border);
    color: var(--rhra-navy);
}

.rhra-button-outline:hover {
    background: var(--rhra-pearl);
}

.rhra-dark .rhra-button-outline {
    color: var(--rhra-white);
    border-color: #526A91;
}

.rhra-dark .rhra-button-outline:hover {
    background: var(--rhra-royal);
}

.rhra-button:disabled,
.rhra-button[aria-disabled="true"] {
    opacity: .65;
    cursor: not-allowed;
}

.rhra-button-full {
    width: 100%;
}

.rhra-field {
    display: grid;
    gap: 8px;
    min-width: 0;
    margin-bottom: 20px;
}

.rhra-field label {
    font-size: .9rem;
    font-weight: 650;
}

.rhra-input,
.rhra-select,
.rhra-textarea {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: var(--rhra-control-height);
    padding: 12px 14px;
    border: 1px solid #A8B5C7;
    border-radius: var(--rhra-input-radius);
    background: var(--rhra-white);
    color: var(--rhra-text);
    font-size: 1rem;
}

.rhra-textarea {
    min-height: 144px;
    resize: vertical;
}

.rhra-help {
    font-size: .85rem;
    color: var(--rhra-muted);
}

.rhra-error {
    color: var(--rhra-danger);
    font-size: .875rem;
}

[aria-invalid="true"] {
    border-color: var(--rhra-danger);
}

.rhra-notice {
    padding: 16px;
    border: 1px solid var(--rhra-border);
    border-radius: 12px;
    background: var(--rhra-white);
}

.rhra-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border: 1px solid var(--rhra-border);
    border-radius: 8px;
    font-size: .8rem;
    font-weight: 600;
}

.rhra-artwork {
    width: 100%;
    height: auto;
    border-radius: var(--rhra-card-radius);
}

.rhra-footer {
    padding-block: 32px;
    background: var(--rhra-navy);
    color: var(--rhra-slate);
    font-size: .875rem;
}

.rhra-footer-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rhra-footer a {
    color: var(--rhra-gold);
}

.rhra-skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 100;
    padding: 12px;
    background: var(--rhra-white);
    color: var(--rhra-navy);
}

.rhra-skip-link:focus {
    top: 16px;
}

@media (min-width: 640px) {
    .rhra-container {
        width: min(
            calc(100% - 48px),
            var(--rhra-container)
        );
    }

    .rhra-grid-2,
    .rhra-grid-3,
    .rhra-grid-4 {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .rhra-footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (min-width: 960px) {
    .rhra-grid-3 {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .rhra-grid-4 {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
