/* We Gift Foundation website. Brand colors and type from the WeGift brand kit. */

@font-face { font-family: "DM Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/dm-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/dm-sans-latin-800-normal.woff2") format("woff2"); }

:root {
  --ink: #111827;
  --muted: #4B5563;
  --line: #E5E7EB;
  --soft: #F6F8FB;
  --navy: #0F172A;
  --blue: #3AA4E6;
  --link: #1565C0;
  --pink: #E8478B;
  --purple: #7C4DDB;
  --gold: #F5A524;
  --radius: 14px;
  --wrap: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand img { height: 56px; width: auto; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: var(--soft); }
.nav a[aria-current="page"] { background: var(--soft); color: var(--link); }

/* Type */
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
.eyebrow { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.9em; }
.lead { font-size: 1.25rem; color: var(--muted); max-width: 40em; }
.muted { color: var(--muted); }

/* Sections */
section { padding: 72px 0; }
section.tight { padding: 48px 0; }
.soft { background: var(--soft); }
.hero { padding: 88px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.hero-art { justify-self: center; width: min(320px, 100%); }
.page-hero { padding: 64px 0 24px; }
.prose { max-width: 44em; }

/* Buttons */
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn { display: inline-block; font-weight: 600; text-decoration: none; padding: 12px 22px; border-radius: 999px; border: 2px solid var(--link); }
.btn.primary { background: var(--link); color: #fff; }
.btn.primary:hover { background: #0F4F98; border-color: #0F4F98; }
.btn.secondary { color: var(--link); background: #fff; }
.btn.secondary:hover { background: var(--soft); }

/* Cards and grids */
.grid { display: grid; gap: 20px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p:last-child { margin-bottom: 0; }
.step-num { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; align-items: center; justify-content: center; font-weight: 800; color: #fff; margin-bottom: 14px; }
.n1 { background: var(--pink); } .n2 { background: var(--purple); } .n3 { background: var(--gold); color: var(--navy); }
.tag { display: inline-block; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--purple); background: #F1ECFC; border-radius: 999px; padding: 3px 10px; margin-bottom: 10px; }


.callout { background: var(--navy); color: #fff; border-radius: 20px; padding: 48px; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.callout h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; color: #fff; }
.callout p { color: #CBD5E1; margin-bottom: 0; font-size: 1.2rem; max-width: 30em; }
.callout .actions { margin-top: 24px; }
.callout-art { width: 220px; transform: rotate(-8deg); }
.callout .tag { color: #fff; background: rgba(255,255,255,0.14); }
.callout .btn { text-align: center; }
.callout .btn.primary { background: #fff; color: var(--navy); border-color: #fff; }

.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 0.95rem; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer p { margin: 0 0 0.4em; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer nav a { color: var(--muted); }

@media (max-width: 820px) {
  .hero .wrap, .callout { grid-template-columns: 1fr; }
  .hero-art { order: -1; justify-self: start; width: 130px; margin-bottom: -12px; }
  .callout-art { order: -1; width: 96px; margin-bottom: -8px; }
  .callout { padding: 32px; }
  .grid.three, .grid.two { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero { padding: 56px 0 48px; }
  .facts { grid-template-columns: 1fr; }
  .facts dd { margin-bottom: 8px; }
}
@media (max-width: 560px) {
  .site-header .wrap { justify-content: center; }
  .brand img { height: 44px; }
}

/* Fund cards */
.funds { margin-top: 28px; }
.fund { border: 0; }
.fund h3 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 0.45em; }
/* Fund colors: soft tints of each fund's WeGift Arenas color, with a deeper shade of it for the name.
   Every text color passes 4.5:1 contrast (WCAG AA) on its tint. */
.fund p { color: #374151; }
.f-animal { background: #FAF3DB; } .f-animal h3 { color: #6E5F24; }
.f-arts   { background: #EAE5F6; } .f-arts h3   { color: #4B3D80; }
.f-relief { background: #F8E0E1; } .f-relief h3 { color: #7D2E38; }
.f-env    { background: #DEEFE5; } .f-env h3    { color: #216244; }
.f-health { background: #DBF0F1; } .f-health h3 { color: #16646E; }
.f-food   { background: #FBE9DE; } .f-food h3   { color: #874C2B; }
