:root {
  --ink: #12221c;
  --muted: #5d6d66;
  --paper: #fbfcf8;
  --soft: #eef6f1;
  --green: #05764f;
  --green-deep: #024834;
  --red: #c83d35;
  --blue: #117ea0;
  --gold: #c89331;
  --line: #dbe8e1;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(12, 45, 34, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 12px clamp(18px, 4vw, 64px);
  background: rgba(251, 252, 248, 0.92);
  border-bottom: 1px solid rgba(219, 232, 225, 0.86);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--white);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  max-width: 420px;
  font-size: clamp(0.92rem, 2vw, 1.08rem);
  font-weight: 850;
  line-height: 1.15;
}

.brand small {
  max-width: 420px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.25;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #30423a;
  font-size: 0.92rem;
  font-weight: 750;
}

.site-nav a {
  text-decoration: none;
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.92fr);
  align-items: center;
  min-height: calc(100vh - 79px);
  padding: clamp(40px, 6vw, 86px) clamp(18px, 5vw, 76px) clamp(28px, 4vw, 52px);
  gap: clamp(28px, 5vw, 74px);
  background:
    linear-gradient(115deg, rgba(251, 252, 248, 1) 0%, rgba(251, 252, 248, 0.95) 45%, rgba(238, 246, 241, 0.88) 100%),
    radial-gradient(circle at 82% 20%, rgba(17, 126, 160, 0.2), transparent 28%),
    radial-gradient(circle at 10% 88%, rgba(200, 61, 53, 0.14), transparent 25%);
}

.hero-copy {
  max-width: 820px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

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

h1 {
  max-width: 860px;
  font-size: clamp(2.55rem, 7vw, 5.85rem);
  letter-spacing: 0;
}

h2 {
  max-width: 920px;
  font-size: clamp(2rem, 4vw, 3.45rem);
  letter-spacing: 0;
}

h3 {
  font-size: 1.13rem;
}

.lead {
  max-width: 650px;
  margin: 22px 0 0;
  color: #3b4f46;
  font-size: clamp(1.04rem, 2vw, 1.32rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
}

.button.primary {
  background: var(--green);
  color: var(--white);
}

.button.secondary {
  border-color: #c8d8cf;
  background: rgba(255, 255, 255, 0.75);
}

.button.light {
  flex: 0 0 auto;
  background: var(--white);
  color: var(--green-deep);
}

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

.leader-feature {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(219, 232, 225, 0.92);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.leader-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leader-feature div {
  position: absolute;
  inset: auto 14px 14px 14px;
  padding: 14px;
  background: rgba(2, 72, 52, 0.9);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  color: var(--white);
}

.leader-feature span {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.leader-feature strong {
  display: block;
  margin-top: 2px;
  font-size: clamp(0.98rem, 2vw, 1.18rem);
  line-height: 1.2;
}

.governor {
  top: 0;
  right: 0;
  width: min(78%, 430px);
  height: 360px;
}

.provost {
  left: 0;
  bottom: 0;
  width: min(64%, 330px);
  height: 330px;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--green-deep);
  color: var(--white);
}

.quick-facts article {
  min-height: 116px;
  padding: 24px clamp(18px, 3vw, 36px);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.quick-facts span,
.quick-facts strong {
  display: block;
}

.quick-facts span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.quick-facts strong {
  margin-top: 7px;
  font-size: clamp(1rem, 2vw, 1.5rem);
  line-height: 1.18;
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 76px);
}

.section-heading {
  margin-bottom: 32px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 5vw, 68px);
  max-width: 1120px;
  color: #3c5148;
  font-size: 1.08rem;
}

.about-grid p {
  margin: 0;
}

.programmes-section {
  background: var(--soft);
}

.programme-grid,
.leadership-grid,
.contact-grid {
  display: grid;
  gap: 18px;
}

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

.programme-grid article,
.profile-card,
.contact-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 36px rgba(12, 45, 34, 0.06);
}

.programme-grid article {
  padding: 26px;
}

.programme-grid span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 22px;
  background: #e4f0ea;
  border: 1px solid #d1e3d9;
  border-radius: 8px;
  color: var(--green);
  font-weight: 900;
}

.programme-grid p,
.contact-grid span {
  color: var(--muted);
}

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

.profile-card {
  overflow: hidden;
}

.profile-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.profile-card div {
  padding: 24px;
}

.profile-card p {
  margin: 0 0 7px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.admissions-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--green-deep);
  color: var(--white);
}

.admissions-band .section-kicker,
.admissions-band p {
  color: rgba(255, 255, 255, 0.72);
}

.admissions-band p {
  max-width: 760px;
  margin: 18px 0 0;
}

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

.contact-grid article {
  padding: 24px;
}

.contact-grid span,
.contact-grid strong {
  display: block;
}

.contact-grid span {
  margin-bottom: 8px;
  font-size: 0.77rem;
  font-weight: 850;
  text-transform: uppercase;
}

.contact-grid strong {
  overflow-wrap: anywhere;
  line-height: 1.3;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 5vw, 76px);
  background: #092c21;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--white);
  font-weight: 850;
  text-decoration: none;
}

@media (max-width: 1020px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

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

  .governor {
    width: min(70%, 520px);
    height: 320px;
  }

  .provost {
    width: min(58%, 360px);
    height: 300px;
  }

  .quick-facts,
  .programme-grid,
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  .brand small {
    display: none;
  }

  .nav-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .site-nav {
    position: absolute;
    top: 74px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 14px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-media {
    display: grid;
    gap: 16px;
    min-height: 0;
  }

  .leader-feature {
    position: relative;
    width: 100%;
    height: auto;
  }

  .leader-feature img {
    aspect-ratio: 4 / 3;
  }

  .quick-facts,
  .about-grid,
  .programme-grid,
  .leadership-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .quick-facts article {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .admissions-band,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }
}
