:root {
  --ink: #1a1f1c;
  --ink-soft: #4b534e;
  --muted: #646b66;
  --paper: #f7f5f0;
  --paper-2: #ece8de;
  --white: #ffffff;
  --line: #dcd8cc;
  --field: #c9c4b6;
  --accent: #1f4d3f;
  --accent-dark: #133429;
  --error: #a3352b;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.04; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.6rem; font-weight: 500; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
@media (max-width: 520px) { .wrap { width: calc(100% - 32px); } }
.eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; }
.lead { max-width: 36rem; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--white); padding: 8px 12px; z-index: 20; }

/* body copy matches the founder's note */
main p, .examples li { font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.6; color: var(--ink-soft); }
.principles span { font-size: 1.2rem; line-height: 1.6; }

/* interface text stays in the sans */
.eyebrow, .nav, .btn, label, input, .amount, .secure, .form-error, .site-footer, .skip, .note .signature span { font-family: var(--sans); }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.brand { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: .95rem; }
.nav a { color: var(--ink-soft); text-decoration: none; }
.nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px; border-radius: 2px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--white) !important;
  font: 600 .98rem var(--sans); text-decoration: none; cursor: pointer;
  transition: background .15s ease;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.nav .btn { padding: 10px 20px; }
.btn-ghost { background: transparent; color: var(--accent) !important; }
.btn-ghost:hover { background: var(--accent); color: var(--white) !important; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* hero */
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; padding: clamp(64px, 9vw, 112px) 0 clamp(56px, 7vw, 88px); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* sections */
section { padding: clamp(64px, 9vw, 104px) 0; }
.band { border-top: 1px solid var(--line); }
.alt { background: var(--paper-2); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }


.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 48px; }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; } }
.principles li { border-top: 1px solid var(--field); padding-top: 18px; }
.principles strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.3rem; margin-bottom: 4px; }
.principles span { color: var(--ink-soft); }

/* founder's note */
.note { max-width: 44rem; }
.note p { font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.6; color: var(--ink-soft); }
.note .eyebrow { font-family: var(--sans); font-size: .78rem; line-height: 1.6; color: var(--muted); }
.note .note-open { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.2; color: var(--ink); letter-spacing: -0.015em; margin-bottom: .9em; }
.note em { font-style: italic; color: var(--ink); }
.note .signature { margin-top: 2em; color: var(--ink); font-size: 1.3rem; }
.note .signature span { display: block; font-family: var(--sans); font-size: .85rem; color: var(--muted); }

/* photos */
.frame { position: relative; margin: 0; }
.photo { display: block; width: 100%; height: auto; object-fit: cover; background: var(--paper-2); }
.hero-photo .photo { aspect-ratio: 4 / 5; }
.portrait .photo { aspect-ratio: 4 / 5; object-position: center 20%; }
.wide { margin: 48px 0; }
.wide .photo { aspect-ratio: 21 / 9; }
@media (max-width: 900px) { .hero-photo .photo, .portrait .photo { aspect-ratio: 4 / 3; } .wide .photo { aspect-ratio: 3 / 2; } }
.credit {
  position: absolute; right: 8px; bottom: 8px; padding: 3px 8px;
  font: 400 .7rem/1.4 var(--sans); color: #fff; background: rgba(0, 0, 0, .5);
}
.credit a { color: #fff; text-decoration: none; }
.credit a:hover { text-decoration: underline; color: #fff; }

.examples { list-style: none; margin: 8px 0 0; padding: 0; }
.examples li { border-top: 1px solid var(--line); padding: 14px 0 14px 22px; position: relative; }
.examples li::before { content: ""; position: absolute; left: 0; top: 1.4em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* donate */
.donate-card { background: var(--white); border: 1px solid var(--line); padding: clamp(24px, 4vw, 36px); }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 4px; }
@media (max-width: 420px) { .amounts { grid-template-columns: repeat(2, 1fr); } }
.amount {
  padding: 14px 4px; border: 1px solid var(--line); background: var(--paper); border-radius: 0;
  font: 600 1rem var(--sans); color: var(--ink); cursor: pointer;
}
.amount[aria-pressed="true"] { background: var(--white); border: 2px solid var(--accent); color: var(--accent); }
label { display: block; font-size: .88rem; font-weight: 600; margin: 18px 0 6px; }
label .opt { font-weight: 400; color: var(--muted); }
.field { position: relative; }
.field .prefix { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; font-size: .9rem; }
input {
  width: 100%; padding: 13px 14px; border: 1px solid var(--field); border-radius: 0;
  font: 1rem var(--sans); color: var(--ink); background: var(--white);
}
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.field input { padding-left: 58px; }
.donate-card .btn { width: 100%; margin-top: 22px; padding: 16px; font-size: 1.05rem; }
.form-error { color: var(--error); font-size: .9rem; margin: 12px 0 0; min-height: 1.2em; }
.secure { text-align: center; font-size: .82rem; color: var(--muted); margin: 6px 0 0; }


/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: .9rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }

/* thank-you / 404 */
.center-page { min-height: calc(100vh - 200px); display: grid; place-items: center; text-align: center; padding: 64px 0; }
.center-page .lead { margin-inline: auto; }
.status-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 24px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
