:root {
  color-scheme: light;
  --paper: #fbf7ef;
  --linen: #f2eadc;
  --ink: #302622;
  --muted: #5d514a;
  --maroon: #572635;
  --maroon-dark: #40202b;
  --accent: #7d3849;
  --rule: #d9cbbd;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(1rem, 5.4vw, 5rem);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 var(--sans);
}

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote {
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

h1, h2, h3 {
  color: var(--maroon);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
}

h1 {
  font-size: clamp(3rem, 5.65vw, 5.65rem);
  letter-spacing: -.057em;
}

h2 {
  font-size: clamp(2.4rem, 4.6vw, 4.05rem);
  letter-spacing: -.053em;
}

h3 {
  font-size: clamp(1.27rem, 2.3vw, 1.73rem);
  letter-spacing: -.028em;
}

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

a:focus-visible, button:focus-visible, video:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

section[id] {
  scroll-margin-top: 1rem;
}

.shell {
  width: min(calc(100% - 2 * var(--gutter)), 80rem);
  margin-inline: auto;
}

.section {
  padding-block: clamp(3.6rem, 7.8vw, 7.5rem);
}

.skip-link {
  position: fixed;
  z-index: 1;
  inset: .75rem auto auto .75rem;
  padding: .7rem 1rem;
  transform: translateY(-160%);
  background: var(--maroon);
  color: var(--paper);
}

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

.masthead {
  border-bottom: 1px solid var(--rule);
}

.masthead-inner {
  display: flex;
  min-height: 5.2rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  display: inline-flex;
  min-height: 2.75rem;
  flex-shrink: 0;
  align-items: center;
  text-decoration: none;
}

.wordmark img {
  display: block;
  width: clamp(9.6rem, 16vw, 11rem);
  height: auto;
}

.masthead nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem clamp(.8rem, 2.45vw, 2.2rem);
  padding: 0;
  list-style: none;
}

.masthead nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--maroon);
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
}

.masthead nav a:hover, .text-link:hover {
  text-decoration: underline;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.25rem;
}

.button, .text-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  font-size: .95rem;
  font-weight: 650;
}

.button {
  justify-content: center;
  padding: .78rem 1.1rem;
  background: var(--maroon);
  color: var(--paper);
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  background: var(--maroon-dark);
}

.button:focus-visible {
  outline-color: var(--accent);
}

.text-link {
  color: var(--maroon);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

figcaption {
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.45;
}

.journey-panel {
  position: relative;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
}

.journey-panel::after, .journey-picture {
  position: absolute;
  inset: 0;
}

.journey-picture {
  z-index: 0;
}

.journey-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 49%;
}

.journey-panel::after {
  z-index: 1;
  background: linear-gradient(to top,
    rgb(34 27 21 / .88),
    rgb(34 27 21 / .69) 23%,
    rgb(34 27 21 / .23) 38%,
    transparent 54%);
  content: "";
}

.journey-story {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 2 * var(--gutter)), 80rem);
  margin-inline: auto;
  padding-block: clamp(1.8rem, 5svh, 4rem);
}

.journey-story h1 {
  max-width: 31ch;
  color: inherit;
  font: 600 2rem/1.25 var(--sans);
  letter-spacing: -.025em;
  text-wrap: balance;
}

.journey-actions {
  margin-top: 1.35rem;
}

.journey-actions a {
  font-weight: 600;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: 1.2rem 3rem;
  margin-bottom: clamp(1.6rem, 3.8vw, 3.4rem);
}

.section-heading p, .teacher-copy p, .directions-copy p {
  max-width: 39rem;
  color: var(--muted);
  font-size: 1.075rem;
}

.class-options {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(1.3rem, 3vw, 2.5rem);
}

.class-options article + article {
  padding-top: clamp(1rem, 4vw, 3.75rem);
}

.class-options img {
  width: 100%;
}

.class-option-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  column-gap: 1rem;
  padding-top: .7rem;
  border-bottom: 1px solid var(--rule);
}

.wisdom {
  background: #f7efe3;
}

.wisdom-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: 1.5rem clamp(2rem, 7vw, 6rem);
}

.wisdom-layout img {
  order: -1;
  width: 100%;
}

.wisdom-layout p {
  max-width: 29rem;
  margin-block: .8rem 1.3rem;
  color: var(--muted);
}

.wisdom-links {
  padding: 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}

.wisdom-links li {
  border-bottom: 1px solid var(--rule);
}

.wisdom-links a, .wisdom-more {
  min-height: 2.9rem;
}

.wisdom-more {
  margin-top: .55rem;
}

.trial, .footer {
  background: var(--maroon);
  color: var(--paper);
}

.trial h2, .trial h3, .footer h2, .footer .text-link {
  color: inherit;
}

.trial-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .93fr);
  align-items: start;
  gap: 2.15rem clamp(2rem, 9vw, 9rem);
}

.trial h2 em {
  display: block;
  color: #f7d7b7;
}

.trial-intro p {
  max-width: 27rem;
  margin-block: 1.1rem 1.5rem;
  color: #f2e3de;
}

.button-light {
  background: #f7e7d4;
  color: var(--maroon-dark);
}

.button-light:hover {
  background: #fff5e7;
}

.button-light:focus-visible {
  outline-color: #f7e7d4;
}

.trial-details > div {
  padding-block: 1rem 1.1rem;
  border-top: 1px solid #b48892;
}

.trial-details p {
  margin-top: .45rem;
  color: #f2e3de;
}

.trial-details a {
  font-weight: 650;
}

.timings {
  background: #f7efe3;
}

.timings-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 2.65rem clamp(2rem, 8vw, 7rem);
  margin-top: clamp(1.8rem, 4vw, 3.4rem);
}

