:root {
  color-scheme: light;
  --ink: #292c2e;
  --accent: #a34f38;
  --paper: #faf7f3;
  --line: #d8cec5;
  --white: #fff;
  --soft: #eee5dd;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.125rem/1.65 system-ui, sans-serif;
}

h1, h2, h3 { margin: 0 0 0.6em; line-height: 1.08; }
h1 { max-width: 15ch; font-size: clamp(2.6rem, 6vw, 5.4rem); letter-spacing: -0.055em; }
h2 { font-size: clamp(1.85rem, 4vw, 3rem); letter-spacing: -0.035em; }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); letter-spacing: -0.025em; }
p { margin: 0 0 1rem; }
a { color: inherit; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 0.15em; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
[id] { scroll-margin-top: 1.25rem; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }

.wrap { width: min(72rem, calc(100% - 3rem)); margin-inline: auto; }
.narrow { max-width: 64ch; }

.header-inner, .footer-inner, nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.35rem;
}

.header-inner, .footer-inner { justify-content: space-between; padding-block: 1.3rem; }
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.brand { font-weight: 750; text-decoration: none; }
nav { font-size: 0.95rem; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover, .site-header nav [aria-current] { color: var(--accent); text-decoration: underline; }
.site-header nav [aria-current] { font-weight: 700; }
.site-header .language-switch {
  padding: 0.2rem 0.65rem;
  border: 1px solid currentColor;
  border-radius: 0.3rem;
  color: var(--accent);
  font-weight: 700;
}

.hero { background: var(--ink); color: var(--white); }
.hero-inner { padding-block: clamp(3rem, 8vw, 6.75rem); }
.hero-split { display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.hero img { width: 100%; max-width: 26rem; aspect-ratio: 1; object-fit: cover; object-position: center 42%; justify-self: end; }
.hero .hero-portrait { max-width: 21rem; aspect-ratio: auto; }
.hero img[alt="Mary-Anne Slezacek"] { object-position: center 30%; }
.lead { max-width: 53ch; font-size: clamp(1.125rem, 2.6vw, 1.4rem); margin-bottom: 1.65rem; }
.lead:last-child { margin-bottom: 0; }

.section { padding-block: clamp(3rem, 7vw, 5.75rem); }
.band { background: var(--soft); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1.3rem; }
.option, .quote { padding: clamp(1.45rem, 4vw, 2.2rem); background: var(--white); border: 1px solid var(--line); }
.option h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); }
.option-links { display: flex; flex-wrap: wrap; gap: 0.45rem 1.3rem; font-size: 1rem; }
.text-link, .course-status { color: var(--accent); font-weight: 700; }
.course-status { font-size: 0.95rem; }
.quote blockquote { margin: 0; }
.quote figcaption { font-weight: 650; }

.button {
  display: inline-block;
  max-width: 100%;
  padding: 0.62rem 1rem;
  background: var(--accent);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.button:hover { background: #823c2c; }
.button:focus-visible { outline-color: var(--ink); }
.hero .button:focus-visible { outline-color: var(--white); }

.feature-list { padding-inline-start: 1.4rem; }
.feature-list li + li { margin-top: 0.45rem; }
.site-footer { background: var(--ink); color: var(--white); }
.footer-inner p { margin: 0.3rem 0 0; font-size: 0.95rem; }

.skip-link {
  position: absolute;
  inset: 0 auto auto 1rem;
  transform: translateY(-130%);
  z-index: 1;
  padding: 0.4rem 0.8rem;
  background: var(--white);
}
.skip-link:focus { transform: translateY(0); }

@media (max-width: 45rem) {
  .wrap { width: calc(100% - 2rem); }
  .hero-split { grid-template-columns: 1fr; }
  .hero img { justify-self: start; }
  .header-inner, .footer-inner { align-items: flex-start; flex-direction: column; }
}

.contact-form {
  display: grid;
  gap: 0.65rem;
  max-width: 42rem;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--line);
}

.contact-form label { font-weight: 650; }
.contact-form :is(input, select, textarea) {
  width: 100%;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.65rem;
  border: 1px solid #81756c;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.contact-form .button { justify-self: start; border: 0; cursor: pointer; }
.contact-form .button:disabled { opacity: 0.7; cursor: wait; }
.form-status { margin: 0; }
.form-status:empty { display: none; }

.home-hero {
  background: var(--soft);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.home-hero h1 { max-width: 18ch; }
.home-hero .button:focus-visible { outline-color: var(--ink); }

.home-hero-copy {
  max-width: 58ch;
  margin: 0 0 0.85rem;
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.55;
}

.home-hero .hero-actions { margin-top: 1.5rem; }
.home-hero .hero-actions a { font-size: 1rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.4rem;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
}

.about-layout img { width: 100%; max-width: 14rem; border-radius: 0.3rem; }

@media (max-width: 40rem) {
  .about-layout { grid-template-columns: 1fr; }
}

.hero .home-photo {
  width: min(100%, 22rem);
  aspect-ratio: auto;
  border-radius: 0.35rem;
}

.hero .class-photo {
  width: min(100%, 368px);
  aspect-ratio: auto;
  border-radius: 0.35rem;
}

.story-photo figcaption {
  margin-top: 0.45rem;
  font-size: 0.9rem;
}

.lesson-photo { max-width: 43rem; margin: 2rem auto 0; }

.destination-photo img { width: 100%; border-radius: 0.35rem; }
.hero .destination-photo img { max-width: none; aspect-ratio: auto; }
.destination-photo figcaption { margin-top: 0.6rem; }

.hero .cape-town-hero .destination-photo img {
  filter: contrast(1.1) saturate(1.18);
}

@media (min-width: 45.01rem) {
  .cape-town-hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
    gap: clamp(2rem, 4vw, 4rem);
  }
}

.tour-intro { margin-bottom: 2rem; }

.destination-photo .street-photo { aspect-ratio: 1280 / 853; object-fit: cover; object-position: center bottom; }

.testimonial-slides, .testimonial-controls { max-width: 46rem; }
.testimonial-slides { display: grid; gap: 1rem; }

.testimonial-controls:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  margin-top: 1rem;
}

.testimonial-controls button {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--accent);
  background: var(--paper);
  color: var(--accent);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.testimonial-controls button:hover { background: var(--soft); }
.testimonial-position { font-size: 0.95rem; }
