/* Help Crina: warm, calm, mobile first. No external fonts or images. */

:root {
  --bg: #f7f1e8;
  --bg-tint: #efe6d8;
  --surface: #fffdf9;
  --text: #2a2420;
  --muted: #6b5f55;
  --line: #e0d4c3;
  --accent: #2f6b5e;          /* deep green: donate */
  --accent-hover: #24564b;
  --accent-text: #ffffff;
  --warm: #c8793a;            /* amber: highlights */
  --warm-soft: #f6e3cf;
  --focus: #1f5fbf;
  --wa: #1e7d4a;
  --fb: #1b5fc7;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(42, 36, 32, .06), 0 6px 20px rgba(42, 36, 32, .06);

  --art-sky-top: #3c4a63;
  --art-sky-bottom: #8a8fa6;
  --art-snow: #f4f1ec;
  --art-wall: #e8d8c3;
  --art-roof: #7a4b32;
  --art-door: #8b5a3c;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1a17;
    --bg-tint: #24201c;
    --surface: #2a2521;
    --text: #f1ebe3;
    --muted: #bcae9f;
    --line: #3e3630;
    --accent: #5fb09c;
    --accent-hover: #74c2ae;
    --accent-text: #10201c;
    --warm: #e3a06a;
    --warm-soft: #3a2b1f;
    --focus: #8ab4ff;
    --wa: #3fb877;
    --fb: #6f9ff0;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    --art-sky-top: #121827;
    --art-sky-bottom: #39415a;
    --art-snow: #d9d6d0;
    --art-wall: #b8a690;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  overflow-wrap: break-word;
}

h1, h2, h3 { font-family: var(--serif); line-height: 1.2; font-weight: 600; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 6vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); }
img, svg { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.wrap--narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 20;
  background: var(--surface); color: var(--text); padding: 10px 14px; border-radius: 8px;
}
.skip:focus { top: 8px; }

/* ---------- header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; gap: 16px; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.1rem; }
.brand__icon { width: 26px; height: 26px; color: var(--warm); }
.topnav { display: none; gap: 20px; margin-left: auto; }
.topnav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.topnav a:hover { color: var(--text); }
.lang { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.lang__btn {
  font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer;
  min-width: 44px; min-height: 40px; padding: 0 8px;
  border: 0; border-radius: 8px; background: transparent; color: var(--muted);
}
.lang__btn[aria-pressed="true"] { color: var(--text); background: var(--bg-tint); }
.lang__sep { color: var(--line); }
@media (min-width: 760px) {
  .topnav { display: flex; }
  .lang { margin-left: 8px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 18px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.btn--lg { min-height: 54px; padding: 12px 26px; font-size: 1.08rem; }
.btn--primary { background: var(--accent); color: var(--accent-text); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--muted); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--fb { background: var(--fb); color: #fff; }
@media (prefers-color-scheme: dark) { .btn--wa, .btn--fb { color: #0f1412; } }
.btn.is-disabled { background: var(--bg-tint); color: var(--muted); border-color: var(--line); cursor: default; }

/* ---------- hero ---------- */
.hero { padding: 28px 0 40px; }
.hero__grid { display: grid; gap: 28px; }
.kicker { color: var(--warm); font-weight: 600; font-size: .9rem; letter-spacing: .02em; margin-bottom: .5em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 10px; }
.cta .btn { flex: 1 1 220px; }
.hero__media { margin: 0; }
.hero__art, .hero__photo { width: 100%; border-radius: 24px; box-shadow: var(--shadow); }
.hero__photo { aspect-ratio: 4 / 3; object-fit: cover; }
.art-sky-top { stop-color: var(--art-sky-top); }
.art-sky-bottom { stop-color: var(--art-sky-bottom); }
.art-snow { fill: var(--art-snow); }
.art-wall { fill: var(--art-wall); }
.art-frame { stroke: var(--art-wall); }
.art-roof { fill: none; stroke: var(--art-roof); }
.art-door { fill: var(--art-door); }
@media (min-width: 860px) {
  .hero { padding: 56px 0 64px; }
  .hero__grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; }
}

