:root {
  --blue: #0f3f8f;
  --blue-deep: #0a2a62;
  --blue-light: #2a6fd6;
  --gold: #e9a63a;
  --ink: #1b2233;
  --muted: #5d6779;
  --bg: #fbfaf7;
  --card: #ffffff;
  --line: #e6e2d9;
  --heading: "Poppins", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}
a { color: var(--blue); }
a:hover { color: var(--blue-light); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--heading); line-height: 1.2; margin: 0; }
.wrap { max-width: 900px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); padding: 8px 12px; }
.skip:focus { left: 8px; z-index: 100; }

/* header */
.top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.mark {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-light), var(--blue-deep));
  color: #fff; font-family: var(--heading); font-weight: 700; font-size: 15px;
  display: grid; place-items: center; box-shadow: inset 0 0 0 2px rgba(255,255,255,.25), 0 0 0 2px var(--gold);
}
.name { font-family: var(--heading); font-weight: 600; font-size: 16px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.name small { display: block; font-family: var(--body); font-weight: 400; font-size: 12px; color: var(--muted); }
.top nav { display: flex; gap: 4px; }
.top nav a {
  text-decoration: none; font-family: var(--heading); font-weight: 500; font-size: 15px;
  padding: 8px 14px; border-radius: 999px; color: var(--ink);
}
.top nav a:hover { background: var(--bg); }
.top nav a[aria-current="page"] { background: var(--blue); color: #fff; }

/* news banner */
.banner {
  margin: 24px 0 8px;
  padding: 36px 28px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(120deg, var(--blue-deep) 0%, var(--blue) 55%, var(--blue-light) 100%);
  position: relative; overflow: hidden;
}
.banner::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  border-radius: 50%; background: var(--gold); opacity: .18;
}
.banner h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 700; }
.banner p { margin: 8px 0 0; font-size: 17px; opacity: .92; max-width: 40em; }

/* year navigation */
.years { position: sticky; top: var(--header-h, 64px); z-index: 10; background: var(--bg); padding: 12px 0; }
.years ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.years a {
  display: inline-block; padding: 4px 12px; border-radius: 999px; text-decoration: none;
  font-family: var(--heading); font-weight: 500; font-size: 14px;
  color: var(--blue); border: 1px solid var(--line); background: var(--card);
}
.years a:hover { border-color: var(--blue); }

/* feed */
.feed { padding-bottom: 48px; }
.year {
  font-size: 34px; font-weight: 700; color: var(--blue-deep);
  margin: 32px 0 4px; padding-top: 4px; scroll-margin-top: calc(var(--header-h, 64px) + 56px);
}
.year::after { content: ""; display: block; width: 48px; height: 4px; background: var(--gold); border-radius: 2px; margin-top: 6px; }
.event {
  display: grid; grid-template-columns: 88px 1fr; gap: 20px;
  padding: 26px 0; border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h, 64px) + 56px);
}
.event:first-of-type { border-top: 0; }
.event:target .body { box-shadow: -12px 0 0 -8px var(--gold); padding-left: 0; }
.when time {
  display: inline-block; font-family: var(--heading); font-weight: 600; font-size: 15px;
  color: var(--blue); text-transform: uppercase; letter-spacing: .04em; padding-top: 4px;
}
.body h3 { font-size: 20px; font-weight: 600; }
.body h3 a { color: var(--ink); text-decoration: none; }
.body h3 a:hover { color: var(--blue); }
.body p { margin: 8px 0 0; color: var(--ink); }
.body p:last-of-type { margin-bottom: 0; }
.photos {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-top: 14px; max-width: 600px;
}
.ph {
  position: relative; display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden;
  background: var(--line);
}
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.ph:hover img { transform: scale(1.04); }
.ph.hidden { display: none; }
.more {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(10, 42, 98, .55); color: #fff;
  font-family: var(--heading); font-weight: 600; font-size: 22px;
}

/* about */
.hero {
  margin: 24px 0 32px; border-radius: 16px; overflow: hidden;
  min-height: 340px; display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
  position: relative; color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,42,98,.88) 0%, rgba(10,42,98,.35) 55%, rgba(10,42,98,.05) 100%);
}
.hero-text { position: relative; padding: 28px; }
.hero h1 { font-size: clamp(26px, 4.5vw, 38px); font-weight: 700; max-width: 18em; }
.hero p { margin: 6px 0 0; font-family: var(--heading); font-weight: 500; color: var(--gold); font-size: 18px; }
.prose { max-width: 700px; padding-bottom: 48px; }
.prose h2 { font-size: 24px; font-weight: 600; color: var(--blue-deep); margin: 36px 0 10px; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--gold); }
.prose figure { margin: 32px 0 0; max-width: 420px; }
.prose figure img { border-radius: 12px; box-shadow: 0 10px 30px rgba(10,42,98,.15); }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* footer */
footer { background: var(--blue-deep); color: #dfe6f5; padding: 36px 0; margin-top: 24px; }
footer p { margin: 4px 0; }
footer a { color: #fff; }
.foot-name { font-family: var(--heading); font-weight: 600; font-size: 18px; color: #fff; }
.fine { font-size: 13px; opacity: .7; margin-top: 16px; }

/* lightbox */
.lb {
  position: fixed; inset: 0; z-index: 50; background: rgba(8, 14, 30, .94);
  display: grid; grid-template-columns: 64px 1fr 64px; align-items: center;
}
.lb[hidden] { display: none; }
.lb figure { margin: 0; grid-column: 2; text-align: center; }
.lb img { margin: 0 auto; max-width: 100%; max-height: 84vh; object-fit: contain; border-radius: 6px; }
.lb figcaption { color: #fff; margin-top: 12px; font-size: 15px; }
.lb-n { opacity: .6; margin-left: 8px; }
.lb button {
  background: none; border: 0; color: #fff; cursor: pointer; font-size: 44px; line-height: 1;
  width: 64px; height: 64px; border-radius: 50%; opacity: .8;
}
.lb button:hover { opacity: 1; background: rgba(255,255,255,.12); }
.lb-close { position: absolute; top: 8px; right: 8px; font-size: 36px; }
.lb-prev { grid-column: 1; justify-self: center; }
.lb-next { grid-column: 3; justify-self: center; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .top .wrap { min-height: 58px; }
  .name { font-size: 13px; white-space: normal; }
  .name small { display: none; }
  .banner { padding: 26px 20px; margin-top: 16px; }
  .year { font-size: 28px; }
  .event { grid-template-columns: 1fr; gap: 4px; padding: 22px 0; }
  .when time { padding-top: 0; font-size: 13px; }
  .photos { max-width: none; gap: 6px; }
  .hero { min-height: 260px; margin-top: 16px; }
  .hero-text { padding: 20px; }
  .lb { grid-template-columns: 44px 1fr 44px; }
  .lb button { width: 44px; height: 44px; font-size: 32px; }
}
