/* Lampkettle: a three-ink riso print. Blue, fluorescent pink and yellow
   overprint on white paper. Bricolage Grotesque for display, Atkinson
   Hyperlegible for reading (designed for low-vision readers). */

:root {
  --paper: #FFFFFF;
  --ink: #1E1B2E;
  --muted: #4A4658;
  --blue: #0078BF;
  --blue-deep: #005F98;
  --pink: #FF48B0;
  --yellow: #FFE800;
  --pink-tint: #FFE6F3;
  --blue-tint: #E4F0F9;
  --line: #D9D6E0;
  --error: #B3123E;

  --body: "Atkinson Hyperlegible", Verdana, "Segoe UI", sans-serif;
  --display: "Bricolage Grotesque", "Segoe UI", Arial, sans-serif;
  --wrap: 70rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --space: clamp(3.5rem, 8vw, 6.5rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, p, ul, dl, dd, figure, blockquote, fieldset { margin: 0; }
ul { padding: 0; list-style: none; }
fieldset { padding: 0; border: 0; min-width: 0; }
svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }

a { color: var(--blue-deep); text-underline-offset: .18em; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.donate :focus-visible, .footer :focus-visible { outline-color: var(--yellow); }

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

.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 30;
  padding: .75rem 1rem; background: var(--yellow); color: var(--ink); font-weight: 700;
}
.skip:focus { top: .5rem; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.05; letter-spacing: -.01em; }

/* ---------- Ribbon and header ---------- */

.ribbon { background: var(--ink); color: var(--paper); font-size: .9375rem; }
.ribbon__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1rem; min-height: 2.75rem; }
.ribbon a { display: inline-flex; align-items: center; min-height: 44px; color: var(--yellow); font-weight: 700; }
.ribbon :focus-visible { outline-color: var(--yellow); }

.header__inner { display: flex; align-items: center; gap: 1rem; min-height: 4.75rem; }
.logo { display: flex; align-items: center; gap: .625rem; margin-right: auto; min-height: 44px; color: var(--ink); text-decoration: none; }
.logo__mark { width: 2.5rem; height: 2.5rem; flex: none; }
.logo__name { font-family: var(--display); font-weight: 800; font-size: 1.375rem; letter-spacing: -.015em; }

.nav { display: none; }
.nav ul { display: flex; gap: .25rem; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: .875rem;
  color: var(--ink); font-weight: 700; text-decoration: none; border-radius: 99px;
}
.nav a:hover { background: var(--blue-tint); }

@media (min-width: 52rem) { .nav { display: block; } }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .625rem 1.5rem;
  border: 2.5px solid transparent; border-radius: 99px;
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer;
}
.btn--small { min-height: 44px; padding-inline: 1.25rem; }
.btn--blue { background: var(--blue); color: var(--paper); }
.btn--blue:hover { background: var(--blue-deep); }
.btn--pink { background: var(--pink); color: var(--ink); }
.btn--pink:hover { background: #F12E9E; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #000; }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: #FFF27A; }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--wide { width: 100%; }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(1.5rem, 5vw, 3.5rem) var(--space); overflow: hidden; }
.hero__grid { display: grid; gap: 2rem; align-items: center; }

.hero h1 {
  color: var(--blue);
  font-size: clamp(3.25rem, 1.8rem + 7vw, 6rem);
  line-height: .92;
  letter-spacing: -.035em;
  text-shadow: -.035em .03em 0 var(--pink);   /* misregistered second ink */
  font-variation-settings: "opsz" 96;
}
.lede { margin-top: 1.5rem; max-width: 33rem; font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.hero__info {
  display: flex; flex-wrap: wrap; gap: .25rem 1.5rem;
  margin-top: 1.75rem; color: var(--muted); font-size: 1rem;
}
.hero__info span { position: relative; padding-left: 1.25rem; }
.hero__info span::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: .7rem; height: .7rem; border-radius: 50%; background: var(--pink);
}
.hero__info span + span::before { background: var(--blue); border-radius: 2px; }

.hero__art { width: min(100%, 28rem); height: auto; justify-self: center; }
.hero__art .ink > *, .story__art .ink > * { mix-blend-mode: multiply; }

@media (min-width: 52rem) {
  .hero__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 3rem; }
  .hero__art { justify-self: end; }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--space); }
