* { box-sizing: border-box; }

body { margin: 0; }

.course-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 960px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 80px clamp(16px, 4vw, 24px) 32px;
}

main { flex: 1; }

h1 {
  margin: 0 0 56px;
  font-size: clamp(44px, 8vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.course-code { color: var(--clay); }
.course-name { white-space: nowrap; }

.course-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 20px;
}

.course-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(24px, 4vw, 32px);
  border: 1.5px solid var(--ink);
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}

a.course-option:hover { background: var(--paper-2); }
a.course-option:focus-visible { outline: 3px solid var(--clay); outline-offset: 4px; }
a.course-option[aria-disabled="true"] { cursor: progress; }
.navigation-error { color: var(--clay); }

/* Keep the next screen out of view and out of the tab order while it starts. */
.course-stage { position: fixed; inset: 0; visibility: hidden; }

.course-option h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.course-option p { margin: 12px 0 0; color: var(--ink-3); line-height: 1.55; }

.card-preview { width: 100%; margin: 18px 0 0; }
.card-preview img { display: block; width: 100%; height: auto; }

footer { margin-top: 64px; font-size: 13px; color: var(--ink-4); line-height: 1.5; }

@media (max-width: 600px) {
  .course-shell { padding-top: 48px; }
  h1 { margin-bottom: 36px; }
  .course-options { grid-template-columns: 1fr; grid-auto-rows: auto; }
}
