:root {
  color-scheme: light;
  --ink: #123534;
  --muted: #45605f;
  --deep: #073a3c;
  --teal: #00736f;
  --blue: #006a88;
  --green: #c9ea9b;
  --paper: #f7faf6;
  --line: #cde0d6;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; overflow-wrap: anywhere; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #087ab0; outline-offset: 3px; }
.skip { position: absolute; transform: translateY(-150%); z-index: 3; background: white; padding: .8rem; }
.skip:focus { transform: none; }
.wrap { width: min(91%, 75rem); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-inner, .foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem 1.5rem; }
.header-inner { min-height: 5.2rem; padding-block: .7rem; }
.logo { display: block; width: clamp(9.4rem, 19vw, 12.8rem); height: auto; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem clamp(.8rem, 2.4vw, 2rem); }
nav a { font-weight: 650; text-decoration: none; padding-block: .4rem; }
nav a:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: 1fr .95fr; align-items: center; gap: clamp(1.5rem, 5vw, 5rem); padding-block: clamp(2.8rem, 7vw, 7rem); }
.hero-copy { max-width: 39rem; }
.eyebrow { color: var(--teal); font-weight: 700; font-size: .94rem; margin-block: 0 1.1rem; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.042em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.65rem, 6vw, 5.7rem); }
h2 { font-size: clamp(2rem, 4vw, 3.65rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
p { margin: .85rem 0 0; white-space: pre-line; }
.hero-copy > p:not(.eyebrow) { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 34rem; }
.hero-image, .about-image, .course-image { display: block; width: 100%; height: auto; object-fit: cover; }
.hero-image { aspect-ratio: 1.13; border-radius: 2rem 2rem .65rem 2rem; box-shadow: .65rem .65rem 0 #b5dccd; }
.about-image { max-width: 28rem; border-radius: 1rem; margin-top: 1rem; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: .63rem 1rem; border: 1px solid transparent; border-radius: .65rem; text-decoration: none; font: inherit; font-weight: 700; min-height: 2.75rem; cursor: pointer; transition: background-color .18s ease, color .18s ease; }
.primary { background: var(--deep); color: white; }
.primary:hover { background: var(--teal); }
.secondary { color: var(--deep); border-color: var(--line); background: white; }
.secondary:hover { background: #e8f4e3; }
.light { color: var(--deep); background: var(--green); }
.light:hover { background: #e1f4c9; }
.quiet { color: var(--blue); background: transparent; padding-inline: .35rem; }
.quiet:hover { text-decoration: underline; }
.section-pad { padding-block: clamp(2.8rem, 6vw, 5.5rem); }
.section-head { max-width: 43rem; margin-bottom: 1.75rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.catalog { background: #e8f4ef; border-block: 1px solid #d5e9df; }
.courses { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1rem; }
.course { background: #fff; border: 1px solid var(--line); border-radius: 1.15rem; overflow: hidden; }
.course-body { padding: clamp(1.15rem, 3vw, 2.2rem); }
.course h3 { font-size: clamp(1.85rem, 4vw, 3rem); margin-top: .55rem; }
.course-image { aspect-ratio: 2; }
.status { display: inline-block; font-size: .9rem; font-weight: 700; color: var(--deep); background: #e1f1cc; border-radius: 999px; padding: .25rem .7rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: .75rem; margin-block: 1.3rem; }
.facts div { border-top: 1px solid var(--line); padding-top: .55rem; }
.facts dt { color: var(--muted); font-size: .91rem; }
.facts dd { margin: 0; font-weight: 650; }
.course details { margin-top: 1rem; }
summary { cursor: pointer; font-weight: 700; }
.course .button, .about .button, .partners > .button { margin-top: 1rem; }
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.partner-grid article { background: white; padding: 1.25rem; border: 1px solid var(--line); border-top: .24rem solid var(--teal); border-radius: .85rem; }
.about { background: #e4efcc; }
.about-grid, .contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1.25rem 3rem; }
.about-grid p:first-child { margin-top: 0; }
.contact { color: white; background: var(--deep); }
.contact address { font-style: normal; }
.contact .button { margin-top: .85rem; }
.contact small { display: block; margin-top: .55rem; color: #d3e6e1; }
.foot { padding-block: .75rem; }
.preview-bar { padding: .5rem 5%; background: #dceec4; display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.admin { max-width: 58rem; padding-block: 2rem 4rem; }
.admin h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
.admin h2 { font-size: 1.55rem; margin-top: 1.5rem; margin-bottom: .6rem; }
.admin details { border: 1px solid var(--line); border-radius: .7rem; background: white; margin-bottom: .5rem; }
.admin summary { padding: .8rem 1rem; }
.admin details form, .login form { border-top: 1px solid var(--line); display: grid; gap: .8rem; padding: 1rem; }
.admin label { display: grid; gap: .3rem; font-weight: 650; }
.admin input:not([type=hidden]), .admin textarea, .admin select { width: 100%; font: inherit; padding: .6rem; border: 1px solid #829c92; border-radius: .45rem; color: var(--ink); background: white; }
.admin textarea { min-height: 5rem; resize: vertical; }
.admin form button { justify-self: start; }
.admin .notice { padding: .7rem 1rem; border-radius: .5rem; background: #dceec4; }
.publish { margin-top: 1.4rem; }
.login { max-width: 31rem; }
.login form { margin-top: 1rem; margin-bottom: .7rem; background: white; }
@media (max-width: 48rem) {
  .hero { grid-template-columns: 1fr; padding-top: 2.5rem; }
  .hero-image { width: calc(100% - .65rem); aspect-ratio: 1.55; }
  .partner-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 32rem) {
  .header-inner { align-items: flex-start; flex-direction: column; }
  nav a { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

.contact-form { grid-column: 2; background: #fff; color: var(--ink); border-radius: 1rem; padding: 1rem clamp(1rem, 3vw, 1.65rem); }
.contact-form fieldset { display: grid; gap: .75rem; border: 0; padding: 0; margin: .85rem 0 0; min-width: 0; }
.contact-form label { display: grid; gap: .3rem; font-weight: 650; }
.contact-form input, .contact-form textarea { width: 100%; padding: .6rem; font: inherit; border: 1px solid #829c92; border-radius: .45rem; }
.contact-form textarea { resize: vertical; }
.contact-form button { justify-self: start; }
.contact-form .contact-notice { background: #e4efcc; padding: .55rem .75rem; border-radius: .45rem; }
.contact-form small { color: var(--muted); }
.message-body { padding: .25rem 1rem 1rem; }
@media (max-width: 48rem) { .contact-form { grid-column: auto; } }
.contact address { margin-top: 1.4rem; }

.foot-links { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem 1rem; }
.contact-facts { margin-block: 1rem; }
.contact-facts div { margin-block: .35rem; }
.contact-facts dt { font-weight: 650; }
.contact-facts dd { margin: 0; white-space: pre-line; }
.legal h1 { margin-top: 1rem; }
.legal h2 { margin-top: 1.65rem; }
#contact-privacy { font-size: .94rem; color: var(--muted); }

.nav-login { display: inline-grid; place-items: center; width: 2.75rem; min-height: 2.75rem; }
nav a[aria-current="page"] { text-decoration: underline; }
.person-icon { position: relative; display: block; width: 1.25rem; height: 1.25rem; }
.person-icon::before, .person-icon::after { position: absolute; content: ""; left: 50%; transform: translateX(-50%); border: 2px solid currentColor; }
.person-icon::before { top: 0; width: .56rem; height: .56rem; border-radius: 50%; }
.person-icon::after { bottom: 0; width: 1rem; height: .56rem; border-radius: .5rem .5rem .16rem .16rem; }

.project-articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 1.25rem; margin-top: 2rem; }
.project-articles article { min-width: 0; padding: 1.25rem; background: white; border: 1px solid var(--line); border-radius: .75rem; }
.project-articles h2 { font-size: clamp(1.35rem, 3vw, 2rem); }
.project-articles img { display: block; width: 100%; height: auto; max-height: 16rem; object-fit: contain; object-position: center; margin-top: 1rem; }
.gallery-entry img { display: block; width: min(100%, 10rem); height: auto; }
.admin .project-remove { display: flex; align-items: center; }
.admin .project-remove input { width: auto; }
#gallery > p, #gallery > details { margin: .75rem; }
