@font-face {
  font-family: "DM Sans";
  src: url("./assets/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Serif";
  src: url("./assets/dm-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #2b1933;
  --muted: #634c68;
  --paper: #fcf7f6;
  --dark: #201635;
  --deep: #170f26;
  --lavender: #f1e5f2;
  --gold: #f8d98e;
  --line: #d7bdd7;
  --gutter: clamp(1.1rem,5vw,4.5rem);
}

*,*::before,*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.65 "DM Sans",Arial,sans-serif;
}

:is(h1,h2,h3,p) {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid #8a438d;
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  width: min(calc(100% - var(--gutter) * 2),78rem);
  margin-inline: auto;
}

.skip {
  position: fixed;
  z-index: 3;
  inset: .5rem auto auto .5rem;
  padding: .7rem 1rem;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-150%);
}

.skip:focus {
  transform: none;
}

.header,footer {
  background: var(--deep);
  color: var(--paper);
}

.header {
  border-bottom: 1px solid #e7c5ef30;
}

.header-menu {
  display: contents;
}

.menu-toggle {
  display: none;
}

.header-inner,.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem clamp(.8rem,3vw,3rem);
  min-height: 5.15rem;
}

.brand {
  min-height: 2.8rem;
  display: inline-flex;
  gap: .62rem;
  align-items: center;
  font-weight: 700;
  font-size: 1.05rem;
}

.brand img {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: .6rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: .1rem clamp(.8rem,3vw,2.35rem);
  margin-left: auto;
}

nav a,.text-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: .45rem;
}

nav a:hover,.text-link:hover {
  text-decoration: underline;
  text-underline-offset: .25rem;
}

:is(.header,.hero,.contact,footer) a:focus-visible {
  outline-color: var(--gold);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--dark);
  color: var(--paper);
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, #201635 6%, #201635e8 29%, #20163598 56%, #20163509 100%),
    linear-gradient(0deg, #170f26ad, #170f2600 63%);
}

.hero-inner {
  display: flex;
  min-height: clamp(36rem, calc(93svh - 5.15rem), 51rem);
  align-items: end;
  padding-block: clamp(3rem, 6vw, 6rem);
}

.hero-copy {
  animation: enter .58s ease-out both;
}

@keyframes enter {
  from {
    transform: translateY(.55rem);
  }

  to {
    transform: translateY(0);
  }

}

.eyebrow {
  margin-bottom: 1.1rem;
  color: var(--gold);
  font-weight: 700;
  font-size: .9rem;
}

h1,h2 {
  font-family: "DM Serif",Georgia,serif;
  line-height: 1.03;
  letter-spacing: -.035em;
  font-weight: 400;
  text-wrap: balance;
}

h1 {
  max-width: 13ch;
  font-size: clamp(3.25rem,6.3vw,6.25rem);
}

h2 {
  max-width: 18ch;
  font-size: clamp(2.4rem,4.6vw,4rem);
}

h3 {
  font-size: 1.32rem;
  line-height: 1.25;
}

