@font-face {
    font-family: Manrope;
    src: url("manrope.ttf") format("truetype");
    font-weight: 200 800;
    font-display: swap;
}

@font-face {
    font-family: Lora;
    src: url("lora.ttf") format("truetype");
    font-weight: 400 700;
    font-display: swap;
}

@font-face {
    font-family: Lora;
    src: url("lora-italic.ttf") format("truetype");
    font-style: italic;
    font-weight: 400 700;
    font-display: swap;
}

:root {
    --paper: #fcfaf5;
    --white: #fff;
    --ink: #24213b;
    --muted: #5d5769;
    --indigo: #362764;
    --indigo-dark: #282047;
    --violet: #5d4785;
    --lavender: #eee7fa;
    --line: #dcd5e4;
    --accent: #f4ce7b;
    --accent-soft: #f7e9c6;
    --body-font: Manrope, "Segoe UI", sans-serif;
    --heading-font: Lora, Georgia, serif;
    color-scheme: light;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.65 var(--body-font); }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 4px; }
a { color: var(--indigo); text-underline-offset: .24em; }
a:hover { color: var(--indigo-dark); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, p, figure { margin: 0; }
h1, h2 { font-family: var(--heading-font); font-weight: 600; line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 4.6vw, 4.4rem); margin-bottom: .8rem; }
h2 { font-size: clamp(1.75rem, 3.1vw, 2.95rem); }
p { max-width: 68ch; }
p + p { margin-top: .85rem; }

.wrap { width: min(1160px, calc(100% - 88px)); margin-inline: auto; }
.skip { position: absolute; top: -8rem; left: 1rem; z-index: 5; background: var(--white); padding: .75rem 1rem; }
.skip:focus { top: 1rem; }

