/* Larue County Class of 2006 — shared styles
   One idea runs through the site: the logo's varsity-letter look,
   solid blue fill with a white outline. Used for the home headline
   and for every photo frame. Everything else stays quiet. */

:root {
  --blue: #1d3fd1;
  --navy: #101d3a;
  --deep: #0b1530;
  --ice: #eef1fb;
  --soft: #9fb1e8;
  --rule: #2a3d7a;
  --display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy);
  color: #fff;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: var(--deep);
  border-bottom: 3px solid var(--blue);
}
.nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 8px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 38px; width: auto; }
.brand span { font: 700 1.3rem/1 var(--display); letter-spacing: 0.02em; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a.link {
  display: block; padding: 10px 12px;
  color: #c7d2f4; text-decoration: none;
  font-weight: 600; font-size: 0.98rem;
  border-bottom: 3px solid transparent;
}
.nav a.link:hover { color: #fff; }
.nav a.link[aria-current="page"] { color: #fff; border-bottom-color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 26px;
  font: 600 1.02rem var(--body); text-decoration: none; cursor: pointer;
  color: var(--navy); background: #fff; border: 3px solid #fff;
}
.btn:hover { background: #dbe2f7; border-color: #dbe2f7; }
.btn.ghost { background: transparent; color: #fff; }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

/* ---------- Home: hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 64px 0 80px;
  background:
    linear-gradient(115deg, transparent 0 55%, rgba(29, 63, 209, 0.24) 55% 100%),
    var(--navy);
}
.hero .wrap {
  display: grid; grid-template-columns: 1.3fr 0.7fr;
  gap: 40px; align-items: center;
}
.hero .school { margin: 0 0 6px; color: var(--soft); font-size: 1.15rem; font-weight: 600; }
.hero h1 {
  margin: 0;
  font: 800 clamp(4.4rem, 14vw, 9.6rem)/0.84 var(--display);
  text-transform: uppercase;
  color: var(--blue);
  -webkit-text-stroke: 0.05em #fff;
  paint-order: stroke fill;
  animation: stamp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hero .tagline { margin: 22px 0 30px; font-size: 1.35rem; color: #dbe2f7; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .crest { width: clamp(150px, 28vw, 300px); justify-self: center; }

@keyframes stamp {
  from { opacity: 0; transform: scale(1.06); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Home: photo strip ---------- */
.strip-section { padding: 64px 0 24px; }
.strip-section h2, .rows-section h2.visible {
  margin: 0; font: 800 clamp(2rem, 5vw, 2.8rem)/1 var(--display); text-transform: uppercase;
}
.strip-section .when { margin: 8px 0 28px; color: var(--soft); }
.strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; list-style: none; margin: 0; padding: 0;
}
.strip li:nth-child(1) { --r: -1.6deg; }
.strip li:nth-child(2) { --r: 1.1deg; }
.strip li:nth-child(3) { --r: -0.8deg; }
.strip li:nth-child(4) { --r: 1.7deg; }
.strip a {
  display: block; padding: 6px; background: #fff;
  transform: rotate(var(--r));
  transition: transform 0.15s ease;
}
.strip a:hover, .strip a:focus-visible { transform: rotate(0) scale(1.03); }
.strip img, .strip .ph { width: 100%; aspect-ratio: 1; object-fit: cover; }
.strip-section .more { margin-top: 26px; }
.feature { display: block; width: min(100%, 920px); padding: 6px; background: #fff; transform: rotate(-0.6deg); transition: transform 0.15s ease; }
.feature:hover, .feature:focus-visible { transform: rotate(0); }
.feature img, .feature .ph { width: 100%; height: auto; min-height: 220px; }
.textlink {
  font-weight: 600; text-decoration: underline;
  text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.textlink:hover { color: var(--soft); }

/* ---------- Home: ruled rows ---------- */
.rows-section { padding: 56px 0 72px; }
.row {
  display: grid; grid-template-columns: minmax(200px, 1fr) 2fr auto;
  gap: 24px; align-items: baseline;
  padding: 30px 12px; text-decoration: none;
  border-top: 1px solid var(--rule);
  border-left: 6px solid transparent;
}
.rows-section .row:last-child { border-bottom: 1px solid var(--rule); }
.row:hover, .row:focus-visible { border-left-color: var(--blue); background: rgba(29, 63, 209, 0.14); }
.row h3 { margin: 0; font: 800 clamp(2rem, 4.4vw, 2.8rem)/1 var(--display); text-transform: uppercase; }
.row p { margin: 0; color: #dbe2f7; max-width: 46ch; }
.row .go { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; white-space: nowrap; }

/* ---------- Home: next reunion ---------- */
.next { background: var(--ice); color: var(--navy); padding: 48px 0; }
.next h2 { margin: 0 0 8px; font: 800 clamp(1.9rem, 4.6vw, 2.6rem)/1 var(--display); text-transform: uppercase; }
.next p { margin: 0; max-width: 56ch; }

/* ---------- Footer ---------- */
.foot { background: var(--deep); color: var(--soft); padding: 32px 0 40px; font-size: 0.95rem; }

/* ---------- Inner pages ---------- */
.page-head {
  padding: 56px 0 28px;
  background: radial-gradient(ellipse 70% 100% at 50% 0%, #1a2e66 0%, transparent 70%);
}
.page-head h1 { margin: 0; font: 800 clamp(2.8rem, 8vw, 4.8rem)/0.94 var(--display); text-transform: uppercase; }
.page-head .rule { width: 64px; height: 5px; background: var(--blue); margin: 16px 0 18px; }
.page-head .lede { margin: 0; max-width: 56ch; color: #dbe2f7; font-size: 1.15rem; }

/* Missing-photo placeholder (shows until the real file is uploaded) */
.ph {
  display: grid; place-items: center; text-align: center;
  min-height: 140px; padding: 12px;
  background: #16275a; color: var(--soft); font-size: 0.9rem; text-decoration: none;
}

/* ---------- Gallery ---------- */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.jump a {
  padding: 8px 16px; text-decoration: none; font-weight: 600;
  border: 2px solid #fff;
}
.jump a:hover { background: rgba(255, 255, 255, 0.14); }

.reunion { padding: 36px 0 56px; scroll-margin-top: 70px; }
.reunion-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 16px; margin-bottom: 26px;
}
.reunion-head h2 { margin: 0; font: 800 clamp(2rem, 5vw, 2.8rem)/1 var(--display); text-transform: uppercase; }
.reunion-head p { margin: 6px 0 0; color: var(--soft); }

.masonry { columns: 3 250px; column-gap: 16px; }
.shot {
  display: block; width: 100%; margin: 0 0 16px; padding: 5px;
  background: #fff; border: 0; cursor: zoom-in; break-inside: avoid;
}
.shot img { width: 100%; height: auto; }
.shot:hover, .shot:focus-visible { outline: 4px solid var(--blue); outline-offset: 2px; }

/* ---------- Lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  background: rgba(5, 10, 25, 0.96);
}
.lb figure { margin: 0; text-align: center; }
.lb img {
  display: inline-block; max-width: min(92vw, 1400px); max-height: 76vh;
  width: auto; height: auto; object-fit: contain;
  border: 5px solid #fff; background: #0b1530;
}
.lb figcaption { margin-top: 14px; color: #c7d2f4; }
.lb button { font-family: var(--body); cursor: pointer; }
.lb .ctl {
  position: absolute; display: grid; place-items: center;
  width: 52px; height: 52px; padding: 0;
  color: #fff; background: rgba(16, 29, 58, 0.85); border: 3px solid #fff;
}
.lb .ctl:hover { background: var(--blue); }
.lb .ctl svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: square; }
.lb .close { top: 14px; right: 14px; }
.lb .prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb .next-btn { right: 14px; top: 50%; transform: translateY(-50%); }
.lb .bar {
  position: absolute; left: 0; right: 0; bottom: 16px;
  display: flex; align-items: center; justify-content: center; gap: 18px;
  color: #c7d2f4;
}
.lb .play { padding: 9px 18px; font-weight: 600; color: #fff; background: transparent; border: 2px solid #fff; }
.lb .play:hover { background: rgba(255, 255, 255, 0.14); }

/* ---------- Memorial ---------- */
.memorial {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.memorial figure { margin: 0; }
.memorial .frame { padding: 6px; background: #fff; }
.memorial .frame img, .memorial .frame .ph {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%;
}
.memorial figcaption { margin-top: 14px; font: 800 1.7rem/1.05 var(--display); }
.memorial .years { display: block; margin-top: 6px; font: 600 1rem/1.3 var(--body); color: var(--soft); }
.memorial-section { padding: 36px 0 88px; }
.memorial-note { margin: 44px 0 0; max-width: 56ch; color: var(--soft); }

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .strip { grid-template-columns: repeat(2, 1fr); }
  .memorial { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .row { grid-template-columns: 1fr; gap: 8px; padding: 24px 12px; }
}
@media (max-width: 700px) {
  .hero { padding: 40px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .hero .crest { order: -1; justify-self: start; width: 130px; }
}
@media (max-width: 620px) {
  .brand span { display: none; }
  .nav a.link { padding: 10px 8px; font-size: 0.92rem; }
  .lb img { max-height: 68vh; }
  .lb .ctl { width: 44px; height: 44px; }
  .lb .bar { bottom: 12px; }
}

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