:root {
  --ink: #10231b;
  --muted: #55645d;
  --soft: #f4f6f2;
  --line: #dce4dc;
  --ubc-blue: #002145;
  --green: #006632;
  --green-dark: #004524;
  --green-bright: #10b261;
  --purple: #460a66;
  --brown: #654709;
  --gold: #b27807;
  --green-soft: #70ad47;
  --white: #ffffff;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--green-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ubc-blue);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(16, 35, 27, 0.12);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner,
.section-inner,
.page-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-grid;
  grid-template-columns: 42px minmax(0, max-content);
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 40px;
  height: 40px;
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-name {
  color: var(--green);
  font-size: 1.2rem;
  line-height: 1;
  letter-spacing: 0;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav a {
  border-radius: 6px;
  color: var(--ink);
  padding: 8px 10px;
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.nav a:hover,
.nav a.active {
  background: var(--soft);
  color: var(--green-dark);
}

.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(4, 24, 18, 0.88), rgba(4, 24, 18, 0.58) 42%, rgba(4, 24, 18, 0.18));
  z-index: 1;
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: center center;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 120px 0 76px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #d9eadf;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.1;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: 5.8rem;
}

.hero-copy {
  max-width: 760px;
  margin: 26px 0 0;
  color: #eef5ef;
  font-size: 1.35rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px 16px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--gold);
  color: #17130a;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.button:hover {
  transform: translateY(-1px);
}

.section {
  padding: 72px 0;
}

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

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head h2,
.page-title h1 {
  margin: 0;
  font-size: 3.3rem;
}

.section-head p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.focus-item,
.link-card,
.stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.focus-item {
  padding: 18px;
  font-weight: 750;
}

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

.link-card {
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 22px;
  color: var(--ink);
  text-decoration: none;
}

.link-card h3 {
  margin: 0 0 12px;
  font-size: 1.32rem;
}

.card-meta {
  margin: 0 0 12px;
  color: var(--brown);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.link-card p {
  margin: 0;
  color: var(--muted);
}

.link-card span {
  margin-top: auto;
  padding-top: 18px;
  color: var(--green-dark);
  font-weight: 800;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.stat {
  padding: 18px;
}

.stat strong {
  display: block;
  color: var(--green-dark);
  font-size: 2rem;
  line-height: 1;
}

.stat span {
  color: var(--muted);
}

.section-head.compact {
  margin-bottom: 16px;
}

.section-head.compact h2 {
  font-size: 2rem;
}

.project-group + .project-group {
  margin-top: 44px;
}

.project-cards .link-card {
  min-height: 250px;
}

.page-hero {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.page-title {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 44px;
}

.page-title p {
  max-width: 820px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 48px;
  padding: 54px 0 80px;
}

.content {
  min-width: 0;
}

.content h2 {
  margin-top: 2.2em;
  font-size: 1.9rem;
}

.content h3 {
  margin-top: 1.8em;
  font-size: 1.35rem;
}

.content p,
.content li {
  color: #26362f;
}

.content figure {
  margin: 24px 0;
}

.content .wp-block-image img,
.content figure img {
  border-radius: 8px;
}

.content .wp-block-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.content .wp-block-column {
  min-width: 0;
}

.person-entry {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.person-entry.no-photo {
  display: block;
}

.person-entry.no-photo .person-copy {
  max-width: 900px;
}

.person-entry:first-child {
  padding-top: 0;
}

.person-entry:last-child {
  border-bottom: 0;
}

.person-photo {
  display: block;
  width: 168px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-copy h2 {
  margin: 0 0 6px;
}

.person-role {
  margin: 0 0 12px;
  color: var(--brown);
  font-weight: 800;
}

.person-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

.person-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
  background: var(--soft);
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
}

.content table {
  width: 100%;
  border-collapse: collapse;
}

.content td,
.content th {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.side-nav {
  align-self: start;
  position: sticky;
  top: 96px;
  border-left: 3px solid var(--line);
  padding-left: 18px;
}

.side-nav h2 {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.side-nav a {
  display: block;
  padding: 6px 0;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

.site-footer {
  background: var(--ink);
  color: #d9eadf;
  padding: 42px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.footer-inner a {
  color: #d9eadf;
}

.footer-title {
  color: var(--white);
  font-weight: 850;
}

@media (max-width: 880px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .hero {
    min-height: 560px;
  }

  h1 {
    font-size: 3.8rem;
  }

  .hero-copy {
    font-size: 1.15rem;
  }

  .section-head h2,
  .page-title h1 {
    font-size: 2.45rem;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(4, 24, 18, 0.28), rgba(4, 24, 18, 0.84));
  }

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

  .section-head,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-shell {
    display: block;
  }

  .person-entry {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 18px;
  }

  .person-entry.no-photo {
    display: block;
  }

  .person-photo {
    width: 120px;
  }

  .side-nav {
    position: static;
    margin-top: 42px;
  }
}

@media (max-width: 520px) {
  .header-inner,
  .section-inner,
  .page-shell,
  .page-title,
  .hero-content,
  .footer-inner {
    width: min(var(--max), calc(100% - 24px));
  }

  .brand {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 9px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .nav a {
    padding: 7px 8px;
  }

  .section {
    padding: 52px 0;
  }

  h1 {
    font-size: 2.45rem;
  }

  .hero-copy {
    font-size: 1.05rem;
  }

  .section-head h2,
  .page-title h1 {
    font-size: 2rem;
  }

  .person-entry {
    grid-template-columns: 1fr;
  }

  .person-photo {
    width: 156px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

  .button:hover {
    transform: none;
  }
}
