:root {
  --parchment: #f4ecd8;
  --parchment-dk: #e7dcc0;
  --ink: #20180f;
  --ink-soft: #4a3d2c;
  --navy: #1c2b3a;
  --navy-dk: #121d28;
  --brass: #b08d39;
  --brass-lt: #d8b25a;
  --crimson: #7a2727;
  --rule: rgba(32, 24, 15, 0.22);
  --shadow: 0 14px 40px rgba(18, 12, 4, 0.28);
  --serif: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --display: "Playfair Display", "Iowan Old Style", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--parchment);
  background-image:
    radial-gradient(circle at 20% 10%, rgba(176,141,57,0.08), transparent 45%),
    radial-gradient(circle at 80% 90%, rgba(28,43,58,0.07), transparent 40%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--crimson); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-dk);
  border-bottom: 3px solid var(--brass);
  color: var(--parchment);
  box-shadow: 0 2px 18px rgba(0,0,0,0.35);
}
.topbar .wrap { display: flex; align-items: center; gap: 18px; height: 60px; }
.topbar .crest {
  font-family: var(--display); font-weight: 800; letter-spacing: 0.06em;
  font-size: 18px; color: var(--brass-lt); white-space: nowrap;
}
.topbar nav { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }
.topbar nav a {
  color: var(--parchment); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 12px; font-family: var(--serif); opacity: 0.82;
}
.topbar nav a:hover { color: var(--brass-lt); opacity: 1; text-decoration: none; }

/* hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none; margin-left: auto;
  width: 46px; height: 46px; padding: 11px;
  flex-direction: column; justify-content: space-between;
  background: transparent; border: 1px solid var(--brass); border-radius: 4px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block; width: 100%; height: 2px; background: var(--brass-lt);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open .nav-toggle-bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .nav-toggle-bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 900px) {
  .topbar .wrap { flex-wrap: wrap; height: auto; min-height: 60px; padding-top: 7px; padding-bottom: 7px; }
  .nav-toggle { display: flex; }
  .topbar nav {
    display: none; margin-left: 0; flex-basis: 100%; flex-direction: column;
    gap: 0; padding-bottom: 6px;
  }
  .topbar nav.open { display: flex; }
  .topbar nav a {
    padding: 13px 4px; font-size: 14px; opacity: 0.92;
    border-top: 1px solid rgba(216,178,90,0.18);
  }
  .topbar nav a.donate { align-self: flex-start; margin: 10px 0 4px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(18,29,40,0.78), rgba(18,29,40,0.92)),
    url("assets/img/mt-winona.webp") center 60% / cover no-repeat;
  color: var(--parchment);
  text-align: center;
  padding: 96px 24px 104px;
  border-bottom: 4px double var(--brass);
}
.hero .eyebrow {
  text-transform: uppercase; letter-spacing: 0.42em; font-size: 13px;
  color: var(--brass-lt); margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(40px, 7vw, 86px); line-height: 1.02;
  margin: 0 0 10px; text-shadow: 0 4px 24px rgba(0,0,0,0.6);
}
.hero h1 .small { display: block; font-size: 0.42em; letter-spacing: 0.08em; font-weight: 600; color: var(--brass-lt); }
.hero .dates { font-style: italic; font-size: 21px; opacity: 0.9; margin-bottom: 26px; }
.hero .motto {
  font-family: var(--display); font-style: italic; font-size: clamp(20px, 3vw, 30px);
  color: #fff; max-width: 760px; margin: 0 auto;
}
.hero .motto::before, .hero .motto::after { content: "\201C"; color: var(--brass-lt); }
.hero .motto::after { content: "\201D"; }
.medals { margin-top: 30px; font-size: 30px; letter-spacing: 8px; }

/* ---------- The Cause (real-world CTA) ---------- */
.cause {
  background:
    linear-gradient(180deg, var(--navy), var(--navy-dk));
  color: var(--parchment);
  border-top: 4px solid var(--brass);
  border-bottom: 4px solid var(--brass);
  padding: 64px 0;
}
.cause .wrap { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: center; }
@media (max-width: 760px){ .cause .wrap { grid-template-columns: 1fr; gap: 28px; text-align: center; } }
.cause .logo-col { text-align: center; }
.cause .logo-col img { width: 100%; max-width: 260px; height: auto; }
.cause .logo-col .tag {
  margin-top: 14px; font-style: italic; font-size: 15px; color: var(--brass-lt);
}
.cause h2 {
  font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3.6vw, 38px);
  margin: 0 0 14px; color: #fff; line-height: 1.1;
}
.cause p { font-size: 18px; color: #e7dcc0; margin: 0 0 16px; max-width: 640px; }
@media (max-width: 760px){ .cause p { margin-left: auto; margin-right: auto; } }
.cause .facts { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 24px; }
@media (max-width: 760px){ .cause .facts { justify-content: center; } }
.cause .fact {
  border: 1px solid rgba(216,178,90,0.4); border-radius: 4px;
  padding: 8px 14px; font-size: 14px; color: var(--brass-lt);
}
.cause .fact b { color: #fff; font-family: var(--display); font-size: 17px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 760px){ .cta-row { justify-content: center; } }
.btn {
  display: inline-block; font-family: var(--serif); font-size: 16px; letter-spacing: 0.04em;
  padding: 13px 26px; border: 2px solid var(--brass); cursor: pointer; transition: all 0.15s;
}
.btn-primary { background: var(--brass); color: var(--navy-dk); font-weight: 700; }
.btn-primary:hover { background: var(--brass-lt); border-color: var(--brass-lt); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--brass-lt); }
.btn-ghost:hover { background: rgba(216,178,90,0.14); text-decoration: none; }
.topbar nav a.donate {
  color: var(--navy-dk); background: var(--brass-lt); padding: 6px 14px;
  border-radius: 3px; font-weight: 700; letter-spacing: 0.08em; opacity: 1;
}
.topbar nav a.donate:hover { background: #fff; }

/* ---------- Sections ---------- */
section { padding: 76px 0; border-bottom: 1px solid var(--rule); }
section:nth-of-type(even):not(.quotes):not(.hero):not(.cause) { background: rgba(231,220,192,0.45); }

.section-head { text-align: center; margin-bottom: 46px; }
.section-head .kicker {
  text-transform: uppercase; letter-spacing: 0.34em; font-size: 12px; color: var(--brass);
  display: inline-block; margin-bottom: 12px;
}
.section-head h2 {
  font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4.5vw, 46px);
  margin: 0 0 8px; color: var(--navy);
}
.section-head h2::after {
  content: ""; display: block; width: 70px; height: 3px; background: var(--brass);
  margin: 16px auto 0;
}
.lede { max-width: 760px; margin: 0 auto; text-align: center; font-size: 21px; color: var(--ink-soft); }

/* two-column prose with floated portrait */
.prose { max-width: 860px; margin: 0 auto; }
.prose p { margin: 0 0 20px; }
.prose .dropcap::first-letter {
  font-family: var(--display); font-weight: 800; font-size: 3.4em; line-height: 0.78;
  float: left; padding: 6px 12px 0 0; color: var(--crimson);
}
.plate {
  float: right; width: 320px; margin: 6px 0 18px 28px;
}
@media (max-width: 640px){ .plate { float: none; width: 100%; margin: 0 0 22px; } }

/* framed photo */
figure.frame { margin: 0; }
figure.frame img {
  width: 100%; display: block; border: 1px solid #cdbf9c;
  box-shadow: var(--shadow); filter: sepia(0.28) contrast(1.02);
  background: #fff;
}
figure.frame figcaption {
  font-style: italic; font-size: 15px; color: var(--ink-soft);
  text-align: center; padding: 10px 6px 0; line-height: 1.4;
}

/* ---------- Accomplishment cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.card {
  background: #fbf6e7; border: 1px solid var(--rule); border-top: 4px solid var(--brass);
  padding: 26px 24px; box-shadow: 0 8px 22px rgba(18,12,4,0.10);
}
.card .yr { font-family: var(--display); color: var(--crimson); font-weight: 700; font-size: 15px; letter-spacing: 0.08em; }
.card h3 { font-family: var(--display); margin: 6px 0 10px; font-size: 23px; color: var(--navy); }
.card p { margin: 0; font-size: 17px; color: var(--ink-soft); }

/* ---------- Timeline ---------- */
.timeline { max-width: 820px; margin: 0 auto; position: relative; }
.timeline::before { content:""; position:absolute; left: 16px; top:0; bottom:0; width:2px; background: var(--brass); }
.tl { position: relative; padding: 0 0 30px 54px; }
.tl::before {
  content:""; position:absolute; left: 9px; top: 6px; width: 16px; height: 16px;
  background: var(--parchment); border: 3px solid var(--crimson); border-radius: 50%;
}
.tl .yr { font-family: var(--display); font-weight: 700; color: var(--crimson); font-size: 18px; }
.tl p { margin: 4px 0 0; color: var(--ink-soft); }

/* ---------- Gallery ---------- */
.filters { text-align: center; margin-bottom: 30px; }
.filters button {
  font-family: var(--serif); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  background: transparent; color: var(--ink-soft); border: 1px solid var(--rule);
  padding: 8px 16px; margin: 4px; cursor: pointer; transition: all 0.15s;
}
.filters button:hover { border-color: var(--brass); color: var(--ink); }
.filters button.active { background: var(--navy); color: var(--parchment); border-color: var(--navy); }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.gallery .tile {
  margin: 0; cursor: pointer; position: relative; overflow: hidden;
  border: 1px solid #cdbf9c; background:#fff; box-shadow: 0 6px 16px rgba(18,12,4,0.14);
  transition: transform 0.18s, box-shadow 0.18s;
}
.gallery .tile img {
  width: 100%; height: 100%; display: block; aspect-ratio: 4 / 5;
  object-fit: cover; filter: sepia(0.22) contrast(1.02);
}
.gallery .tile:hover { transform: translateY(-4px) rotate(-0.4deg); box-shadow: 0 14px 30px rgba(18,12,4,0.28); }
.gallery .tile .cap {
  position:absolute; left:0; right:0; bottom:0; padding: 28px 12px 12px;
  background: linear-gradient(transparent, rgba(18,12,4,0.86));
  color: #f3ead2; font-style: italic; font-size: 13.5px; line-height: 1.35;
  opacity: 0; transition: opacity 0.2s;
}
.gallery .tile:hover .cap,
.gallery .tile:focus .cap,
.gallery .tile:focus-within .cap { opacity: 1; }
.gallery .tile:focus-visible { outline: 3px solid var(--brass-lt); outline-offset: 2px; }

/* ---------- Quotes ---------- */
.quotes { background: var(--navy); color: var(--parchment); }
.quotes .section-head h2 { color: var(--brass-lt); }
.quotes .section-head .kicker { color: var(--brass-lt); }
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; max-width: 980px; margin: 0 auto; }
.quote {
  border-left: 3px solid var(--brass); padding: 4px 0 4px 22px;
}
.quote p { font-family: var(--display); font-style: italic; font-size: 22px; margin: 0 0 8px; }
.quote .by { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass-lt); }

