:root {
  --white: #ffffff;
  --clean-white: #fbf7f4;
  --warm-panel: #FBF7F4;
  --ink: #080808;
  --ink-soft: #34302d;
  --muted: #6f6258;
  --crimson: #8b0015;
  --dark-crimson: #5e000e;
  --gold: #cba24a;
  --bronze: #9a642c;
  --line: rgba(90, 62, 44, 0.15);
  --shadow: 0 18px 48px rgba(38, 25, 17, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--clean-white);
  color: var(--ink);
  font-family: "Jost", Arial, sans-serif;
  line-height: 1.4;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: linear-gradient(180deg, var(--white) 0, var(--clean-white) 530px, var(--white) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

svg {
  display: block;
}

svg:not(.class-image svg, .hero-visual svg, .brush-crop svg) {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.announcement,
.site-header,
main,
.site-footer {
  width: min(100%, 1440px);
  margin: 0 auto;
}

.announcement {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 20px;
  background: var(--ink-soft);
  color: var(--clean-white);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-align: center;
  text-transform: uppercase;
}

.site-header {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 92px;
  padding: 18px 60px 12px;
  background: var(--white);
}

.brand {
  display: grid;
  width: 112px;
  justify-items: center;
  color: var(--dark-crimson);
  line-height: 1;
}

.brand-main {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 50px;
  font-weight: 600;
  letter-spacing: 0;
}

.brand-rule {
  width: 82px;
  height: 1px;
  margin: -2px 0 4px;
  background: var(--gold);
}

.brand-sub {
  color: var(--ink);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 5px;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 44px);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav a {
  position: relative;
  padding: 12px 0;
}

.main-nav .active {
  color: var(--dark-crimson);
}

.main-nav .active::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  background: var(--dark-crimson);
  content: "";
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-pill,
.primary-btn,
.outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 46px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-pill,
.primary-btn {
  color: var(--white);
  background: var(--dark-crimson);
  box-shadow: 0 12px 26px rgba(94, 0, 14, 0.18);
}

.header-pill {
  min-width: 176px;
  padding: 0 24px;
}

.icon-link {
  display: grid;
  width: 28px;
  height: 46px;
  place-items: center;
  color: var(--ink);
}

.icon-link svg {
  width: 22px;
  height: 22px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 470px) minmax(0, 1fr);
  min-height: 424px;
  overflow: hidden;
  background: radial-gradient(circle at 48% 30%, rgba(203, 162, 74, 0.09), transparent 25%), var(--white);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 30%, rgba(255, 255, 255, 0.72) 43%, rgba(255, 255, 255, 0) 68%);
  content: "";
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 28px 0 52px 60px;
}

.breadcrumb {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(54px, 5vw, 72px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0.98;
}

.hero-subhead {
  margin: 22px 0 16px;
  color: #9b5f28;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero-text {
  max-width: 430px;
  margin: 0;
  color: #201b18;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
}

.primary-btn {
  min-width: 256px;
  padding: 0 26px;
}

.outline-btn {
  min-width: 176px;
  padding: 0 24px;
  border: 1px solid rgba(94, 0, 14, 0.45);
  color: var(--dark-crimson);
  background: rgba(255, 255, 255, 0.84);
}

.hero-visual {
  position: absolute;
  inset: 0 0 0 28%;
  z-index: 0;
}

.hero-visual svg {
  width: 100%;
  height: 100%;
}

.track-panel {
  position: absolute;
  top: 78px;
  right: 50px;
  z-index: 2;
  width: 292px;
  min-height: 218px;
  padding: 26px 26px 24px;
  border: 1px solid rgba(203, 162, 74, 0.56);
  border-radius: 5px;
  color: var(--white);
  background: rgba(16, 12, 9, 0.74);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
}

.panel-mark {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
}

.panel-mark svg {
  width: 22px;
  height: 22px;
}

.track-panel h2,
.start-band h2,
.footer-links h2,
.newsletter h2 {
  margin: 0;
}

.track-panel h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.12;
}

.track-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 20px;
}