.supporting {
  color: var(--muted);
  font-size: .925rem;
}

.schedule .supporting, .pair-rates .supporting {
  margin-top: .45rem;
}

.schedule-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1.3rem;
  border: 1px solid var(--rule);
  background: var(--rule);
}

.schedule-slots div {
  padding: clamp(.95rem, 2.6vw, 1.7rem);
  background: var(--paper);
}

.schedule-slots dt, .price-table th, .pair-rates dt {
  color: var(--maroon);
  font-weight: 650;
}

.schedule-slots dt {
  margin-bottom: .5rem;
}

.schedule-slots dd {
  font-size: 1.075rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.schedule-slots dd + dd {
  margin-top: .25rem;
}

.rate-unit {
  margin-left: .25rem;
  color: var(--muted);
  font: 500 .9rem/1.5 var(--sans);
  letter-spacing: 0;
  white-space: nowrap;
}

.price-table {
  width: 100%;
  margin-top: .75rem;
  border-collapse: collapse;
  font-size: .95rem;
}

.price-table :is(th, td) {
  padding: .7rem .6rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}

.price-table :is(th, td):first-child {
  padding-left: 0;
}

.price-table :is(th, td):not(:first-child) {
  text-align: right;
  white-space: nowrap;
}

.price-table td, .pair-rates dd {
  font-variant-numeric: tabular-nums;
}

.fee-note {
  margin-top: .75rem;
}

.pair-rates {
  margin-top: 1.4rem;
  padding: clamp(.9rem, 2vw, 1.4rem);
  background: #eee1d1;
}

.pair-rates dl {
  margin-top: .7rem;
}

.pair-rates dl > div {
  display: grid;
  grid-template-columns: minmax(7.5rem, .75fr) minmax(0, 1.25fr);
  gap: .25rem .85rem;
  padding-block: .45rem;
  border-top: 1px solid var(--rule);
  font-size: .95rem;
}

.directions {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: 1.65rem clamp(2rem, 8vw, 7rem);
}

.route-photos figcaption {
  margin-top: .55rem;
}

.directions address {
  margin-top: 1rem;
  color: var(--muted);
  font-style: normal;
}

.directions address strong {
  color: var(--maroon);
}

.directions-copy p {
  margin-top: .85rem;
}

.directions-copy .text-link {
  margin-top: .5rem;
}

.route-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.5rem, 1.8vw, 1.25rem);
  padding: 0;
  list-style: none;
}

.route-photos img {
  width: 100%;
}

.footer {
  background: var(--maroon-dark);
  padding-block: clamp(2.5rem, 5vw, 4.5rem) 1.2rem;
}

.footer-invitation, .footer-end {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .7rem 1.5rem;
}

.footer-invitation {
  padding-bottom: clamp(1.4rem, 3.5vw, 2.75rem);
  border-bottom: 1px solid #b48892;
}

.footer-invitation h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.footer-end {
  padding-top: .75rem;
}

@media (max-width: 900px) {
  .masthead-inner {
    gap: 1rem;
  }
}

@media (max-width: 760px) {
  .masthead-inner {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-block: .55rem .25rem;
  }

  .masthead nav ul {
    column-gap: clamp(.45rem, 2vw, 1.4rem);
    row-gap: 0;
  }

  .masthead nav a {
    font-size: .875rem;
  }

  .section-heading, .trial-layout, .timings-layout, .directions {
    grid-template-columns: minmax(0, 1fr);
  }

  .journey-actions {
    margin-top: 1rem;
  }

  .route-photos {
    max-width: 36rem;
  }

  .wisdom-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .wisdom-layout img {
    order: 0;
  }
}

@media (max-width: 734px) and (orientation: portrait),
       (max-width: 1030px) and (max-height: 480px) and (orientation: landscape) {
  .journey-panel::after {
    inset-block-start: auto;
    height: min(100%, var(--journey-fade-height, 14rem));
    background: linear-gradient(to top,
      rgb(34 27 21 / .88),
      rgb(34 27 21 / .74) 52%,
      rgb(34 27 21 / .67) var(--journey-fade-start, 70%),
      transparent);
  }

  .hero-entry { --journey-fade-height: 22rem; }
}

@media (max-width: 1030px) and (max-height: 480px) and (orientation: landscape) {
  .journey-panel {
    --journey-fade-height: 10rem;
    --journey-fade-start: 84%;
  }
  .hero-entry { --journey-fade-height: 15rem; }
}

@media (max-width: 734px) and (orientation: portrait) {
  .journey-story {
    padding-block: 1.5rem;
  }

  .journey-story h1 {
    font-size: clamp(1.875rem, 8.72vw, 2.125rem);
    line-height: 1.12;
    text-wrap: wrap;
  }
}

@media (min-width: 761px) and (max-height: 599px) {
  .masthead-inner {
    min-height: 3.75rem;
  }

  .journey-story {
    padding-block: 1.25rem;
  }

  .journey-story h1 {
    font-size: 1.875rem;
  }

  .journey-actions {
    margin-top: .8rem;
  }
}

@media (max-width: 540px) {
  .class-options {
    grid-template-columns: minmax(0, 1fr);
  }

  .class-options article + article {
    padding-top: 0;
  }

  .price-table :is(th, td) {
    padding-inline: .35rem;
  }
}

@media (max-width: 450px) {
  .masthead nav {
    width: 100%;
  }

  .masthead nav ul {
    display: grid;
    grid-template-columns: .9fr 1.25fr .85fr;
    column-gap: .3rem;
  }
}

@media (max-width: 350px) {
  .journey-actions a {
    font-size: .875rem;
  }

  .journey-actions .button {
    padding-inline: .7rem;
  }

  .pair-rates dl > div {
    grid-template-columns: minmax(0, 1fr);
  }
}
