@font-face {
    font-family: "Michroma";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/fonts/michroma-v8-latin-regular.woff2") format("woff2"),
         url("/assets/fonts/michroma-v8-latin-regular.woff") format("woff");
}

:root {
    --navy: #222e40;
    --blue: #174ea6;
    --light-blue: #eaf1fb;
    --grey: #6b7280;
    --light-grey: #e5e7eb;
    --red: #a71919;
    --white: #fff;
    color-scheme: light;
}

* { box-sizing: border-box; }

html { font-size: 16px; }

body {
    margin: 0;
    color: #111827;
    background: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

a { color: var(--navy); }
a:hover { color: #69717d; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid #f2b705;
    outline-offset: 3px;
}

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

h1, h2, h3 {
    color: var(--navy);
    font-family: "Michroma", Arial, sans-serif;
    font-weight: 400;
    line-height: 1.35;
}

h1, h2 { font-size: 1.3rem; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: min(1110px, calc(100% - 30px));
    margin-inline: auto;
}

.site-header {
    position: fixed;
    z-index: 20;
    inset: 0 0 auto;
    min-height: 59px;
    background: var(--navy);
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 59px;
    padding: 8px 16px;
}

.brand img { width: 290px; height: 43px; object-fit: contain; }
.document-link { position: absolute; right: 16px; top: 12px; }
.document-link img { width: 97px; height: 36px; object-fit: contain; }

.site-main { min-height: 65vh; padding-top: 130px; }
.language-switch { text-align: right; margin: 0 0 1.5rem; }
.narrow-content { max-width: 740px; margin-inline: auto; }
.narrow-content section { margin-bottom: 2rem; }
.narrow-content li { margin-bottom: .35rem; }

.home-page { background: var(--navy); color: var(--white); }
.home-main { min-height: 100vh; display: grid; place-items: start center; padding: 130px 20px 40px; text-align: center; }
.home-content { width: min(650px, 100%); }
.logo-text, .home-menu, .home-contact, .home-legal {
    color: var(--white);
    font-family: "Michroma", Arial, sans-serif;
    font-style: normal;
    letter-spacing: 2px;
}
.logo-text { font-size: 1.3rem; }
.home-menu { display: grid; gap: 1.5rem; margin-top: 4rem; }
.home-contact { margin-top: 3rem; }
.home-legal { margin-top: 8rem; }
.home-page a { color: var(--white); text-decoration: none; }
.home-page a:hover { color: #b4b7bb; }

.projects-list { padding-bottom: 40px; }
.project-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    align-items: start;
    margin-bottom: 3rem;
}
.project-copy { text-align: center; }
.project-copy h2 { margin: 0 0 .5rem; font-family: Arial, Helvetica, sans-serif; font-size: 1rem; font-weight: 700; }
.project-details { font-size: .625rem; }
.project-image img { width: 100%; border: 0; }

.curriculum-page { padding-bottom: 40px; }
.curriculum-table { width: min(760px, 100%); margin-inline: auto; border-collapse: collapse; }
.curriculum-table th, .curriculum-table td { padding: .75rem; vertical-align: top; border: 0; }
.curriculum-table th { width: 28%; text-align: right; }

.legal-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; padding-bottom: 40px; }
.legal-grid h2, .privacy-page h2 { margin-top: 1.75rem; }
.privacy-page { padding-bottom: 40px; }

.site-footer { padding-block: 130px 1.25rem; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.site-footer a { color: var(--navy); }
.credit { margin-top: 2rem; font-size: .625rem; }

.button {
    display: inline-block;
    border: 1px solid var(--blue);
    border-radius: 4px;
    padding: .55rem .8rem;
    color: var(--white);
    background: var(--blue);
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}
.button:hover { color: var(--white); background: #103b7f; }
.button-secondary { color: #1f2937; border-color: #6b7280; background: var(--white); }
.button-secondary:hover { color: #111827; background: #f3f4f6; }
.button-danger { border-color: var(--red); background: var(--red); }
.button-danger-outline { color: var(--red); border-color: var(--red); background: var(--white); }
.button-danger-outline:hover { color: var(--white); background: var(--red); }
.button-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

.error-page { padding-block: 3rem 8rem; }

@media (max-width: 700px) {
    .header-inner { justify-content: flex-start; padding-left: 15px; }
    .brand img { width: 220px; height: auto; }
    .document-link { right: 10px; }
    .document-link img { width: 72px; height: auto; }
    .project-row { grid-template-columns: 1fr; }
    .project-copy { padding-block: .5rem; }
    .legal-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 1rem; }
    .curriculum-table th, .curriculum-table td { display: block; width: 100%; text-align: left; padding-inline: 0; }
    .curriculum-table th { padding-bottom: 0; }
}

