/* Base elements and layout helpers. Components live in /components. */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--c-surface);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
}

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

a { color: var(--c-primary); }
a:hover { color: var(--c-primary-dark); }

h1, h2, h3 {
  font-family: var(--f-heading);
  font-weight: 500;
  color: var(--c-primary);
  line-height: 1.25;
  margin: 0 0 0.6em;
}
h2 { font-size: clamp(24px, 3vw, 30px); }
h3 { font-size: 22px; }

p, ul, ol { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--c-give); outline-offset: 2px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--c-surface);
  padding: 8px 14px;
}
.skip-link:focus { left: 8px; }

/* Layout helpers */
.wrap {
  max-width: var(--w-page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: 48px 0; }
.section--tint { background: var(--c-tint); }
.text { max-width: var(--w-text); margin-left: auto; margin-right: auto; }
.center { text-align: center; }

/* Buttons. The give button is the only olive element on the site. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius);
  border: 2px solid var(--c-primary);
  background: var(--c-surface);
  color: var(--c-primary);
  font-family: var(--f-ui);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}
.button:hover { background: var(--c-tint); color: var(--c-primary-dark); }
.button--give {
  background: var(--c-give);
  border-color: var(--c-give);
  color: #ffffff;
}
.button--give:hover { background: var(--c-give-dark); border-color: var(--c-give-dark); color: #ffffff; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.center .buttons { justify-content: center; }

/* Spacing helpers */
.section--flush-top { padding-top: 0; }
.stack-top { margin-top: 28px; }
