/*
  impact.autotroph.com styles. Tokens taken from autotroph.com (Nov 2026); see CLAUDE.md, "Design".
  One accent color: --accent. Don't add a second.
  Served from the edge and cached for a year (public/_headers); the page links it with the
  deployed version's id, so every deploy picks up changes.
*/

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-latin-wght-normal.woff2) format("woff2-variations");
}

:root {
  /* Color */
  --ink: #01391f;          /* body text on autotroph.com */
  --ink-deep: #004227;     /* deep green used for borders */
  --paper: #ffeed1;        /* cream section background */
  --card: #ffffff;
  --accent: #ff4d00;       /* link and button orange */
  --accent-hover: #ff7135;
  --muted: rgb(1 57 31 / 66%);
  --rule: rgb(1 57 31 / 18%);

  /* Type */
  --font-display: "antique-olive", "Arial Black", system-ui, sans-serif;
  --font-body: "Inter Variable", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.25rem, 1.1rem + 0.7vw, 1.55rem);
  --step-3: clamp(2.6rem, 1.9rem + 3.6vw, 4.6rem);
  --step-4: clamp(2.9rem, 1.9rem + 5vw, 6rem);

  /* Space and shape */
  --gutter: clamp(1.25rem, 0.8rem + 2.4vw, 3rem);
  --section: clamp(4rem, 3rem + 6vw, 9rem);
  --radius: 2rem;
  --radius-lg: clamp(2.5rem, 2rem + 3vw, 5rem);
  --measure: 38rem;
  --page: 72rem;
}

/* Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  margin: 0;
}

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

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

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

img {
  display: block;
  max-width: 100%;
}

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section-title {
  font-size: var(--step-1);
  margin-bottom: 1.75rem;
}

/* Header */

.top {
  padding-block: 1.5rem;
}

.top__home {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
}

/* Intro: text first on phones, character beside it on wide screens. */

.intro {
  display: grid;
  gap: 2rem;
  padding-block: clamp(2.5rem, 2rem + 4vw, 6rem) var(--section);
}

.intro h1 {
  font-size: var(--step-4);
  margin-bottom: 1.5rem;
}

.intro__lede {
  font-size: var(--step-1);
  line-height: 1.45;
  max-width: var(--measure);
}

.intro__character {
  width: min(14rem, 55vw);
  aspect-ratio: 1;
  justify-self: end;
}

/* Until the SVG is set, hide the empty slot on phones; keep the space on wide screens. */
.intro__character--empty {
  display: none;
}

@media (min-width: 52rem) {
  .intro {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .intro__character,
  .intro__character--empty {
    display: block;
    width: clamp(14rem, 20vw, 20rem);
  }
}

/* Number tiles */

.numbers {
  padding-bottom: var(--section);
}

.tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 40rem) {
  .tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .tiles {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  background: var(--card);
  border-radius: var(--radius);
}

.tile__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-3);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.tile__label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--step-1);
  line-height: 1.2;
  letter-spacing: 0;
}

.tile__definition {
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 30rem;
}

.tile__note {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: var(--step--1);
  color: var(--muted);
}

.tile__note a {
  color: inherit;
}

/* Placeholder: no card fill, dashed outline, the words instead of a number. */
.tile--counting {
  background: transparent;
  border: 2px dashed var(--rule);
}

.tile__value--counting {
  font-size: var(--step-1);
  letter-spacing: 0;
  color: var(--muted);
  padding-block: 0.6em;
}

/* Giving */

.giving {
  background: var(--card);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding-block: var(--section);
}

.giving__intro {
  color: var(--muted);
  max-width: var(--measure);
  margin-bottom: 2.5rem;
}

.giving__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.5rem;
}

.giving__item {
  padding-left: 1.25rem;
  border-left: 4px solid var(--ink-deep);
  max-width: 46rem;
}

.giving__sentence {
  font-size: var(--step-1);
  line-height: 1.35;
}

.giving__value {
  font-family: var(--font-display);
  font-weight: 800;
}

.giving__counting {
  color: var(--muted);
  font-style: italic;
}

.giving__note {
  margin-top: 0.5rem;
  font-size: var(--step--1);
  color: var(--muted);
}

.giving__note a {
  color: inherit;
}

/* Share your story */

.story {
  background: var(--card);
  padding-bottom: var(--section);
}

.story p {
  max-width: var(--measure);
  font-size: var(--step-1);
  line-height: 1.45;
}

.story p + p {
  margin-top: 1.75rem;
}

.button {
  display: inline-block;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: var(--step-1); /* 20px+ bold keeps white-on-orange at AA large-text contrast */
  text-decoration: none;
}

.button:hover {
  background: var(--accent-hover);
  color: #fff;
}

/* Footer */

.foot {
  background: var(--ink);
  color: var(--paper);
  padding-block: var(--section) 3rem;
}

.foot__since {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-4);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.foot a {
  color: var(--paper);
}
