:root {
  --burgundy: #86101b;
  --burgundy-deep: #26070c;
  --burgundy-dark: #3a0a11;
  --wine: #5d2722;
  --rose: #b84755;
  --mauve: #845f5c;
  --cream: #eeeae1;
  --paper: #f8f4ec;
  --paper-soft: #f2e7d8;
  --espresso: #3c251f;
  --green: #00aa62;
  --green-dark: #007b4c;
  --text-primary: #fff8ed;
  --text-secondary: rgba(248, 244, 236, 0.76);
  --text-muted: rgba(248, 244, 236, 0.62);
  --surface: rgba(248, 244, 236, 0.93);
  --surface-soft: rgba(248, 244, 236, 0.78);
  --surface-dark: rgba(58, 10, 17, 0.78);
  --border-dark: rgba(248, 244, 236, 0.16);
  --shadow-dark: rgba(11, 2, 4, 0.34);
  --shadow-light: rgba(255, 248, 237, 0.08);
  color-scheme: dark;
  font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(184, 71, 85, 0.26), transparent 31rem),
    radial-gradient(circle at 92% 16%, rgba(134, 16, 27, 0.28), transparent 26rem),
    linear-gradient(180deg, var(--burgundy-deep), var(--burgundy-dark) 48%, #1b0508);
  color: var(--text-primary);
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border-dark);
  background: rgba(38, 7, 12, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  color: var(--burgundy);
  font-family: "Open Sans", system-ui, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  box-shadow: 5px 5px 12px rgba(11, 2, 4, 0.32), -5px -5px 12px var(--shadow-light);
}

.brand-logo {
  overflow: hidden;
  border: 1px solid rgba(248, 244, 236, 0.24);
  background: var(--burgundy);
  color: var(--paper);
}

.brand-logo img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.brand-logo-fallback {
  display: none;
}

.brand-logo.is-fallback {
  background: var(--burgundy);
}

.brand-logo.is-fallback img {
  display: none;
}

.brand-logo.is-fallback .brand-logo-fallback {
  display: block;
}

