/* Same font files the Squarespace site used (both fonts are open-licensed) */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/newsreader-400.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/newsreader-400-italic.woff2") format("woff2"); }
@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ptserif-400.woff2") format("woff2"); }
@font-face { font-family: "PT Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/ptserif-400-italic.woff2") format("woff2"); }
@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/ptserif-700.woff2") format("woff2"); }
@font-face { font-family: "PT Serif"; font-style: italic; font-weight: 700; font-display: swap; src: url("/fonts/ptserif-700-italic.woff2") format("woff2"); }

:root {
  --bg: #e0e0db;
  --navy: #253551;
  --charcoal: #2a2829;
  --ink: #000;
  --white: #fff;
  --max: 1320px;
  --pad: clamp(20px, 4vw, 56px);
  --serif-head: "Newsreader", Georgia, "Times New Roman", serif;
  --serif-body: "PT Serif", Georgia, "Times New Roman", serif;
  --unit: 1.2vw;
  --h1: calc(3 * var(--unit) + 1rem);
  --h2: calc(1.8 * var(--unit) + 1rem);
  --h3: calc(1.2 * var(--unit) + 1rem);
  --h4: calc(0.6 * var(--unit) + 1rem);
  --h-board: calc(1 * var(--unit) + 1rem);
  --h-item: calc(0.2 * var(--unit) + 1rem);
}
@media (max-width: 767px) { :root { --unit: min(1.2vh, 10.8px); } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }

h1, h2, h3, h4 {
  font-family: var(--serif-head);
  font-weight: 400;
  margin: 0 0 .5em;
  letter-spacing: -0.02em;
  font-optical-sizing: none;
}
h1 { font-size: var(--h1); line-height: 1.056; }
h2 { font-size: var(--h2); line-height: 1.1136; color: var(--ink); }
h3 { font-size: var(--h3); line-height: 1.1424; color: var(--ink); }
h4 { font-size: var(--h4); line-height: 1.1712; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--white); padding: 8px 12px; z-index: 100; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-family: var(--serif-body);
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 4px;
  border: 0;
  cursor: pointer;
  transition: opacity .2s;
}
.btn:hover { opacity: .85; }
.btn--small { font-size: 14px; padding: 10px 20px; }
.btn--light { background: var(--white); color: var(--navy); }
.btn--outline { background: transparent; color: var(--navy); border: 1px solid var(--navy); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  transition: transform .35s ease, box-shadow .35s ease;
  will-change: transform;
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-scrolled:not(.is-hidden) { box-shadow: 0 2px 16px rgba(0,0,0,.08); }
@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }
.site-header .inner {
  max-width: 1600px; margin: 0 auto;
  padding: 18px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo img { height: 66px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: 16px; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.nav-donate { margin-left: auto; }
.menu-toggle { display: none; }

.theme-navy .site-header { background: var(--navy); color: var(--white); }
.theme-navy .site-header .btn { background: var(--white); color: var(--navy); }

/* ---------- Layout ---------- */
.section { padding: clamp(56px, 7vw, 110px) var(--pad); }
.wrap { max-width: var(--max); margin: 0 auto; }
.split {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.split .text { max-width: 560px; }
.split.reverse .media { order: -1; }
.media img { width: 100%; height: auto; object-fit: cover; }

/* Hero: text left, full-bleed photo right */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 102px);
  align-items: stretch;
}
.hero .text { padding: clamp(40px, 6vw, 96px) var(--pad); align-self: center; max-width: 715px; }
.hero .text p { max-width: 430px; }
.hero .text .btn { margin-top: 1.5em; }
.hero .media { min-height: 420px; }
.hero .media img { width: 100%; height: 100%; object-fit: cover; }

.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-white { background: var(--white); }
.bg-charcoal { background: var(--charcoal); color: var(--white); }

/* Quote band */
.quote { text-align: center; padding: clamp(64px, 8vw, 120px) var(--pad); }
.quote blockquote {
  margin: 0 auto; max-width: 980px;
  font-family: var(--serif-head);
  font-size: var(--h2);
  line-height: 1.1136;
  letter-spacing: -0.02em;
}
.quote cite { display: block; font-style: normal; margin-top: .2em; }

/* Cards */
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: start; margin-bottom: 48px; }
.section-head p { max-width: 560px; }
.cards { display: grid; gap: 32px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }

.partner img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center; margin-bottom: 20px; }
.partner h4 { font-size: var(--h-item); line-height: 1.11; margin-bottom: .6em; }
.partner p { font-size: 15px; }

.board { padding: 26px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); }
.board h3 { color: var(--white); font-size: var(--h-board); line-height: 1.1136; margin-bottom: .3em; }
.board .role { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; opacity: .85; margin-bottom: 1em; }
.board p { font-size: 15px; }

.grave img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 16px; background: #ccc; }
.grave h3 { font-size: var(--h-item); line-height: 1.2; color: var(--ink); margin-bottom: .35em; }
.grave .dates { font-size: 14px; margin-bottom: .6em; }
.grave p { font-size: 15px; }
.grave .btn { margin-top: 4px; }

/* Contact */
.contact-info a { text-decoration: underline; }
.contact-info address { font-style: normal; margin: 1em 0; }
.social { display: inline-flex; margin-top: 8px; }
.social svg { width: 22px; height: 22px; fill: currentColor; }

form.contact { display: grid; gap: 22px; }
form.contact .row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
form.contact label { display: block; font-size: 14px; }
form.contact .req { color: #777; font-size: 12px; margin-left: 4px; }
form.contact input, form.contact textarea {
  width: 100%; margin-top: 6px;
  font: inherit; font-size: 16px;
  padding: 10px 2px; border: 0; border-bottom: 1px solid #999; background: transparent;
}
form.contact textarea { min-height: 110px; border: 1px solid #999; padding: 10px; resize: vertical; }
form.contact input:focus, form.contact textarea:focus { outline: 2px solid var(--navy); outline-offset: 2px; }
form.contact .btn { justify-self: start; }
.form-note { font-size: 14px; }

/* Video */
.video-embed { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Footer */
.stay {
  border-top: 1px solid rgba(0,0,0,.12);
  padding: 56px var(--pad);
}
.stay .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: center; }
.stay h2 { font-size: var(--h3); margin-bottom: .25em; }
#contact h2 { font-size: var(--h1); line-height: 1.056; }
.stay p { margin: 0; max-width: 560px; }
.stay .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.site-footer { padding: 28px var(--pad) 40px; font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cards--4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; background: none; border: 0; color: inherit; cursor: pointer;
  }
  .menu-toggle svg { width: 28px; height: 28px; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: 18px;
    padding: 20px var(--pad) 28px;
    background: var(--bg);
    border-top: 1px solid rgba(0,0,0,.1);
    box-shadow: 0 12px 24px rgba(0,0,0,.12);
  }
  .site-header { background: var(--bg); }
  .theme-navy .nav { background: var(--navy); }
  .nav.open { display: flex; }
  .nav a { font-size: 20px; }
  .nav-donate { margin-left: 0; }

  .hero, .split, .section-head { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero .media { min-height: 0; aspect-ratio: 4 / 3; }
  .split.reverse .media { order: 0; }
  .cards--2, .cards--3, .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .stay .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .logo img { height: 54px; }
  .cards--2, .cards--3, .cards--4 { grid-template-columns: 1fr; }
  form.contact .row { grid-template-columns: 1fr; }
}