.lead {
  margin-top: 1.35rem;
  max-width: 40ch;
  color: #f4deef;
  font-size: clamp(1.04rem,1.6vw,1.18rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .72rem 1rem;
  margin-top: 1.6rem;
}

.button {
  min-height: 3.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .56rem;
  padding: .65rem 1.08rem;
  background: var(--gold);
  color: #33213d;
  border: 1px solid transparent;
  border-radius: .5rem;
  font-weight: 700;
  line-height: 1.2;
  transition: background .18s ease;
}

.button:hover {
  background: #ffe6a7;
}

.header-button {
  min-height: 2.75rem;
}

.outline {
  color: var(--paper);
  border-color: #eacdd99c;
  background: transparent;
}

.outline:hover {
  background: #493257;
}

.primary-dark {
  color: var(--paper);
  background: #593266;
}

.primary-dark:hover {
  background: #41213f;
}

.hero-photo {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 auto;
  width: 52%;
  height: 100%;
  object-fit: cover;
  object-view-box: inset(4% 52.5% 18.5% 0);
}

@media(min-width:761px) {
  .hero::before {
    background: linear-gradient(90deg, #201635 6%, #201635e8 29%, #20163598 56%, #20163509 100%),
      linear-gradient(0deg, #170f2655, #170f2600 55%);
  }

  .hero-photo {
    inset-inline-end: clamp(1.5rem, 8vw, 8rem);
    width: auto;
    aspect-ratio: 513 / 1046;
    object-fit: contain;
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 96%, transparent);
  }
}

.section {
  padding-block: clamp(3.7rem,7vw,6.85rem);
}

.classes {
  margin-top: clamp(1.65rem,3.6vw,3.25rem);
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: clamp(1.2rem,3.75vw,3.2rem);
}

.classes article {
  padding-top: 1.05rem;
  border-top: 1px solid var(--line);
}

.classes p,.split p {
  color: var(--muted);
  max-width: 46ch;
  margin-top: .55rem;
  font-size: clamp(1rem,1.4vw,1.14rem);
}

.first {
  background: var(--lavender);
}

.split {
  display: grid;
  grid-template-columns: minmax(0,.95fr) minmax(0,1fr);
  align-items: center;
  gap: clamp(1.25rem,5vw,5.5rem);
}

.split .text-link {
  color: #603570;
  font-weight: 700;
}

.split h2 + p {
  margin-top: 1rem;
}

.first .actions,.contact .actions {
  margin-top: 0;
}

.contact {
  background: var(--dark);
  color: var(--paper);
}

.contact .text-link {
  color: var(--gold);
}

address {
  font-style: normal;
  color: #f3deee;
  margin-top: 1rem;
}

.footer-inner {
  flex-wrap: wrap;
  padding-block: .55rem;
}

@media(max-width:767px) {
  .header-inner {
    flex-wrap: wrap;
    gap: .05rem .55rem;
    padding-top: .45rem;
  }

  .header-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.75rem;
    order: 3;
    width: 100%;
    padding: 1.5rem;
    border-top: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
  }

  .header-menu nav {
    flex: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 1.25rem;
    margin: 0;
    font: 1.125rem/1.75rem "DM Serif",Georgia,serif;
  }

  .header-menu nav a {
    position: relative;
    min-height: 1.75rem;
  }

  .header-menu nav a::after {
    position: absolute;
    inset: -.5rem 0;
    content: "";
  }

  .header .header-menu a:focus-visible {
    outline-color: #8a438d;
  }

  .header-menu .header-button {
    padding-inline: 1.25rem;
    border-radius: 999px;
    font-size: .9rem;
  }

  .header.has-mobile-menu {
    position: fixed;
    z-index: 2;
    inset: 0 0 auto;
    border-bottom: 0;
    background: transparent;
    transition: background .5s ease;
  }

  .header.has-mobile-menu.is-scrolled {
    background: #170f26d9;
    backdrop-filter: blur(12px);
    box-shadow: inset 0 -1px #e7c5ef30;
  }

  .has-mobile-menu .header-inner {
    width: 100%;
    min-height: 5rem;
    padding: 0 1.5rem;
  }

  .has-mobile-menu .brand img {
    width: 2.5rem;
    height: 2.5rem;
  }

  .has-mobile-menu .menu-toggle {
    display: grid;
    flex: 0 0 2.75rem;
    width: 2.75rem;
    height: 2.75rem;
    margin-inline-end: -.6875rem;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
  }

  .menu-toggle:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: -3px;
  }

  .menu-icon,
  .menu-icon::before,
  .menu-icon::after {
    display: block;
    width: 1rem;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
  }

  .menu-icon {
    position: relative;
  }

  .menu-icon::before,
  .menu-icon::after {
    position: absolute;
    inset: 0;
    content: "";
  }

  .menu-icon::before {
    transform: translateY(-6px);
  }

  .menu-icon::after {
    transform: translateY(6px);
  }

  .menu-toggle[aria-expanded="true"] .menu-icon {
    background: transparent;
  }

  .menu-toggle[aria-expanded="true"] .menu-icon::before {
    transform: rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-icon::after {
    transform: rotate(-45deg);
  }

  .has-mobile-menu .header-menu {
    position: absolute;
    inset: 100% 0 auto;
    max-height: calc(100dvh - 5rem);
    overflow-y: auto;
  }

  .has-mobile-menu .menu-toggle[aria-expanded="false"] + .header-menu {
    display: none;
  }

  body:has(.has-mobile-menu) :is(#aulas,#primeira,#contato) {
    scroll-margin-top: 5rem;
  }

  .brand {
    gap: .45rem;
    font-size: .94rem;
  }

  .brand img {
    width: 2.28rem;
    height: 2.28rem;
  }

}

@media(max-width:760px) {
  .split {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: min(44rem, 108svh);
    padding-block: 10rem 2.3rem;
  }

  .hero::before {
    background: linear-gradient(0deg, #170f26 13%, #201635e6 53%, #20163535 100%);
  }

  h1 {
    font-size: clamp(2.85rem,10.6vw,4.8rem);
  }

  .hero-photo {
    width: 100%;
    object-position: center 18%;
  }

}

@media(max-width:469px) {
  .classes {
    grid-template-columns: 1fr;
  }

  .hero .actions .button {
    width: 100%;
  }

}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-copy {
    animation: none;
  }

  .button, .header.has-mobile-menu {
    transition: none;
  }

}
