:root {
  --ink: #151515;
  --paper: #fffdf8;
  --soft-paper: #f8f2e8;
  --muted: #5f5f5f;
  --cyan: #02a8ba;
  --red: #f03d32;
  --yellow: #f4bd15;
  --green: #78c928;
  --blue: #1265bd;
  --magenta: #df168d;
  --line: rgba(21, 21, 21, 0.14);
  --shadow: 0 18px 40px rgba(21, 21, 21, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    linear-gradient(90deg, rgba(2, 168, 186, 0.1), transparent 20%),
    linear-gradient(135deg, rgba(244, 189, 21, 0.18), transparent 34%),
    linear-gradient(225deg, rgba(223, 22, 141, 0.12), transparent 30%),
    var(--soft-paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
}

.site-header,
main {
  margin: 0 auto;
  max-width: 1180px;
}

.site-header {
  padding: 22px 18px 0;
}

.banner {
  aspect-ratio: 6 / 1;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.intro {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 0;
  padding: clamp(22px, 4vw, 44px);
}

.eyebrow,
.semester-label,
.tutorial-card span {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--blue);
  margin: 0 0 8px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  line-height: 0.95;
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  line-height: 1;
  margin-bottom: 16px;
}

p,
li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

main {
  padding: 26px 18px 64px;
}

.course-grid,
.tutorial-grid {
  display: grid;
  gap: 18px;
}

.course-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.course-card,
.tutorials {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(21, 21, 21, 0.08);
}

.course-card {
  border-top: 12px solid var(--cyan);
  padding: clamp(22px, 3vw, 34px);
}

.course-card.fall {
  border-top-color: var(--red);
}

.course-card.spring {
  border-top-color: var(--blue);
}

.semester-label {
  color: var(--magenta);
  margin-bottom: 14px;
}

.spring .semester-label {
  color: var(--green);
}

ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding-left: 20px;
}

li::marker {
  color: var(--yellow);
}


.portfolio-banner {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(2, 168, 186, 0.16), rgba(244, 189, 21, 0.18) 48%, rgba(223, 22, 141, 0.14)),
    var(--paper);
  border: 1px solid var(--line);
  border-left: 14px solid var(--magenta);
  box-shadow: 0 10px 26px rgba(21, 21, 21, 0.08);
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 18px;
  padding: clamp(22px, 3vw, 34px);
}

.portfolio-banner p {
  margin-bottom: 0;
  max-width: 72ch;
}

.portfolio-button {
  background: var(--ink);
  color: var(--paper);
  display: inline-block;
  font-weight: 800;
  padding: 12px 16px;
  text-decoration: none;
  white-space: nowrap;
}

.portfolio-button:hover,
.portfolio-button:focus-visible {
  background: var(--blue);
  outline: 0;
}

.tutorials {
  margin-top: 18px;
  padding: clamp(22px, 3vw, 34px);
}

.section-heading {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 16px;
}

.section-heading .eyebrow,
.section-heading h2 {
  margin-bottom: 0;
}

.tutorial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tutorial-card {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  min-height: 136px;
  padding: 18px;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.tutorial-card:hover,
.tutorial-card:focus-visible {
  border-color: currentColor;
  box-shadow: 0 14px 28px rgba(21, 21, 21, 0.14);
  outline: 0;
  transform: translateY(-3px);
}

.tutorial-card span {
  display: block;
  margin-bottom: 16px;
}

.tutorial-card strong {
  display: block;
  font-size: 1.18rem;
  line-height: 1.25;
}

.tutorial-card.cyan span {
  color: var(--cyan);
}

.tutorial-card.red span {
  color: var(--red);
}

.tutorial-card.yellow span {
  color: #a87900;
}

.tutorial-card.green span {
  color: #4f9414;
}

.tutorial-card.blue span {
  color: var(--blue);
}

.tutorial-card.magenta span {
  color: var(--magenta);
}

@media (max-width: 780px) {
  .course-grid,
  .tutorial-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-banner {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .portfolio-button {
    white-space: normal;
    width: fit-content;
  }

  .section-heading {
    align-items: start;
    display: block;
  }
}
