@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Caslon+Display&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.wrap {
  margin: auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.brand small {
  display: block;
  margin-top: 5px;
}

.monogram {
  font-family: Georgia, serif;
  font-size: 46px;
  font-weight: 400;
  border-right: 1px solid var(--line);
  padding-right: 16px;
}

nav {
  display: flex;
}

.menu {
  display: none;
}

.hero {
  display: grid;
  align-items: center;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.17em;
  margin: 0 0 25px;
}

h1,
h2 {
  font-family: 'Libre Caslon Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin: 0 0 25px;
}

h1 em {
  color: #207454;
  font-weight: 400;
}

h3 {
  font-weight: 500;
  margin: 18px 0;
}

p {
  margin: 0 0 23px;
}

.lead {
  color: var(--muted);
}

.actions {
  display: flex;
  align-items: center;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  color: white;
  border-radius: 3px;
}

.button:hover {
  text-decoration: none;
}

.text-link {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 5px;
}

.language-band {
  justify-content: space-between;
  background: var(--sage);
}

.section-heading {
  justify-content: space-between;
  gap: 30px;
  align-items: flex-start;
}

.section-heading h2 {
  max-width: 650px;
}

.programs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.number {
  font-size: 10px;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.programs p {
  font-size: 14px;
  color: var(--muted);
}

.programs a {
  font-size: 13px;
  font-weight: 600;
}

.split {
  display: grid;
}

.large {
  line-height: 1.5;
}

.closing {
  background: var(--navy);
  color: var(--paper);
}

.closing .wrap {
  position: relative;
}

.closing .button {
  right: 0;
  bottom: 0;
}

.closing h2 {
  margin-bottom: 0;
}

.closing .eyebrow {
  color: #d5e8f5;
}

.intro {
  max-width: 1200px;
}

.timeline article {
  border-top: 1px solid var(--line);
  padding: 22px 0 5px;
}

.timeline span {
  font-size: 11px;
  letter-spacing: 0.1em;
}

.timeline h3 {
  margin-top: 8px;
}

.timeline p {
  font-size: 14px;
}

.service-list article {
  display: grid;
  border-top: 1px solid var(--line);
}

.note {
  line-height: 1.7;
}

.resource-list {
  padding-top: 20px;
}

.resource-list > a {
  display: block;
  border-top: 1px solid var(--line);
}

.resource-list span {
  font-size: 10px;
  letter-spacing: 0.15em;
}

.resource-list h2 {
  margin: 10px 0;
}

.resource-list p {
  margin: 0;
}

.resource-list > a:hover {
  color: #207454;
  text-decoration: none;
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
}

details p {
  margin: 18px 0 0;
  max-width: 800px;
}

.panel {
  padding: 40px;
  background: var(--sage);
  border-radius: 5px;
}

.panel .note {
  margin-top: 25px;
}

.panel li {
  padding-bottom: 10px;
}

.contact-links > a {
  display: block;
  font-family: Georgia, serif;
  margin-bottom: 20px;
}

.contact-links > a.email {
  font-family: inherit;
  overflow-wrap: anywhere;
}

.contact-links p {
  margin-top: 30px;
}

footer {
  padding-top: 50px;
  padding-bottom: 25px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: 35px;
  margin-bottom: 30px;
}

.footer-top h3 {
  margin-top: 0;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
}

.skip {
  position: absolute;
}

@media (max-width: 900px) {
  nav {
    gap: 14px;
  }

  .brand {
    font-size: 14px;
  }

  .hero {
    gap: 35px;
  }

  .actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading {
    display: block;
  }

  .split {
    gap: 6%;
  }
}

@media (max-width: 700px) {
  header {
    min-height: 95px;
    position: relative;
  }

  .menu {
    display: block;
    border: 1px solid var(--line);
    padding: 9px;
    background: transparent;
    color: var(--ink);
  }

  nav {
    display: none;
    position: absolute;
    top: 94px;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 25px;
    z-index: 5;
    box-shadow: 0 15px 20px #163f6515;
  }

  nav.open {
    display: flex;
    flex-direction: column;
  }

  .language-band {
    gap: 15px;
    flex-direction: column;
  }

  .closing .button {
    position: static;
    margin-top: 25px;
  }

  .closing h2 {
    font-size: 42px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .footer-bottom {
    gap: 15px;
    flex-direction: column;
  }

  .contact-links > a {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

.button:hover {
  background: #185d48;
}

.closing .button {
  background: var(--paper);
  color: var(--ink);
}

:root {
  --ink: #163f65;
  --navy: #10375a;
  --paper: #f7fbfd;
  --sage: #e0f1e8;
  --line: #cbdde5;
  --muted: #476174;
}

body {
  font-size: 18px;
  line-height: 1.7;
  overflow-wrap: break-word;
}

.wrap {
  width: min(1120px, 90%);
}

header {
  min-height: 100px;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 16px;
}

nav {
  gap: 8px;
  flex-wrap: wrap;
  font-size: 16px;
}

nav a {
  padding: 10px 9px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 3px;
}

nav a[aria-current] {
  font-weight: 700;
  background: #eaf3f9;
  border-bottom: 2px solid #163f65;
}

.brand {
  font-size: 18px;
  min-height: 44px;
}

.brand small {
  font-size: 12px;
  letter-spacing: 0.08em;
}

h1 {
  font-size: clamp(2.75rem, 5.5vw, 4.75rem);
  line-height: 1.12;
  max-width: 14ch;
  letter-spacing: -0.025em;
}

.intro h1 {
  font-size: clamp(2.75rem, 5.5vw, 4.25rem);
  max-width: 22ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.4;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.8;
  max-width: 58ch;
}

p {
  max-width: 68ch;
}

.hero {
  gap: 9%;
  padding-top: 55px;
  padding-bottom: 55px;
  grid-template-columns: 1.25fr 1fr;
}

.hero h1 br,
.intro h1 br {
  display: none;
}

.hero h1 br:after {
  content: ' ';
}

.eyebrow,
.number,
.timeline span,
.resource-list span {
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  line-height: 1.6;
}

.eyebrow {
  margin-bottom: 16px;
}

.number {
  display: block;
}

.section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.section-heading {
  display: block;
  margin-bottom: 28px;
}

.section-heading .eyebrow {
  display: none;
}

.section-heading h2 {
  margin-bottom: 0;
}

.programs {
  gap: 30px;
}

.programs h3 {
  margin-top: 15px;
}

.programs p,
.programs a,
.timeline p {
  font-size: 1rem;
}

.programs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.button {
  font-size: 1rem;
  min-height: 48px;
  padding: 12px 22px;
  background: #207454;
  gap: 22px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1rem;
}

.actions {
  gap: 24px;
  flex-wrap: wrap;
}

.language-band {
  font-size: 1rem;
  display: block;
  text-align: center;
  padding: 16px 5%;
}

.closing {
  padding: 40px 0;
}

.closing .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.closing h2 {
  font-size: 2rem;
  margin: 0;
}

.closing .button {
  position: static;
  margin: 0;
}

.intro {
  padding-top: 55px;
  padding-bottom: 15px;
}

.split {
  gap: 7%;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.timeline h3 {
  font-size: 1.25rem;
}

.large {
  font-size: 1.25rem;
}

.panel h2 {
  font-size: 1.75rem;
}

.service-list h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

.service-list article {
  padding: 36px 0;
}

.note {
  font-size: 1rem;
  color: var(--muted);
}

.resource-list h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.resource-list > a {
  padding: 28px 12px;
}

.resource-list > a:hover {
  background: #eaf3f9;
}

summary {
  font-size: 1.125rem;
  min-height: 44px;
  padding: 8px 0;
  line-height: 1.6;
}

details {
  padding: 12px 0;
}

.contact-links > a {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.contact-links > a.email {
  font-size: 1.125rem;
}

.footer-top {
  font-size: 1rem;
}

.footer-top a {
  display: inline-block;
  min-height: 44px;
  padding: 8px 0;
}

.footer-top br {
  display: none;
}

.footer-top > div a {
  display: block;
}

.footer-name {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.footer-bottom {
  font-size: 0.875rem;
  gap: 20px;
  flex-wrap: wrap;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #10375a;
  outline-offset: 4px;
  box-shadow: 0 0 0 7px #fff;
}

main:focus {
  outline: none;
}

.skip {
  top: 8px;
  left: 8px;
  transform: translateY(-200%);
  background: #fff;
  color: #10375a;
  font-weight: 700;
  padding: 12px 20px;
  z-index: 50;
}

.skip:focus {
  top: 8px;
  transform: translateY(0);
}

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

html {
  scroll-behavior: auto;
  scroll-padding-top: 24px;
}

section[id],
article[id] {
  scroll-margin-top: 24px;
}

@media (max-width: 960px) {
  header {
    position: relative;
  }

  .js .menu {
    display: block;
    min-width: 80px;
    min-height: 48px;
    border: 1px solid var(--ink);
    border-radius: 3px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    margin-left: auto;
  }

  .js nav {
    display: none;
    width: 100%;
    position: static;
    box-shadow: none;
    padding: 12px 0;
    background: var(--paper);
  }

  .js nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .js nav a {
    padding: 10px 14px;
  }

  html:not(.js) nav {
    display: flex;
    width: 100%;
    position: static;
    flex-wrap: wrap;
    box-shadow: none;
    padding: 0;
  }

  .hero {
    gap: 6%;
  }

  .actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .programs {
    gap: 24px;
  }
}

@media (max-width: 700px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 35px;
    padding-bottom: 35px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 11vw, 3.5rem);
  }

  .section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .programs,
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .intro {
    padding-top: 35px;
  }

  .intro h1 {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

  .language-band {
    font-size: 1rem;
  }

  .closing .button {
    margin: 0;
  }

  .panel {
    padding: 24px;
  }

  .footer-bottom {
    font-size: 0.875rem;
  }

  .brand {
    gap: 10px;
    font-size: 1rem;
  }

  .monogram {
    font-size: 38px;
    padding-right: 12px;
  }

  .brand small {
    font-size: 0.6875rem;
  }

  .js .menu {
    font-size: 1rem;
    min-width: 74px;
  }

  .resource-list > a {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

@media (forced-colors: active) {
  .button,
  nav a[aria-current],
  .menu {
    border: 2px solid ButtonText;
  }

  a:focus-visible,
  button:focus-visible,
  summary:focus-visible {
    outline: 3px solid Highlight;
    box-shadow: none;
  }
}

.program-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 22px;
}

.programs article {
  border-top: 0;
  padding-top: 0;
}

.photo-note {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 28px;
  max-width: 80ch;
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 8%;
  align-items: center;
}

.portrait {
  margin: 0;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.portrait figcaption {
  font-size: 1rem;
  color: var(--muted);
  margin-top: 12px;
}

@media (max-width: 700px) {
  .about-intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .portrait {
    width: min(260px, 100%);
  }

  .program-photo {
    margin-bottom: 18px;
  }
}

header {
  padding-bottom: 12px;
}

.language-switch {
  display: flex;
  position: static;
  gap: 8px;
  justify-content: flex-end;
  width: 100%;
  font-size: 0.9375rem;
  padding: 4px 0 0;
  box-shadow: none;
  background: transparent;
}

.language-switch a {
  min-height: 44px;
  padding: 8px 12px;
}

.language-switch a[aria-current] {
  background: #e0f1e8;
  border-bottom: 2px solid #207454;
}

html[lang='ru'] h1,
html[lang='uz'] h1 {
  font-size: clamp(2.25rem, 4.4vw, 4rem);
  max-width: 22ch;
}

html[lang='ru'] .brand small,
html[lang='uz'] .brand small {
  max-width: 26ch;
}

html[lang='ru'] .intro h1,
html[lang='uz'] .intro h1 {
  max-width: 24ch;
}

@media (max-width: 960px) {
  .js nav.language-switch,
  html:not(.js) nav.language-switch {
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: flex-end;
    padding: 4px 0;
  }

  .js nav.language-switch a {
    padding: 8px 12px;
  }

  html[lang='ru'] .brand small,
  html[lang='uz'] .brand small {
    font-size: 0.6875rem;
  }
}

@media (max-width: 700px) {
  .language-switch {
    justify-content: flex-start !important;
  }

  .language-switch a {
    flex: 0 1 auto;
  }

  .js nav.language-switch a {
    padding: 8px 10px;
  }

  html[lang='ru'] h1,
  html[lang='uz'] h1 {
    font-size: clamp(2.1rem, 9vw, 3.25rem);
  }
}

@media (max-width: 960px) {
  header {
    column-gap: 12px;
  }

  .js .menu {
    padding: 10px 12px;
  }

  html[lang='ru'] .brand,
  html[lang='uz'] .brand {
    max-width: calc(100% - 104px);
  }
}

.service-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 18px;
}

.service-list article {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
  gap: 7%;
}

@media (max-width: 700px) {
  .service-list article {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .service-visual {
    max-width: 440px;
  }
}

.landing-art {
  width: 100%;
  max-width: 520px;
  justify-self: end;
}

.landing-art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

@media (max-width: 700px) {
  .landing-art {
    max-width: 340px;
    justify-self: center;
    margin-top: 4px;
  }
}

:root {
  --warm-coral: #f7c8c5;
  --warm-sun: #f5e5aa;
}

.welcome-section {
  padding: 48px 0;
  background: #fff7f1;
  border-bottom: 1px solid #eaded7;
}

.welcome-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 8%;
  align-items: start;
}

.welcome-layout h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  max-width: 20ch;
}

.welcome-layout .eyebrow {
  display: inline-block;
  border-bottom: 4px solid var(--warm-coral);
  padding-bottom: 6px;
}

.welcome-layout p {
  margin-bottom: 20px;
}

.button-secondary {
  background: var(--warm-sun);
  color: var(--ink);
  border: 1px solid #d4be75;
}

.button-secondary:hover {
  background: #edd891;
  color: var(--ink);
}

.hero .actions {
  gap: 14px;
}

.programs article {
  border-bottom: 3px solid var(--warm-coral);
  padding-bottom: 20px;
}

.programs article:nth-child(2) {
  border-bottom-color: #9bd5ba;
}

.programs article:nth-child(3) {
  border-bottom-color: var(--warm-sun);
}

.language-switch a[aria-current] {
  border-radius: 4px;
}

summary:hover {
  background: #eef5f1;
}

nav a:hover {
  background: #eaf3f9;
}

.button:hover span,
.button:focus-visible span {
  transform: translate(2px, -2px);
}

@media (prefers-reduced-motion: no-preference) {
  .button,
  .program-photo,
  nav a,
  summary {
    transition:
      background-color 160ms ease,
      box-shadow 160ms ease,
      transform 160ms ease;
  }

  .button span {
    transition: transform 160ms ease;
  }

  .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px #10375a18;
  }

  .hero > div,
  .intro > div {
    animation: welcome-settle 450ms ease-out both;
  }

  @keyframes welcome-settle {
    from {
      transform: translateY(8px);
    }

    to {
      transform: translateY(0);
    }
  }
}

@media (max-width: 700px) {
  .welcome-section {
    padding: 32px 0;
  }

  .welcome-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .hero .actions .button {
    width: 100%;
    justify-content: space-between;
  }
}

.focus-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}

.focus-areas a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 7px 16px;
  border: 1px solid #b7d4ce;
  background: #e0f1e8;
  color: #163f65;
  border-radius: 24px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.focus-areas a:hover {
  background: #cee7db;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero h1 {
  margin-bottom: 20px;
}
