: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, .prefix, .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); }

/* ---- added with the Laravel site ------------------------------------------ */

.nav-link { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-soft); cursor: pointer; }
.nav-link:hover { color: var(--ink); }
@media (max-width: 760px) { .nav .nav-link { display: none; } }
.muted { color: var(--muted); }

/* form controls shared by the dialog and admin */
select, textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--field); border-radius: 0;
  font: 1rem var(--sans); color: var(--ink); background-color: var(--white);
}
/* Text boxes and dropdowns share one height and inset; the dropdown gets the theme's own arrow. */
input:not([type=checkbox]):not([type=radio]):not([type=file]), select { height: 50px; line-height: 1.4; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23646b66' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
input[type=file] { width: 100%; padding: 0; border: 0; background: none; font: .95rem var(--sans); color: var(--ink-soft); box-shadow: none; }
input[type=file]::file-selector-button {
  margin-right: 14px; padding: 10px 18px; border: 1px solid var(--accent); border-radius: 2px;
  background: transparent; color: var(--accent); font: 600 .88rem var(--sans); cursor: pointer;
}
input[type=file]::file-selector-button:hover { background: var(--accent); color: var(--white); }
textarea { resize: vertical; line-height: 1.5; }
select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }
.choice { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.choice legend { font: 600 .88rem var(--sans); margin: 0 0 8px; padding: 0; }
.radio, .check { display: flex; align-items: flex-start; gap: 10px; font: 400 .95rem/1.5 var(--sans); color: var(--ink-soft); margin: 0; }
.check { margin-top: 20px; }
.radio input, .check input { width: auto; margin-top: 4px; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }

/* request dialog */
.modal {
  width: min(640px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
}
.modal::backdrop { background: rgba(26, 31, 28, .55); }
.modal-inner { position: relative; padding: clamp(24px, 5vw, 44px); }
.modal h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: .4em; }
.modal-intro { font-size: 1.1rem; color: var(--ink-soft); margin: 0 0 8px; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; color: var(--ink-soft); cursor: pointer; }
.modal-close:hover { color: var(--ink); }
.modal form .btn { width: 100%; margin-top: 18px; padding: 16px; }
.modal-done { text-align: center; padding: 24px 0 8px; }
.modal-done .btn { margin-top: 20px; }
.modal .choice { margin-top: 20px; }

/* page headers (stories) */
.page-head { padding: clamp(56px, 8vw, 96px) 0 clamp(32px, 5vw, 48px); }
.page-head h1 { max-width: 20ch; }
.page-head .eyebrow a { color: inherit; text-decoration: none; }
.page-head .eyebrow a:hover { color: var(--ink); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.section-head h2 { margin: 0; }

/* story cards */
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
@media (max-width: 900px) { .story-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .story-grid { grid-template-columns: 1fr; } }
.story-card a { color: inherit; text-decoration: none; display: block; }
.story-card .photo { aspect-ratio: 3 / 2; margin-bottom: 18px; }
.story-card h3 { font-size: 1.5rem; margin-bottom: .35em; }
.story-card a:hover h3 { color: var(--accent); }
.story-card p { font-size: 1.1rem; margin: 0; }
.story-card .story-date { font: .78rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }

/* single story */
.story-cover .wide { margin: 0 0 clamp(40px, 6vw, 64px); }
.prose h2 { font-size: 1.9rem; margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; }
.prose blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 2px solid var(--accent); }
.prose blockquote p { color: var(--ink); font-style: italic; }
.prose ul, .prose ol { color: var(--ink-soft); font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.6; }
.prose a { color: var(--accent); }

.ledger { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 1.1rem; }
.ledger th, .ledger td { text-align: left; padding: 14px 12px 14px 0; border-top: 1px solid var(--line); vertical-align: top; }
.ledger thead th { font: 600 .78rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-top: 0; }
.ledger tfoot th, .ledger tfoot td { font-weight: 500; color: var(--ink); border-top: 1px solid var(--ink); }
.ledger .num { text-align: right; white-space: nowrap; padding-right: 0; }

.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 56px; gap: 16px; }
.pager-info { font: .9rem var(--sans); color: var(--muted); }

/* payment method switch on the donation form */
.segmented { border: 0; padding: 0; margin: 0 0 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.segmented legend { font: 600 .88rem var(--sans); margin: 0 0 8px; padding: 0; }
.segmented label { margin: 0; display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border: 1px solid var(--line); background: var(--paper); font: 600 .95rem var(--sans); color: var(--ink-soft); cursor: pointer; }
.segmented label + label { border-left: 0; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:has(input:checked) { background: var(--white); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); }
.segmented label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

/* "Why this exists": a letter on warm writing paper, with a large faint quotation mark behind it. */
:root { --letter: #f1e9da; --letter-line: rgba(122, 98, 60, .055); }
.letter {
  position: relative; overflow: hidden;
  border-top: 1px solid #e3d8c3; border-bottom: 1px solid #e3d8c3;
  background-color: var(--letter);
  /* faint ruled lines, like writing paper */
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 39px, var(--letter-line) 39px, var(--letter-line) 40px);
}
.letter .note { position: relative; }
.letter .note > * { position: relative; }
.letter-quote {
  position: absolute !important; top: -28px; left: -56px; width: clamp(150px, 20vw, 240px); height: auto;
  fill: var(--accent); opacity: .07; pointer-events: none;
}
@media (max-width: 760px) { .letter-quote { left: -12px; top: -16px; } }
.letter .note p { color: #4a4436; }
.letter .note .note-open, .letter .note em, .letter .note .signature { color: var(--ink); }
/* The letter reads a touch heavier than the rest of the page. */
.letter .note p { font-weight: 460; color: #3d382c; }
.letter .note .note-open { font-weight: 500; }
.letter .note .signature { font-weight: 500; }

/* WhatsApp contact links */
.wa-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--sans); font-weight: 600; color: var(--accent); text-decoration: none; }
.wa-link:hover { color: var(--accent-dark); text-decoration: underline; }
.wa-icon { flex: none; }
.wa-note { font-size: 1.1rem !important; margin-top: 4px; }
.footer-contact { display: inline-flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.site-footer .wa-link { font-weight: 400; color: var(--accent); }
.contact-buttons { display: grid; gap: 10px; }
.contact-buttons .btn { width: 100%; gap: 10px; padding: 15px 18px; margin-top: 0; }
@media (max-width: 420px) { .contact-buttons .btn { font-size: .9rem; } }
