:root {
  color-scheme: light;
  --paper: #fdfbff;
  --ink: #160a2e;
  --fuchsia: #e0409b;
  --purple: #7b2ff7;
  --twilight: #3d1f6e;
  --peach: #ffb38a;
  --link: #6a22d9;
  --rule: #ddd4e9;
}

* {
  box-sizing: border-box;
  margin: 0;
}

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

body {
  border-top: 6px solid var(--fuchsia);
  background: var(--paper);
  color: var(--ink);
  font:
    18px/1.6 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
}

.wrap {
  width: min(100% - 96px, 1360px);
  margin-inline: auto;
}

a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  padding-block: 8px;
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  touch-action: manipulation;
}

a:hover {
  color: var(--ink);
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 5px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: 14px;
  left: 24px;
  z-index: 1;
  padding: 12px 20px;
  transform: translateY(-160%);
  background: var(--paper);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: 28px;
  border-bottom: 1px solid var(--rule);
}

.brand {
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.04em;
}

nav {
  display: flex;
  gap: 32px;
}

.intro {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: clamp(48px, 6vw, 100px);
  padding-block: 64px 72px;
}

.intro-label {
  margin-bottom: 20px;
  color: var(--twilight);
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  max-width: 10ch;
  font-size: clamp(44px, 4.6vw, 72px);
  font-weight: 750;
}

h2 {
  font-size: clamp(30px, 2.6vw, 38px);
}

h3 {
  font-size: 24px;
}

.intro-copy > p:not(.intro-label) {
  margin-top: 24px;
  max-width: 48ch;
}

.lead {
  font-size: 22px;
  line-height: 1.5;
}

.text-link {
  margin-top: 24px;
  font-weight: 650;
}

figure {
  min-width: 0;
}

img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px 64px 4px 4px;
}

figcaption {
  margin-top: 12px;
  color: var(--twilight);
  font-size: 16px;
}

.section-layout {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 64px;
  padding-block: 56px 64px;
  border-top: 1px solid var(--rule);
}

.section-heading p {
  margin-top: 18px;
  color: var(--twilight);
}

.section-heading .language {
  padding-left: 16px;
  border-left: 3px solid var(--purple);
}

.class-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
}

.class-list > div {
  padding-block: 20px;
  border-bottom: 1px solid var(--rule);
}

.class-list > div:nth-child(-n + 2) {
  padding-top: 0;
}

dt {
  margin-bottom: 6px;
  font-size: 21px;
  font-weight: 700;
}

dd {
  color: var(--twilight);
}

.studio-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

address {
  font-style: normal;
}

.studio-list address {
  margin-block: 20px;
}

.studio-list p {
  margin-top: 8px;
  color: var(--twilight);
}

.contact {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 48px;
  border-top: 5px solid var(--peach);
  background: var(--twilight);
  color: var(--paper);
}

.company-name {
  margin-block: 24px 10px;
  font-weight: 700;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  overflow-wrap: anywhere;
}

.contact a {
  color: var(--paper);
}

.contact a:hover {
  color: var(--peach);
}

.contact a:focus-visible {
  outline-color: var(--peach);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 32px;
  color: var(--twilight);
  font-size: 16px;
}

@media (max-width: 900px) {
  .wrap {
    width: calc(100% - 48px);
  }

  .intro {
    gap: 32px;
  }

  .section-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section-heading {
    max-width: 44ch;
  }

  .contact {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px;
  }
}

@media (max-width: 600px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-block: 20px 12px;
  }

  .brand {
    font-size: 23px;
  }

  nav {
    gap: 28px;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 36px 40px;
  }

  .lead {
    font-size: 20px;
  }

  .section-layout {
    padding-block: 36px 40px;
  }

  .class-list,
  .studio-list {
    grid-template-columns: 1fr;
  }

  .class-list > div:nth-child(2) {
    padding-top: 20px;
  }

  .studio-list {
    gap: 32px;
  }

  .contact {
    padding: 28px 24px;
  }

  .contact-links {
    font-size: 16px;
  }

  .site-footer {
    flex-direction: column;
    gap: 4px;
    padding-block: 24px;
  }
}
