:root {
  --bg: #f6efe5;
  --bg-deep: #eadcca;
  --ink: #24170f;
  --muted: #715f53;
  --line: rgba(54, 32, 20, 0.12);
  --accent: #8f3e24;
  --olive: #68724d;
  --shadow: 0 18px 40px rgba(61, 35, 17, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  background: linear-gradient(180deg, var(--bg) 0%, #f5efe8 42%, var(--bg-deep) 100%);
  min-height: 100vh;
}

.page {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
  padding: 22px 0 64px;
}

.hero,
.toolbar-card,
.hero-panel,
.course-card,
.assist-card,
.suggest-dropdown,
.empty-state {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero {
  padding: 28px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255, 250, 244, 0.88), rgba(244, 232, 217, 0.78));
}

.hero-top,
.hero-grid,
.hero-stats,
.toolbar-grid,
.toolbar-filters,
.toolbar-meta,
.assist-panels,
.course-grid {
  display: grid;
  gap: 18px;
}

.hero-top {
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: 42px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), #c96a46);
  color: #fff8f1;
  font-weight: 800;
}

.eyebrow,
.brand-copy,
.panel-kicker,
.search-box span,
.toolbar-filters span,
.suggest-label {
  margin: 0;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-link,
.course-link,
#resetSearch,
.search-button,
.assist-chip,
.suggest-chip {
  transition: transform 180ms ease, background 180ms ease;
}

.hero-link,
.course-link,
#resetSearch,
.search-button,
.assist-chip,
.suggest-chip {
  text-decoration: none;
  cursor: pointer;
}

.hero-link:hover,
.course-link:hover,
#resetSearch:hover,
.search-button:hover,
.assist-chip:hover,
.suggest-chip:hover {
  transform: translateY(-1px);
}

.hero-link {
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
}

.hero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: start;
}

.hero-copy h1,
.section-head h2,
.course-card h3,
.empty-state h3 {
  font-family: "Fraunces", serif;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  margin: 10px 0 18px;
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: 0.96;
  max-width: 11ch;
}

.hero-text {
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 60ch;
  color: #4f3e31;
}

.hero-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.hero-stats article,
.hero-panel {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.46);
}

.hero-stats strong {
  display: block;
  font-size: 2rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 20px;
  color: #4f3e31;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--olive);
}

.toolbar {
  margin-top: 26px;
}

.toolbar-card {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 251, 245, 0.82);
}

.toolbar-grid {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.search-box {
  display: block;
}

.search-box input,
.toolbar-filters select,
.toolbar-filters input {
  width: 100%;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.75);
}

.search-button {
  border: 0;
  border-radius: 18px;
  padding: 16px 20px;
  font: inherit;
  font-weight: 700;
  color: #fffaf5;
  background: var(--accent);
}

.toolbar-filters {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 18px;
}

.toolbar-filters label {
  display: grid;
  gap: 8px;
}

.toggle {
  align-content: start;
}

.toggle input {
  width: 20px;
  height: 20px;
  margin-top: 8px;
}

.toolbar-meta {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  margin-top: 14px;
}

.meta-emphasis {
  font-size: 0.92rem;
  color: var(--accent);
}

.did-you-mean-link {
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.did-you-mean-link:hover {
  color: #6f2f1a;
}

.meta-emphasis.muted {
  color: var(--muted);
}

#resetSearch {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  border-radius: 14px;
  padding: 10px 14px;
  font: inherit;
}

.assist-panels,
.catalog-section {
  margin-top: 24px;
}

.assist-card,
.suggest-dropdown,
.empty-state {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
  padding: 16px;
}

.assist-list,
.suggest-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.assist-chip,
.suggest-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
}

.hidden {
  display: none;
}

.section-head h2 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.course-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.course-card {
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255, 251, 245, 0.92);
}

.course-media {
  aspect-ratio: 16 / 9;
  background: #ddcfbe;
}

.course-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-copy {
  padding: 18px 18px 20px;
}

.course-card h3 {
  margin: 0 0 10px;
  font-size: 1.38rem;
  line-height: 1.08;
}

.course-copy p,
.empty-state p {
  margin: 0 0 16px;
  line-height: 1.7;
  color: #5c493b;
}

.course-match {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(143, 62, 36, 0.08);
}

.course-match-label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.course-match p {
  margin: 0;
}

mark {
  padding: 0 0.22em;
  border-radius: 0.35em;
  background: rgba(201, 106, 70, 0.26);
  color: inherit;
}

.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.course-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 14px;
  color: #fffaf5;
  background: var(--accent);
}

.course-slug {
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 1080px) {
  .hero-grid,
  .toolbar-filters,
  .course-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .hero-top,
  .hero-grid,
  .hero-stats,
  .toolbar-grid,
  .toolbar-filters,
  .toolbar-meta,
  .course-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 9ch;
  }

  .hero-link,
  #resetSearch,
  .search-button,
  .course-link {
    width: 100%;
    text-align: center;
  }
}
