.ct-header,
.ct-home {
  color: #f0edf8;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
}

.ct-header {
  background: #14121e;
  border-bottom: 1px solid #363044;
}

.ct-nav {
  width: min(960px, calc(100% - 32px));
  min-height: 56px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 18px;
}

.ct-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding-inline: 10px;
  color: #cfc7de;
  border-radius: 7px;
  text-decoration: none;
}

.ct-nav .ct-brand {
  padding-inline: 0;
  color: #f4edf9;
  font-weight: 750;
  letter-spacing: -.025em;
}

.ct-nav-links { display: flex; gap: 4px; }
.ct-nav-links a { font-size: .875rem; white-space: nowrap; }
.ct-nav-links a:hover, .ct-nav-links [aria-current="page"] { background: #29223a; color: #f4edff; }
.ct-nav a:focus-visible, .ct-card:focus-visible { outline: 2px solid #d9c8ff; outline-offset: 4px; }

.ct-landing {
  margin: 0;
  min-height: 100vh;
  color-scheme: dark;
  background: radial-gradient(ellipse at 50% 0, #2a213d 0, #161323 37rem, #100e19 65rem);
}

.ct-landing *, .ct-landing *::before, .ct-landing *::after { box-sizing: border-box; }

.ct-home {
  width: min(880px, calc(100% - 36px));
  margin-inline: auto;
  padding-block: clamp(42px, 8vw, 96px) 48px;
}

.ct-home-heading { margin-bottom: clamp(22px, 4vw, 38px); }
.ct-home h1 {
  margin: 0;
  color: #f7f0ff;
  font-size: clamp(3rem, 9vw, 6.3rem);
  font-weight: 800;
  letter-spacing: -.072em;
  line-height: .98;
}

.ct-home-heading p { margin: 14px 0 0; color: #c7b9dc; font-size: 1rem; }
.ct-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ct-card {
  --ct-accent: #b4f5d7;
  --ct-edge: #426057;
  --ct-tint: #1e3437;
  display: block;
  min-height: 216px;
  padding: 24px;
  border: 1px solid var(--ct-edge);
  border-radius: 16px;
  background: radial-gradient(ellipse at 86% 0, var(--ct-tint), transparent 78%), #181724;
  color: inherit;
  text-decoration: none;
  transition: border-color .15s ease;
}

.ct-quiz { --ct-accent: #dec9ff; --ct-edge: #5c4974; --ct-tint: #372649; }
.ct-collab { --ct-accent: #f2d39d; --ct-edge: #655439; --ct-tint: #393027; }
.ct-collab .ct-flashcard { border-color: #c6a36b; background: #33283a; color: #f2d39d; }
.ct-card:hover { border-color: var(--ct-accent); }
.ct-card-art { height: 71px; display: flex; align-items: center; gap: 7px; color: var(--ct-accent); }
.ct-card-art img {
  width: 44px;
  height: 44px;
  border: 1px solid #77ac92;
  border-radius: 8px;
  object-fit: cover;
}

.ct-card-art img:last-child { width: 53px; height: 53px; }
.ct-flashcard {
  width: 48px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-left: 6px;
  border: 1px solid #be9cee;
  border-radius: 8px;
  background: #302244;
  box-shadow: 5px -4px 0 -1px #4c3763, 10px -8px 0 -2px #684f80;
  color: #e1c8ff;
  font-size: 1.55rem;
  font-weight: 760;
}

.ct-card h2 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 9px 0 6px;
  color: var(--ct-accent);
  font-size: clamp(1.28rem, 3.5vw, 1.68rem);
  letter-spacing: -.027em;
  line-height: 1.15;
}

.ct-card p { margin: 0; max-width: 32ch; color: #d0c7dd; line-height: 1.5; }

@media (max-width: 610px) {
  .ct-options { grid-template-columns: 1fr; gap: 12px; }
  .ct-card { min-height: 0; padding: 16px 18px 20px; }
  .ct-card-art { height: 62px; }
}

@media (min-width: 760px) {
  .ct-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 440px) {
  .ct-nav { padding-block: 4px; gap: 0; }
  .ct-nav-links { width: 100%; }
}

@media (max-width: 360px) {
  .ct-nav { width: calc(100% - 20px); gap: 2px 5px; }
  .ct-nav-links { gap: 1px; }
  .ct-nav-links a { padding-inline: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .ct-card { transition: none; }
}
