:root {
  --bg: #FAF6F1;
  --ink: #22303F;
  --accent: #B2573D;
  --secondary: #5B7B9A;
  --muted: #65727F;
  --line: #E4DAD0;
  --card: #fff;
  --measure: 68ch;
  --serif: "Fraunces", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.65 var(--sans);
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); margin: 0 0 .4em; }

a { color: var(--accent); }
a:focus-visible, .brand:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 1.25rem; }

.skip-link {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--bg);
  padding: .6rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  align-items: center; justify-content: space-between;
  padding-block: 1rem;
}
.brand {
  display: flex; align-items: center; gap: .75rem;
  color: inherit; text-decoration: none;
}
.brand img { mix-blend-mode: multiply; }
.brand-name { font-family: var(--serif); font-size: .95rem; line-height: 1.25; }

.site-nav { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: .95rem; }
.site-nav a { color: var(--ink); text-decoration: none; padding-block: .25rem; }
.site-nav a:hover { color: var(--accent); text-decoration: underline; }

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 5rem) 1rem;
}
.hero::before {
  content: "";
  position: absolute;
  inset-inline-end: -1rem;
  top: 50%;
  translate: 0 -50%;
  width: min(280px, 38vw);
  aspect-ratio: 1;
  background: url("logo.png") right center / contain no-repeat;
  opacity: .08;
  pointer-events: none;
}
@media (max-width: 40rem) { .hero::before { display: none; } }

.lead { font-size: 1.2rem; color: var(--muted); max-width: 46ch; }

.site-footer {
  margin-top: 4rem; padding-block: 2rem;
  border-top: 1px solid var(--line);
  font-size: .95rem; color: var(--muted);
}
.footer-name { font-family: var(--serif); color: var(--ink); margin: 0 0 .25rem; }
.site-footer p { margin: 0 0 .25rem; }

.section { padding-block: 2.25rem; border-top: 1px solid var(--line); }
.hero + .section { border-top: 0; }
.section p { margin: 0 0 1rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }

.callout {
  background: var(--card);
  border-left: 3px solid var(--accent);
  padding: .9rem 1.1rem;
  border-radius: 0 6px 6px 0;
}

.placeholder { color: var(--muted); font-style: italic; }

.people { margin: 0 0 1rem; padding: 0; list-style: none; }
.people li { padding: .35rem 0; border-bottom: 1px solid var(--line); }
.people li:last-child { border-bottom: 0; }

.honorary { color: var(--muted); }

.grand-total { font-size: 1.05rem; }
.grand-total strong { color: var(--accent); }

.year-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.year-nav a {
  font-family: var(--serif);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .3rem .85rem;
  background: var(--card);
}
.year-nav a:hover { border-color: var(--accent); }

.year { padding-block: 2rem; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.year-head {
  display: flex; flex-wrap: wrap; gap: .25rem 1rem;
  align-items: baseline; justify-content: space-between;
  margin-bottom: 1rem;
}
.year-head h2 { color: var(--secondary); margin: 0; }
.year-total { margin: 0; color: var(--muted); font-size: .95rem; }
.year-total strong { color: var(--ink); }

.grants { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.grant {
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .15rem 1.5rem;
}
.grant:last-child { border-bottom: 0; }
.grant-person { grid-column: 1; margin: 0; font-weight: 600; }
.grant-degree { color: var(--muted); font-weight: 400; font-size: .9rem; }
.grant-degree::before { content: ", "; }
.grant-topic { grid-column: 1; margin: 0; color: var(--muted); }
.grant-amount {
  grid-column: 2; grid-row: 1 / span 2;
  margin: 0; align-self: start;
  font-family: var(--serif); font-variant-numeric: tabular-nums;
  color: var(--accent); white-space: nowrap;
}

@media (max-width: 30rem) {
  .grant { grid-template-columns: 1fr; }
  .grant-amount { grid-column: 1; grid-row: auto; margin-top: .25rem; }
}

.contact { font-style: normal; margin: 0 0 .5rem; line-height: 1.7; }
.contact-meta { color: var(--muted); margin: 0 0 1rem; }