.section h2 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); line-height: 1; }
.section__head { max-width: 38rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head p { margin-top: 1rem; }

/* ---------- Mission ---------- */

.mission { border-top: 3px solid var(--ink); }
.mission h2 { color: var(--ink); }
.mission__statement {
  margin-top: 1.5rem;
  max-width: 44rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem);
  line-height: 1.3;
  letter-spacing: -.01em;
  font-variation-settings: "opsz" 32;
}
.mission__sub { margin-top: clamp(3rem, 6vw, 4.5rem); font-size: 1.5rem; }

.offers { display: grid; gap: 1.75rem; margin-top: 1.5rem; }
.offers li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: start; }
.offers svg { width: 3rem; height: 3rem; }
.offers h4 { font-size: 1.375rem; }
.offers p { margin-top: .35rem; color: var(--muted); }

@media (min-width: 48rem) {
  .offers { grid-template-columns: 1fr 1fr; gap: 2.25rem 3.5rem; }
}

/* ---------- Events ---------- */

.events { background: var(--blue-tint); }
.event-list { display: grid; gap: 1rem; }
.event {
  display: grid; grid-template-columns: 4.25rem 1fr; gap: 1rem; align-items: start;
  padding: 1.125rem;
  background: var(--paper);
  border-radius: 1.25rem;
}
.event__date {
  position: relative;
  display: grid; place-items: center; align-content: center;
  width: 4.25rem; height: 4.25rem;
  font-family: var(--display); font-weight: 800; line-height: 1; text-align: center;
  color: var(--ink);
  isolation: isolate;
}
.event__date::before, .event__date::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%;
  mix-blend-mode: multiply;
}
.event__date::before { inset: 0; background: var(--yellow); }
.event__date::after { inset: 18% -6% -6% 18%; background: var(--pink); opacity: .55; }
.event:nth-child(even) .event__date::after { background: #6FB6E6; opacity: .7; }
.event__dow { font-size: .9375rem; }
.event__day { font-size: 1.5rem; margin-top: .1rem; }
.event__mon { font-size: .875rem; }
.event__day:empty, .event__mon:empty { display: none; }

.event h3 { font-size: 1.5rem; }
.event__when { margin-top: .25rem; font-weight: 700; color: var(--blue-deep); }
.event__body > p:not(.event__when):not(.event__next) { margin-top: .4rem; color: var(--muted); }
.event__next { margin-top: .6rem; padding-top: .6rem; border-top: 2px dotted var(--line); font-size: 1rem; font-weight: 700; }

@media (min-width: 48rem) {
  .event-list { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .event { padding: 1.5rem; grid-template-columns: 5.5rem 1fr; gap: 1.25rem; }
  .event__date { width: 5.5rem; height: 5.5rem; }
  .event__day { font-size: 1.875rem; }
}

/* ---------- Story ---------- */

.story { background: var(--pink-tint); }
.story__grid { display: grid; gap: 2rem; align-items: center; }
.story__art { width: min(100%, 18rem); height: auto; }
.story h2 { color: var(--ink); }
.story__quote {
  margin-top: 1.5rem;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.625rem, 1.2rem + 2vw, 2.75rem);
  line-height: 1.1; letter-spacing: -.02em;
  color: var(--blue);
  font-variation-settings: "opsz" 72;
}
.story__quote p::before { content: "“"; }
.story__quote p::after { content: "”"; }
.story__text > p { margin-top: 1.25rem; max-width: 36rem; }
.story__note { font-size: 1rem; color: var(--muted); font-style: italic; }

@media (min-width: 52rem) {
  .story__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 4rem; }
  .story__art { justify-self: center; }
}

/* ---------- Get involved ---------- */

.involved { background: var(--yellow); }
.involved__grid { display: grid; gap: 2.5rem; align-items: start; }
.ways { display: grid; gap: 1.75rem; }
.ways li { padding-top: 1.25rem; border-top: 3px solid var(--ink); }
.ways h3 { font-size: 1.625rem; }
.ways p { margin-top: .5rem; max-width: 34rem; }

.panel { padding: clamp(1.25rem, 4vw, 2.25rem); background: var(--paper); border-radius: 1.5rem; }
.panel__title { font-size: 1.625rem; }

.form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .4rem; }
.field > label, .field legend { font-weight: 700; }
.field legend { margin-bottom: .5rem; }
.optional { font-weight: 400; color: var(--muted); }

.form input[type="text"], .form input[type="email"] {
  width: 100%; min-height: 48px; padding: .5rem 1rem;
  border: 2.5px solid var(--ink); border-radius: .75rem;
  background: var(--paper); color: var(--ink); font: inherit;
}
.form [aria-invalid="true"] { border-color: var(--error) !important; }

