* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f8f7ef;
  color: #303f32;
  font: 1rem/1.55 "Trebuchet MS",Arial,sans-serif;
}

header,footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 5.5%;
  gap: 18px;
  border-bottom: 1px solid #d6d8ca;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font: 30px/.92 Georgia,serif;
}

.brand small {
  margin-top: 5px;
  font: 9px/1.1 Arial;
  letter-spacing: 3.8px;
}

a {
  color: inherit;
}

.brand,nav a,.button,.card {
  text-decoration: none;
}

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

nav a {
  font-size: 14px;
  padding: 5px 0;
}

.active {
  border-bottom: 1px solid;
}

main {
  max-width: 1600px;
  margin: auto;
  padding: 65px 5.5% 78px;
  min-height: 65vh;
}

.hero {
  display: grid;
  grid-template-columns: 0.9fr 1.15fr;
  align-items: center;
  gap: 4%;
  padding-bottom: 55px;
  border-bottom: 1px solid #c9cebc;
}

.hero img {
  width: 100%;
  height: clamp(330px,29vw,470px);
  border-radius: 46% 46% 4px 4px / 36% 36% 4px 4px;
}

small {
  display: block;
  text-transform: uppercase;
  font: 600 12px/1.4 Arial,sans-serif;
  letter-spacing: 2px;
  color: #596952;
}

h1,h2,h3,summary {
  font-family: Georgia,serif;
  font-weight: 400;
  line-height: 1.06;
}

h1 {
  font-size: clamp(48px,5.8vw,94px);
  margin: 19px 0;
}

em {
  color: #667d60;
  font-weight: 400;
}

p {
  max-width: 65ch;
  color: #526052;
}

.hero p {
  max-width: 410px;
  font-size: 17px;
}

.button,button {
  display: inline-block;
  border: 1px solid #3e5544;
  background: #3e5544;
  color: white;
  padding: 11px 21px;
  border-radius: 7px;
  font: 600 14px/1.4 Arial;
  cursor: pointer;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 27px;
}

.actions a+a {
  background: transparent;
  color: #384b3d;
  border-color: #9da996;
}

h2 {
  font-size: clamp(35px,3.5vw,55px);
  margin: 12px 0 27px;
}

.practice {
  padding-top: 38px;
}

.grid,.plans {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
}

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

.card {
  display: block;
  border: 1px solid #cbd2bf;
  border-radius: 11px;
  padding: 25px;
  background: #e8eddf;
}

.vinyasa {
  background: #e3ebe4;
}

.yin {
  background: #ebe6db;
}

.restorative {
  background: #e9e5ea;
}

.icon {
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
}

.card small {
  font-size: 11px;
  letter-spacing: 1.4px;
}

.card h3 {
  font-size: 35px;
  margin: 8px 0;
}

.card p {
  margin: 12px 0;
}

.card[href]:hover,.button:hover,button:hover {
  filter: brightness(.95);
}

footer {
  border-top: 1px solid #d6d8ca;
  font-size: 14px;
}

footer a {
  margin-left: 15px;
}

.banner {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
}

details,form {
  max-width: 780px;
  background: #e8eddf;
  border-radius: 12px;
  margin: 12px 0;
  padding: 20px;
}

summary {
  cursor: pointer;
  font-size: 27px;
}

summary span,summary .icon {
  display: inline-block;
  vertical-align: middle;
  margin: 0 10px;
}

summary small {
  margin-bottom: 6px;
}

li {
  padding: 5px;
}

label {
  display: block;
  margin-bottom: 16px;
}

textarea,select {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid #99a790;
  border-radius: 5px;
  background: #fffef8;
  font: inherit;
}

output {
  display: block;
  white-space: pre-wrap;
  margin-top: 16px;
}

main:not(.index)>p {
  margin-bottom: 30px;
}

@media (max-width:820px) {
  nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
  }

  header {
    flex-wrap: wrap;
  }

  .grid,.plans {
    grid-template-columns: repeat(2,1fr);
  }

  .hero {
    gap: 20px;
  }

  .actions {
    flex-wrap: wrap;
  }

}

@media (max-width:600px) {
  main {
    padding-top: 34px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero img {
    height: 245px;
    margin-top: 12px;
  }

  .grid,.plans {
    grid-template-columns: 1fr;
  }

  .actions {
    margin-top: 20px;
  }

  .practice {
    padding-top: 28px;
  }

  nav {
    gap: 13px;
  }

  nav a {
    font-size: 13px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  footer a {
    margin: 0 12px 0 0;
  }

}
