:root {
  color-scheme: light;
  --bg: #f8fafc;
  --panel: #ffffff;
  --panel-soft: #f1f5f9;
  --text: #102033;
  --muted: #5b6b80;
  --line: #dbe4ef;
  --accent: #0f8b8d;
  --accent-dark: #0b6668;
  --accent-soft: #d9f4f0;
  --gold: #b7791f;
  --shadow: 0 20px 60px rgba(16, 32, 51, 0.1);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(15, 139, 141, 0.1), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 44%, #eef6f4 100%);
  color: var(--text);
}

a {
  color: inherit;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 80px 0 64px;
}

.intro {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 38px 0 42px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(3.2rem, 10vw, 7.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.intro-text {
  width: min(680px, 100%);
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 2.4vw, 1.32rem);
  line-height: 1.65;
}

.courses {
  padding-top: 18px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.section-heading p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 18px;
}

.course-card {
  min-height: 248px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.course-card:hover,
.course-card:focus-visible {
  border-color: rgba(15, 139, 141, 0.5);
  box-shadow: 0 24px 70px rgba(16, 32, 51, 0.14);
  transform: translateY(-4px);
  outline: none;
}

.course-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.course-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 1.15rem;
  font-weight: 900;
}

.status {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.status.is-live {
  background: #fff7df;
  color: var(--gold);
}

.course-card h3 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.18;
}

.course-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.features span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef6f4;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 750;
}

.course-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-dark);
  font-weight: 850;
}

@media (max-width: 680px) {
  .page-shell {
    width: min(100% - 24px, 1120px);
    padding-top: 44px;
  }

  .intro {
    padding-top: 26px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .course-card {
    min-height: 230px;
    padding: 20px;
  }
}
