:root {
  color-scheme: dark;
  --bg: #070709;
  --surface: #111115;
  --surface-2: #18181e;
  --ink: #f6f5f2;
  --muted: #aaa7b1;
  --line: #333039;
  --pink: #ff2da6;
  --pink-soft: rgba(255, 45, 166, .12);
  --cyan: #65d5dc;
  --acid: #d8f04a;
  --font-sans: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input { font: inherit; }

.archive-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 64px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 7, 9, .9);
  backdrop-filter: blur(16px);
}
.archive-brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.archive-brand img { width: 150px; height: auto; display: block; }
.archive-brand span { color: var(--pink); font: 700 11px/1 var(--font-mono); letter-spacing: .12em; }
.archive-nav { margin-left: auto; display: flex; gap: 24px; align-items: center; }
.archive-nav a { color: var(--muted); text-decoration: none; font-size: 13px; }
.archive-nav a:hover, .archive-nav a[aria-current="page"] { color: var(--pink); }

.hero {
  min-height: min(760px, calc(100vh - 64px));
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.honors-page .hero { min-height: 520px; max-height: 620px; align-items: center; }
.honors-page .hero-copy { padding: 72px 0 54px; }
.honors-page .hero h1 { max-width: 820px; font-size: clamp(44px, 6.5vw, 82px); }
.honors-page .hero-lead { max-width: 760px; margin-top: 20px; font-size: clamp(16px, 1.7vw, 20px); }
.honors-page .hero-actions { margin-top: 26px; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,7,9,.16) 0%, rgba(7,7,9,.54) 55%, #070709 100%);
}
.hero-copy { position: relative; z-index: 2; width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 110px 0 64px; }
.kicker { margin: 0 0 18px; color: var(--pink); font: 700 12px/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { max-width: 980px; margin: 0; font-size: clamp(48px, 8vw, 108px); line-height: .98; letter-spacing: 0; font-weight: 900; text-wrap: balance; }
.hero-lead { max-width: 700px; margin: 28px 0 0; color: #d5d2d9; font-size: clamp(17px, 2.2vw, 24px); line-height: 1.65; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  min-height: 46px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pink);
  background: var(--pink);
  color: #08080a;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.button.secondary { background: rgba(7,7,9,.5); color: var(--ink); border-color: rgba(255,255,255,.38); }
.button:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 #8b1b61; }

.section { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 92px 0; }
.section-head { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; margin-bottom: 44px; }
.section-index { color: var(--pink); font: 700 12px/1.4 var(--font-mono); letter-spacing: .14em; }
.section-title { margin: 0; font-size: clamp(34px, 5vw, 66px); line-height: 1.05; letter-spacing: 0; }
.section-intro { max-width: 700px; margin: 18px 0 0; color: var(--muted); font-size: 17px; line-height: 1.9; }
.prose { max-width: 820px; margin-left: auto; }
.prose p { margin: 0 0 24px; color: #d4d1d8; font-size: clamp(17px, 1.8vw, 21px); line-height: 2; }
.prose .statement { color: var(--ink); font-size: clamp(26px, 4vw, 48px); font-weight: 800; line-height: 1.35; }
.prose strong { color: var(--pink); }

.stats-band { border-block: 1px solid var(--line); background: var(--surface); }
.stats { width: min(1180px, calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { min-height: 142px; padding: 28px; border-right: 1px solid var(--line); }
.stat:first-child { border-left: 1px solid var(--line); }
.stat-value { display: block; color: var(--ink); font: 800 clamp(42px, 5vw, 58px)/1 var(--font-mono); }
.stat-label { display: block; margin-top: 15px; color: var(--muted); font-size: 14px; }

.honors-page #archive { padding-top: 70px; }
.tools { display: grid; grid-template-columns: minmax(260px, .85fr) minmax(420px, 1.15fr); gap: 18px; margin-bottom: 28px; align-items: start; }
.search {
  width: 100%; min-height: 52px; padding: 0 18px;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 0;
}
.search:focus { outline: 2px solid var(--pink); outline-offset: 2px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-panel { display: grid; gap: 10px; }
.filter-row { display: grid; grid-template-columns: 42px 1fr; gap: 10px; align-items: center; }
.filter-label { color: var(--muted); font: 11px/1 var(--font-mono); letter-spacing: .08em; }
.filter {
  min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 0;
  color: var(--muted); background: transparent; cursor: pointer;
}
.filter:hover, .filter.is-active { color: #070709; border-color: var(--pink); background: var(--pink); }
.results-meta { margin: 0 0 18px; color: var(--muted); font: 12px/1.6 var(--font-mono); }

.name-wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.name-item {
  min-height: 168px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface);
  text-decoration: none; transition: background .16s, color .16s;
}
.name-item--volunteer { box-shadow: inset 0 3px 0 var(--pink); }
.name-item--award { box-shadow: inset 0 3px 0 var(--cyan); }
.name-item:hover { background: var(--pink); color: #070709; }
.record-tag { width: max-content; max-width: 100%; padding: 4px 7px; border: 1px solid var(--line); color: var(--muted); font: 10px/1.2 var(--font-mono); letter-spacing: .04em; }
.name-item--award .record-tag { color: var(--cyan); }
.name-item--volunteer .record-tag { color: var(--pink); }
.name-item:hover .record-tag { color: #070709; border-color: rgba(7,7,9,.35); }
.name-main { font-size: 21px; font-weight: 800; overflow-wrap: anywhere; }
.name-meta { color: var(--muted); font: 12px/1.5 var(--font-mono); }
.name-item:hover .name-meta { color: #321027; }
.name-code { margin-top: 9px; color: var(--pink); font: 11px/1.4 var(--font-mono); letter-spacing: .06em; }
.name-item:hover .name-code { color: #070709; }
.empty { grid-column: 1 / -1; padding: 60px 24px; color: var(--muted); text-align: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.load-more-wrap { display: flex; justify-content: center; padding-top: 28px; }
.load-more[hidden] { display: none; }

.quote-band { padding: 94px 24px; text-align: center; background: var(--pink); color: #070709; }
.quote-band blockquote { max-width: 950px; margin: 0 auto; font-size: clamp(30px, 5vw, 68px); line-height: 1.25; font-weight: 900; }
.quote-band p { margin: 22px 0 0; font: 700 12px/1.5 var(--font-mono); letter-spacing: .12em; }

.archive-catalog { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.catalog-entry { min-height: 250px; padding: 30px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; }
.catalog-entry .event-code { color: var(--pink); font: 700 12px/1 var(--font-mono); letter-spacing: .12em; }
.catalog-entry h3 { margin: 24px 0 10px; font-size: 30px; }
.catalog-entry p { margin: 0; color: var(--muted); line-height: 1.7; }
.catalog-entry .catalog-link { margin-top: auto; padding-top: 28px; color: var(--cyan); text-decoration: none; font-weight: 700; }

.archive-footer { border-top: 1px solid var(--line); padding: 34px 24px 48px; color: var(--muted); font-size: 12px; text-align: center; }
.loading { padding: 56px 24px; color: var(--muted); border: 1px solid var(--line); font: 13px/1.7 var(--font-mono); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .archive-header { padding: 0 18px; gap: 15px; }
  .archive-nav { gap: 14px; overflow-x: auto; }
  .archive-nav a { white-space: nowrap; }
  .section-head { grid-template-columns: 1fr; gap: 12px; }
  .tools { grid-template-columns: 1fr; }
  .name-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .archive-header { align-items: center; flex-wrap: wrap; padding-block: 12px; }
  .archive-brand img { width: 126px; }
  .archive-nav { width: 100%; margin-left: 0; padding-bottom: 2px; }
  .hero { min-height: 690px; }
  .honors-page .hero { min-height: 520px; max-height: none; }
  .hero-copy, .section, .stats { width: min(100% - 32px, 1180px); }
  .hero-copy { padding-bottom: 42px; }
  .section { padding: 66px 0; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat:first-child { min-height: 132px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .filter-row { grid-template-columns: 1fr; gap: 7px; }
  .name-wall, .archive-catalog { grid-template-columns: 1fr; }
  .name-item { min-height: 112px; }
}

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