html {
  line-height: 1.4;
  font-family:
    atkinson, Avenir, Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif;
  /* font-family: Inter, Roboto, 'Helvetica Neue', 'Arial Nova', 'Nimbus Sans', Arial, sans-serif;
  font-family: Optima, Candara, 'Noto Sans', source-sans-pro, sans-serif;   */
  font-weight: normal;
  background-color: var(--fog);
}

@font-face {
  font-family: 'atkinson';
  src: url('/fonts/AtkinsonHyperlegibleNextVF-Variable.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@view-transition {
  navigation: auto;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: var(--evergreen);
  color: var(--fog);
  text-shadow: none;
}

::selection {
  background: var(--evergreen);
  color: var(--fog);
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

:root {
  /* Palette */
  --evergreen: #2f4a3b;
  --bay: #3c5c68;
  --salmon: #e2735c;
  --fog: #f1eee3;
  --sumi: #1f1b17;
  --indigo: #221e36;

  --step--2: clamp(0.7813rem, 0.7736rem + 0.0341vw, 0.8rem);
  --step--1: clamp(0.9375rem, 0.9119rem + 0.1136vw, 1rem);
  --step-0: clamp(1.125rem, 1.0739rem + 0.2273vw, 1.25rem);
  --step-1: clamp(1.35rem, 1.2631rem + 0.3864vw, 1.5625rem);
  --step-2: clamp(1.62rem, 1.4837rem + 0.6057vw, 1.9531rem);
  --step-3: clamp(1.944rem, 1.7405rem + 0.9044vw, 2.4414rem);
  --step-4: clamp(2.3328rem, 2.0387rem + 1.3072vw, 3.0518rem);
  --step-5: clamp(2.7994rem, 2.384rem + 1.8461vw, 3.8147rem);
}

h1 {
  font-size: var(--step-4);
}

h2 {
  font-size: var(--step-3);
}

summary,
details,
.with-icon {
  font-size: var(--step-2);
}

h3 {
  font-size: var(--step-2);
}

p,
a,
li {
  font-size: var(--step-1);
}

.accessibility-measures,
.technologies-used,
.assessment-approaches {
  font-size: var(--step-1);
}

figure {
  border: thin silver solid;
  display: flex;
  flex-flow: column;
  padding: 5px;
  max-width: 600px;
  margin: auto;
}

img {
  width: 100%;
  max-width: 100%;
  max-height: 400px;
  height: auto;
}

figcaption {
  background-color: #222222;
  color: white;
  font: italic smaller sans-serif;
  padding: 3px;
  text-align: center;
}

details {
  padding: 16px;
  border: 2px solid black;
  margin-block: 16px;
}

summary {
  margin-block: 16px;
  cursor: pointer;
}

summary h1,
summary h2,
summary h3,
summary h4,
summary h5,
summary h6 {
  display: inline;
}

body {
  margin: 0px;
}

nav .cluster {
  gap: 1rem;
}

nav .cluster li {
  display: flex;
  height: 100%;
  width: auto;
  border: solid 2px var(--indigo);
}

nav .wrapper {
  padding-inline: 1em;
}

ol[role="list"],
ul[role="list"] {
  list-style: none;
}

[role="list"][class] {
  list-style: none;
  padding: 0;
}

header {
  color: var(--fog);
  background-color: var(--evergreen);
  width: 100%;
}

.hero-cover {
  min-width: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-cover h1,
.hero-cover p {
  max-width: 100ch;
  margin-inline: 20px;
}

main> :not(.hero-cover, figure, picture) {
  max-width: 100ch;
  margin-inline: auto;
  padding-inline: 20px;
}

.hero-cover>* {
  background: black;
  color: var(--fog);
  padding: 16px;
  border-radius: 8px;
}

.container {
  color: rgb(236, 233, 233);

  align-items: center;
  background-color: var(--evergreen);
  max-width: 100%;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.first-item {
  margin-left: auto;
  margin-right: auto;
  color: white;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  text-decoration: none !important;
}

.with-icon {
  display: inline-flex;
  cursor: pointer;
  align-items: center;
  color: currentColor;
}

.with-icon * {
  text-decoration: none;
  font-size: var(--step-4);
}

.button,
.nav-drawer__trigger {
  background: var(--fog);
  color: var(--indigo);
  padding: 1em;
  cursor: pointer;
  text-decoration: none;
  border-radius: 4px;
}

.button-join {
  background: var(--evergreen);
  color: var(--fog);
  padding: 1em;
  cursor: pointer;
  text-decoration: none;
  border-radius: 4px;
}

[name="involved"] {
 height: 44px;
 width: 44px;
}

.donate-button {
  display: inline-block;
  background: var(--evergreen);
  color: var(--fog);
  padding: 2em;
  cursor: pointer;
  text-decoration: none;
  border-radius: 2px;
}

.donate-button:hover,
.donate-button:focus-visible {
  background: var(--fog);
  color: var(--evergreen);
  outline-offset: 4px;
  outline: 2px solid var(--evergreen);
}

.button:hover {
  background: var(--salmon);
}

.svg-icon {
  width: 124px;
  height: 124px;
  max-width: 200px;
  max-height: 200px;
  background-color: #fff;

  /* Use the SVG as a mask */
  -webkit-mask: url("/img/first-aid-box.svg") no-repeat center / contain;
  mask: url("/img/first-aid-box.svg") no-repeat center / contain;
}

@media only screen and (max-width: 648px) {
  .svg-icon {
    display: none !important;
  }

  .first-item>h1 {
    margin-top: 8px;
    margin-bottom: 0px;
    margin-inline: 24px;
    font-size: var(--step-3);
  }
}

.container>a:not(.first-item) {
  max-width: 144px;
  margin: 12px;
  padding: 6px;
  flex: 1;
  text-decoration: none;
  outline-color: transparent;
  text-align: center;
  line-height: 3;
  color: black;
  border-radius: 4px;
}

.container>a:link:not(.first-item),
.container>a:visited:not(.first-item),
.container>a:focus:not(.first-item) {
  background: var(--fog);
  color: var(--indigo);
}

.container>a:hover:not(.first-item) {
  background: var(--salmon);
}

.container>a:active:not(.first-item) {
  background: var(--salmon);
  color: white;
}

footer {
  background-color: var(--salmon);
  color: #2c2c2c;
  padding-block: 16px;
  padding-inline: 10px;
}

footer a,
footer a:visited {
  color: var(--evergreen);
  background-color: var(--fog);
  padding: 12px;
  border-radius: 12px;
  margin: 4px;
}

.nav-drawer-footer {
  color: var(--indigo)
}

.primary-section {
  padding: 20px;
  color: var(--fog);
  background-color: var(--indigo);
}

.secondary-section {
  padding: 20px;
  color: var(--evergreen);
  background-color: var(--fog);
}

.primary-section ::selection {
  background: var(--fog);
  color: var(--indigo);
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

footer>div {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  max-width: 100ch;
  width: 100%;
}

.map {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

.join-us-form * {
  font-size: var(--step-1);
}

form>* {
  margin-block: 20px;
  display: block;
}

label>span {
  margin-inline: 16px;
  width: 300px;
  display: inline-block;
}

input {
  cursor: pointer;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.skip-to-main-content-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 1em;
  background-color: black;
  color: white;
  opacity: 0;
}

.skip-to-main-content-link:focus {
  left: 50%;
  transform: translateX(-50%);
  opacity: 1;
}

a:not(.button):focus-visible,
input:focus-visible,
summary:focus-visible, 
textarea:focus-visible,
.button-join:focus-visible {
  outline: 4px solid blue;
  outline-offset: 3px;
}

.button:focus-visible {
  outline: 4px solid var(--fog);
  outline-offset: 3px;
  color: var(--fog);
  background-color: var(--evergreen);
}

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

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

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (max-width: 950px) {

  /* For Nav on Tabletesque sizes - temporary */
  .repel {
    justify-content: center !important;
    padding-block: 8px;
  }

  .hero-cover>* {
    border-radius: 0px !important;
  }
}

@media only screen and (min-width: 600px) {
  .hero-mobile {
    display: none;
  }

  .hide-desktop {
    display: none !important;
  }

  .hero-cover {
    min-height: 36vh;
  }

  .hero-home {
    background-image: url("/img/squalicum-creek.jpg");
  }

  .hero-faqs {
    background-image: url("/img/faq.jpg");
  }

  .hero-news {
    background-image: url("/img/news.jpg");
  }

  .hero-donate {
    background-image: url("/img/mt-baker.jpg");
  }

  .hero-contact {
    background-image: url("/img/conversation-coffee.jpg");
  }

  /* Style adjustments for viewports that meet the condition */
}

@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Nav drawer styles
   ========================================================================== */

[data-state='no-js'] .nav-drawer__panel>* {
  display: block;
  /* 1 */
}

[data-state='no-js'] .nav-drawer__panel .hide-desktop {
  display: none;
  /* 1 */
}

[data-state='loading'] .nav-drawer__panel>* {
  display: none;
  /* 2 */
}

[data-state='ready'] .nav-drawer__panel>* {
  display: block;
  /* 3 */
}

.nav-menu-header {
  color: var(--indigo)
}

nav-drawer {
  padding-inline: 4px;
  display: block;
}

.nav-drawer__trigger {
  display: none;
}

nav-drawer[enabled="true"] .nav-drawer__trigger {
  display: block;
  position: relative;
  z-index: 2;
  cursor: pointer;
  font-size: var(--step--2);
}

nav-drawer[enabled="true"] .nav-drawer__panel {
  position: fixed;
  inset: 0;
  padding: 5rem 1.5rem 2rem 1.5rem;
  visibility: hidden;
  opacity: 0;
  background: var(--fog);
  overflow-y: auto;
  z-index: 1;
  --webkit-overflow-scrolling: touch;
}

nav-drawer[enabled="true"] .nav-drawer__panel li,
nav-drawer[enabled="true"] .nav-drawer__panel li>a {
  text-align: center;
  width: 100%;
}

nav-drawer[enabled="true"][status="open"] {
  --cluster-vertical-alignment: flex-start;
  --cluster-direction: column;
}

nav-drawer[enabled="true"][status="open"] .nav-drawer__panel {
  visibility: visible;
  opacity: 1;
  transition: opacity 400ms ease;
}

nav-drawer[enabled="true"][status="closed"] .nav-drawer__panel>* {
  opacity: 0;
  transform: translateY(5rem);
}

nav-drawer[enabled="true"][status="open"] .nav-drawer__panel>* {
  transform: translateY(0);
  opacity: 1;
  transition:
    transform 400ms cubic-bezier(0.17, 0.67, 0, 0.87) 150ms,
    opacity 350ms ease 200ms;
}

html:has(nav-drawer[enabled="true"][status="open"]) {
  overflow: hidden;
}

/* reduce motion if preferred */
@media (prefers-reduced-motion: reduce) {

  nav-drawer[enabled="true"][status="open"] .nav-drawer__panel,
  nav-drawer[enabled="true"][status="open"] .nav-drawer__panel>* {
    transition: none;
    transform: none;
  }
}

/* ==========================================================================
    Composition classes

    Flexible layouts that follow the CUBE CSS composition principles:
    https://cube.fyi/composition.html

    Layouts are adapted from Every Layout:
    https://every-layout.dev/
   ========================================================================== */

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--cluster-gap, var(--space-m));
  justify-content: var(--cluster-horizontal-alignment, flex-start);
  align-items: var(--cluster-vertical-alignment, center);
  flex-direction: var(--cluster-direction, row);
}

.repel {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: var(--repel-vertical-alignment, center);
  gap: var(--gutter, var(--space-m));
}

.wrapper {
  margin-inline: auto;
  max-width: var(--wrapper-max-width, 1300px);
  padding-inline: var(--gutter-wrapper-inline, var(--gutter));
  position: relative;
}

.flow>*+* {
  margin-block-start: var(--flow-space, var(--space-m));
}