/* Layout: white ground, one deep green, gold kept for the Donate button and thin rules.
   The headwrap stripes from the logo return as the diagonal band motif. */
:root {
  --green: #025122;
  --green-deep: #013A18;
  --green-tint: #EEF4EF;
  --green-line: #CFDED3;
  --gold: #BA9441;
  --gold-deep: #8A6A22;
  --gold-tint: #FBF6EA;
  --paper: #FFFFFF;
  --ink: #17251C;
  --ink-soft: #4C5B51;
  --display: "Lora", "Iowan Old Style", Georgia, serif;
  --body: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(18px, 4vw, 40px);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); color: var(--green); line-height: 1.15; margin: 0; text-wrap: balance; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.stack { display: flex; flex-direction: column; gap: 1.1rem; }
.stack-lg { display: flex; flex-direction: column; gap: 2.5rem; }
.measure { max-width: 62ch; }
.lead { font-size: 1.2rem; color: var(--ink-soft); }
.eyebrow { font-family: var(--display); font-style: italic; color: var(--gold-deep); font-size: 1.1rem; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--paper); padding: 8px 12px; z-index: 20; }

/* flag band */
.flagband { height: 6px; background: linear-gradient(90deg, var(--green) 0 33.33%, var(--paper) 33.33% 66.66%, var(--green) 66.66%); border-bottom: 1px solid var(--green-line); }

