:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #221f1f;
  background: #fff;
  --yellow: #e7a505;
  --graphite: #221f1f;
  --muted: #554f49;
}

* { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
section[id] { scroll-margin-top: 18px; }
:focus-visible { outline: 3px solid #8a6100; outline-offset: 4px; }
.top :focus-visible, .hero :focus-visible { outline-color: #ffcd44; outline-offset: 5px; }
.skip { position: absolute; top: 12px; left: 12px; padding: 10px 15px; z-index: 2; background: #fff; transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.wrap { width: min(1120px, calc(100% - 72px)); margin-inline: auto; }

.top, .hero, .bottom { color: #fff; background: var(--graphite); }
.top { border-bottom: 1px solid #45403b; }
.top-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { flex: none; }
.brand img { width: 107px; }
nav { display: flex; flex-wrap: wrap; gap: 6px 26px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .92rem; font-weight: 600; text-decoration: none; }
nav a:hover { color: #ffcd44; text-decoration: underline; text-underline-offset: 5px; }

.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(22px, 5vw, 66px); padding-block: clamp(62px, 8vw, 112px); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(2.65rem, 5.3vw, 4.8rem); line-height: .99; letter-spacing: -.052em; max-width: 11ch; }
h1 span { color: #f5b71e; }
.hero p { max-width: 47ch; margin-top: 24px; color: #ece6df; font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.6; }
.button { display: inline-flex; align-items: center; gap: 13px; justify-content: space-between; margin-top: 29px; min-height: 52px; padding: 13px 17px; border-radius: 5px; background: var(--yellow); color: #000; font-weight: 750; text-decoration: none; }
.button:hover { background: #ffca41; }
.button span { font-size: 1.2em; flex: none; }
.hero-photo, .gallery figure { margin: 0; overflow: hidden; }
.hero-photo { border-radius: 9px; border: 1px solid #655648; border-bottom: 4px solid var(--yellow); background: #302a27; }
.hero-photo img { width: 100%; aspect-ratio: 1.5; object-fit: cover; }
.hero-photo figcaption { padding: 13px 17px; color: #f4ede5; font-size: .86rem; }

h2 { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.04; letter-spacing: -.042em; }
h3 { font-size: 1.26rem; line-height: 1.24; letter-spacing: -.018em; }
main p { line-height: 1.6; }
.about, .schools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 28px; padding-block: clamp(49px, 7vw, 88px); }
.about p, .schools p, .section-intro, article p { color: var(--muted); }
.about p { max-width: 55ch; font-size: 1.14rem; }
.workshops { background: #f7f4ed; padding-block: clamp(49px, 7vw, 88px); }
.section-intro, .schools p { margin-top: 14px; max-width: 58ch; }
.topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-top: 28px; }
.topics article { border: 1px solid #ded8cb; border-radius: 9px; padding: 23px; background: #fff; }
.symbol { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 18px; border-radius: 7px; background: #fbe9b7; color: #674600; font-size: 1.44rem; font-weight: 750; }
article p { margin-top: 10px; }
.schools { align-items: center; gap: clamp(25px, 7vw, 85px); }
.team, .gallery { padding-block: clamp(49px, 7vw, 88px); }
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px 36px; margin-top: 30px; }
.team-grid article { display: grid; grid-template-columns: minmax(0, 104px) minmax(0, 1fr); gap: 16px; align-items: start; border-top: 1px solid #d9d3c8; padding-top: 17px; }
.team-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.team-grid p { margin-top: 6px; }
.team-grid .role { margin-top: 3px; color: #72500a; font-size: .88rem; font-weight: 650; }
.gallery { color: #fff; background: var(--graphite); }
.gallery-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 14px; margin-top: 30px; }
.gallery figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; border: 1px solid #504741; border-radius: 7px; background: #332d29; }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 2.08; object-fit: cover; }
.gallery figure:first-child img { aspect-ratio: 1.42; }
.gallery figcaption { position: relative; padding: 10px 14px; color: #f4ede5; background: #332d29; font-size: .87rem; }
.gallery figure:hover { border-color: #a77a2f; }
dl { margin: 0; border-top: 1px solid #d9d3c8; }
dl div { display: flex; justify-content: space-between; gap: 12px; padding: 13px 2px; border-bottom: 1px solid #d9d3c8; }
dt { color: var(--muted); }
dd { margin: 0; text-align: right; font-weight: 700; }
.contact { background: var(--yellow); color: #000; }
.contact-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 290px); align-items: center; gap: 26px; padding-block: clamp(39px, 6vw, 68px); }
.contact h2 { max-width: 18ch; }
.contact p { margin-top: 12px; }
.contact-actions { display: grid; justify-items: start; gap: 4px; }
.email-button { display: grid; gap: 3px; max-width: 100%; padding: 12px 16px; border-radius: 5px; background: var(--graphite); color: #fff; line-height: 1.35; text-decoration: none; }
.email-button:hover { background: #000; }
.email-button span { font-size: .87rem; overflow-wrap: anywhere; }
.instagram-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .91rem; font-weight: 650; text-underline-offset: 3px; }
.contact-actions a:focus-visible { outline-color: #221f1f; }
.bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-block: 25px; }
.bottom span { color: #ece6df; font-size: .88rem; }

@media (prefers-reduced-motion: no-preference) {
  .hero-photo { animation: photo-in .55s ease-out both; }
  .button, .email-button, .gallery figure { transition: background-color .18s ease, border-color .18s ease; }
  .gallery img { transition: transform .35s ease; }
  @media (hover: hover) { .gallery figure:hover img { transform: scale(1.035); } }
}

@keyframes photo-in {
  from { opacity: .65; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .hero-inner { gap: 30px; padding-block: 50px; }
  .topics article { padding: 18px; }
  .team-grid { gap: 22px; }
  .team-grid article { grid-template-columns: minmax(0, 76px) minmax(0, 1fr); gap: 12px; }
}

@media (max-width: 620px) {
  .top-inner { align-items: flex-start; flex-direction: column; gap: 3px; padding-block: 9px 3px; }
  .brand img { width: 84px; }
  nav { width: 100%; gap: 0 15px; }
  nav a { font-size: .86rem; }
  .hero-inner, .about, .schools, .contact-inner, .topics, .gallery-grid, .team-grid { grid-template-columns: 1fr; }
  .hero-inner { padding-block: 41px 32px; }
  h1 { font-size: clamp(2.2rem, 9.6vw, 3.65rem); }
  .hero p { margin-top: 18px; }
  .gallery figure:first-child { grid-row: auto; }
  .gallery img, .gallery figure:first-child img { aspect-ratio: 1.6; }
  .about { gap: 16px; }
  .contact-inner { gap: 17px; }
}
