/* Threads for Change — single responsive stylesheet (no frameworks) */
:root {
  --ink: #1c1a17;
  --muted: #6b6560;
  --paper: #ffffff;
  --wash: #f7f4ef;
  --brand: #14213d;      /* deep navy */
  --accent: #c9a227;     /* gold */
  --accent-dark: #a8871e;
  --line: #e6e0d6;
  --radius: 10px;
  --maxw: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: var(--paper);
  font-family: "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  line-height: 1.65; font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { line-height: 1.25; color: var(--brand); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--brand); color: #fff; padding: 8px 14px; z-index: 99; }

/* Buttons */
.btn {
  display: inline-block; background: var(--brand); color: #fff !important;
  padding: 12px 26px; border-radius: 999px; text-decoration: none;
  font-weight: 600; border: 2px solid var(--brand); cursor: pointer;
}
.btn:hover { background: #0e1830; border-color: #0e1830; color: #fff !important; }
.btn-donate { background: var(--accent); border-color: var(--accent); color: #1c1a17 !important; }
.btn-donate:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff !important; }
.btn-big { font-size: 1.1rem; padding: 15px 36px; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-in { display: flex; align-items: center; gap: 18px; padding-top: 10px; padding-bottom: 10px; }
.brand { font-size: 1.35rem; font-weight: 800; color: var(--brand); text-decoration: none; letter-spacing: .5px; }
.brand span { color: var(--accent-dark); font-weight: 400; font-style: italic; }
.nav-toggle { display: none; margin-left: auto; font-size: 1.6rem; background: none; border: 0; cursor: pointer; color: var(--brand); }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.site-nav a, .nav-parent {
  display: block; padding: 10px 12px; text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: .95rem; background: none; border: 0; cursor: pointer; font-family: inherit;
}
.site-nav a:hover, .nav-parent:hover { color: var(--accent-dark); }
.has-sub { position: relative; }
.has-sub > .sub {
  display: none; position: absolute; top: 100%; left: 0; min-width: 280px; max-height: 70vh; overflow: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0,0,0,.12); padding: 8px; flex-direction: column; align-items: stretch;
}
.has-sub:hover > .sub, .has-sub.open > .sub { display: flex; }
.has-sub > .sub a { font-weight: 400; padding: 9px 12px; border-radius: 6px; white-space: normal; }
.has-sub > .sub a:hover { background: var(--wash); }
.header-in .btn-donate { margin-left: 8px; padding: 10px 22px; }

/* Hero / page titles */
.page-hero { background: var(--brand); color: #fff; padding: 52px 0 44px; }
.page-hero h1 { color: #fff; margin: 0 0 8px; font-size: 2.1rem; }
.page-hero .lede { color: #d8d3c8; font-size: 1.15rem; margin: 0; }
.page-hero .crumb { font-size: .9rem; margin: 0 0 10px; color: #b9b3a6; }
.page-hero .crumb a { color: #fff; }
.hero { background: linear-gradient(135deg, #14213d 0%, #24365e 70%); color: #fff; padding: 84px 0; }
.hero h1 { color: #fff; font-size: 2.9rem; margin: 0 0 16px; max-width: 16ch; }
.hero p.lede { color: #d8d3c8; font-size: 1.25rem; max-width: 44ch; }
.hero .cta-row { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.btn-ghost { background: transparent; border-color: #fff; color: #fff !important; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* Impact counters */
.impact { background: var(--wash); padding: 60px 0; }
.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.impact-card {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 210px;
  display: flex; align-items: flex-end; background: var(--brand); color: #fff;
}
.impact-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.impact-card .num { position: relative; padding: 22px; }
.impact-card .num strong { display: block; font-size: 2.4rem; }
.impact-card .num span { font-size: 1.05rem; }

/* Sections */
.section { padding: 64px 0; }
.section.alt { background: var(--wash); }
.section h2.sec-title { font-size: 1.9rem; margin: 0 0 6px; }
.sec-sub { color: var(--muted); margin: 0 0 30px; max-width: 60ch; }

/* Cards / grids */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; margin: 26px 0; }
.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; background: #fff; display: flex; flex-direction: column; }
.card:hover { box-shadow: 0 10px 28px rgba(0,0,0,.1); }
.card-img { aspect-ratio: 4/3; background: var(--wash); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.card-img.big { aspect-ratio: 1/1; font-size: 4rem; flex-direction: column; gap: 8px; }
.card-img span { font-size: .9rem; color: var(--muted); }
.card-body { padding: 16px 18px; }
.card-body h3 { margin: 0 0 6px; font-size: 1.08rem; }
.price { font-weight: 700; color: var(--brand); margin: 4px 0; }
.price.big { font-size: 1.6rem; }
.badge { display: inline-block; background: #8a8a8a; color: #fff; font-size: .78rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; letter-spacing: .4px; }

/* Product detail */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 34px auto; }
.product-media .card-img { border: 1px solid var(--line); border-radius: var(--radius); }
.cta-note { margin-top: 22px; padding: 16px; background: var(--wash); border-radius: var(--radius); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 24px 0; }
.gallery img { border-radius: 8px; width: 100%; height: 220px; object-fit: cover; }

/* Prose */
.prose { max-width: 780px; padding-top: 30px; padding-bottom: 10px; }
.prose h2 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .4em; }
.archive-list { list-style: none; padding: 0; }
.archive-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.archive-list li:last-child { border-bottom: 0; }

/* Video */
.video-wrap { position: relative; padding-bottom: 56.25%; height: 0; margin: 24px 0; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Sponsors */
.sponsors { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; justify-content: center; margin: 30px 0 10px; }
.sponsors img { max-height: 64px; width: auto; filter: grayscale(20%); }

/* Approach band */
.approach { position: relative; color: #fff; padding: 70px 0; background: var(--brand); overflow: hidden; }
.approach img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.approach .wrap { position: relative; }
.approach h2 { color: #fff; }

/* Donate band */
.donate-band { background: var(--brand); color: #fff; text-align: center; padding: 56px 0; margin-top: 50px; }
.donate-band h2 { color: #fff; margin: 0 0 10px; }
.donate-band p { color: #d8d3c8; max-width: 52ch; margin: 0 auto 24px; }

/* Footer */
.site-footer { background: #111; color: #cfc9bd; padding: 54px 0 0; font-size: .95rem; }
.site-footer h3 { color: #fff; font-size: 1.05rem; margin: 0 0 12px; }
.site-footer a { color: #cfc9bd; }
.site-footer a:hover { color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; padding-bottom: 36px; }
.foot-links, .foot-policies { list-style: none; margin: 0; padding: 0; }
.foot-links li { margin-bottom: 8px; }
.foot-links a, .foot-policies a { text-decoration: none; }
.social { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.footer-base { border-top: 1px solid #2a2a2a; padding: 18px 20px 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.foot-policies { display: flex; gap: 18px; flex-wrap: wrap; }

/* Forms */
form.contact-form { max-width: 620px; margin: 10px 0 30px; }
form.contact-form label { display: block; font-weight: 600; margin: 16px 0 6px; }
form.contact-form input[type=text], form.contact-form input[type=email], form.contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font: inherit;
}
form.contact-form button { margin-top: 18px; }

/* Program tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-top: 26px; }
.tile { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-decoration: none; color: inherit; background: #fff; }
.tile:hover { border-color: var(--accent); box-shadow: 0 8px 22px rgba(0,0,0,.08); }
.tile h3 { margin: 0 0 8px; }
.tile p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Responsive */
@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .impact-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.1rem; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .header-in .btn-donate { display: none; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); max-height: 80vh; overflow: auto;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .has-sub > .sub { position: static; box-shadow: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; max-height: none; }
  .has-sub > .sub { display: none; }
  .has-sub.open > .sub { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
}
