:root {
  --cream: #f5f1e9;
  --paper: #fffdf8;
  --ink: #213834;
  --muted: #4e6059;
  --sea: #e1e8de;
  --line: #c7d0c6;
  --accent: #557068;
  --section-space: clamp(3.5rem, 7vw, 6.5rem);
}

body { line-height: 1.65; }
.wrap { width: min(72rem, calc(100% - 3rem)); }
[hidden] { display: none !important; }
section { scroll-margin-top: 1.75rem; }

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

.header-inner { gap: 1rem; min-height: 5.25rem; }
.brand { flex-shrink: 0; }
.desktop-nav { gap: clamp(.8rem, 1.8vw, 1.75rem); font-weight: 600; }
.desktop-nav a[aria-current="page"],
.mobile-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: .35em;
}

.desktop-nav .button { white-space: nowrap; }
.menu-toggle { min-height: 44px; }
.mobile-nav.open { padding-inline: 0; }
.mobile-nav .button { margin-top: .65rem; }

.button {
  min-height: 48px;
  padding: .75rem 1.35rem;
  text-align: center;
  line-height: 1.35;
  border-radius: .2rem;
}

.button:hover { background: #354f48; }
.button.light:hover { background: var(--paper); }

.hero-actions a.button.light {
  border-color: transparent;
  padding-inline: .4rem;
  text-decoration: underline;
  text-underline-offset: .3em;
}

.hero-actions a.button.light:hover { background: transparent; color: #355d51; }
.text-link { white-space: normal; }
.eyebrow { color: var(--accent); font-size: .875rem; letter-spacing: .13em; }

.hero h1,
.page-hero h1,
.about-copy h1 {
  font-size: clamp(3.3rem, 6vw, 5.65rem);
  line-height: 1.07;
  text-wrap: balance;
}

.hero h1 em,
.page-hero h1 em { color: var(--accent); }
.hero-lede,
.page-hero .lede { max-width: 36rem; font-size: clamp(1.0625rem, 1.7vw, 1.25rem); }

.hero,
.page-hero { padding: clamp(3rem, 6vw, 5.5rem) 0; }

.section,
.closing,
.browse-section { padding: var(--section-space) 0; }

.section-heading,
.browse-heading { margin-bottom: clamp(1.5rem, 3vw, 2.75rem); }

.section-heading h2,
.closing h2,
.browse-heading h2 { text-wrap: balance; }

.page-home .browse-section { background: var(--sea); }
.browse-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.browse-card { grid-column: span 2; padding: clamp(1.25rem, 3vw, 2rem); }
.browse-card.browse-secondary { grid-column: span 3; }
.browse-card h3 { font-size: clamp(1.55rem, 2.7vw, 2rem); }
.browse-card p { font-size: 1rem; }
.browse-link { font-size: .875rem; text-underline-offset: .3em; }
.browse-card:hover .browse-link { text-decoration: underline; }

.meet-inline h3 {
  margin: 0 0 .35rem;
  font: 400 1.55rem/1.2 var(--serif);
}

.meet-inline p { font-size: 1rem; }
.client-next { padding: clamp(2.5rem, 5vw, 4rem) 0; }

.page-classes .page-hero { border-bottom: 1px solid var(--line); }
.page-classes .page-hero h1 { max-width: 15ch; }
.page-classes #classes { background: var(--paper); }

.class-card,
.corporate-card {
  min-height: auto;
  border-color: var(--line);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}

.class-card h3 { margin-top: .8rem; }
.class-number { color: var(--accent); }
.class-column, .corporate-card { min-width: 0; }

.hero-image-wrap { padding: .65rem; border: 1px solid var(--line); }
.hero-image-wrap::before { display: none; }
.hero-image-wrap img { margin: auto; }

.plan-price {
  max-width: 34rem;
  margin: 1.5rem 0;
  padding: .85rem 1.1rem;
  border-left: 2px solid var(--accent);
  background: var(--sea);
}

.plan-price strong { display: block; }
.checkout-note { max-width: 35rem; color: var(--muted); font-size: .9375rem; }
.about-portrait { padding: .65rem; border: 1px solid var(--line); background: transparent; }

.footer { padding: clamp(2.75rem, 5vw, 4.5rem) 0; }
.site-footer { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer .brand-mark { border-color: currentColor; }
.footer-group { display: grid; align-content: start; gap: .65rem; }
.footer-group a { font-size: .9375rem; text-decoration: none; }
.footer-group a:hover { text-decoration: underline; text-underline-offset: .25em; }

@media (max-width: 74rem) {
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav.open { display: flex; flex-direction: column; }
  .mobile-nav a { padding: .8rem .3rem; border-top: 1px solid var(--line); }
}

@media (max-width: 48rem) {
  .browse-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .browse-card, .browse-card.browse-secondary { grid-column: auto; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .site-footer > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 40.625rem) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { min-height: 4.5rem; }
  .page-hero .hero-actions, .hero .hero-actions, .client-next .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .4rem;
  }
  .hero-actions .button.light { justify-self: start; }
  .browse-grid { grid-template-columns: 1fr; }
  .meet-inline { flex-wrap: wrap; gap: .75rem; }
  .page-about .closing .button { margin: .25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .browse-card { transition: none; }
  .button:hover { transform: none; }
}