.brand strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 0.1rem;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.top-nav {
  display: none;
  gap: 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.top-nav a {
  text-decoration: none;
}

main {
  overflow: hidden;
}

.hero,
.section,
.detail-shell,
.about,
.contact-cta {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.hero {
  display: grid;
  min-height: calc(100svh - 4.3rem);
  align-items: center;
  gap: 1.6rem;
  padding: 2rem 0 1.25rem;
}

.eyebrow,
.course-kicker {
  margin: 0 0 0.65rem;
  color: var(--paper-soft);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-weight: 300;
  line-height: 1.02;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: clamp(2.25rem, 11.25vw, 4.05rem);
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0.8rem;
  color: var(--paper-soft);
  font-size: clamp(1.575rem, 7.5vw, 2.925rem);
}

h3 {
  margin-bottom: 0.45rem;
  color: var(--wine);
  font-size: 1.25rem;
}

.hero-copy > p:not(.eyebrow),
.detail-summary > p,
.about > p,
.contact-cta > p {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.button,
.course-card button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.78rem 1.05rem;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary,
.course-card.is-active button {
  background: var(--paper);
  color: var(--burgundy);
  box-shadow: 8px 9px 18px rgba(11, 2, 4, 0.24);
}

.button.secondary,
.course-card button {
  border: 1px solid rgba(248, 244, 236, 0.28);
  background: rgba(248, 244, 236, 0.08);
  color: var(--paper);
  box-shadow: inset 3px 3px 8px rgba(11, 2, 4, 0.22), inset -4px -4px 10px rgba(255, 255, 255, 0.04);
}

.hero-media {
  position: relative;
  margin: 0;
  border-radius: 1.15rem;
  overflow: hidden;
  border: 1px solid var(--border-dark);
  background: var(--wine);
  box-shadow: 16px 22px 44px var(--shadow-dark), -10px -10px 28px var(--shadow-light);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-media figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 2.5rem 1rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(60, 37, 31, 0.9));
  color: var(--paper);
  font-size: 0.9rem;
  font-weight: 700;
}

.intro-band {
  display: grid;
  gap: 0.7rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 2.2rem;
}

.intro-band article,
.course-card,
.accordion-item {
  border: 1px solid rgba(248, 244, 236, 0.12);
  background: var(--surface);
  color: var(--espresso);
  box-shadow: 10px 12px 24px rgba(11, 2, 4, 0.24), -6px -6px 18px var(--shadow-light);
}

.intro-band article {
  border-radius: 0.7rem;
  padding: 1rem;
}

.intro-band strong,
.intro-band span {
  display: block;
}

.intro-band span {
  margin-top: 0.2rem;
  color: rgba(60, 37, 31, 0.7);
  line-height: 1.45;
}

.section,
.detail-shell,
.about,
.contact-cta {
  padding: 2.3rem 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.course-rail {
  display: grid;
  grid-auto-columns: minmax(17.5rem, 86vw);
  grid-auto-flow: column;
  gap: 1rem;
  margin-inline: -1rem;
  overflow-x: auto;
  padding: 0.2rem 1rem 1.2rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.course-rail::-webkit-scrollbar {
  display: none;
}

.course-card {
  display: grid;
  min-height: 31rem;
  align-content: start;
  border-radius: 0.9rem;
  overflow: hidden;
  scroll-snap-align: start;
}

.course-card.is-active {
  outline: 2px solid rgba(248, 244, 236, 0.7);
  outline-offset: 3px;
}

.course-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.course-card div {
  display: grid;
  padding: 1rem;
}

.course-card p:not(.course-kicker) {
  color: rgba(60, 37, 31, 0.72);
  line-height: 1.55;
}

.course-card .course-kicker {
  color: var(--burgundy);
}

.course-card button {
  margin-top: 0.4rem;
  color: var(--burgundy);
  justify-self: start;
}

.detail-shell {
  display: grid;
  gap: 1rem;
}

.detail-summary {
  border-radius: 1rem;
  padding: 1.2rem;
  border: 1px solid rgba(248, 244, 236, 0.14);
  background: linear-gradient(145deg, rgba(248, 244, 236, 0.13), rgba(134, 16, 27, 0.22));
  color: var(--paper);
  box-shadow: 16px 18px 32px rgba(11, 2, 4, 0.24);
}

.detail-summary h2,
.detail-summary .eyebrow {
  color: var(--paper);
}

.detail-summary p {
  color: rgba(248, 244, 236, 0.82);
}

.accordion-list {
  display: grid;
  gap: 0.75rem;
}

.accordion-item {
  border-radius: 0.75rem;
  overflow: hidden;
}

.accordion-item button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  background: transparent;
  color: var(--wine);
  padding: 1rem;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.accordion-item button span:last-child {
  display: grid;
  flex: 0 0 1.7rem;
  width: 1.7rem;
  height: 1.7rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(134, 16, 27, 0.12);
}

.accordion-panel {
  display: none;
  padding: 0 1rem 1rem;
  color: rgba(60, 37, 31, 0.74);
  line-height: 1.58;
}

.accordion-item.is-open .accordion-panel {
  display: block;
}

.about {
  display: grid;
  gap: 1rem;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}

.contact-cta {
  margin-bottom: 2rem;
  border-radius: 1.2rem;
  padding: 1.35rem;
  border: 1px solid rgba(248, 244, 236, 0.18);
  background: linear-gradient(135deg, rgba(248, 244, 236, 0.14), rgba(184, 71, 85, 0.22));
  color: var(--paper);
  box-shadow: 16px 20px 36px rgba(11, 2, 4, 0.28);
}

.contact-cta h2,
.contact-cta .eyebrow {
  color: var(--paper);
}

.contact-cta p {
  color: rgba(248, 244, 236, 0.82);
}

@media (min-width: 720px) {
  .site-header {
    padding-inline: 2rem;
  }

  .top-nav {
    display: flex;
  }

  .hero {
    grid-template-columns: minmax(0, 0.88fr) minmax(21rem, 0.72fr);
    min-height: 44rem;
    padding-top: 3.5rem;
  }

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

  .course-rail {
    grid-auto-columns: minmax(19rem, 24rem);
    margin-inline: 0;
    padding-inline: 0.2rem;
  }

  .detail-shell,
  .about {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }

  .detail-summary {
    position: sticky;
    top: 5.5rem;
  }
}

@media (min-width: 1040px) {
  .course-rail {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-flow: initial;
  }
}
