@font-face {
  font-family: 'DM Sans';
  src: url('./fonts/dm-sans.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('./fonts/instrument-serif.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('./fonts/instrument-serif-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f3eb;
  --paper-light: #fcf8f2;
  --sand: #ece1d2;
  --cocoa: #523e33;
  --espresso: #3a2b24;
  --accent: #7c5c4d;
  --copy: #604f43;
  --line: #d7c8b6;
  --cream: #f8eee1;
  --display: 'Instrument Serif', Georgia, serif;
  --body: 'DM Sans', system-ui, sans-serif;
  --gutter: clamp(18px, 4.5vw, 72px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--espresso);
  font: 400 1rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: .22em;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid #a06a45;
  outline-offset: 5px;
}

img {
  display: block;
  max-width: 100%;
}

h1, h2, h3, p, figure {
  margin: 0;
}

h1, h2, h3 {
  font: 400 1em/.96 var(--display);
  letter-spacing: -.025em;
}

em {
  color: var(--accent);
  font-weight: inherit;
}

section[id] { scroll-margin-top: 28px; }

.wrap {
  width: min(100% - var(--gutter) * 2, 1320px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 10;
  left: 8px;
  top: 8px;
  padding: 12px 20px;
  transform: translateY(-150%);
  background: var(--espresso);
  color: var(--cream);
}

.skip-link:focus { transform: none; }

.announcement {
  background: var(--cocoa);
  color: var(--cream);
  text-align: center;
  font-size: .78rem;
  letter-spacing: .025em;
}

.announcement a {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 12px;
  min-height: 35px;
  padding: 4px 12px;
  text-decoration: none;
}

.announcement a > span { display: inline-flex; align-items: center; }

.announcement a:hover { text-decoration: underline; }

.announcement a > span:first-child {
  font-weight: 700;
}

.announcement a > span + span::before {
  content: '·';
  margin-right: 12px;
}

.announcement .arrow-up { margin-left: 8px; }

.site-header { border-bottom: 1px solid var(--line); }

.nav-shell {
  min-height: 91px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-grid;
  justify-items: center;
  gap: 4px;
  width: max-content;
  padding: 3px 0;
  text-decoration: none;
  color: var(--cocoa);
}

.brand img { width: 99px; height: auto; }

.brand span {
  font-size: .5rem;
  font-weight: 600;
  letter-spacing: .24em;
  line-height: 1.2;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.15rem, 3vw, 3.2rem);
}

.desktop-nav a, .site-footer a {
  text-decoration: none;
}

.desktop-nav a {
  font-size: .88rem;
  white-space: nowrap;
}

.desktop-nav a:hover, .site-footer a:not(.brand):hover {
  text-decoration: underline;
}

.nav-cta, .page-back { justify-self: end; }
.page-back { grid-column: 2 / -1; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: fit-content;
  min-height: 53px;
  padding: 10px 20px;
  border: 1px solid var(--cocoa);
  border-radius: 99px;
  color: var(--cocoa);
  text-decoration: none;
  font-size: .87rem;
  line-height: 1.3;
  font-weight: 600;
  transition: color .2s, background-color .2s, border-color .2s;
}

.button span, .text-link span {
  font-size: 1rem;
  line-height: 1;
}

.arrow-up {
  display: inline-block;
  position: relative;
  width: .75em;
  height: .75em;
  flex: none;
  vertical-align: middle;
}

.arrow-up::before, .arrow-up::after {
  content: '';
  position: absolute;
}

.arrow-up::before {
  top: 9%;
  right: 9%;
  width: 57%;
  height: 57%;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
}

.arrow-up::after {
  inset: 3% auto auto 13%;
  width: 1px;
  height: 110%;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: bottom;
}

.button:hover, .button-primary {
  background: var(--cocoa);
  color: var(--cream);
}

.button-primary:hover {
  background: var(--espresso);
  border-color: var(--espresso);
}

.button-light {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--espresso);
}

.button-light:hover {
  background: #fff9f1;
  border-color: #fff9f1;
  color: var(--espresso);
}

.button-small { min-height: 44px; padding-inline: 17px; }

.text-link {
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .88rem;
  text-decoration: none;
}

.text-link:hover { text-decoration: underline; }

.mobile-menu { display: none; }

.eyebrow {
  color: var(--accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: stretch;
  padding-block: 28px 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 76px) clamp(22px, 3.5vw, 55px) clamp(32px, 5vw, 70px) 0;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
}

.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: #9e7e68;
}

.hero h1 {
  margin: 23px 0 25px;
  font-size: clamp(4.6rem, 9.25vw, 9.25rem);
  line-height: .81;
  letter-spacing: -.04em;
}