/* header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); border-bottom: 1px solid var(--green-line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.6rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--green); }
.brand img { width: 54px; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.2rem; line-height: 1.1; letter-spacing: 0.01em; }
.brand-name small { display: block; font-weight: 400; font-style: italic; font-size: 0.8rem; color: var(--gold-deep); letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.98rem; padding-block: 0.3rem; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green); border-bottom-color: var(--gold); }
.nav a.btn { color: var(--paper); border-bottom: 0; }
.menu-btn { display: none; background: none; border: 1px solid var(--green-line); border-radius: 6px; padding: 0.45rem 0.8rem; font: 600 0.95rem var(--body); color: var(--green); cursor: pointer; }

/* buttons */
.btn { display: inline-block; background: var(--gold-deep); color: var(--paper); font-weight: 700; text-decoration: none; padding: 0.7rem 1.35rem; border-radius: 4px; border: 2px solid var(--gold-deep); line-height: 1.2; }
.btn:hover { background: var(--green); border-color: var(--green); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--green); border-color: var(--green); }
.btn-ghost:hover { background: var(--green); color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* sections */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-tint { background: var(--green-tint); }
.section-green { background: var(--green); color: var(--paper); }
.section-green h2, .section-green h3 { color: var(--paper); }
.section-green .eyebrow { color: #E7CF8F; }
.section-green a { color: var(--paper); }
.section-head { display: flex; flex-direction: column; gap: 0.6rem; max-width: 60ch; }

/* stripe motif from the headwrap */
.stripes { height: 14px; background: repeating-linear-gradient(115deg, var(--green) 0 14px, var(--paper) 14px 22px, var(--gold) 22px 25px, var(--paper) 25px 33px); }

/* hero */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 1.4rem; min-width: 0; }
.hero-art { justify-self: center; width: min(100%, 420px); aspect-ratio: 1; border-radius: 50%; background: var(--green-tint); outline: 2px solid var(--gold); outline-offset: 10px; display: grid; place-items: center; }
.hero-art img { width: 82%; }

/* page hero for inner pages */
.page-hero { background: var(--green-tint); padding-block: clamp(2.5rem, 6vw, 4rem); border-bottom: 1px solid var(--green-line); }
.page-hero .wrap { display: flex; flex-direction: column; gap: 0.9rem; }

/* tribute */
.tribute { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.portrait { width: clamp(180px, 26vw, 300px); aspect-ratio: 1; border-radius: 50%; object-fit: cover; outline: 2px solid var(--gold); outline-offset: 8px; margin: 10px; }

/* grids */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.grid-4 > *, .grid-3 > *, .grid-2 > * { min-width: 0; }
.pillar { display: flex; flex-direction: column; gap: 0.6rem; padding-top: 1.1rem; border-top: 3px solid var(--green); }
.pillar .n { font-family: var(--display); font-style: italic; color: var(--gold-deep); }
.value { display: flex; flex-direction: column; gap: 0.5rem; }
.value h3 { font-style: italic; font-size: 1.6rem; }
.way { background: var(--paper); border: 1px solid var(--green-line); border-radius: 6px; padding: 1.5rem; display: flex; flex-direction: column; gap: 0.7rem; }
.way a { font-weight: 700; }

/* long-form */
.prose { display: flex; flex-direction: column; gap: 1.1rem; max-width: 66ch; }
.prose h2 { margin-top: 1.2rem; }
blockquote { margin: 0; padding-left: 1.2rem; border-left: 3px solid var(--gold); font-family: var(--display); font-style: italic; font-size: 1.3rem; color: var(--green); }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.5rem; margin: 0; }
dl.facts dt { font-weight: 700; color: var(--green); }
dl.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* placeholder for content the family still has to supply */
.todo { background: var(--gold-tint); border: 1.5px dashed var(--gold); border-radius: 6px; padding: 0.9rem 1.1rem; color: var(--ink); font-size: 0.98rem; }
.todo::before { content: "Still needed"; display: block; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 0.2rem; }
span.todo { display: inline; padding: 0.05rem 0.4rem; }
span.todo::before { content: none; }

/* footer */
.site-footer { background: var(--green-tint); border-top: 1px solid var(--green-line); padding-block: 3rem 2rem; font-size: 0.98rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 2.5rem; }
.site-footer .cols > * { min-width: 0; }
.site-footer img { width: 190px; }
.site-footer h3 { font-size: 1rem; font-family: var(--body); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.7rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.legal { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--green-line); color: var(--ink-soft); font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--green-line); flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem var(--gutter) 1.2rem; }
  .nav.open { display: flex; }
  .nav a { padding-block: 0.75rem; border-bottom: 1px solid var(--green-line); }
  .nav a.btn { margin-top: 1rem; text-align: center; }
}
@media (max-width: 720px) {
  .hero .wrap, .tribute, .grid-3, .grid-2, .site-footer .cols { grid-template-columns: 1fr; }
  .hero-art { width: min(70%, 300px); order: -1; }
  .tribute { justify-items: start; }
  dl.facts { grid-template-columns: 1fr; gap: 0.1rem; }
  dl.facts dd { margin-bottom: 0.7rem; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .brand-name small { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.sticky-col { align-items: flex-start; align-self: start; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 100px); }
@media (max-width: 720px) { .sticky-col { position: static; } }
.dates { font-family: var(--display); font-style: italic; color: var(--gold-deep); font-size: 1.15rem; margin-top: -0.6rem; }
.portrait-tall { width: min(100%, 400px); border-radius: 6px; outline: 2px solid var(--gold); outline-offset: 8px; margin: 10px; }
blockquote cite { display: block; margin-top: 0.6rem; font-family: var(--body); font-style: normal; font-size: 0.95rem; color: var(--ink-soft); }
.letter { display: flex; flex-direction: column; gap: 1rem; background: var(--green-tint); border-left: 3px solid var(--gold); padding: 1.5rem clamp(1.1rem, 3vw, 1.75rem); border-radius: 0 6px 6px 0; }
.letter .sign { font-family: var(--display); font-style: italic; color: var(--green); }
.person { margin: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top center; border-radius: 6px; }
.person figcaption { display: flex; flex-direction: column; border-top: 3px solid var(--green); padding-top: 0.6rem; }
.person strong { font-family: var(--display); font-size: 1.1rem; color: var(--green); line-height: 1.25; }
.person span { color: var(--gold-deep); font-weight: 600; font-size: 0.95rem; }
@media (max-width: 480px) { .grid-4.people { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