.checks { display: flex; flex-wrap: wrap; gap: .5rem; }
.checks label { position: relative; cursor: pointer; }
.checks input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.checks span {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px; padding: .4rem 1rem;
  border: 2.5px solid var(--ink); border-radius: 99px;
  font-weight: 700; font-size: 1rem;
}
.checks span::before {
  content: ""; width: .9rem; height: .9rem; border: 2px solid var(--ink); border-radius: 3px; flex: none;
}
.checks input:checked + span { background: var(--ink); color: var(--paper); }
.checks input:checked + span::before { background: var(--yellow); border-color: var(--yellow); }
.checks input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
#v-roles.is-invalid .checks span { border-color: var(--error); }

.error { color: var(--error); font-weight: 700; font-size: 1rem; }
.small { font-size: 1rem; color: var(--muted); }
.form .btn { justify-self: start; }

.done { display: grid; gap: 1rem; }
.done h3 { font-size: 1.875rem; color: var(--blue); }
.done h3:focus { outline: none; }
.done .btn { justify-self: start; }

@media (min-width: 56rem) {
  .involved__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4rem; }
}

/* ---------- Donate ---------- */

.donate { background: var(--blue); color: var(--paper); }
.donate h2 { color: var(--paper); text-shadow: -.035em .03em 0 var(--pink); }
.donate__grid { display: grid; gap: 2rem; align-items: start; }
.donate__lede { margin-top: 1rem; font-size: 1.3125rem; max-width: 24rem; }
.donate .small { margin-top: 1rem; color: var(--paper); }

.donate__form { display: grid; gap: 1.5rem; max-width: 34rem; }
.donate legend { font-weight: 700; margin-bottom: .6rem; }

.toggle, .amounts { display: flex; flex-wrap: wrap; gap: .5rem; }
.toggle label, .amounts label { position: relative; cursor: pointer; }
.toggle input, .amounts input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.toggle span, .amounts span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 4.5rem; min-height: 48px; padding: .4rem 1.125rem;
  border: 2.5px solid var(--paper); border-radius: 99px;
  font-weight: 700; font-size: 1.125rem;
}
.toggle input:checked + span, .amounts input:checked + span { background: var(--paper); color: var(--ink); }
.toggle input:focus-visible + span, .amounts input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }

.other { display: grid; gap: .4rem; margin-top: 1rem; max-width: 14rem; }
.other label { font-weight: 700; }
.other__input { display: flex; align-items: center; border: 2.5px solid var(--paper); border-radius: .75rem; background: var(--paper); color: var(--ink); }
.other__input span { padding-left: 1rem; font-weight: 700; }
.other__input input { flex: 1; min-width: 0; min-height: 44px; padding: .5rem .75rem .5rem .4rem; border: 0; border-radius: .75rem; background: transparent; color: var(--ink); font: inherit; }
.other__input input:focus { outline: none; }
.other__input:focus-within { outline: 3px solid var(--yellow); outline-offset: 2px; }
.donate .error { color: var(--paper); background: var(--error); padding: .2rem .6rem; border-radius: .5rem; justify-self: start; }

.impact {
  font-family: var(--display); font-weight: 700; font-size: 1.375rem; line-height: 1.25;
  font-variation-settings: "opsz" 32;
}
.giftaid-box {
  display: grid; gap: .875rem;
  padding: 1.125rem 1.25rem;
  border: 2.5px solid var(--paper); border-radius: .75rem;
}
.giftaid__intro { font-size: 1.0625rem; }
.giftaid { display: flex; gap: .75rem; align-items: flex-start; cursor: pointer; font-size: 1rem; line-height: 1.5; }
.giftaid input { width: 1.375rem; height: 1.375rem; margin: .15rem 0 0; flex: none; accent-color: var(--yellow); }
.giftaid input:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.giftaid__note, .giftaid__source { font-size: .9375rem; line-height: 1.45; }
.giftaid__source { font-style: italic; }
.giftaid__sum { font-weight: 700; }
.stub:empty { display: none; }
.stub { padding: .875rem 1rem; border-radius: .75rem; background: var(--paper); color: var(--ink); font-weight: 700; }

@media (min-width: 56rem) {
  .donate__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4rem; }
}

/* ---------- Footer ---------- */

.footer { padding-block: 3rem; background: var(--ink); color: #E9E6F2; font-size: 1rem; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--paper); font-weight: 700; }
.footer__grid { display: grid; gap: 1.75rem; }
.footer__name { font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--paper); }
.footer__concept strong { color: var(--yellow); }
@media (min-width: 52rem) { .footer__grid { grid-template-columns: 1fr 1fr 2fr; gap: 3rem; } }

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