* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #1f2933;
    background: #f6f8f5;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 10;
    padding: 0.75rem 1rem;
    color: #ffffff;
    background: #1f2933;
}

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

.site-header {
    color: #ffffff;
    background: #234236;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 0;
}

.school-label,
.school-motto {
    margin: 0;
}

.school-label {
    font-size: 1.35rem;
    font-weight: 700;
}

.school-motto {
    color: #d8eadf;
    font-size: 0.95rem;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-list a {
    display: inline-block;
    padding: 0.55rem 0.8rem;
    border-radius: 6px;
    text-decoration: none;
}

.nav-list a:hover,
.nav-list a:focus,
.nav-list a[aria-current="page"] {
    color: #234236;
    background: #ffffff;
}

.hero {
    color: #ffffff;
    background: linear-gradient(rgba(35, 66, 54, 0.86), rgba(35, 66, 54, 0.86)),
        url("https://images.unsplash.com/photo-1509062522246-3755977927d7?auto=format&fit=crop&w=1400&q=80");
    background-position: center;
    background-size: cover;
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 5rem 0;
    text-align: center;
}

.hero h1,
.page-heading h1 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
}

.hero p,
.page-heading p {
    margin: 0 auto 1.5rem;
    max-width: 650px;
    font-size: 1.1rem;
}

.button {
    display: inline-block;
    border: 0;
    border-radius: 6px;
    padding: 0.85rem 1.2rem;
    color: #ffffff;
    background: #b84a31;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.button:hover,
.button:focus {
    background: #963a25;
}

.page-heading {
    padding: 3.5rem 0;
    color: #ffffff;
    background: #315f4d;
    text-align: center;
}

.section {
    padding: 3rem 0;
}

.section h2 {
    margin-top: 0;
    color: #234236;
}

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

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

.feature-card,
.registration-form {
    border: 1px solid #d7dfd8;
    border-radius: 8px;
    background: #ffffff;
}

.feature-card {
    padding: 1.25rem;
}

.feature-card h3 {
    margin-top: 0;
    color: #315f4d;
}

.value-list {
    padding-left: 1.25rem;
}

.registration-form {
    max-width: 760px;
    padding: 1.5rem;
}

.status-box {
    max-width: 760px;
    padding: 1.5rem;
    border: 1px solid #d7dfd8;
    border-radius: 8px;
    background: #ffffff;
}

.status-box p {
    margin-top: 0;
}

.success-message {
    border-left: 6px solid #315f4d;
}

.error-message {
    border-left: 6px solid #b84a31;
}

fieldset {
    margin: 0 0 1.5rem;
    padding: 1rem;
    border: 1px solid #d7dfd8;
    border-radius: 8px;
}

legend {
    padding: 0 0.4rem;
    color: #234236;
    font-weight: 700;
}

label {
    display: block;
    margin: 1rem 0 0.35rem;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #aab7ae;
    border-radius: 6px;
    font: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid #f2c46d;
    outline-offset: 2px;
}

.site-footer {
    padding: 1rem 0;
    color: #ffffff;
    background: #1f2933;
    text-align: center;
}

.site-footer p {
    margin: 0;
}

@media (max-width: 700px) {
    .header-content,
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .hero-content {
        padding: 3.5rem 0;
        text-align: left;
    }
}
