:root {
  --bg: #FFFFFF;
  --bg-soft: #F7F4ED;
  --bg-blue: #EAF4FB;
  --bg-warm: #FBF6EC;
  --ink: #16243A;
  --ink-soft: #506073;
  --ink-mute: #8995A7;
  --blue: #4FA8DE;
  --blue-deep: #2D7FBB;
  --blue-light: #9BCBEB;
  --gold: #C5A572;
  --gold-warm: #D4B98A;
  --line: rgba(22, 36, 58, 0.08);
  --shadow-sm: 0 1px 2px rgba(22, 36, 58, 0.04), 0 1px 3px rgba(22, 36, 58, 0.06);
  --shadow-md: 0 2px 8px rgba(22, 36, 58, 0.06), 0 8px 24px rgba(22, 36, 58, 0.08);
  --shadow-lg: 0 6px 14px rgba(22, 36, 58, 0.05), 0 18px 36px rgba(22, 36, 58, 0.09);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* HEADER */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.mark {
  min-width: 0; overflow: hidden;
  font-size: 1.0625rem; font-weight: 700;
  letter-spacing: -0.02em; color: var(--ink);
  display: flex; align-items: center; gap: 0.6rem;
}
.nav { display: flex; gap: 0.5rem; align-items: center; }
.nav a {
  font-size: 0.9375rem; color: var(--ink-soft); font-weight: 500;
  padding: 0.6rem 1rem; border-radius: 999px; transition: all 0.2s ease;
}
.nav a:hover { background: var(--bg-soft); color: var(--ink); }
.nav a.active { color: var(--ink); background: var(--bg-soft); }
.nav .nominate { background: var(--ink); color: var(--bg); padding: 0.6rem 1.25rem; }
.nav .nominate:hover { background: var(--blue-deep); color: white; }
.nav .donate { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); padding: 0.6rem 1.25rem; }
.nav .donate:hover { background: var(--bg-soft); color: var(--ink); }
@media (max-width: 720px) { .nav .hide-mobile { display: none; } }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font); font-size: 0.9375rem; font-weight: 600;
  padding: 0.875rem 1.5rem; border-radius: 999px; border: 0;
  cursor: pointer; transition: all 0.2s ease;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--bg-soft); color: var(--ink); }
.btn-secondary:hover { background: var(--bg-blue); }

/* FOOTER */
.footer {
  background: var(--ink); color: var(--bg);
  padding: clamp(3rem, 5vw, 4rem) clamp(1.25rem, 4vw, 2.5rem) 2rem;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; } }
.footer h4 {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--gold-warm); text-transform: uppercase; margin-bottom: 1rem;
}
.footer-song {
  font-size: 1rem; line-height: 1.6; font-style: italic;
  color: rgba(255, 255, 255, 0.9); max-width: 32ch; font-weight: 400;
}
.footer-song .attr {
  display: block; font-style: normal; font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5); margin-top: 0.875rem;
}
.footer-col { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-col a { font-size: 0.9375rem; color: rgba(255, 255, 255, 0.7); transition: color 0.15s ease; }
.footer-col a:hover { color: var(--gold-warm); }
.footer-bottom {
  max-width: 1280px; margin: 0 auto; padding-top: 2rem;
  display: flex; justify-content: space-between;
  font-size: 0.8125rem; color: rgba(255, 255, 255, 0.5);
}
@media (max-width: 600px) { .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; } }

/* PHOTO PLACEHOLDER GRADIENTS (cycled by index) */
.ph-g0 { background: linear-gradient(160deg, var(--blue-light) 0%, var(--bg-blue) 60%, var(--bg-soft) 100%); }
.ph-g1 { background: linear-gradient(160deg, var(--gold-warm) 0%, var(--bg-warm) 100%); }
.ph-g2 { background: linear-gradient(160deg, var(--bg-soft) 0%, var(--blue-light) 100%); }
.ph-g3 { background: linear-gradient(160deg, var(--bg-warm) 0%, var(--gold-warm) 100%); }

/* card thumbnail images */
.icard .ph.has-img { color: transparent; }
.icard .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.icard .ph .year-badge, .icard .ph .cat-badge { z-index: 2; }
/* hover: cross-fade young -> induction */
.icard .ph .ph-hover { opacity: 0; transition: opacity 0.45s ease; z-index: 1; }
.icard .ph .ph-front { z-index: 0; }
.icard:hover .ph.has-hover .ph-hover { opacity: 1; }

/* --- Logo -------------------------------------------------------------- */
.mark-logo {
  width: 34px; height: 34px;
  object-fit: contain; display: block; flex: none;
}

/* --- Icons ------------------------------------------------------------- */
/* One inline SVG sprite per page; every icon inherits the text colour and
   scales with font-size, so there is nothing to load and nothing to restyle. */
.sprite { display: none; }
.ic {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -0.135em;
}
.ic-fill { fill: currentColor; stroke: none; }

/* --- Phone navigation --------------------------------------------------- */
.header-inner { position: relative; }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg); color: var(--ink);
  font-size: 1.15rem; cursor: pointer;
}
.nav-toggle .ic-close { display: none; }
.nav-toggle[aria-expanded="true"] .ic-open { display: none; }
.nav-toggle[aria-expanded="true"] .ic-close { display: inline-block; }
.nav-menu {
  display: none;
  position: absolute; top: calc(100% + 0.5rem); right: clamp(1.25rem, 4vw, 2.5rem);
  min-width: 200px; padding: 0.4rem;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  flex-direction: column; gap: 0.15rem;
}
.nav-menu.is-open { display: flex; }
.nav-menu a {
  padding: 0.7rem 0.9rem; border-radius: var(--r-sm);
  font-size: 0.9375rem; font-weight: 500; color: var(--ink-soft);
}
.nav-menu a:hover, .nav-menu a:focus-visible { background: var(--bg-soft); color: var(--ink); }
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; width: 36px; height: 36px; }
  .nav { gap: 0.3rem; }
  .nav .nominate { font-size: 0.875rem; padding: 0.5rem 0.9rem; }
  .mark { font-size: 0.9375rem; gap: 0.5rem; white-space: nowrap; }
  .mark-text { overflow: hidden; text-overflow: ellipsis; }
  .mark-logo { width: 30px; height: 30px; }
}
@media (max-width: 420px) { .mark-text { display: none; } }
@media (min-width: 721px) { .nav-menu { display: none !important; } }
