/* Rescue Through Recycling
   Tune the look from the tokens below. */
:root {
  /* Greens and black are taken from the logo; hi-vis orange is the accent. */
  --paper: #fbfcf9;
  --wash: #e9f3e6;
  --ink: #141a14;
  --moss: #0b7a1c;
  --deep: #07401a;
  --elephant: #55605a;
  --hivis: #ff6a00;
  --line: #cddccb;

  --display: "Cabin Sketch", "Hanken Grotesk", system-ui, sans-serif; /* regular weight for headings and the name; bold is kept for the hover words */
  --sketch: "Cabin Sketch", "Hanken Grotesk", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.9rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(1.9rem, 1.4rem + 2.2vw, 2.9rem);
  --step-4: clamp(2.3rem, 1.3rem + 4.4vw, 4.4rem);

  --gap: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  --section: clamp(3.5rem, 2.5rem + 5vw, 7rem);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  border-top: 6px solid var(--hivis);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.1; text-wrap: balance; }
h1 { font-size: var(--step-4); max-width: 18ch; }
h2 { font-size: var(--step-3); max-width: 20ch; }
h3 { font-size: var(--step-1); font-weight: 600; line-height: 1.3; }
p { max-width: 62ch; text-wrap: pretty; }

a { color: var(--moss); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--hivis); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - 2.5rem, 70rem); margin-inline: auto; }
.narrow { max-width: 46rem; }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--deep); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius); z-index: 10; }
.skip:focus { top: 1rem; color: #fff; }

/* Header */
.site-header { background: var(--deep); color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem 2rem; padding-block: 0.8rem; }
.brand { display: flex; align-items: center; gap: 0.8rem; font-family: var(--display); font-weight: 400; font-size: 1.4rem; color: #fff; text-decoration: none; line-height: 1.1; }
.brand:hover { color: #fff; }
.brand img { width: 4rem; height: 4rem; flex: none; }
.brand span { max-width: 9ch; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.5rem; }
.site-nav a { color: #fff; text-decoration: none; font-weight: 500; font-size: var(--step--1); padding-block: 0.4rem; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, 0.5); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--hivis); color: #fff; }
.site-nav a.nav-cta { background: var(--hivis); color: var(--ink); font-weight: 600; border: 0; border-radius: 999px; padding: 0.55rem 1.1rem; }
.site-nav a.nav-cta:hover, .site-nav a.nav-cta[aria-current="page"] { background: #fff; color: var(--ink); }
.menu-toggle { font: inherit; font-size: var(--step--1); font-weight: 600; background: none; color: #fff; border: 1px solid #fff; border-radius: 999px; padding: 0.45rem 1rem; cursor: pointer; }

@media (max-width: 47.99rem) {
  .js .menu-toggle { display: inline-block; }
  .js .site-nav { display: none; width: 100%; flex-direction: column; gap: 0; padding-bottom: 0.5rem; }
  .js .site-nav.open { display: flex; }
  .js .site-nav { align-items: stretch; }
  .js .site-nav a { padding-block: 0.8rem; border-bottom: 1px solid rgba(255, 255, 255, 0.25); font-size: var(--step-0); }
  .js .site-nav a.nav-cta { margin-top: 0.9rem; text-align: center; padding-block: 0.7rem; }
}
@media (min-width: 48rem) { .menu-toggle { display: none !important; } }

/* Hero and page heads */
.hero-logo { display: none; }
@media (min-width: 56rem) {
  .hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) clamp(16rem, 30vw, 26rem); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
  .hero-logo { display: block; width: 100%; height: auto; }
}
.hero { padding-block: clamp(3rem, 2rem + 6vw, 6.5rem) clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.page-head { padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.page-head h1 { max-width: 16ch; }
.hero-sub { font-size: var(--step-2); line-height: 1.35; color: var(--elephant); margin-top: 1.5rem; max-width: 34ch; }
.page-head .hero-sub { font-size: var(--step-1); line-height: 1.5; max-width: 52ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2.25rem; max-width: none; }

.button { display: inline-block; font: inherit; font-weight: 600; background: var(--moss); color: #fff; border: 2px solid var(--moss); border-radius: var(--radius); padding: 0.8rem 1.4rem; text-decoration: none; cursor: pointer; line-height: 1.2; }
.button:hover { background: var(--deep); border-color: var(--deep); color: #fff; }
.button-light { background: var(--paper); color: var(--deep); border-color: var(--paper); flex: none; }
.button-light:hover { background: var(--hivis); border-color: var(--hivis); color: var(--ink); }
.quiet-link { font-weight: 500; }

/* Sections */
.section { padding-block: var(--section); }
.section-wash { background: var(--wash); }
.section-rule { border-top: 1px solid var(--line); }
.section h2 + p, .section h2 + .lede { margin-top: 1.25rem; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--elephant); max-width: 48ch; }
.split { display: grid; gap: var(--gap) clamp(2rem, 6vw, 6rem); }
@media (min-width: 56rem) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } }

.prose > * + * { margin-top: 1.1rem; }
.prose h3 { margin-top: 2rem; }
.prose h2 + p { margin-top: 1.25rem; }
.pull { font-family: var(--display); font-size: var(--step-2); line-height: 1.25; color: var(--deep); max-width: 26ch; }
.callout { background: var(--paper); border-left: 6px solid var(--hivis); border-radius: var(--radius); padding: 1rem 1.25rem; font-size: var(--step-1); line-height: 1.45; }
.note { font-size: var(--step--1); color: var(--elephant); border-left: 3px solid var(--hivis); padding-left: 1rem; margin-top: 2rem; }

/* The stem: a growing line with a leaf at each step */
.stem { list-style: none; padding: 0; margin: 0 0 0 1.25rem; border-left: 2px solid var(--moss); }
.stem li { position: relative; padding: 0 0 2.25rem 2.75rem; }
.stem li:last-child { padding-bottom: 0.25rem; }
.stem li::before { content: ""; position: absolute; left: 0; top: 0.55rem; width: 1.9rem; height: 1rem; background: var(--moss); border-radius: 0 100% 0 100%; transform-origin: left center; transform: rotate(-18deg); }
.stem li:nth-child(even)::before { left: auto; right: 100%; margin-right: 2px; border-radius: 100% 0 100% 0; transform-origin: right center; transform: rotate(18deg); background: var(--paper); border: 2px solid var(--moss); }
.section-wash .stem li:nth-child(even)::before { background: var(--wash); }
.stem li::before { transition: background-color 0.15s, border-color 0.15s; }
.stem li:hover::before, .stem li:nth-child(even):hover::before { background: var(--hivis); border-color: var(--hivis); }
@media (prefers-reduced-motion: reduce) { .stem li::before { transition: none; } }
.stem mark { display: inline-block; color: inherit; background: none; transition: font-size 0.18s ease-out; }
.stem li:hover mark { font-family: var(--sketch); font-weight: 700; font-size: 1.14em; line-height: 1; background: linear-gradient(transparent 66%, var(--hivis) 66%, var(--hivis) 96%, transparent 96%); }
@media (prefers-reduced-motion: reduce) { .stem mark { transition: none; } }
.stem-n { display: block; font-family: var(--display); font-size: var(--step-3); line-height: 1; color: var(--deep); }
.stem p { margin-top: 0.4rem; font-size: var(--step-1); line-height: 1.45; max-width: 30ch; }

/* What would you like to do */
.section-ways { padding-top: 0; }
.ways { display: grid; gap: var(--gap); margin-top: clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 44rem) { .ways { grid-template-columns: repeat(2, 1fr); } }
.ways article { display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem; background: var(--wash); border-top: 6px solid var(--moss); border-radius: var(--radius); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); }
.ways h3 { font-family: var(--display); font-weight: 400; font-size: var(--step-2); line-height: 1.15; }
.ways p { flex: 1; }

/* Heart beside text */
.with-heart { display: grid; gap: var(--gap); align-items: center; }
.with-heart img { width: clamp(6rem, 18vw, 11rem); height: auto; }
@media (min-width: 44rem) { .with-heart { grid-template-columns: auto minmax(0, 46rem); gap: clamp(2rem, 5vw, 4.5rem); } }
.with-heart h2 + p { margin-top: 1.25rem; }

/* Three kinds of rescue */
.trio { display: grid; gap: var(--gap); margin-top: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 48rem) { .trio { grid-template-columns: repeat(3, 1fr); } }
.trio article { border-top: 2px solid var(--deep); padding-top: 1.1rem; text-align: center; }
.trio h3 { font-family: var(--display); font-weight: 400; font-size: var(--step-2); }
.trio p { margin: 0.6rem auto 0; max-width: 34ch; }

/* Three ways to give (Pass It On) */
.trio-pick { margin-top: clamp(2rem, 4vw, 3rem); }
.trio-pick article { border-top: 0; padding-top: 0; }
.trio-pick .sketch { width: min(11rem, 60%); margin-bottom: 1.25rem; }
.trio-pick .sketch svg { fill: var(--line); }
.trio-pick h2 { font-size: var(--step-2); max-width: none; }
.trio-pick h2 a { color: var(--ink); text-decoration-color: var(--hivis); text-decoration-thickness: 3px; text-underline-offset: 0.25em; }
.trio-pick h2 a:hover { color: var(--moss); }
[id] { scroll-margin-top: 1.5rem; }

/* Lists */
.leaf-list, .plain-list { list-style: none; padding: 0; margin-top: 0.9rem; }
.leaf-list li, .plain-list li { padding: 0.7rem 0 0.7rem 1.9rem; border-bottom: 1px solid var(--line); position: relative; }
.leaf-list li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 1rem; height: 0.55rem; background: var(--moss); border-radius: 0 100% 0 100%; }
.plain-list li { padding-left: 0; color: var(--elephant); }
.leaf-list + h3 { margin-top: 2.5rem; }

/* Volunteer roles */
.roles { display: grid; gap: 0 clamp(2rem, 5vw, 5rem); margin-top: clamp(2rem, 4vw, 3rem); }
@media (min-width: 48rem) { .roles { grid-template-columns: 1fr 1fr; } }
.roles div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding-block: 1.1rem; border-top: 1px solid var(--line); align-items: baseline; }
.roles dt { font-family: var(--display); font-size: var(--step-1); color: var(--deep); }
@media (max-width: 26rem) { .roles div { grid-template-columns: 1fr; gap: 0.2rem; } }

/* Team */
.team { list-style: none; padding: 0; margin: clamp(2rem, 4vw, 3rem) 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: var(--gap); text-align: center; }
.portrait { aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--paper); border: 2px solid var(--ink); max-width: 13rem; margin-inline: auto; }
.portrait svg { display: block; width: 100%; height: 100%; fill: var(--line); }
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.team h3 { font-family: var(--display); font-weight: 400; font-size: var(--step-2); margin-top: 1rem; }
.team p { color: var(--elephant); margin-inline: auto; }

/* Dark band */
.band { background: var(--deep); color: var(--paper); padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem 3rem; }
.band h2 { font-size: var(--step-3); max-width: 22ch; }
.band { border-top: 6px solid var(--hivis); }
.band p { margin-top: 0.9rem; color: #d3e6d2; max-width: 46ch; }

/* Contact form */
.contact-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 1rem + 2vw, 2.25rem); }
.contact-form h2 { font-size: var(--step-2); margin-bottom: 0.5rem; }
.contact-form label { display: block; font-weight: 600; font-size: var(--step--1); margin-top: 1.25rem; }
.optional { font-weight: 400; color: var(--elephant); }
.contact-form input:not([type="hidden"]):not([type="checkbox"]), .contact-form select, .contact-form textarea { display: block; width: 100%; margin-top: 0.4rem; font: inherit; color: var(--ink); background: #fff; border: 1px solid #8a9686; border-radius: var(--radius); padding: 0.7rem 0.8rem; }
.contact-form textarea { resize: vertical; min-height: 8rem; }
.contact-form .button { margin-top: 1.75rem; }
.contact-form .button[disabled] { opacity: 0.6; cursor: progress; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin-top: 1rem; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--moss); }
.form-status.err { color: #8f2d1c; }
.form-small { margin-top: 1rem; font-size: var(--step--1); color: var(--elephant); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 3rem 2.5rem; }
.band + .site-footer, main > .band:last-child ~ .site-footer { border-top: 0; }
.footer-inner { display: grid; gap: 1.5rem; }
.footer-line { display: flex; align-items: center; gap: 0.9rem; font-family: var(--display); font-size: var(--step-2); line-height: 1.2; color: var(--deep); max-width: none; }
.footer-line img { width: 2.75rem; height: 2.75rem; flex: none; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.footer-nav a { color: var(--ink); font-weight: 500; }
.footer-small { font-size: var(--step--1); }
