/*
 * Z & O Consulting: stylesheet for all pages, mobile first.
 *
 * The blocks between "critical:<name>" and "end critical:<name>" are the above-the-fold CSS.
 * tools/build.py copies them minified into the <style data-critical="<name>"> elements of the pages
 * and updates the Content-Security-Policy hashes. Edit this file only, then run: python3 tools/build.py
 */

/* critical:base */
@font-face {
  font-family: "Merriweather";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url(/vendor/fonts/merriweather_400.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url(/vendor/fonts/open_sans_500.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --color-text: #212529;
  --color-muted: #5c636a;
  --color-bg: #fff;
  --color-surface: #f1f3f5;
  --color-dark: #212529;
  --color-on-dark: #fff;
  --color-on-dark-muted: #ced4da;
  --color-primary: #0b5ed7;
  --color-primary-hover: #0a4fb4;
  --color-accent: #b3cc05;
  --font-body: "Merriweather", Georgia, "Times New Roman", serif;
  --font-heading: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  --header-height: 4rem;
  --container-max: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-space: clamp(3rem, 1.5rem + 5vw, 5.5rem);
  --target-min: 2.75rem;
  --radius-pill: 999px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-wrap: break-word;
}

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

img {
  height: auto;
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.25;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.75rem, 1.4rem + 1.75vw, 2.5rem);
}

h2 {
  font-size: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
}

h3 {
  font-size: clamp(1.1875rem, 1.1rem + 0.45vw, 1.375rem);
}

p,
ul,
ol,
address {
  margin: 0 0 1rem;
}

a {
  color: var(--color-primary);
  text-underline-offset: 0.15em;
}

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

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

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

.container--narrow {
  max-width: 50rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: var(--target-min);
  padding: 0.5rem 1rem;
  font-family: var(--font-heading);
  color: var(--color-text);
  background: var(--color-bg);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  font-family: var(--font-heading);
  color: var(--color-on-dark);
  background-color: var(--color-dark);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: var(--target-min);
  min-height: var(--target-min);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-right: -0.5rem;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 0.5rem;
  cursor: pointer;
}

.nav-toggle svg {
  width: 1.75rem;
  height: 1.75rem;
}

.nav-toggle__close,
.nav-toggle[aria-expanded="true"] .nav-toggle__open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
  display: block;
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  max-height: calc(100vh - var(--header-height));
  max-height: calc(100dvh - var(--header-height));
  overflow-y: auto;
  padding: 0.25rem var(--gutter) 1rem;
  background-color: var(--color-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-toggle[aria-expanded="true"] + .site-nav {
  display: block;
}

.site-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.5rem 0;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-on-dark);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--color-accent);
}

.site-footer {
  padding-block: 2rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  text-align: center;
  color: var(--color-on-dark-muted);
  background-color: var(--color-dark);
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-min);
  padding-inline: 0.5rem;
  text-decoration: none;
  color: var(--color-on-dark);
}

.site-footer a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.site-footer p {
  margin: 0;
}

.site-footer p span {
  white-space: nowrap;
}

@media (min-width: 62em) {
  :root {
    --header-height: 4.5rem;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav,
  .nav-toggle[aria-expanded="true"] + .site-nav {
    display: block;
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: none;
    border: 0;
  }

  .site-nav ul {
    display: flex;
    gap: 0.25rem;
  }

  .site-nav li + li {
    border: 0;
  }

  .site-nav a {
    padding: 0.5rem 1rem;
  }
}
/* end critical:base */

/* critical:home */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: calc(var(--header-height) + 2rem) 3rem;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background-color: #2b2f33;
}

.hero__bg,
.hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__bg {
  z-index: -1;
}

.hero__bg img {
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.5));
}

.hero__title {
  margin: 0 0 1.5rem;
  font-size: 1rem;
}

.hero__logo {
  width: min(36rem, 80%);
  margin: 0 auto 2rem;
}

.hero__claim {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.0625rem, 0.95rem + 0.6vw, 1.375rem);
  line-height: 1.5;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.hero__text {
  max-width: 40rem;
  margin: 0 auto 2rem;
  font-size: 1.0625rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--target-min);
  padding: 0.875rem clamp(1rem, 4vw, 2rem);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius-pill);
}

.btn-primary,
.btn-primary:hover {
  color: #fff;
}

.btn-primary {
  background-color: var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
}

.btn-outline {
  color: #fff;
  background-color: rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 0 0 2px #fff;
}

.btn-outline:hover {
  color: var(--color-text);
  background-color: #fff;
}

@media (min-width: 62em) {
  @supports (animation-timeline: scroll()) {
    /* Transparent header over the hero that fills in while scrolling; without support it stays solid. */
    .page-home .site-header {
      animation: header-fill linear both;
      animation-timeline: scroll(root);
      animation-range: 0 4rem;
    }
  }
}

@keyframes header-fill {
  from {
    background-color: transparent;
  }

  to {
    background-color: var(--color-dark);
  }
}
/* end critical:home */

/* critical:legal */
.legal {
  padding-block: calc(var(--header-height) + 1.5rem) var(--section-space);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-muted);
}

