@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond-Regular.ttf") format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond-Bold.ttf") format("truetype");
  font-weight: 700;
}

@font-face {
  font-family: "Maple Mono";
  src: url("fonts/MapleMono-Bold.ttf") format("truetype");
  font-weight: 700;
}

:root {
  --green-dark: #3f6212;
  --brown-dark: #493628;
  --cream: #f7f1e7;
  --ink: #2f2a25;
  --muted: #74695d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(
      circle at top left,
      rgba(101, 163, 13, 0.14),
      transparent 28rem
    ),
    linear-gradient(180deg, var(--cream), #efe4d4);
  font-family: "EB Garamond", Georgia, serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

main {
  width: 100%;
}

footer {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 860px) auto;
  align-content: center;
  align-items: end;
  gap: 40px;
  min-height: 640px;
  padding: 96px max(24px, calc((100% - 1120px) / 2)) 120px;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(
      90deg,
      rgba(247, 241, 231, 0.86) 0%,
      rgba(247, 241, 231, 0.58) 46%,
      rgba(247, 241, 231, 0.04) 100%
    ),
    url("hero.jpg") center top / cover;
}

footer img {
  width: 96px;
  height: 96px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.hero-card {
  max-width: 860px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-family: "Maple Mono", monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  color: var(--brown-dark);
  line-height: 1.02;
}

h1 {
  max-width: 10ch;
  margin-bottom: 12px;
  font-size: clamp(3.2rem, 7vw, 5.8rem);
  letter-spacing: -0.02em;
}

h2 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.intro,
.section-intro {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.18rem;
}

.section {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.cards article,
.contact {
  padding: 8px 0;
}

.cards p,
.contact p,
.research-list p,
.course-list p {
  color: var(--muted);
}

.research-list,
.course-list {
  display: grid;
  gap: 22px;
  margin-top: 36px;
}

.research-list article,
.course-list article {
  max-width: 820px;
}

.research-list a,
.course-list a {
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.contact {
  text-align: center;
}

.contact h2 {
  margin-inline: auto;
}

.email {
  color: var(--green-dark);
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(1.8rem, 5vw, 3.6rem);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

footer {
  display: grid;
  justify-items: center;
  gap: 12px;
  color: var(--muted);
  padding: 72px 0 88px;
  text-align: center;
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero::before {
    background:
      linear-gradient(rgba(247, 241, 231, 0.78), rgba(247, 241, 231, 0.78)),
      url("hero.jpg") center top / cover;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 600px;
    padding-top: 72px;
    padding-bottom: 88px;
  }

  .hero-card,
  .cards article,
  .contact {
    padding: 0;
  }
}