.track-chips span {
  border: 1px solid rgba(203, 162, 74, 0.45);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--clean-white);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.track-panel a {
  display: inline-flex;
  gap: 12px;
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.filter-tabs {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  width: min(calc(100% - 120px), 1320px);
  margin: 14px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.filter-tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 70px;
  border-right: 1px solid var(--line);
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-align: center;
  text-transform: uppercase;
}

.filter-tabs a:last-child {
  border-right: 0;
}

.filter-tabs .selected {
  color: var(--dark-crimson);
}

.filter-tabs svg {
  width: 24px;
  height: 24px;
  color: #ad6f35;
}

.section-pad {
  padding: 28px 60px 0;
}

.section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.section-bar h2 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.section-bar span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 18px;
  border: 1px solid rgba(94, 0, 14, 0.24);
  border-radius: 3px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.featured-shell {
  position: relative;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.all-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.class-card {
  overflow: hidden;
  border: 1px solid rgba(60, 45, 34, 0.12);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(42, 25, 16, 0.07);
}

.class-image {
  position: relative;
  height: 188px;
  overflow: hidden;
  background: #1b120d;
}

.class-image.compact {
  height: 146px;
}

.class-image svg {
  width: 100%;
  height: 100%;
}

.image-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  border-radius: 3px;
  padding: 7px 10px 6px;
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.image-badge.crimson {
  background: var(--dark-crimson);
}

.image-badge.bronze {
  background: #8a5a2d;
}

.image-badge.violet {
  background: #432044;
}

.image-badge.olive {
  background: #354021;
}

.image-badge.navy {
  background: #172638;
}

.class-copy {
  display: flex;
  min-height: 208px;
  flex-direction: column;
  padding: 18px 20px 18px;
}

.featured-card .class-copy {
  min-height: 214px;
}

.tags {
  order: 2;
  margin: 4px 0 0;
  color: #9b5f28;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.35;
  text-transform: uppercase;
}

.class-card h3 {
  order: 1;
  margin: 0;
  color: #20140f;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 23px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.05;
}

.duration {
  order: 3;
  margin: 14px 0 0;
  color: var(--ink);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.class-copy > p:not(.tags, .duration) {
  order: 4;
  margin: 12px 0 0;
  color: #241d19;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
}

.class-copy a {
  order: 5;
  display: inline-flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--dark-crimson);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.carousel-arrow {
  position: absolute;
  top: 92px;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: var(--clean-white);
  background: #11100f;
  font-family: Georgia, serif;
  font-size: 34px;
  line-height: 1;
}

.carousel-arrow.prev {
  left: -44px;
}

.carousel-arrow.next {
  right: -44px;
}

.start-band {
  display: grid;
  grid-template-columns: 178px minmax(250px, 1fr) auto minmax(300px, 390px);
  align-items: center;
  gap: 28px;
  margin: 28px 60px 0;
  overflow: hidden;
  border: 1px solid rgba(203, 162, 74, 0.16);
  border-radius: 5px;
  background: var(--warm-panel);
}

.brush-crop {
  height: 108px;
  overflow: hidden;
}

.brush-crop svg {
  width: 100%;
  height: 100%;
}

.start-band h2 {
  color: #20140f;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.1;
}

.start-band p {
  margin: 8px 0 0;
  max-width: 440px;
  color: #231c18;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.45;
}

.small {
  height: 42px;
  min-width: 196px;
  padding: 0 22px;
}

.join-panel {
  min-height: 108px;
  padding: 18px 22px;
  border-left: 1px solid rgba(90, 62, 44, 0.18);
}

.join-panel .primary-btn {
  margin-top: 12px;
}

.site-footer {
  display: grid;
  grid-template-columns: 210px 1fr 340px;
  gap: 48px;
  padding: 34px 60px 24px;
  background: #12100f;
  color: var(--clean-white);
}

.footer-brand .brand {
  margin-bottom: 16px;
  color: var(--gold);
}

.footer-brand .brand-sub {
  color: var(--clean-white);
}

.footer-brand p,
.newsletter p {
  margin: 0;
  color: rgba(251, 247, 244, 0.76);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
}

.tagline {
  margin-top: 14px !important;
  color: var(--gold) !important;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
}

.footer-links h2,
.newsletter h2 {
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-links a {
  display: block;
  margin-bottom: 7px;
  color: rgba(251, 247, 244, 0.82);
  font-size: 13px;
  font-weight: 300;
}

.newsletter form {
  position: relative;
  display: flex;
  width: 100%;
  height: 42px;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid rgba(251, 247, 244, 0.18);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
}

.newsletter label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.newsletter input {
  width: 100%;
  border: 0;
  padding: 0 54px 0 16px;
  color: var(--white);
  background: transparent;
  font-size: 13px;
  outline: 0;
}

.newsletter input::placeholder {
  color: rgba(251, 247, 244, 0.62);
}

.newsletter button {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  width: 46px;
  height: 42px;
  place-items: center;
  border: 0;
  color: var(--white);
  background: var(--dark-crimson);
  cursor: pointer;
}

.newsletter button svg {
  width: 20px;
  height: 20px;
}

.legal {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(251, 247, 244, 0.12);
  color: rgba(251, 247, 244, 0.68);
  font-size: 12px;
  font-weight: 300;
}

.legal nav {
  display: flex;
  gap: 24px;
}

@media (max-width: 1220px) {
  .site-header {
    grid-template-columns: auto 1fr;
    padding: 18px 30px 14px;
  }

  .main-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 24px;
    white-space: normal;
  }

  .header-actions {
    justify-content: flex-end;
  }

  .hero-copy {
    padding-left: 30px;
  }

  .track-panel {
    right: 30px;
  }

  .filter-tabs,
  .section-pad,
  .start-band,
  .site-footer {
    width: auto;
  }

  .filter-tabs {
    margin-right: 30px;
    margin-left: 30px;
  }

  .section-pad {
    padding-right: 30px;
    padding-left: 30px;
  }

  .start-band {
    margin-right: 30px;
    margin-left: 30px;
    grid-template-columns: 150px minmax(250px, 1fr) minmax(300px, 390px);
  }

  .start-band > .outline-btn {
    grid-column: 2;
    justify-self: start;
  }

  .join-panel {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .site-footer {
    padding-right: 30px;
    padding-left: 30px;
  }

  .all-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .carousel-arrow.prev {
    left: -18px;
  }

  .carousel-arrow.next {
    right: -18px;
  }
}

@media (max-width: 920px) {
  .announcement {
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .site-header {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px;
  }

  .brand-main {
    font-size: 44px;
  }

  .header-actions {
    margin-left: auto;
    gap: 10px;
  }

  .header-pill {
    min-width: 140px;
    padding: 0 14px;
    font-size: 10px;
  }

  .icon-link {
    display: none;
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    flex: 0 1 100%;
    width: 100%;
    max-width: calc(100vw - 32px);
    min-width: 0;
    gap: 8px 14px;
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .main-nav a {
    min-width: 0;
    padding: 5px 0;
    white-space: normal;
  }

  .hero {
    display: block;
    min-height: 730px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 53%, rgba(255, 255, 255, 0.26) 100%);
  }

  .hero-copy {
    padding: 28px 16px 24px;
  }

  .hero-text {
    max-width: 560px;
  }

  .hero-actions {
    max-width: 420px;
  }

  .primary-btn,
  .outline-btn {
    width: 100%;
    min-width: 0;
  }

  .hero-visual {
    inset: 39% 0 0 0;
  }

  .track-panel {
    top: auto;
    right: 16px;
    bottom: 26px;
    left: 16px;
    width: auto;
    min-height: 0;
  }

  .filter-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 18px 16px 0;
  }

  .filter-tabs a {
    justify-content: flex-start;
    min-height: 58px;
    padding: 0 18px;
    border-bottom: 1px solid var(--line);
  }

  .filter-tabs a:nth-child(2n) {
    border-right: 0;
  }

  .section-pad {
    padding: 24px 16px 0;
  }

  .featured-grid,
  .all-grid {
    grid-template-columns: 1fr;
  }

  .carousel-arrow {
    display: none;
  }

  .class-image,
  .class-image.compact {
    height: 190px;
  }

  .class-copy,
  .featured-card .class-copy {
    min-height: 0;
  }

  .start-band {
    grid-template-columns: 1fr;
    gap: 0;
    margin: 24px 16px 0;
  }

  .brush-crop {
    height: 116px;
  }

  .start-band > div:not(.brush-crop, .join-panel),
  .start-band > .outline-btn {
    margin: 0 20px 20px;
  }

  .start-band > .outline-btn {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
  }

  .join-panel {
    grid-column: auto;
    grid-row: auto;
    border-top: 1px solid rgba(90, 62, 44, 0.18);
    border-left: 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 32px 16px 24px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .legal {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal nav {
    flex-wrap: wrap;
    gap: 16px;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 50px;
  }

  .hero-subhead {
    font-size: 11px;
    letter-spacing: 0.2em;
  }

  .section-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-tabs {
    grid-template-columns: 1fr;
  }

  .filter-tabs a {
    border-right: 0;
  }
}
