:root {
  --cmu-red: #c41230;
  --black: #000000;
  --iron: #6d6e71;
  --steel: #e0e0e0;
  --blue: #182c4b;
  --blue-thread: #043673;
  --paper: #ffffff;
  --soft: #f7f7f5;
  --text: #171717;
  --muted: #5e6268;
  --line: #dedede;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--cmu-red);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.tartan-strip {
  height: 14px;
  background-image: url("assets/tartan-wave-color.png");
  background-position: center 44%;
  background-repeat: no-repeat;
  background-size: cover;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 78px;
  padding: 0 max(24px, calc((100% - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.site-title {
  color: var(--text);
  display: grid;
  gap: 1px;
}

.site-title span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 700;
  white-space: nowrap;
}

.site-title small {
  color: var(--muted);
  font-size: 13px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 21px;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  color: var(--text);
}

.site-nav a:last-child {
  color: var(--cmu-red);
}

section,
.site-footer {
  scroll-margin-top: 96px;
}

.hero {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 70px 0 68px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 64px;
  align-items: center;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--cmu-red);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: 52px;
  line-height: 1.04;
  white-space: nowrap;
}

.roles {
  display: grid;
  gap: 6px;
  padding-left: 20px;
  border-left: 4px solid var(--cmu-red);
  color: #303236;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
}

.roles p {
  margin: 0;
}

.intro {
  max-width: 720px;
  margin: 26px 0 0;
  color: #34373c;
  font-size: 17px;
  line-height: 1.58;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 2px solid var(--cmu-red);
  background: var(--cmu-red);
  color: white;
  font-size: 14px;
  font-weight: 800;
}

.button:hover {
  background: #a80f28;
  border-color: #a80f28;
  text-decoration: none;
}

.button.secondary {
  background: white;
  color: var(--cmu-red);
}

.button.secondary:hover {
  background: #fff4f6;
  color: var(--cmu-red);
}

.hero-media {
  position: relative;
  min-height: 470px;
}

.tartan-panel {
  position: absolute;
  inset: 18px 0 34px 126px;
  background-image: url("assets/tartan-wave-color.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-left: 8px solid var(--cmu-red);
}

.hero-media img {
  position: absolute;
  left: 0;
  top: 58px;
  width: 282px;
  height: 352px;
  object-fit: cover;
  object-position: center top;
  border: 8px solid white;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.media-note {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(320px, 74%);
  padding: 22px 24px;
  background: var(--blue);
  color: white;
}

.media-note strong,
.media-note span {
  display: block;
}

.media-note strong {
  margin-bottom: 7px;
  font-size: 15px;
}

.media-note span {
  color: #d8dee8;
  font-size: 14px;
  line-height: 1.45;
}

.overview {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--soft);
  padding: 42px max(24px, calc((100% - 1120px) / 2));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.overview article {
  padding-top: 16px;
  border-top: 4px solid var(--cmu-red);
}

.overview article:nth-child(2) {
  border-color: var(--blue-thread);
}

.overview article:nth-child(3) {
  border-color: var(--iron);
}

.overview h2 {
  margin-bottom: 9px;
  font-size: 22px;
  line-height: 1.2;
}

.overview p {
  margin: 0;
  color: #3d4045;
  font-size: 15.5px;
}

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

.two-column {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.section h2 {
  margin-bottom: 0;
  font-size: 42px;
  line-height: 1.08;
}

.section-body p,
.feature-copy p,
.cv-band p {
  color: #3d4045;
  font-size: 17px;
}

.link-list,
.publication-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.link-list li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-weight: 800;
}

.publication-list li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.publication-list a {
  display: block;
  font-weight: 800;
}

.publication-list span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.feature {
  width: auto;
  max-width: none;
  padding: 0;
  background: var(--blue);
  color: white;
  display: grid;
  grid-template-columns: minmax(24px, 1fr) minmax(0, 1120px) minmax(24px, 1fr);
}

.feature::before,
.feature::after {
  content: "";
  background-image: url("assets/tartan-wave-color.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.5;
}

.feature-copy,
.feature-list {
  grid-column: 2;
}

.feature-copy {
  padding: 70px 0 28px;
  max-width: 760px;
}

.feature .section-label {
  color: #ffffff;
}

.feature h2 {
  color: white;
}

.feature-copy p {
  color: #e7ebf2;
}

.feature-list {
  padding: 0 0 70px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.feature-list div {
  padding-top: 18px;
  border-top: 4px solid var(--cmu-red);
}

.feature-list h3 {
  margin-bottom: 9px;
  font-size: 20px;
}

.feature-list p {
  margin: 0;
  color: #d8dee8;
  font-size: 15.5px;
}

.feature a {
  color: white;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.48);
  text-underline-offset: 3px;
}

.feature a:hover {
  text-decoration-color: white;
}

.feature-list a {
  display: inline-flex;
  margin-top: 14px;
  font-size: 14px;
}

.cv-band {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 0.7fr 1fr auto;
  gap: 34px;
  align-items: center;
}

.cv-band h2 {
  font-size: 34px;
}

.cv-band p {
  margin: 0;
}

.site-footer {
  min-height: 96px;
  padding: 26px max(24px, calc((100% - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer div {
  display: grid;
  gap: 4px;
}

.site-footer div:last-child {
  justify-items: end;
}

@media (max-width: 940px) {
  .site-header {
    position: static;
    padding-top: 20px;
    padding-bottom: 20px;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero,
  .two-column,
  .cv-band {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 54px;
    gap: 34px;
  }

  h1 {
    font-size: 44px;
  }

  .section h2 {
    font-size: 36px;
  }

  .hero-media {
    min-height: 420px;
  }

  .overview,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .feature::before,
  .feature::after {
    display: none;
  }

  .feature {
    padding-left: 24px;
    padding-right: 24px;
    display: block;
  }

  .site-footer,
  .site-footer div:last-child {
    align-items: flex-start;
    justify-items: start;
    flex-direction: column;
  }
}

@media (max-width: 580px) {
  .hero,
  .section {
    width: min(100% - 28px, 1120px);
  }

  .overview {
    padding-left: 14px;
    padding-right: 14px;
  }

  .site-title span {
    font-size: 22px;
  }

  .roles {
    font-size: 17px;
  }

  h1 {
    font-size: 34px;
  }

  .section h2,
  .cv-band h2 {
    font-size: 31px;
  }

  .intro {
    font-size: 17px;
  }

  .hero-media {
    min-height: 386px;
  }

  .tartan-panel {
    inset: 0 0 52px 84px;
    background-size: cover;
  }

  .hero-media img {
    top: 38px;
    width: 230px;
    height: 304px;
  }

  .media-note {
    width: 88%;
    padding: 18px 20px;
  }

  .button {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .hero,
  .section {
    width: min(100% - 24px, 1120px);
  }

  h1 {
    font-size: 31px;
  }

  .site-title span {
    font-size: 20px;
  }

  .site-title small {
    font-size: 12px;
  }

  .button {
    padding-right: 14px;
    padding-left: 14px;
    font-size: 13px;
  }
}