.header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner {
    min-height: 76px;
    display: flex;
    gap: clamp(.8rem, 2vw, 1.8rem);
    align-items: center;
    justify-content: space-between;
}
.brand {
    display: inline-flex;
    align-items: center;
    flex: none;
    color: var(--ink);
    font-size: 1.48rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -.04em;
    line-height: 1;
    white-space: nowrap;
}
.brand > span:last-child { color: #126454; }
.brand-mark { width: 2.25rem; height: 2.25rem; margin-right: .5rem; flex: none; }
.header nav { display: flex; gap: clamp(.65rem, 1.4vw, 1.25rem); justify-content: center; flex-wrap: wrap; }
.header nav a, .account-link { font-size: .925rem; font-weight: 700; text-decoration: none; }
.header nav a:hover, .header nav a[aria-current], .account-link:hover { text-decoration: underline; }
.header-actions { display: flex; align-items: center; gap: .65rem; white-space: nowrap; }
.account-link { padding: .45rem .78rem; border: 1px solid var(--line); border-radius: 6px; }
.language-switch { position: relative; }
.language-trigger, .language-link {
    display: flex;
    align-items: center;
    gap: .45rem;
    min-height: 40px;
    padding: .3rem .58rem;
    color: var(--ink);
    font-size: .875rem;
    font-weight: 750;
}
.language-trigger { border-radius: 6px; cursor: pointer; list-style: none; }
.language-trigger::-webkit-details-marker { display: none; }
.language-trigger::after {
    content: "";
    width: .38rem;
    height: .38rem;
    margin: -.18rem .12rem 0;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
}
.language-switch[open] .language-trigger::after { margin-top: .22rem; transform: rotate(225deg); }
.language-trigger:hover, .language-switch[open] .language-trigger, .language-link:hover, .language-link[aria-current] {
    background: var(--lavender);
}
.language-menu {
    display: none;
    position: absolute;
    z-index: 3;
    inset-inline-end: 0;
    top: calc(100% + .3rem);
    min-width: 100%;
    padding: .3rem;
    background: var(--white);
    border-radius: 9px;
    box-shadow: 0 6px 26px #2820472b;
}
.language-switch[open] .language-menu { display: grid; }
.language-link { border-radius: 5px; text-decoration: none; }
.language-flag { width: 1.35rem; height: .9rem; flex: none; border-radius: 2px; }
.nav-toggle { background: none; color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: .38rem .58rem; font-size: .875rem; }

.hero { background: var(--indigo-dark); color: var(--paper); }
.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 5.2rem);
    padding-block: clamp(2.4rem, 6vw, 5rem);
}
.hero-copy h1 {
    font-size: clamp(2.75rem, 5.75vw, 5.1rem);
    line-height: 1.05;
    margin-bottom: 1.3rem;
    text-wrap: initial;
}
.hero-copy em { color: var(--accent); display: block; font-weight: 500; }
.hero-copy p { color: #f1e8fb; max-width: 50ch; font-size: clamp(1.02rem, 1.6vw, 1.16rem); }
.hero .text-link { color: #fbf1de; }
.hero .text-link:hover { color: var(--accent); }
.hero :focus-visible, .footer :focus-visible { outline-color: var(--accent); }
.actions { display: flex; gap: .8rem 1.3rem; align-items: center; flex-wrap: wrap; margin-top: 1.65rem; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 45px;
    border: 1px solid var(--indigo);
    border-radius: 6px;
    background: var(--indigo);
    color: var(--white);
    padding: .63rem 1.06rem;
    line-height: 1.38;
    font-weight: 750;
    text-decoration: none;
    text-align: center;
}
.button:hover { background: var(--indigo-dark); color: var(--white); }
.button.secondary { background: transparent; color: var(--indigo-dark); }
.button.secondary:hover { background: var(--lavender); }
.hero .button { border-color: var(--accent); background: var(--accent); color: var(--indigo-dark); }
.hero .button:hover { border-color: #ffe5ab; background: #ffe5ab; }
.hero-photo { background: #eae3f3; color: var(--ink); padding: .62rem .62rem 0; border-radius: 12px; min-width: 0; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 48%; border-radius: 7px; }
.hero-photo figcaption { font-size: .8125rem; padding: .48rem .35rem .6rem; }

.section { padding-block: clamp(3rem, 6.2vw, 5.25rem); }
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 6vw, 5.5rem); align-items: start; }
.section-intro h2 { margin-bottom: .8rem; }
.section-intro p, .intro, .program span, .content p, .feature-list p, .course p, .contact-panel address span { color: var(--muted); }
.section-intro .text-link { display: inline-block; margin-top: 1rem; }
.text-link { font-weight: 750; }
.program-list { align-self: start; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.program-list li { border-bottom: 1px solid var(--line); }
.program {
    display: grid;
    grid-template-columns: minmax(0, .74fr) minmax(0, 1.26fr);
    align-items: baseline;
    gap: .45rem 1.2rem;
    padding: .92rem .5rem;
    color: var(--indigo);
    text-decoration: none;
}
.program strong { font-size: 1.07rem; }
.program:hover { background: var(--lavender); }
.program:hover strong { text-decoration: underline; text-underline-offset: .2em; }

.mission-band { margin-bottom: clamp(2rem, 6vw, 5.25rem); padding: clamp(1.6rem, 4.6vw, 3.8rem); border-radius: 13px; background: var(--accent-soft); }
.mission-band h2 { max-width: 16ch; }
.mission-band .text-link, .mission-detail .text-link { display: inline-block; margin-top: .75rem; }
.page-intro { max-width: 52rem; }
.intro { font-size: clamp(1.04rem, 1.5vw, 1.19rem); max-width: 60ch; }
.mission-detail {
    margin-top: clamp(1.6rem, 4vw, 3.1rem);
    padding: clamp(1.3rem, 4vw, 3.4rem);
    background: var(--lavender);
    border-radius: 12px;
}
.detail-page h1 { max-width: 24ch; }
.detail-next { margin-top: 1.75rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.detail-next .button, .feature-list + .button { margin-top: 1rem; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.filters a, .tag {
    border-radius: 5px;
    background: var(--lavender);
    color: var(--indigo-dark);
    font-weight: 750;
    text-decoration: none;
    padding: .3rem .66rem;
    display: inline-block;
    width: fit-content;
}
.filters a[aria-current], .filters a:hover { background: var(--accent); }
.course-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(1.2rem, 4vw, 3rem);
    margin-top: 1.5rem;
    border-top: 1px solid var(--line);
}
.course {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    padding: 1.35rem 0;
    border-bottom: 1px solid var(--line);
}
.course h2, .feature-list h2 { font-size: clamp(1.29rem, 2vw, 1.6rem); text-wrap: initial; }
.course a { margin-top: auto; width: fit-content; }
.tag { font-size: .875rem; }
.breadcrumb { display: inline-block; margin-bottom: 1.35rem; }
.feature-list { margin-top: 1.55rem; }
.feature-list article { padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.feature-list h2 { margin-bottom: .45rem; }
.feature-list .tag { margin-bottom: .55rem; }

.contact-page { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); min-height: 54vh; }
.contact-panel {
    padding: clamp(1.3rem, 3.8vw, 3rem);
    background: var(--lavender);
    border-radius: 12px;
}
address { font-style: normal; }
.contact-panel address div { display: grid; gap: .2rem; padding-bottom: .9rem; margin-bottom: .9rem; border-bottom: 1px solid #cec1e0; }
.contact-panel address a { width: fit-content; font-size: clamp(1.05rem, 2.4vw, 1.45rem); font-weight: 800; overflow-wrap: anywhere; }
.contact-panel .button { margin-top: .35rem; }

.form-section { min-height: 55vh; }
.form-section form {
    max-width: 650px;
    display: grid;
    gap: .95rem;
    margin-block: 1.2rem;
    padding: clamp(1rem, 3.4vw, 1.65rem);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
}
.form-section .intro { margin-bottom: .65rem; }
label { display: grid; gap: .3rem; font-weight: 750; }
input, textarea, select {
    width: 100%;
    min-width: 0;
    color: var(--ink);
    background: var(--white);
    border: 1px solid #9b90a9;
    border-radius: 6px;
    padding: .62rem .7rem;
    font-weight: 400;
}
textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.notices { padding-top: 1rem; }
.notice { background: var(--lavender); color: var(--indigo-dark); padding: .7rem 1rem; border: 1px solid var(--line); border-radius: 6px; }
.notice.error { background: #fff0ea; color: #872c22; border-color: #dfafa3; }

.footer { background: var(--indigo-dark); color: #eee6f7; }
.footer-inner { padding-block: 2.2rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.3rem; }
.footer a { display: block; color: #f8f1ff; overflow-wrap: anywhere; }
.footer .brand { display: inline-flex; margin-bottom: .7rem; }
.footer .brand > span:last-child { color: var(--accent); }

@media (max-width: 1020px) {
    .wrap { width: calc(100% - 58px); }
    .header-inner { min-height: 68px; }
}

@media (max-width: 880px) {
    .header-inner { flex-wrap: wrap; padding-block: .7rem; gap: .5rem .7rem; }
    .header #navigation { order: 4; justify-content: flex-start; width: 100%; gap: .6rem 1.1rem; }
    .header .nav-toggle:not([hidden]) { display: inline-block; order: 3; }
    .header nav[hidden] { display: none; }
    .header-actions { margin-left: auto; }
    .account-link { font-size: .85rem; padding: .38rem .5rem; }
}

@media (max-width: 740px) {
    .wrap { width: calc(100% - 36px); }
    .hero-inner, .split { grid-template-columns: 1fr; }
    .hero-copy h1 { font-size: clamp(2.65rem, 9vw, 4.35rem); }
    .hero-photo img { aspect-ratio: 5 / 4; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-inner > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 500px) {
    .course-list, .form-row, .footer-inner, .program { grid-template-columns: 1fr; }
    .program { gap: .2rem; }
    .header-actions { gap: .27rem; }
    .header-inner { column-gap: .45rem; }
    .language-trigger { padding-inline: .3rem; }
    .brand { font-size: 1.3rem; }
    .brand-mark { width: 1.9rem; height: 1.9rem; margin-right: .39rem; }
}
