:root {
  --ink: #ffffff;
  --paper: #810001;
  --accent: #ffffff;
  --muted: rgba(255, 255, 255, 0.82);
  --line: rgba(255, 255, 255, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

.page-shell {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  width: min(calc(100% - 48px), 1240px);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  border: 1px solid #ffffff;
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.profile-link {
  padding-block: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.profile-link:hover,
.profile-link:focus-visible {
  color: #ffffff;
  text-decoration-color: currentColor;
}

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: stretch;
  padding-block: clamp(64px, 10vw, 128px);
}

.intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: clamp(40px, 8vw, 120px);
}

.eyebrow,
.section-label {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 20px 0 30px;
  max-width: 720px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(74px, 10.8vw, 154px);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.78;
}

.description {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.65;
}

.education {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 380px;
  padding: clamp(34px, 5vw, 64px);
  overflow: hidden;
  background: #ffffff;
  color: var(--paper);
}

.education::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 72px;
  height: 6px;
  background: #e31837;
}

.section-number {
  position: absolute;
  top: 26px;
  right: 30px;
  margin: 0;
  color: rgba(129, 0, 1, 0.5);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
}

.education-content {
  position: relative;
  z-index: 1;
}

.education .section-label {
  color: var(--paper);
}

h2 {
  margin: 24px 0 12px;
  max-width: 330px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4.2vw, 58px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}

.degree {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.years {
  margin: 9px 0 0;
  color: rgba(129, 0, 1, 0.68);
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 32px), 1240px);
  }

  .topbar {
    min-height: 78px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 56px;
    padding-block: 64px;
  }

  .intro {
    padding-right: 0;
  }

  h1 {
    font-size: clamp(68px, 23vw, 112px);
  }

  .education {
    min-height: 320px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-block: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .profile-link {
    transition: none;
  }
}