.hero__progress { margin-top: 18px; max-width: 30em; }
.meter { height: 12px; background: var(--bg-tint); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.meter__fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--warm)); border-radius: 999px; transition: width .6s ease; }
.meter__label { margin: 8px 0 0; color: var(--muted); }
.meter__label strong { color: var(--text); font-size: 1.1rem; }

/* ---------- sections ---------- */
.section { padding: 48px 0; }
.section--tint { background: var(--bg-tint); }
.prose p { font-size: 1.05rem; }
.note { margin-top: 28px; padding: 20px; background: var(--surface); border-left: 4px solid var(--warm); border-radius: 10px; box-shadow: var(--shadow); }
.note p:last-child { margin-bottom: 0; }

/* money */
.goals { display: grid; gap: 14px; margin: 24px auto; max-width: 720px; }
@media (min-width: 600px) { .goals { grid-template-columns: 1fr 1fr; } }
.goal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.goal--first { border: 2px solid var(--accent); }
.goal__stage { margin: 0; font-weight: 600; color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; }
.goal__amount { margin: 4px 0; font-family: var(--serif); font-size: 2rem; font-weight: 600; }
.goal__desc { margin: 0; color: var(--muted); }

.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checklist li { position: relative; padding: 6px 0 6px 34px; font-size: 1.05rem; }
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: 11px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--warm-soft); box-shadow: inset 0 0 0 2px var(--warm);
}

.progress-card { max-width: 720px; margin: 28px auto 0; background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.progress-card__big { font-family: var(--serif); font-size: 2.2rem; font-weight: 600; margin: 0 0 12px; }
.progress-card__big .muted { font-family: var(--sans); font-size: 1rem; font-weight: 400; }
.track { position: relative; height: 16px; border-radius: 999px; background: var(--bg-tint); border: 1px solid var(--line); }
.track__fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--warm)); transition: width .6s ease; }
.track__marker { position: absolute; top: -5px; bottom: -5px; width: 3px; margin-left: -1px; background: var(--text); border-radius: 2px; }
.track__labels { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 8px 0 10px; font-size: .92rem; color: var(--muted); }
.widget { margin-top: 18px; }
.widget iframe { width: 100%; height: 520px; border: 0; border-radius: 10px; background: #fff; }

/* updates */
.updates { list-style: none; margin: 0; padding: 0; }
.update { position: relative; padding: 0 0 24px 24px; border-left: 2px solid var(--line); }
.update::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--warm); }
.update time { color: var(--muted); font-size: .9rem; }
.update h3 { margin: 2px 0 6px; }

/* gallery */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--line); }

/* help */
.cards { display: grid; gap: 16px; }
@media (min-width: 860px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; align-items: flex-start; }
.card p { color: var(--muted); }
.card .btn { margin-top: auto; }
.share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.share .btn { min-height: 44px; padding: 8px 14px; font-size: .95rem; margin-top: 0; }
.toast { min-height: 1.4em; margin: 8px 0 0; color: var(--accent); }

.safety { margin-top: 24px; padding: 18px 20px; border-radius: var(--radius); background: var(--warm-soft); }
.safety h3 { font-size: 1.05rem; margin-bottom: .3em; }
.safety p { margin: 0; }

/* press */
.press {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center;
  padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; color: var(--text);
}
.press:hover { border-color: var(--muted); }
.press__source { font-weight: 600; color: var(--warm); font-size: .9rem; }
.press__title { grid-column: 1; font-family: var(--serif); font-size: 1.15rem; }
.press__arrow { grid-column: 2; grid-row: 1 / span 2; font-size: 1.4rem; color: var(--muted); }

/* footer */
.footer { padding: 36px 0 48px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; }
.footer p { margin: 0 0 .4em; }

.noscript { margin: 0; padding: 16px; text-align: center; background: var(--warm-soft); }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-content: center; text-align: center; gap: 8px; padding: 40px 16px; }