.hero-description {
  max-width: 32ch;
  color: var(--copy);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

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

.hero-photo {
  position: relative;
  align-self: stretch;
  min-height: clamp(480px, 45vw, 670px);
  overflow: hidden;
  isolation: isolate;
  background: var(--sand);
  border-radius: 112px 4px 4px 4px;
}

.hero-photo img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 49%;
}

.hero-photo figcaption {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 18px;
  padding: 7px 12px;
  border-radius: 99px;
  background: var(--paper-light);
  color: var(--cocoa);
  font-size: .71rem;
  font-weight: 600;
  letter-spacing: .035em;
}

.opening {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.1fr) auto;
  align-items: center;
  gap: clamp(16px, 3vw, 46px);
  margin-top: 28px;
  padding: 25px clamp(22px, 3vw, 42px);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--sand);
}

.opening h2 {
  margin-top: .2em;
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.opening p:not(.eyebrow) {
  max-width: 42ch;
  color: var(--copy);
  font-size: .92rem;
}

.classes {
  padding-block: clamp(65px, 8vw, 119px);
}

.section-heading h2, .studio h2, .app h2 {
  margin-block: 13px 22px;
  font-size: clamp(3.35rem, 6.45vw, 6.55rem);
}

.class-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 42px);
  margin-top: 37px;
}

.class-card {
  border-bottom: 1px solid var(--line);
}

.class-card > img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.65;
  object-fit: cover;
  object-position: 50% 47%;
  border-radius: 4px;
  background: var(--sand);
}

.class-description {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 20px;
  padding: 22px 0 25px;
}

.class-description h3 {
  margin-bottom: 8px;
  font-size: clamp(2.15rem, 4vw, 3.65rem);
}

.class-description p {
  max-width: 49ch;
  color: var(--copy);
}

.circle-link {
  display: inline-grid;
  place-items: center;
  width: 48px;
  aspect-ratio: 1;
  border: 1px solid #ad9684;
  border-radius: 50%;
  color: var(--cocoa);
  font-size: 1.2rem;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}

.circle-link:hover { background: var(--cocoa); color: var(--cream); }

.studio {
  background: var(--sand);
  border-block: 1px solid var(--line);
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1fr);
  gap: clamp(38px, 8vw, 120px);
  align-items: center;
  padding-block: clamp(36px, 6vw, 85px);
}

.studio-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1.02;
  object-fit: cover;
  object-position: 50% 55%;
  border-radius: 4px 4px 100px 4px;
  background: #e2d4c2;
}

.studio h2 { max-width: 11ch; }

.studio p:not(.eyebrow) {
  max-width: 37ch;
  color: var(--copy);
}

address {
  margin-top: 19px;
  color: var(--cocoa);
  font-size: .93rem;
  font-style: normal;
}

address strong { font-weight: 700; }
.studio .actions { margin-top: 22px; }

.app {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
  align-items: stretch;
  margin-block: clamp(64px, 8vw, 115px);
  border-radius: 4px;
  background: var(--cocoa);
  color: var(--cream);
}

.app-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(35px, 5.5vw, 84px);
}

.app h2 {
  font-size: clamp(3.1rem, 5.45vw, 5.9rem);
}

.app em, .app .eyebrow { color: #dec4af; }
.app p:not(.eyebrow) { max-width: 31ch; color: #f1e5d9; }

.app-visual {
  min-height: 390px;
  position: relative;
  background: #e6d6c6;
}

.app-visual img {
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: cover;
  object-position: 52% 50%;
}

.site-footer {
  background: var(--espresso);
  color: var(--cream);
}

.brand-light { color: var(--cream); }

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 30px;
  align-items: start;
  padding-block: 48px 38px;
}

.footer-main p {
  margin-top: 12px;
  color: #dfcfc0;
  font-size: .83rem;
}

.footer-main nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 16px;
}

.footer-main nav a, .footer-contact a {
  width: fit-content;
  font-size: .91rem;
}

.footer-contact {
  display: grid;
  gap: 10px;
  overflow-wrap: anywhere;
}

.footer-bottom {
  padding-block: 14px;
  border-top: 1px solid #6d594c;
  color: #dfcfc0;
}

.support-page, .privacy-page {
  padding-block: clamp(48px, 7.5vw, 108px);
}

.page-heading {
  margin-bottom: clamp(32px, 4.3vw, 63px);
}

.page-heading h1 {
  margin-block: 10px 16px;
  font-size: clamp(4.3rem, 8.4vw, 8.5rem);
  line-height: .94;
}

.page-heading p:not(.eyebrow) {
  max-width: 45ch;
  color: var(--copy);
  font-size: 1.09rem;
}

.support-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr);
  gap: clamp(30px, 7vw, 100px);
  align-items: start;
}

