@font-face {
  font-family: "Instrument Sans";
  src: url("assets/instrument-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #202a36;
  --muted: #4d5964;
  --navy: #28323f;
  --green: #00663d;
  --lime: #a4e575;
  --pale: #f1f6ef;
  --line: #d8e1da;
  --white: #ffffff;
  --page-width: 72rem;
  --gutter: clamp(1.125rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font: 400 1rem/1.6 "Instrument Sans", system-ui, sans-serif;
}

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

a { color: var(--green); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .13em; }

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 5px;
}

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

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  max-width: 15ch;
  font-size: clamp(2.65rem, 5.05vw, 4.35rem);
  letter-spacing: -.045em;
}

h2 {
  font-size: clamp(2.05rem, 4.05vw, 3.25rem);
  letter-spacing: -.045em;
}

h3 {
  font-size: 1.24rem;
  letter-spacing: -.015em;
}

.container {
  width: min(calc(100% - 2 * var(--gutter)), var(--page-width));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 2;
  top: .75rem;
  left: .75rem;
  padding: .55rem .85rem;
  transform: translateY(calc(-100% - 1rem));
  background: var(--white);
}

.skip-link:focus { transform: none; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.header-inner,
.university,
.site-header nav {
  display: flex;
  align-items: center;
}

.header-inner {
  justify-content: space-between;
  min-height: 5rem;
  gap: .75rem 1.5rem;
}

.university {
  gap: .65rem;
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -.02em;
}

.university:hover .university-name { text-decoration: underline; }
.university img { width: 2.65rem; flex: none; }

.site-header nav {
  flex-wrap: wrap;
  gap: .1rem clamp(.85rem, 2.5vw, 2rem);
}

.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink);
  font-size: .93rem;
  font-weight: 600;
  text-decoration: none;
}

.site-header nav a:hover { text-decoration: underline; }

.hero {
  background: var(--navy);
  color: var(--white);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.03fr 1fr;
  align-items: stretch;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(2.25rem, 5.3vw, 4.25rem);
}

.hero-copy { align-self: center; }

.project-logo {
  width: clamp(9rem, 14vw, 12.25rem);
  margin-bottom: clamp(1.25rem, 3.6vw, 2.5rem);
}

.hero-copy p {
  max-width: 37ch;
  margin-top: 1.2rem;
  color: #e2eae6;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .95rem;
  min-height: 3rem;
  padding: .6rem 1.05rem;
  border-radius: .5rem;
  font-weight: 700;
  text-decoration: none;
}

.button-primary {
  margin-top: 1.55rem;
  background: var(--lime);
  color: #162818;
}

.button-primary:hover { background: #c3f39f; }
.button-primary:focus-visible { outline-color: var(--white); }

.external-arrow {
  display: inline-block;
  flex: none;
  width: .66em;
  height: .66em;
  margin-inline: .14em;
  border-top: .1em solid currentColor;
  border-right: .1em solid currentColor;
  background: linear-gradient(-45deg, transparent 44%, currentColor 45% 55%, transparent 56%);
  vertical-align: .08em;
}

.hero-visual {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  border-radius: 1rem;
  background: #374a39;
}

.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 50%;
}

.facts {
  background: var(--pale);
  border-bottom: 1px solid var(--line);
}

.facts-grid {
  display: grid;
  grid-template-columns: 1fr .82fr 1.24fr 1fr;
  gap: .75rem 1.2rem;
  margin-block: 0;
  padding-block: 1.35rem;
}

.facts-grid div + div {
  border-inline-start: 1px solid #c8d7c9;
  padding-inline-start: 1.2rem;
}

.facts dt {
  color: #405646;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.facts dd {
  margin: .19rem 0 0;
  font-size: .98rem;
  font-weight: 700;
}

.section { padding-block: clamp(3rem, 7.5vw, 6rem); }

.section-intro,
.upb-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.32fr;
  align-items: start;
  gap: 1.25rem clamp(2rem, 5vw, 5rem);
}

.section p { color: var(--muted); }
.section h2 + p { margin-top: 1.1rem; }
.intro-copy { font-size: 1.1rem; }

.pathways {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(.8rem, 2.25vw, 1.5rem);
  margin-top: clamp(1.75rem, 4vw, 3rem);
}

.pathways article {
  padding: clamp(1.15rem, 2.5vw, 1.8rem);
  border: 1px solid var(--line);
  border-top: 3px solid #4b9d5e;
  border-radius: .75rem;
  background: #f8faf7;
}

.pathways h3 + p,
.contributions h3 + p { margin-top: .5rem; }

.upb-section {
  color: var(--white);
  background: var(--navy);
}

.upb-section p { color: #e2eae6; }

.text-link { display: inline-block; font-weight: 700; }
.upb-section .text-link { margin-top: 1.2rem; color: var(--lime); }

.contributions {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contributions li {
  padding-inline-start: 1.05rem;
  border-inline-start: 2px solid var(--lime);
}

.link-list { margin: 0; padding: 0; list-style: none; }
.link-list li { border-bottom: 1px solid var(--line); }

.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  min-height: 2.75rem;
  padding-block: .45rem;
  font-weight: 600;
}

.contact-section { background: var(--pale); }
.contact-grid { align-items: center; }

address {
  display: grid;
  gap: .22rem;
  padding: clamp(1.1rem, 3.5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--white);
  font-style: normal;
}

address strong { font-size: 1.3rem; line-height: 1.25; }
address > a { justify-self: start; overflow-wrap: anywhere; }
address .text-link { margin-top: .65rem; }

.site-footer {
  padding-block: 1.8rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .84rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(10rem, 14rem) 1fr;
  align-items: start;
  gap: 1rem 2rem;
}

.funding-details { color: var(--ink); font-weight: 700; }
.funding-details + p { margin-top: .4rem; }

@media (max-width: 56rem) {
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .facts-grid div:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .section-intro, .upb-grid, .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 1.25rem 2rem; }
}

@media (max-width: 42rem) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: flex-start;
    min-height: 0;
    gap: .1rem 1.5rem;
    padding-top: .65rem;
  }

  .site-header nav { width: 100%; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; aspect-ratio: 16 / 9; }
  .section-intro, .pathways, .upb-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .pathways { gap: .75rem; }
  .eu-emblem { width: 13rem; }
}

@media (max-width: 23rem) {
  .facts-grid { gap: .8rem; }
  .facts-grid div + div { padding-inline-start: .65rem; }
  .facts-grid div:nth-child(3) { padding-inline-start: 0; }
}