.breadcrumb li + li::before {
  content: "/";
  margin-inline: 0.5rem;
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-min);
}

.breadcrumb [aria-current="page"] {
  color: var(--color-muted);
  text-decoration: none;
}

.legal h2 {
  margin-top: 2rem;
  font-size: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
}

.legal h3 {
  margin-top: 1.5rem;
  font-size: 1.125rem;
}

.legal address {
  font-style: normal;
}

.plain-list {
  padding: 0;
  list-style: none;
}

.plain-list a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-min);
}
/* end critical:legal */

/* Below the fold: home page sections */
.section {
  padding-block: var(--section-space);
  text-align: center;
}

.section--primary {
  color: #fff;
  background-color: var(--color-primary);
}

.section--surface {
  background-color: var(--color-surface);
}

.section__title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin: 1.25rem auto 0;
  background-color: var(--color-accent);
}

.section--primary .section__title::after {
  background-color: #fff;
}

.section__lead {
  max-width: 44rem;
  margin: 0 auto 2.5rem;
  color: var(--color-muted);
}

.section--primary p {
  margin-bottom: 1.5rem;
  color: #fff;
}

.section__more {
  margin: 2.5rem 0 0;
}

.btn-light {
  color: var(--color-text);
  background-color: #fff;
}

.btn-light:hover {
  color: var(--color-text);
  background-color: #e9ecef;
}

.btn-outline-primary {
  color: var(--color-primary);
  background-color: transparent;
  box-shadow: inset 0 0 0 2px var(--color-primary);
}

.btn-outline-primary:hover {
  color: #fff;
  background-color: var(--color-primary);
}

.icon {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-badge {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1rem;
  color: #4d5a00;
  background-color: rgba(179, 204, 5, 0.22);
  border-radius: 50%;
}

.cards,
.features,
.steps,
.tools,
.products {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.cards {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.features {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 2.5rem 2rem;
  text-align: center;
}

.card,
.product,
.tool {
  padding: clamp(1rem, 0.5rem + 2vw, 2rem);
  background-color: var(--color-bg);
  border: 1px solid #dee2e6;
  border-radius: 0.75rem;
}

.card p,
.feature p,
.step p,
.product p,
.tool p {
  color: var(--color-muted);
}

.feature p,
.step p {
  margin-bottom: 0;
}

.checklist {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
}

.checklist li + li {
  margin-top: 0.5rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  top: 0.45em;
  left: 0.3rem;
  width: 0.45rem;
  height: 0.8rem;
  border: solid var(--color-primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.steps {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 2rem;
  counter-reset: step;
  text-align: center;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: #fff;
  background-color: var(--color-primary);
  border-radius: 50%;
}

.products {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

.product {
  display: flex;
  flex-direction: column;
}

.product__logo {
  align-self: flex-start;
  width: auto;
  height: 3rem;
  margin-bottom: 1.25rem;
}

.product .checklist {
  margin-bottom: 1.5rem;
}

.product__link {
  align-self: flex-start;
  margin-top: auto;
}

.tools {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}

.tool {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.tool .icon-badge {
  margin-bottom: 0;
}

.tool h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1875rem;
}

.tool p {
  margin-bottom: 0.5rem;
}

.tool__link {
  color: var(--color-text);
  text-decoration: none;
}

.tool__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.tool__link:focus-visible {
  outline: none;
}

.tool:hover,
.tool:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0.5rem 1.5rem rgba(33, 37, 41, 0.08);
}

.tool:focus-within {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.tool:hover .tool__link {
  color: var(--color-primary);
}

.tool .tool__source {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  font-family: var(--font-heading);
  color: var(--color-primary);
}

.faq {
  text-align: left;
}

.faq details {
  border-bottom: 1px solid #ced4da;
}

.faq details:first-child {
  border-top: 1px solid #ced4da;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3rem;
  padding-block: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  margin-right: 0.35rem;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
}

.faq details p {
  color: var(--color-muted);
}

.faq .faq__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: var(--target-min);
  font-family: var(--font-heading);
  color: var(--color-primary);
}

.contact {
  font-style: normal;
}

.contact__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 2rem;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.contact__list li {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact__list .icon {
  margin-bottom: 0.75rem;
}

.contact__label {
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-min);
  padding-inline: 0.25rem;
  font-size: 1.125rem;
  color: #fff;
}

.contact a:hover {
  color: #fff;
  text-decoration-thickness: 2px;
}

.charity {
  max-width: 25rem;
  margin: 0 auto;
}

.charity a {
  display: block;
  padding: 0.25rem;
}

.charity img {
  margin-inline: auto;
}

.charity figcaption {
  margin-top: 1rem;
  color: var(--color-muted);
}

::selection {
  color: #fff;
  background: var(--color-dark);
}

@media (prefers-reduced-motion: no-preference) {
  a,
  .btn,
  .site-nav a,
  .tool {
    transition: color 0.2s, background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
  }
}

@media print {
  .site-header,
  .skip-link {
    display: none;
  }

  .legal,
  .hero {
    padding-top: 0;
  }
}
