/* Page frame: base type, header, footer, section rhythm. */

:root {
  --wrap: 72rem;
  --gutter: clamp(1.1rem, 4vw, 3rem);
  --inset: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  --section: clamp(3rem, 8vw, 6rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 1.125rem/1.6 var(--body);
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 8.2vw, 6.25rem); font-weight: 800; letter-spacing: -0.035em; line-height: 0.95; }
h2, .h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 62ch; }
a { color: var(--leaf); text-underline-offset: 0.18em; }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

.btn {
  display: inline-block;
  font: 700 1.05rem/1 var(--body);
  text-decoration: none;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
}
.btn-give { background: var(--door); border-color: var(--door); color: #fff; }
.btn-give:hover { background: var(--door-dark); border-color: var(--door-dark); }
.btn-plain { background: transparent; color: var(--ink); }
.btn-plain:hover { background: var(--ink); color: #fff; }

/* Header */
.top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.9rem var(--inset);
  background: var(--roof);
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); font: 800 1.3rem/1 var(--display); letter-spacing: -0.01em; }
.brand img { width: 84px; height: auto; background: #fff; border-radius: 8px; padding: 4px; }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.4rem; }
.top nav a:not(.btn) { color: var(--ink); font-weight: 700; text-decoration: none; }
.top nav a:not(.btn):hover { text-decoration: underline; }
.top .btn { padding: 0.7rem 1.15rem; }

/* Every block except the hero shares this rhythm. Backgrounds run full width. */
.block { padding: var(--section) var(--inset); }
.block.joined { padding-top: 0; }
.block:has(+ .joined) { padding-bottom: 2.5rem; }
.block.dark { background: var(--ink); color: #fff; }

/* Footer */
.foot { background: var(--roof); padding: clamp(2.5rem, 6vw, 4rem) var(--inset); }
.closing { font: 800 clamp(2rem, 6vw, 4rem)/1 var(--display); letter-spacing: -0.03em; max-width: none; margin: 0 0 2rem; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.foot address { font-style: normal; }
.foot a { color: var(--ink); font-weight: 700; }
.foot-cols p { margin: 0; }
.legal { font-size: 0.9rem; margin: 2rem 0 0; max-width: none; }
.legal-links { font-size: 0.9rem; margin: 0.6rem 0 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1.25rem; }

@media (max-width: 52rem) {
  .foot-cols { grid-template-columns: 1fr; }
  .top nav a:not(.btn) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