/* ---------- Footer ---------- */
footer {
  background: var(--navy-dk); color: var(--parchment); text-align: center;
  padding: 54px 24px; border-top: 4px double var(--brass);
}
footer .seal {
  font-family: var(--display); font-weight: 800; color: var(--brass-lt);
  letter-spacing: 0.12em; font-size: 20px; margin-bottom: 8px;
}
footer .fine { font-size: 14px; opacity: 0.6; max-width: 620px; margin: 12px auto 0; font-style: italic; }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; background: rgba(10,7,2,0.94); display:none; z-index: 100; align-items:center; justify-content:center; padding: 40px; }
.lb.open { display: flex; }
.lb img { max-width: 90vw; max-height: 78vh; border: 6px solid #fbf6e7; box-shadow: 0 20px 60px rgba(0,0,0,0.7); filter: sepia(0.2); }
.lb .lbcap { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: #f3ead2; font-style: italic; font-size: 18px; padding: 0 20px; }
.lb .x { position: absolute; top: 22px; right: 30px; color: #f3ead2; font-size: 38px; cursor: pointer; line-height: 1; background: none; border: 0; padding: 4px 12px; }
.lb .nav { position:absolute; top:50%; transform: translateY(-50%); color:#f3ead2; font-size: 50px; cursor:pointer; padding: 10px 18px; user-select:none; opacity:0.7; background: none; border: 0; line-height: 1; }
.lb .nav:hover { opacity: 1; }
.lb button:focus-visible { outline: 2px solid var(--brass-lt); outline-offset: 2px; opacity: 1; }
.lb .prev { left: 10px; } .lb .next { right: 10px; }
