@font-face {
  font-family: "Dirtbag";
  src: url("./assets/fonts/Dirtbag.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

/* ==========================================================================
   Design Tokens
   ========================================================================== */

:root {
  --color-green: #005050;
  --color-white: #f9fcfe;
  --color-yellow: #f0b423;

  --font-base: "TeX Gyre Heros", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Dirtbag", var(--font-base);

  --container-small: 800px;
  --container-medium: 1200px;
  --container-large: 1440px;
  --container-full: 1920px;

  --space-xs: 0.5rem; /* 8px */
  --space-sm: 1rem; /* 16px */
  --space-md: 1.5rem; /* 24px */
  --space-lg: 3rem; /* 48px */
  --space-xl: 5rem; /* 80px */

  --radius-sm: 0.5rem;
  --focus-outline: 3px solid var(--color-yellow);

  --fs-body: clamp(1rem, 0.9375rem + 0.3125vw, 1.3125rem); /* 16px - 21px */
  --fs-text: clamp(1.25rem, 1.2rem + 0.25vw, 1.5rem); /* 20px - 24px */
  --fs-h3: clamp(1.5rem, 1.35rem + 0.75vw, 2.25rem); /* 24px - 36px */
  --fs-h2: clamp(2rem, 1.8rem + 1vw, 3rem); /* 32px - 48px */
  --fs-hero: clamp(2rem, 1.8rem + 1vw, 3rem); /* 32px - 48px */
  --fs-hero-accent: clamp(3.125rem, 2.5rem + 3.125vw, 6.25rem);  /* 50px - 100px */
}

/* ==========================================================================
   Reset / Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  font-size: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--color-white);
  color: var(--color-green);
  font-family: var(--font-base);
  line-height: 1.4;
  font-size: 1rem;
}

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

img {
  height: auto;
}

a {
  color: currentColor;
  text-decoration-color: currentColor;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.2em;
}

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

a:focus-visible,
button:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 0.25rem;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p,
li {
  font-size: var(--fs-body);
  line-height: 1.5;
}

p {
  margin-block: 0 1rem;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  text-wrap: balance;
  hyphens: auto;
}

h2 {
  margin-bottom: var(--space-md);
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 400;
}

h3 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-md);
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 400;
}

h4 {
  font-size: var(--fs-text);
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.container {
  margin-inline: auto;
}

.container--full {
  max-width: var(--container-full);
}

.container--large {
  max-width: min(100% - 3rem, var(--container-large));
}

.container--medium {
  max-width: min(100% - 3rem, var(--container-medium));
}

.container--small {
  max-width: min(100% - 3rem, var(--container-small));
}

.module-spacing {
  margin-block: var(--space-lg);
}

.module-spacing--large {
  margin-block: var(--space-xl);
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.skip-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1rem;
  background-color: var(--color-white);
  color: var(--color-green);
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.skip-link:not(:focus-visible) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav__logo {
  width: min(100%, 15rem);
  height: auto;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero__headline {
  width: min(100%, 35ch);
  text-wrap: balance;
  font-size: var(--fs-hero);
  font-weight: 400;
}

.hero__headline > span {
  display: inline-block;
  color: var(--color-yellow);
  font-family: var(--font-display);
  font-size: var(--fs-hero-accent);
  font-weight: 400;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.12em;
  margin-top: 0.25em;
}

.hero__intro {
  width: min(100%, 65ch);
  text-wrap: balance;
  margin-top: var(--space-md);
  font-size: var(--fs-text);
}

.hero__image {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  width: clamp(4rem, 10vw, 6.25rem);
  height: auto;
  pointer-events: none;
}

/* ==========================================================================
   Text Sections
   ========================================================================== */

.text__headline {
  width: min(100%, 35ch);
  text-wrap: balance;
}

.text__subheadline {
  margin-top: var(--space-xl);
}

.text__paragraph {
  max-width: 80ch;
  font-size: var(--fs-text);
  margin-bottom: var(--space-lg);
}

/* ==========================================================================
   Grid / Cards
   ========================================================================== */

.grid {
  display: grid;
  gap: clamp(2.5rem, 0.95rem + 0.25vw, 4.5rem);
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* .grid--2-columns {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

.grid--4-columns {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
} */

.grid__item {
  min-width: 0;
}

.grid__item img,
.grid__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.grid__item h3,
.grid__item h4 {
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
  font-family: var(--font-base);
  font-size: var(--fs-text);
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.grid__item p {
  margin: 0;
  font-size: var(--fs-body);
}

/* ==========================================================================
   Image Sections
   ========================================================================== */

.image {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.image img {
  width: 100%;
}

.image__link {
  writing-mode: sideways-lr;
  margin: 0;
  font-size: clamp(0.875rem, 0.825rem + 0.25vw, 1.125rem); /* 14px - 18px */ 
  padding: 0.75rem 1rem;
}

/* ==========================================================================
   Accordion
   ========================================================================== */

.accordion {
  border-top: 4px solid var(--color-green);
}

.accordion:last-of-type {
  border-bottom: 4px solid var(--color-green);
}

.accordion__summary {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.accordion__summary::-webkit-details-marker {
  display: none;
}

.accordion__summary::after {
    content: "";
    width: 3rem;
    height: 3rem;
    flex: 0 0 1.5rem;
    background-color: currentColor;
    flex: 0 0 auto;

    mask-image: url("data:image/svg+xml,%3Csvg clip-rule='evenodd' fill-rule='evenodd' stroke-linejoin='round' stroke-miterlimit='2' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m2.014 11.998c0 5.517 4.48 9.997 9.998 9.997s9.997-4.48 9.997-9.997c0-5.518-4.479-9.998-9.997-9.998s-9.998 4.48-9.998 9.998zm6.211-1.524s1.505-1.501 3.259-3.254c.146-.147.338-.22.53-.22s.384.073.53.22c1.754 1.752 3.258 3.254 3.258 3.254.145.145.217.335.217.526 0 .192-.074.384-.221.53-.292.293-.766.295-1.057.004l-1.977-1.977v6.693c0 .414-.336.75-.75.75s-.75-.336-.75-.75v-6.693l-1.979 1.978c-.289.289-.761.287-1.054-.006-.147-.147-.221-.339-.222-.53 0-.191.071-.38.216-.525z' fill-rule='nonzero'/%3E%3C/svg%3E");

    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;

    -webkit-mask-image: url("data:image/svg+xml,%3Csvg clip-rule='evenodd' fill-rule='evenodd' stroke-linejoin='round' stroke-miterlimit='2' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m2.014 11.998c0 5.517 4.48 9.997 9.998 9.997s9.997-4.48 9.997-9.997c0-5.518-4.479-9.998-9.997-9.998s-9.998 4.48-9.998 9.998zm6.211-1.524s1.505-1.501 3.259-3.254c.146-.147.338-.22.53-.22s.384.073.53.22c1.754 1.752 3.258 3.254 3.258 3.254.145.145.217.335.217.526 0 .192-.074.384-.221.53-.292.293-.766.295-1.057.004l-1.977-1.977v6.693c0 .414-.336.75-.75.75s-.75-.336-.75-.75v-6.693l-1.979 1.978c-.289.289-.761.287-1.054-.006-.147-.147-.221-.339-.222-.53 0-.191.071-.38.216-.525z' fill-rule='nonzero'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;

    transition: transform 0.2s ease;
}

.accordion[open] .accordion__summary::after {
    transform: rotate(180deg);
}

.accordion__summary .text__subheadline {
  margin: 0;
  align-self: flex-end;
}

.accordion__content {
  padding-bottom: 2rem;
}

.card__title a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.card__title a::after {
    content: "";
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    display: inline-block;

    background-color: currentColor;

    mask-image: url("data:image/svg+xml,%3Csvg clip-rule='evenodd' fill-rule='evenodd' stroke-linejoin='round' stroke-miterlimit='2' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m18.787 9.473s-4.505-4.502-6.259-6.255c-.147-.146-.339-.22-.53-.22-.192 0-.384.074-.531.22-1.753 1.753-6.256 6.252-6.256 6.252-.147.147-.219.339-.217.532.001.19.075.38.221.525.292.293.766.295 1.056.004l4.977-4.976v14.692c0 .414.336.75.75.75.413 0 .75-.336.75-.75v-14.692l4.978 4.978c.289.29.762.287 1.055-.006.145-.145.219-.335.221-.525.002-.192-.07-.384-.215-.529z' fill-rule='nonzero'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;

    -webkit-mask-image: url("data:image/svg+xml,%3Csvg clip-rule='evenodd' fill-rule='evenodd' stroke-linejoin='round' stroke-miterlimit='2' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m18.787 9.473s-4.505-4.502-6.259-6.255c-.147-.146-.339-.22-.53-.22-.192 0-.384.074-.531.22-1.753 1.753-6.256 6.252-6.256 6.252-.147.147-.219.339-.217.532.001.19.075.38.221.525.292.293.766.295 1.056.004l4.977-4.976v14.692c0 .414.336.75.75.75.413 0 .75-.336.75-.75v-14.692l4.978 4.978c.289.29.762.287 1.055-.006.145-.145.219-.335.221-.525.002-.192-.07-.384-.215-.529z' fill-rule='nonzero'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;

    transform: rotate(45deg);
}
  
/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  position: fixed;
  bottom: clamp(0rem, 0.95rem + 0.25vw, -3rem);
  left: 0;
  right: 0;
  color: var(--color-white);
}

.footer__svg-wave {
  position: absolute;
  inset-inline: 0;
  bottom: -5rem;
  z-index: -1;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.footer__context {
  position: relative;
  bottom: 2rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: clamp(0.75rem, 0.95rem + 0.25vw, 1.25rem);
}

.footer__svg-qr-code,
.footer__svg-bin {
  width: 8.5rem;
  height: 8.5rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .footer {
    display: none;
  }
}

@media (max-width: 600px) {
  .module-spacing {
    margin-block: var(--space-lg);
  }

  .module-spacing--large {
    margin-block: var(--space-xl);
  }
}

/* ==========================================================================
   Motion Preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}