/*
  Fonds André & Jacqueline Taymans
  ---------------------------------
  Warm paper, a single madder red, oak for the record marks. One narrow measure;
  the grant ledger hangs its years in the margin because a grant list is a record.
  Type is an honest system stack — the CSP forbids font CDNs and a data-URI face
  would cost more than it returns here.
*/

:root {
  --paper: #f7f3ed;
  --raised: #fffdfa;
  --ink: #241d1a;
  --muted: #6f6157;
  --accent: #9c2230;
  --accent-ink: #fdfaf7;
  --oak: #8a6844;
  --rule: #e4d9cd;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  --measure: 34rem;
  --step: clamp(1rem, 0.9rem + 0.4vw, 1.125rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1c1715;
    --raised: #251e1b;
    --ink: #ece3d9;
    --muted: #a2938a;
    --accent: #e07a80;
    --accent-ink: #1c1715;
    --oak: #c49a69;
    --rule: #3a302b;
  }
}

/* ---------- base ---------- */

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .cta {
    transition: none;
  }
}

/* ---------- language switcher ---------- */

.lang-switcher {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

.lang-switcher a {
  color: var(--muted);
  text-decoration: none;
}

.lang-switcher a:hover {
  color: var(--accent);
}

.lang-switcher a[aria-current="page"] {
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
}

/* ---------- hero ---------- */

.hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--rule);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 1.4rem + 3vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}

.hero .tagline {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--muted);
  margin: 0 0 1.75rem;
  text-wrap: balance;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
}

.cta {
  display: inline-block;
  padding: 0.6rem 1.15rem;
  border: 1px solid var(--accent);
  border-radius: 2px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.cta:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

.cta-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.cta-primary:hover {
  filter: brightness(1.1);
}

/* ---------- sections ---------- */

section {
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--rule);
}

section h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  margin: 0 0 1rem;
  text-wrap: balance;
}

section h3 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--oak);
  margin: 1.75rem 0 0.5rem;
}

section p {
  margin: 0 0 1rem;
}

section ul:not(.grants) {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
}

section ul:not(.grants) li {
  margin-bottom: 0.35rem;
}

blockquote {
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.55;
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  border-left: 3px solid var(--accent);
}

.note,
.memoriam {
  font-size: 0.92rem;
  color: var(--muted);
}

.memoriam {
  font-family: var(--serif);
  font-style: italic;
  margin-top: 1.5rem;
}

/* ---------- grant ledger ---------- */

.grants {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.grant {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
}

.grant:last-child {
  border-bottom: 1px solid var(--rule);
}

.grant-year {
  grid-column: 1;
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--oak);
  padding-top: 0.15rem;
}

.grant-org {
  grid-column: 2;
  font-weight: 650;
}

.grant-amount {
  grid-column: 2;
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  color: var(--muted);
}

.grant-project {
  grid-column: 2;
  margin-top: 0.3rem;
}

/* ---------- placeholders (src/_data/pending.yaml) ---------- */

.pending-note {
  background: var(--raised);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--oak);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.pending-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--oak);
  margin-bottom: 0.2rem;
}

/* ---------- footer ---------- */

.site-footer {
  padding: 2.5rem 0 4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0 0 0.5rem;
}
