:root {
  color-scheme: light;
  --ink: #202b3b;
  --navy: #263850;
  --accent: #963e2c;
  --blush: #f8e4db;
  --paper: #fffaf4;
  --line: #ded1c4;
  font: 100%/1.55 system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
.wrap { width: min(1100px, 100% - 2.5rem); margin-inline: auto; }
.masthead, footer { display: flex; justify-content: space-between; align-items: center; padding-block: 1.15rem; }
.masthead { border-bottom: 1px solid var(--line); gap: .65rem; }
.masthead .brand { min-width: 0; font-size: clamp(1.125rem, 3vw, 1.4rem); line-height: 1.2; }
.masthead .mark, .site-menu { flex-shrink: 0; }
.brand { display: inline-flex; gap: .6rem; align-items: center; text-decoration: none; font-weight: 750; }
.mark { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; color: #ffd9c8; background: var(--navy); }
nav { display: flex; gap: clamp(.75rem, 3vw, 2rem); align-items: center; }
nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: .25rem; text-decoration: none; font-weight: 650; }
.eyebrow { color: var(--navy); margin: 0 0 .85rem; font-weight: 700; }
h1, h2 { font-family: Georgia, serif; line-height: 1.06; margin: 0; font-weight: 500; }
h1, h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); letter-spacing: -.035em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h3 { font-size: 1.1rem; line-height: 1.3; margin: 0 0 .4rem; }
.trust-copy p { margin: 0; }
.trust { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 1.5rem; align-items: center; padding: clamp(1.25rem, 5vw, 3rem); border-radius: 1rem; background: var(--navy); color: white; }
.trust .eyebrow { color: #f4e6da; margin-bottom: .5rem; }
.trust-copy { border-inline-start: 1px solid #8494a8; padding-inline-start: 1.5rem; }
.trust { scroll-margin-top: 1rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
summary { cursor: pointer; font-weight: 650; min-height: 48px; padding-block: .75rem; }
footer { border-top: 1px solid var(--line); flex-wrap: wrap; gap: .5rem 1rem; }
.site-menu { position: relative; z-index: 2; border: 0; }
.site-menu summary { display: grid; place-items: center; width: 48px; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: .55rem; background: #fff; }
.site-menu summary::-webkit-details-marker { display: none; }
.menu-icon { width: 1.15rem; height: 2px; background: var(--navy); border-radius: 1px; box-shadow: 0 -6px var(--navy), 0 6px var(--navy); }
.site-menu nav { position: absolute; inset-inline-end: 0; top: calc(100% + .45rem); width: min(14rem, calc(100vw - 2rem)); max-height: min(24rem, calc(100dvh - 5rem)); overflow-y: auto; display: grid; gap: .15rem; padding: .3rem; background: #fff; border: 1px solid var(--line); border-radius: .65rem; box-shadow: 0 10px 24px #26385026; }
.site-menu nav a { padding-inline: .75rem; border-radius: .4rem; }
.site-menu nav a:hover { background: var(--blush); color: var(--accent); }
@media (max-width: 800px) {
  .wrap { width: min(38rem, 100% - 1.5rem); }
  .masthead { padding-block: .55rem; }
  .eyebrow { margin-bottom: .45rem; }
  .trust { grid-template-columns: minmax(0, 1fr); }
  .trust { gap: 1rem; }
  .trust-copy { border-inline-start: 0; border-top: 1px solid #8494a8; padding: 1rem 0 0; }
}
@media (max-width: 340px) {
  .brand { gap: .4rem; }
  nav { gap: .4rem; }
}

.founder { margin-top: 1rem; border-radius: 1rem; overflow: hidden; background: var(--navy); color: white; }
.founder-photo { aspect-ratio: 16 / 10; max-height: 34rem; background: #192636; }
.founder-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.founder-photo img[hidden] { display: none; }
.founder-caption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: clamp(1rem, 3vw, 1.75rem); }
.founder-caption p { color: #f4e6da; margin: 0 0 .35rem; }
.founder-caption .founder-credit { margin: .45rem 0 0; font-size: .875rem; }
.founder-controls:not([hidden]) { display: flex; flex-wrap: wrap; gap: .5rem; }
.founder-controls button { border: 1px solid #8494a8; border-radius: .5rem; background: transparent; color: white; min-height: 44px; padding: .5rem .75rem; font: inherit; cursor: pointer; }
.founder-controls button:focus-visible { outline-color: white; }
.work { padding-block: clamp(2rem, 5vw, 3.5rem) 1rem; scroll-margin-top: 1rem; }
.work-heading { max-width: 64ch; margin-bottom: 1.25rem; }
.work-heading p { margin: .65rem 0 0; }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.work-story { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: .85rem; }
.work-story figure { margin: 0; }
.work-story img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; display: block; background: #f8efe5; }
.work-story figcaption { padding: .5rem 1rem 0; color: #545b67; font-size: .875rem; }
.work-copy, .work-more { padding: 1rem; }
.work-copy p, .work-more p { margin: .5rem 0; }
.work-more { margin-top: 1rem; background: #f8efe5; border-inline-start: 3px solid var(--accent); border-radius: .5rem; }
.trust-directory { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding-block: 1rem; }
.trust-directory section { background: #fff; border: 1px solid var(--line); border-radius: .85rem; padding: 1rem; scroll-margin-top: 1rem; }
.trust-directory h2 { font-size: 1.6rem; }
.trust-directory p { margin: .65rem 0 0; }
#updates { scroll-margin-top: 1rem; }
@media (max-width: 640px) {
  .work-grid, .trust-directory { grid-template-columns: minmax(0, 1fr); }
}

.donation-panel { width: min(32rem, 100% - 1.5rem); margin-bottom: 2rem; }
.donation-panel:not(:target) { display: none; }
.donation-back { display: inline-flex; align-items: center; min-height: 44px; margin-top: .6rem; color: var(--accent); font-weight: 650; }
.card { background: #fff; border-radius: 1rem; padding: clamp(1.15rem, 3.4vw, 2rem); box-shadow: 0 12px 35px #26385019; scroll-margin-top: 1rem; }
form { margin-top: 1.4rem; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend, .custom-label { font-weight: 650; padding: 0; }
.amounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 4.35rem), 1fr)); gap: .5rem; margin-block: .5rem 1rem; }
.amounts label { position: relative; cursor: pointer; }
.amounts input { position: absolute; opacity: 0; }
.amounts span { display: grid; place-items: center; min-height: 48px; text-align: center; border: 1px solid #97867a; border-radius: .5rem; padding: .65rem .2rem; font-weight: 700; }
.amounts input:checked + span { background: var(--blush); border-color: var(--accent); color: var(--accent); }
.amounts input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.field { display: flex; align-items: center; gap: .6rem; border: 1px solid #97867a; border-radius: .5rem; padding-inline: .75rem; margin-top: .4rem; }
.field:focus-within { border-color: var(--navy); }
.field input { min-width: 0; width: 100%; min-height: 48px; border: none; font: inherit; font-size: max(16px, 1rem); background: transparent; color: inherit; }
.button { display: inline-block; border: 0; border-radius: .5rem; background: var(--accent); color: white; padding: .7rem 1.15rem; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.button:hover { background: #743023; }
.pay { width: 100%; min-height: 48px; margin-top: .9rem; }
.note { font-size: .875rem; color: #545b67; margin-bottom: 0; }
.feedback { margin: 0; overflow-wrap: anywhere; }
.feedback:not(:empty) { background: var(--blush); padding: .65rem .8rem; border-radius: .5rem; margin-top: .8rem; }
