/* Paint Box: the painted heart's own primaries as full-width colour bands. */
:root {
  --white: #fffdf7;
  --ink: #13163a;
  --cobalt: #2a55c9;
  --ultra: #2c2a8c;
  --red: #d4412e;
  --sun: #f3c63a;
  --font-display: "Bricolage Grotesque", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, p, figure, blockquote, ul { margin: 0; }
ul { list-style: none; padding: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 800; line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 8vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); }

.wrap { width: min(1040px, 100%); margin-inline: auto; padding-inline: 16px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.band { padding-block: clamp(56px, 8vw, 104px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--sun); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.label { font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; }

/* Button */
.btn {
  display: inline-block; text-decoration: none;
  background: var(--red); color: var(--white);
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem;
  padding: .8em 1.6em; border-radius: 14px; box-shadow: 4px 4px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }

/* World Kindness Day banner */
.wkd-banner {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 14px;
  padding: 10px 16px; text-align: center; text-decoration: none;
  background: var(--sun); color: var(--ink); font-weight: 700; font-size: .95rem;
}
.wkd-cta { font-family: var(--font-display); font-weight: 800; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* World Kindness Day popup */
.wkd-pop {
  width: min(420px, calc(100vw - 32px)); padding: 32px 24px 28px; text-align: center;
  background: var(--white); color: var(--ink); border: 3px solid var(--ink); border-radius: 20px;
  box-shadow: 8px 8px 0 var(--ink);
}
.wkd-pop::backdrop { background: rgba(19, 22, 58, .55); }
.wkd-pop img { display: block; margin: 0 auto 12px; transform: rotate(-6deg); }
.wkd-pop-date { margin: 0 0 6px; font-weight: 700; font-size: .95rem; }
.wkd-pop h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 6vw, 2.2rem); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 22px; }
.wkd-pop h2:focus { outline: none; }
.wkd-pop-x {
  position: absolute; top: 10px; right: 12px; width: 40px; height: 40px;
  background: none; border: 0; font-size: 1.8rem; line-height: 1; color: var(--ink); cursor: pointer;
}
.wkd-banner:hover .wkd-cta { text-decoration-thickness: 3px; }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; }
.top nav { display: flex; gap: 8px; }
.nav-tab {
  text-decoration: none; font-weight: 700; font-size: .95rem;
  padding: .45em 1em; border-radius: 999px; border: 2px solid var(--ink);
}
.nav-tab:hover, .nav-tab[aria-current="page"] { background: var(--ink); color: var(--white); }

/* Hero */
.hero { padding-block: clamp(24px, 5vw, 56px) clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 em {
  font-style: normal; color: var(--cobalt); padding: 0 .08em;
  background: linear-gradient(transparent 62%, var(--sun) 62%, var(--sun) 92%, transparent 92%);
}
.lede { font-size: 1.15rem; max-width: 38em; }
.hero-heart { width: clamp(150px, 26vw, 300px); height: auto; transform: rotate(-6deg); }
@media (max-width: 640px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-heart { order: -1; width: 140px; }
}

/* App */
.app { background: var(--cobalt); color: var(--white); }
.desc { max-width: 38em; }
.loop { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--sun); }
.loop span[aria-hidden] { color: var(--white); margin: 0 .2em; }
.stat { font-size: 1.1rem; }
.stat strong { font-family: var(--font-display); font-weight: 800; font-size: 1.8em; color: var(--sun); margin-right: .15em; }

/* Quote */
.quote { background: var(--sun); }
.quote blockquote p { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.08; max-width: 18em; }
.quote figcaption { max-width: 36em; }

/* KIND Principles */
.kind { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kind li { display: flex; flex-direction: column; gap: 10px; min-width: 0; border-radius: 20px; padding: 24px 18px; color: var(--white); font-weight: 700; font-size: 1.1rem; }
.kind li:nth-child(1) { background: var(--ultra); }
.kind li:nth-child(2) { background: var(--red); }
.kind li:nth-child(3) { background: var(--cobalt); }
.kind li:nth-child(4) { background: var(--sun); color: var(--ink); }
.kind-letter { font-family: var(--font-display); font-weight: 800; font-size: 3.4rem; line-height: .9; }
.note { font-size: 1.1rem; }
@media (max-width: 760px) { .kind { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* KIND Cities */
.cities { background: var(--ultra); color: var(--white); }
.cities h2 { color: var(--sun); }
.cities p { font-size: 1.2rem; }
.cities .cities-note { font-size: .9rem; opacity: .75; }

/* Closing CTA */
.close { padding-block: clamp(48px, 7vw, 80px); }

/* Footer */
.foot { background: var(--ink); color: var(--white); padding-block: 36px; font-size: .92rem; }
.foot .stack { gap: 10px; }
.foot .method { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.foot .method strong { color: var(--sun); }
.foot .fine { opacity: .7; font-size: .8rem; }
.foot a:hover { color: var(--sun); }

/* Privacy policy */
.policy { max-width: 760px; padding-block: 24px 64px; display: flex; flex-direction: column; gap: 16px; }
.policy h1 { font-size: clamp(2.4rem, 7vw, 3.6rem); }
.policy h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-top: 24px; }
.policy h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; margin: 8px 0 0; }
.policy p, .policy li { font-size: 1.05rem; line-height: 1.6; }
.policy ul { list-style: disc; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.policy-lede { font-size: 1.2rem !important; }
.policy a { text-underline-offset: 3px; }
