@font-face { font-family: Manrope; src: url("manrope.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }
:root {
  color-scheme: light;
  --background: #faf7f0;
  --text: #252b25;
  --muted: #4b5349;
  --green: #2e4d40;
  --line: #d9d8cd;
  --paper: #fffdf8;
  --text-font: "Segoe UI", Arial, sans-serif;
  font: 100%/1.6 var(--text-font);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid #8b562c; outline-offset: 4px; }
.wrap { width: min(1120px, 100% - 64px); margin-inline: auto; }
.masthead { background: var(--green); color: #fff6e6; }
.masthead-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 18px;
}
.masthead-brand p { margin: 4px 0 0; }
.masthead a:focus-visible { outline-color: #fff6e6; }
.masthead-brand a {
  font: 600 clamp(1.75rem, 3vw, 2rem)/1.25 Manrope, var(--text-font);
  text-decoration: none;
}
.intro {
  background: #d1dfc7;
  box-shadow: 0 0 0 100vmax #d1dfc7;
  clip-path: inset(0 -100vmax);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 62px);
  align-items: center;
  padding-block: clamp(35px, 6vw, 80px);
}
nav { display: flex; flex-wrap: wrap; gap: 9px; }
nav a, .button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .75em;
  border: 1px solid var(--green);
  border-radius: 8px;
  padding: .65em .95em;
  min-height: 44px;
  text-decoration: none;
  color: var(--green);
  font-weight: 600;
}
nav a {
  background: #d1dfc7;
  border-color: #827656;
  font-size: .9rem;
}
nav a:hover { background: #bdd0b2; }
.button:hover { background: #e9eee7; }
.primary { background: var(--green); color: white; }
.primary:hover { background: #223d31; }
.contact-links .button { background: var(--green); color: white; }
.contact-links .button:hover { background: #223d31; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.08; }
h1 { font-size: clamp(2.35rem, 4.2vw, 4rem); margin: 0; letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin: 0 0 16px; letter-spacing: -.025em; }
h3 { font-size: 1.55rem; margin: 27px 0 16px; }
.intro-copy p { color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.35rem); max-width: 43ch; margin: 18px 0 0; }
.intro-copy > .button { margin-top: 26px; }
.portrait {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 39%;
  border-radius: 16px;
}
.section { padding-block: clamp(36px, 6vw, 74px); border-top: 1px solid var(--line); }
.section p { max-width: 60ch; color: var(--muted); }
details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 14px;
}
details:first-of-type { margin-top: 28px; }
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px clamp(15px, 3vw, 28px);
  color: var(--green);
  cursor: pointer;
  font-size: clamp(1.02rem, 2.1vw, 1.25rem);
  font-weight: 600;
  list-style: none;
}
#programs summary { background: #d1dfc7; }
#applications summary { background: #f2dfb9; }
#programs summary:hover { background: #c1d3b5; }
#applications summary:hover { background: #ecd3a4; }
#programs summary, #applications summary { border-radius: 11px; }
#programs details[open] > summary,
#applications details[open] > summary { border-radius: 11px 11px 0 0; margin-bottom: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; width: .5em; height: .5em; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); flex: none; }
details[open] summary::after { transform: rotate(225deg); }
.details-content { padding: 0 clamp(15px, 3vw, 28px) 24px; }
.details-content > p { margin: 0 0 14px; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
figure { margin: 0; }
figure img { display: block; width: 100%; height: auto; border-radius: 6px; }
figcaption { color: var(--muted); margin-top: 8px; }
.photo-labels { display: grid; grid-template-columns: 1fr 1fr; text-align: center; font-weight: 600; padding-bottom: 5px; }
.section > h2::before {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  margin-bottom: 15px;
  border-radius: 2px;
  background: #92a586;
}
#applications > h2::before { background: #bd9459; }
.contact {
  margin-bottom: clamp(28px, 5vw, 60px);
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid #d4ddce;
  border-radius: 16px;
  background: #edf2e9;
}
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
@media (max-width: 860px) {
  .intro { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 36px); }
  .intro, .gallery { grid-template-columns: 1fr; }
  .intro { padding-top: 20px; }
  .intro-copy { padding-top: 8px; }
  .intro-copy > .button { margin-top: 26px; }
.portrait { max-height: 530px; }
  .contact-links { align-items: flex-start; flex-direction: column; }
}

.application-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 16px;
}

.application-grid .image-trigger img {
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: #efece4;
  border: 1px solid var(--line);
  border-radius: 8px;
}




@media (min-width: 860px) {
  #programs, #applications, #contact {
    position: relative;
    isolation: isolate;
  }

  #programs::before, #applications::before, #contact::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    border-radius: inherit;
    background:
      radial-gradient(ellipse 23% 70% at 0 50%, rgb(187 207 174 / 54%), transparent),
      radial-gradient(ellipse 23% 70% at 100% 50%, rgb(236 211 164 / 49%), transparent);
  }
}

@media (min-width: 960px) {
  #programs, #applications, #contact { width: min(54rem, 100%); }
  #programs { margin-inline-start: max(-24px, calc((1120px - 100vw) / 2)); }
  #applications { margin-inline: auto; }
  #contact {
    margin-inline-start: auto;
    margin-inline-end: max(-24px, calc((1120px - 100vw) / 2));
  }
}

#programs .image-viewer, #applications .image-viewer {
  margin: 0;
  border: 0;
  background: transparent;
}
#programs .image-viewer > summary, #applications .image-viewer > summary {
  display: block;
  margin: 0;
  padding: 0;
  background: transparent;
}
.image-viewer > summary::after { content: none; }
.application-grid .image-viewer .image-trigger { display: block; cursor: zoom-in; }
#programs .image-viewer > summary { display: inline-block; max-width: 100%; }
.image-close { display: none; }
#programs .image-viewer[open] > summary, #applications .image-viewer[open] > summary {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 21;
}
.image-viewer[open] .image-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 13px;
  border-radius: 22px;
  background: var(--paper);
}
.image-viewer[open] .image-trigger { display: none; }
.application-grid .image-viewer[open] .image-trigger { display: none; }
.image-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 64px 12px 12px;
  background: rgb(20 25 22 / 88%);
}
.image-overlay img, figure .image-overlay img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 76px);
  object-fit: contain;
}
#programs:has(.image-viewer[open]), #applications:has(.image-viewer[open]) { z-index: 2; }
@media (max-width: 640px) {
  .masthead-brand a {
    font-size: 1.65rem;
  }
  .masthead-content nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .masthead-content nav a { justify-content: center; text-align: center; }
}

@media (min-width: 1320px) {
  #programs::after, #applications::after, #contact::after {
    content: "";
    position: absolute;
    top: 56px;
    width: 22px;
    height: 78px;
    border-radius: 7px;
    pointer-events: none;
    background: rgb(129 154 119 / 36%);
    box-shadow: 13px 12px 0 rgb(129 154 119 / 20%);
    transform: rotate(25deg);
  }

  #programs::after, #contact::after { left: -58px; }

  #applications::after {
    right: -58px;
    background: rgb(189 148 89 / 33%);
    box-shadow: -13px 12px 0 rgb(189 148 89 / 18%);
    transform: rotate(-25deg);
  }
}
