:root {
  --paper: #f5eedf;
  --paper-deep: #ebe1cc;
  --ink: #1b2536;
  --muted: #5d5a52;
  --accent: #8a2a2b;
  --accent-strong: #6b1c1e;
  --rule: rgba(27, 37, 54, 0.22);
  --content-width: 1120px;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

img { display: block; max-width: 100%; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.site-header,
.hero,
.section,
.site-footer,
.closing-inner {
  width: min(calc(100% - 3rem), var(--content-width));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.005em;
}

.brand img { width: auto; height: 76px; object-fit: contain; }
.brand-line { white-space: nowrap; }

.site-nav {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.75rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.site-nav a { text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--accent); color: var(--accent); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
}

.menu-toggle-icon { display: inline-flex; flex-direction: column; gap: 0.2rem; }
.menu-toggle-icon span {
  display: block; width: 1rem; height: 2px; background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.75rem 1.6rem;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: background-color 180ms ease;
}

.button-primary { background: var(--accent); color: #fff8ee; }
.button-primary:hover { background: var(--accent-strong); }

.text-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.text-link:hover { color: var(--accent-strong); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 4rem;
  align-items: center;
  padding: 4.5rem 0 3.2rem;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 5.6vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 11ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.75rem;
  margin-top: 2.25rem;
}

.hero-media {
  justify-self: end;
  width: 100%;
  padding: 0.9rem 0.9rem 0.7rem;
  background: #fffdf8;
  box-shadow: 0 1px 2px rgba(40, 30, 10, 0.25), 0 10px 26px rgba(40, 30, 10, 0.16);
  transform: rotate(1.2deg);
}

.hero-media img { width: 100%; max-height: 36rem; object-fit: contain; filter: sepia(0.22) contrast(1.02); }

.hero-media figcaption,
.closing-media figcaption {
  margin-top: 0.7rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted);
  text-align: center;
}

.pull-quote {
  width: min(calc(100% - 3rem), 62rem);
  margin: 5rem auto 0;
  padding: 3.5rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}

.pull-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  line-height: 1.2;
  color: var(--accent);
}

.section { padding: 5rem 0 1rem; }

.story.section { padding-top: 4rem; }

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 2.5rem;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.story-copy { display: flex; flex-direction: column; gap: 1.5rem; max-width: 56rem; }

.story-copy p {
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.6;
}

.story-copy p:first-child::first-letter {
  float: left;
  font-size: 4.3rem;
  line-height: 0.85;
  padding: 0.35rem 0.6rem 0 0;
  color: var(--accent);
  font-weight: 500;
}

.story-panel { border-top: 3px solid var(--accent); padding-top: 1.1rem; }

.story-panel h3,
.criteria-card h3,
.status-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.principles { counter-reset: p; }
.principles li {
  counter-increment: p;
  display: grid;
  grid-template-columns: 2rem 1fr;
  padding: 0.85rem 0;
  border-top: 1px solid var(--rule);
}
.principles li::before {
  content: counter(p) ".";
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
}

.scholarship-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 5rem;
}

.criteria-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.5rem;
  border-top: 1px solid var(--rule);
}
.criteria-list li:last-child { border-bottom: 1px solid var(--rule); }
.criteria-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.4rem;
  width: 0.55rem; height: 1px;
  background: var(--accent);
}

.status-card {
  background: var(--paper-deep);
  padding: 2rem;
  border-left: 3px solid var(--accent);
  align-self: start;
}

.status-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.status-card p + a { display: inline-block; margin-top: 1rem; }

.winners-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem 2.5rem;
}

.winner-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--paper-deep);
  margin-bottom: 1rem;
}

.winner-card-body { display: flex; flex-direction: column; }

.winner-year {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.winner-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.15;
  margin: 0.2rem 0 0.15rem;
}

.winner-amount {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.winner-card-body p:last-child { font-size: 0.95rem; color: #3d4350; }

.closing {
  margin-top: 6rem;
  padding: 5rem 0;
  background: var(--ink);
  color: #f3ead8;
}

.closing-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 4rem;
  align-items: center;
}

.closing-copy h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.closing-copy p { max-width: 46ch; margin: 1.25rem 0 2rem; color: rgba(243, 234, 216, 0.82); }

.closing .button-primary { background: #f3ead8; color: var(--ink); }
.closing .button-primary:hover { background: #fff; }

.closing-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: sepia(0.15); }
.closing-media figcaption { color: rgba(243, 234, 216, 0.7); text-align: left; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.75rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer a { color: var(--accent); }

@media (max-width: 980px) {
  .hero, .story-grid, .scholarship-layout, .closing-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero { padding-top: 2.5rem; }
  .hero-media { order: -1; max-width: 34rem; justify-self: start; }
  .hero h1 { max-width: none; font-size: min(8.3vw, 3.6rem); }
  .hero h1 span { display: block; white-space: nowrap; }
  .winners-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-header { display: grid; }
  .menu-toggle { justify-self: end; }
}

@media (max-width: 700px) {
  .site-header, .hero, .section, .site-footer, .closing-inner, .pull-quote { width: min(calc(100% - 2rem), var(--content-width)); }
  .site-header { grid-template-columns: minmax(0, 1fr) auto; }
  .menu-toggle { display: inline-flex; }
  .brand { font-size: min(1.7rem, calc((100vw - 5.8rem) / 11.4)); gap: 0.65rem; }
  .brand img { height: 56px; }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    gap: 0;
    margin-top: 0.75rem;
    border-top: 1px solid var(--rule);
  }
  .site-header.menu-open .site-nav { display: flex; }
  .site-nav a { padding: 0.8rem 0; border-bottom: 1px solid var(--rule); }

  .site-header.menu-open .menu-toggle-icon span:nth-child(1) { transform: translateY(0.4rem) rotate(45deg); }
  .site-header.menu-open .menu-toggle-icon span:nth-child(2) { opacity: 0; }
  .site-header.menu-open .menu-toggle-icon span:nth-child(3) { transform: translateY(-0.4rem) rotate(-45deg); }

  .hero-media { transform: none; }
  .section { padding-top: 3.5rem; }
  .story.section { padding-top: 2.8rem; }
  .section-title { font-size: 1.7rem; }
  .pull-quote { padding: 2.5rem 0; }
  .story-copy p { font-size: 1.15rem; }
  .winners-grid { grid-template-columns: 1fr; }
  .winner-card img { aspect-ratio: 1 / 1; }
  .status-card { padding: 1.5rem; }
  .closing { padding: 3.5rem 0; margin-top: 4rem; }
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 10;
  padding: 0.7rem 1.1rem;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.closing a:focus-visible { outline-color: #f3ead8; }

@media (min-width: 981px) {
  .hero-media { margin-right: clamp(0px, calc(1200px - 100vw), 2.5rem); }
}