.contact-card {
  padding: clamp(23px, 3.5vw, 48px);
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.contact-card h2, .faq h2 {
  margin-bottom: 19px;
  font-size: clamp(2.25rem, 4.3vw, 4rem);
}

.contact-card .button { margin-top: 15px; }
.contact-email { font-size: 1.1rem; font-weight: 600; overflow-wrap: anywhere; }
.contact-divider { margin-top: 27px; border-top: 1px solid var(--line); }
.contact-card address { margin-top: 22px; }
.contact-card .text-link { margin-top: 5px; }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 61px;
  padding: 13px 2px;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
}

.faq summary::-webkit-details-marker, .mobile-menu summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover { color: var(--accent); }

.faq details p {
  max-width: 61ch;
  padding: 0 22px 17px 2px;
  color: var(--copy);
}

.plus {
  flex: 0 0 14px;
  height: 14px;
  position: relative;
  margin-right: 4px;
}

.plus::before, .plus::after {
  position: absolute;
  inset: 6px 0 auto;
  height: 1px;
  content: '';
  background: currentColor;
}

.plus::after { transform: rotate(90deg); }
.faq details[open] .plus::after { display: none; }

.privacy-page { max-width: 790px; }

.privacy-content h2 {
  margin: 30px 0 10px;
  font-size: 2.35rem;
}

.privacy-content p, .privacy-content li { color: var(--copy); }
.privacy-content p + p { margin-top: 10px; }

@media (max-width: 900px) {
  .hero h1 { font-size: clamp(4rem, 10vw, 6rem); }
  .desktop-nav { gap: 1.1rem; }
  .studio-grid { gap: 36px; }
  .app-content { padding: 35px 28px; }
  .app .actions { column-gap: 16px; }
}

@media (max-width: 720px) {
  .nav-shell { min-height: 69px; grid-template-columns: 1fr auto; gap: 14px; }
  .brand img { width: 82px; }
  .brand span { font-size: .42rem; }
  .desktop-nav, .nav-cta { display: none; }

  .mobile-menu {
    display: block;
    position: relative;
    justify-self: end;
  }

  .mobile-menu summary {
    display: flex;
    gap: 8px;
    align-items: center;
    min-height: 43px;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 99px;
    cursor: pointer;
    list-style: none;
    font-size: .85rem;
    font-weight: 600;
  }

  .menu-icon {
    width: 13px;
    height: 7px;
    border-block: 1px solid currentColor;
  }

  .mobile-menu nav {
    position: absolute;
    z-index: 4;
    top: calc(100% + 9px);
    right: 0;
    display: grid;
    min-width: 168px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--paper-light);
    box-shadow: 0 15px 35px #39271e1c;
  }

  .mobile-menu nav a {
    padding: 9px 12px;
    text-decoration: none;
  }

  .mobile-menu nav a:hover { background: var(--sand); }
  .hero { grid-template-columns: 1fr; padding-top: 0; }
  .hero-content { padding: 40px 0 31px; }
  .hero h1 { margin-block: 18px 21px; font-size: clamp(4.5rem, 14vw, 7rem); }
  .hero-description { max-width: 35ch; }
  .hero .actions { margin-top: 21px; column-gap: 14px; }
  .hero .button { padding-inline: 16px; gap: 10px; }
  .hero-photo { min-height: clamp(310px, 91vw, 590px); border-top-left-radius: 76px; }
  .hero-photo figcaption { bottom: 11px; right: 11px; }
  .opening { grid-template-columns: 1fr; gap: 10px; margin-top: 20px; padding: 17px; }
  .opening .text-link { min-height: 31px; }
  .class-grid { margin-top: 23px; gap: 26px; }
  .classes, .studio-grid { padding-block: 50px; }
  .studio-grid { align-items: start; grid-template-columns: 1fr; gap: 28px; }
  .studio-photo { max-height: 470px; border-bottom-right-radius: 74px; }
  .studio h2 { max-width: none; }
  .app { grid-template-columns: 1fr; margin-block: 48px; }
  .app-content { padding: 35px 23px; }
  .app-visual { min-height: clamp(260px, 77vw, 480px); }
  .footer-main { grid-template-columns: 1fr 1fr; padding-block: 34px 27px; }
  .footer-main > :first-child { grid-column: 1 / -1; }
  .footer-main nav { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
}

@media (max-width: 490px) {
  .class-grid { grid-template-columns: 1fr; }
  .footer-main { gap: 24px 14px; }
  .footer-contact a { font-size: .82rem; }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 4rem; }
  .hero .actions { column-gap: 13px; }
  .hero .button { padding-inline: 12px; gap: 7px; }
  .hero .text-link { gap: 4px; font-size: .8rem; }
}

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