.catalog-page {
  background: #f3eee6;
  color: #17140f;
}

.catalog-page main,
.catalog-page .cat-hero,
.catalog-page .catalog {
  background: #f3eee6;
  color: #17140f;
}

.catalog-page .skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #17140f;
  color: #f3eee6;
  padding: 8px 12px;
  z-index: 5;
}

.catalog-page .skip:focus {
  top: 12px;
}

.catalog-page .top {
  background: #f3eee6;
  color: #17140f;
  border-bottom: 1px solid #ddd4c6;
  position: sticky;
  top: 0;
  z-index: 2;
}

.catalog-page .nav a {
  color: #17140f;
}

.catalog-page .nav-cta {
  border: 1px solid #17140f;
  border-radius: 999px;
  padding: 8px 14px;
}

.catalog-page .cat-hero,
.catalog-page .catalog {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.catalog-page .cat-hero {
  padding: 28px 0 8px;
}

.catalog-page .cat-hero h1,
.catalog-page h1 {
  max-width: 16ch;
  color: #17140f;
  font-size: clamp(36px, 5vw, 64px);
}

.catalog-page .lede,
.catalog-page .cat-hero .lede {
  color: #3f3a33;
  max-width: 62ch;
}

.catalog-page .kicker {
  color: #6b450e;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 8px;
}

.alt-path {
  margin: 4px 0 0;
}

.alt-path a {
  color: #3f3a33;
  border-bottom: 1px solid #8a5a12;
}

.catalog-page .action-dark {
  background: #17140f;
  color: #f6f1e8;
  border-radius: 4px;
  padding: 14px 18px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  font-weight: 650;
}

.catalog-page .action-ghost {
  color: #17140f;
  border: 1px solid #17140f;
  border-radius: 4px;
  padding: 14px 18px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  font-weight: 650;
}

.catalog {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  padding: 28px 0 80px;
  align-items: start;
}

.cat-nav label,
.cat-select-label {
  display: none;
}

.cat-nav select {
  display: none;
}

.cat-links {
  display: grid;
  gap: 8px;
  position: sticky;
  top: 88px;
}

.cat-links a {
  display: grid;
  gap: 4px;
  padding: 12px 12px;
  border-left: 2px solid transparent;
  color: #17140f;
}

.cat-links a span {
  color: #4e483f;
  font-size: 14px;
  font-weight: 450;
  line-height: 1.4;
}

.cat-links a[aria-current="true"] {
  border-left-color: #8a5a12;
  background: #efe8dc;
}

.panel {
  display: none;
}

.catalog:not(:has(:target)) #lab,
.panel:target,
.panel:has(:target) {
  display: block;
}

.cat-intro h2,
.course-detail h2 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.03em;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  max-width: 22ch;
  color: #17140f;
}

.course-list {
  display: grid;
  gap: 0;
  margin-top: 8px;
}

.course {
  padding: 22px 0;
  border-top: 1px solid #ddd4c6;
  display: grid;
  gap: 8px;
}

.course.is-featured {
  background: #efe8dc;
  padding: 22px;
  margin-top: 18px;
  border-top: 0;
}

.course-kicker {
  color: #6b450e;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 650;
  margin: 0;
}

.course h3,
.course-detail h2 {
  margin: 0;
}

.course h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  color: #17140f;
  font-weight: 650;
}

.price {
  color: #17140f;
}

.course-outcome {
  margin: 0;
  max-width: 68ch;
  line-height: 1.45;
  color: #3f3a33;
}

.view-class {
  color: #17140f;
  font-weight: 650;
  border-bottom: 1px solid #8a5a12;
  justify-self: start;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.entry-note {
  margin: 0;
  padding: 12px 0 4px;
  color: #3f3a33;
  max-width: 68ch;
}

.course-detail {
  display: none;
  padding-top: 8px;
}

.course-detail:target {
  display: block;
}

.panel:has(.course-detail:target) .course-list,
.panel:has(.course-detail:target) .entry-note {
  display: none;
}

.course-detail .back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #6b450e;
  font-weight: 650;
}

.detail-price {
  font-size: 28px;
  font-weight: 650;
  margin: 8px 0;
}

.course-detail ul,
.course-detail ol {
  margin: 8px 0 16px;
  padding-left: 1.2em;
  max-width: 68ch;
}

.course-detail li {
  margin: 6px 0;
  line-height: 1.45;
}

.course-detail table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 18px;
}

.course-detail th,
.course-detail td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-top: 1px solid #ddd4c6;
  line-height: 1.4;
}

.course-detail th {
  width: 9em;
  font-weight: 650;
  white-space: nowrap;
}

.catalog-page a:focus-visible,
.catalog-page select:focus-visible,
.catalog-page button:focus-visible,
.inquiry-page a:focus-visible,
.inquiry-page button:focus-visible,
.inquiry-page input:focus-visible,
.inquiry-page textarea:focus-visible,
.inquiry-page select:focus-visible {
  outline: 2px solid #8a5a12;
  outline-offset: 3px;
}

.inquiry-page {
  background: #f3eee6;
  color: #17140f;
}

.inquiry-page .top,
.inquiry-page main {
  background: #f3eee6;
  color: #17140f;
}

.inquiry-page .hero,
.inquiry-page .brief {
  width: min(720px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.inquiry-page h1,
.inquiry-page p,
.inquiry-page label,
.inquiry-page legend {
  color: #17140f;
}

.inquiry-page .lede {
  color: #3f3a33;
}

.course-context {
  border: 1px solid #17140f;
  padding: 16px 18px;
  margin: 18px 0;
}

.course-context p {
  margin: 0 0 6px;
}

.course-context .price {
  font-size: 22px;
  font-weight: 650;
}

@media (max-width: 800px) {
  .catalog {
    grid-template-columns: 1fr;
    gap: 16px;
    width: min(1120px, calc(100% - 32px));
  }

  .catalog-page .cat-hero {
    width: min(1120px, calc(100% - 32px));
    padding-top: 20px;
  }

  .cat-nav select {
    display: block;
    width: 100%;
    min-height: 48px;
    font: inherit;
    color: #17140f;
    background: #f3eee6;
    border: 1px solid #17140f;
    border-radius: 4px;
    padding: 0 12px;
  }

  .cat-nav label {
    display: block;
    font-weight: 650;
    margin-bottom: 6px;
  }

  .cat-links {
    display: none;
  }

  .course-detail th {
    white-space: normal;
    width: 34%;
  }
}
