:root {
    --ink: #171423;
    --muted: #696378;
    --paper: #fbfaff;
    --card: #ffffff;
    --plum: #2b145f;
    --violet: #6e36e8;
    --pink: #dc5daa;
    --gold: #ffc857;
    --line: #e4e0ef;
    font-family: Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--paper);
    color: var(--ink);
    line-height: 1.5;
    margin: 0;
}

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

a {
    color: inherit;
    text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

.skip-link {
    background: #ffffff;
    color: var(--plum);
    font-weight: 700;
    left: 1rem;
    padding: 0.75rem 1rem;
    position: absolute;
    top: -4rem;
    z-index: 10;
}

.skip-link:focus {
    top: 1rem;
}

.page-shell {
    margin: 0 auto;
    max-width: 72rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.site-header {
    background: var(--plum);
    color: #ffffff;
}

.primary-nav {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-height: 4.75rem;
    position: relative;
    z-index: 2;
}

.primary-nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-nav a {
    font-weight: 700;
    text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
    color: var(--gold);
}

.brand {
    font-size: 1.35rem;
    letter-spacing: -0.04em;
}

.hero {
    min-height: 42rem;
    overflow: hidden;
    position: relative;
}

.hero::after {
    background: linear-gradient(90deg, rgba(23, 8, 62, 0.93), rgba(23, 8, 62, 0.65));
    content: "";
    inset: 0;
    position: absolute;
}

.hero-media {
    inset: 0;
    position: absolute;
}

.hero-media video {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.hero-content {
    padding-bottom: 7rem;
    padding-top: 8rem;
    position: relative;
    z-index: 1;
}

.eyebrow {
    color: var(--pink);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    margin: 0 0 0.65rem;
    text-transform: uppercase;
}

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

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

h1 {
    font-size: 4rem;
    letter-spacing: -0.07em;
    margin-bottom: 1.25rem;
    max-width: 43rem;
}

h2 {
    font-size: 2.3rem;
    letter-spacing: -0.045em;
    margin-bottom: 0.8rem;
}

h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.lead {
    font-size: 1.18rem;
    margin-bottom: 2rem;
    max-width: 41rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.button {
    background: var(--violet);
    border: 2px solid var(--violet);
    border-radius: 0.4rem;
    color: #ffffff;
    cursor: pointer;
    display: inline-block;
    font-weight: 800;
    padding: 0.7rem 1rem;
    text-align: center;
    text-decoration: none;
}

.button:hover {
    background: #5124ba;
    border-color: #5124ba;
}

.button-outline {
    background: transparent;
    border-color: #ffffff;
}

.button-outline:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--plum);
}

.section {
    padding-bottom: 5rem;
    padding-top: 5rem;
}

.section-heading {
    margin-bottom: 2.25rem;
    max-width: 42rem;
}

.section-heading > p:last-child {
    color: var(--muted);
    margin-bottom: 0;
}

.feature-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(3, 1fr);
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 1rem;
    box-shadow: 0 1.1rem 2.75rem rgba(30, 15, 72, 0.09);
    overflow: hidden;
}

.feature-card img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
}

.feature-card div {
    padding: 1.25rem;
}

.feature-card p {
    color: var(--muted);
    margin-bottom: 0;
}

.mission-section {
    background: #eee9ff;
    padding: 4.75rem 0;
}

.mission-layout {
    align-items: center;
    display: grid;
    gap: 3.5rem;
    grid-template-columns: 11rem 1fr;
    max-width: 60rem;
}

.mission-layout img {
    border-radius: 50%;
    box-shadow: 0 1rem 2.25rem rgba(43, 20, 95, 0.16);
}

.mission-layout p:not(.eyebrow) {
    color: var(--muted);
    max-width: 42rem;
}

.text-link {
    color: var(--plum);
    font-weight: 800;
}

.subpage-header {
    box-shadow: 0 0.2rem 0.75rem rgba(23, 20, 35, 0.08);
}

.gallery-section {
    min-height: 70vh;
}

.gallery-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(4, 1fr);
}

.gallery-grid figure {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    margin: 0;
    overflow: hidden;
}

.gallery-grid img {
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 180ms ease;
    width: 100%;
}

.gallery-grid figure:hover img {
    transform: scale(1.04);
}

.gallery-grid figcaption {
    font-weight: 800;
    padding: 0.75rem;
}

.contact-section {
    min-height: 70vh;
}

.contact-layout {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr 1.5fr;
}

.contact-details,
form {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 1rem;
    box-shadow: 0 1rem 2.5rem rgba(30, 15, 72, 0.07);
    padding: 1.5rem;
}

.contact-details h2 {
    font-size: 1.35rem;
}

dl {
    margin: 0;
}

dl div + div {
    border-top: 1px solid var(--line);
    margin-top: 1rem;
    padding-top: 1rem;
}

dt {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
}

dd {
    margin: 0.25rem 0 0;
}

.form-field {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

input,
textarea {
    border: 1px solid #b9b1ce;
    border-radius: 0.4rem;
    font: inherit;
    padding: 0.7rem;
    width: 100%;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus {
    border-color: var(--violet);
    outline: 0;
}

.site-footer {
    background: var(--ink);
    color: #ffffff;
    padding: 1.5rem 0;
}

.footer-content {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.footer-content p {
    color: #d8d1ea;
    margin: 0;
}

.footer-content a {
    color: var(--gold);
    font-weight: 800;
}

@media (max-width: 48rem) {
    h1 {
        font-size: 3rem;
    }

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

    .mission-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .mission-layout img {
        max-width: 10rem;
    }
}

@media (max-width: 33rem) {
    .page-shell {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .primary-nav {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.8rem;
        padding-bottom: 1rem;
        padding-top: 1rem;
    }

    .primary-nav ul {
        flex-wrap: wrap;
        gap: 0.75rem 1.15rem;
    }

    .hero {
        min-height: 35rem;
    }

    .hero-content {
        padding-bottom: 5rem;
        padding-top: 5rem;
    }

    h1 {
        font-size: 2.55rem;
    }

    h2 {
        font-size: 2rem;
    }

    .feature-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        align-items: flex-start;
        flex-direction: column;
    }
}
