:root {
  --tp-line: color-mix(in srgb, var(--wp--preset--color--forest) 16%, transparent);
  --tp-transition: 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--wp--preset--color--brand-green);
  color: var(--wp--preset--color--white);
}

a,
button,
input,
select,
textarea {
  transition: color var(--tp-transition), background-color var(--tp-transition), border-color var(--tp-transition), transform var(--tp-transition);
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--wp--preset--color--action-green);
  outline-offset: 3px;
}

.tp-site-header {
  border-bottom: 1px solid var(--tp-line);
  position: relative;
  z-index: 20;
}

.tp-site-header .wp-block-site-title a,
.tp-site-footer .wp-block-site-title a {
  text-decoration: none;
}

.tp-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.tp-hero {
  min-height: min(760px, calc(100svh - 80px));
  overflow: hidden;
  position: relative;
}

.tp-hero::after {
  border: 1px solid rgba(245, 251, 239, 0.28);
  border-bottom: 0;
  content: "";
  height: min(66vw, 640px);
  position: absolute;
  right: clamp(-10rem, -3vw, -2rem);
  top: clamp(5rem, 10vw, 9rem);
  transform: perspective(900px) rotateY(-18deg);
  width: min(44vw, 430px);
}

.tp-hero > .wp-block-group {
  position: relative;
  z-index: 1;
}

.tp-hero-mark {
  height: auto;
  opacity: 0.13;
  position: absolute;
  right: clamp(1rem, 9vw, 9rem);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(13rem, 31vw, 30rem);
}

.tp-section-heading {
  max-width: 16ch;
}

.tp-material-card {
  border: 1px solid var(--tp-line);
  min-height: 18rem;
  overflow: hidden;
  position: relative;
}

.tp-material-card::before {
  background: var(--wp--preset--color--brand-green);
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  top: 0;
  transform: scaleX(0.22);
  transform-origin: left;
  transition: transform var(--tp-transition);
  width: 100%;
}

.tp-material-card:hover::before {
  transform: scaleX(1);
}

.tp-card-index {
  color: var(--wp--preset--color--brand-green);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.tp-feature-panel {
  min-height: 17rem;
}

.tp-feature-panel--large {
  min-height: 35rem;
}

.tp-rule {
  border-top: 1px solid currentColor;
  opacity: 0.28;
}

.tp-site-footer {
  border-top: 1px solid rgba(245, 251, 239, 0.18);
}

.woocommerce ul.products li.product a img {
  background: var(--wp--preset--color--mist);
  margin-bottom: 1rem;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: var(--wp--preset--color--forest);
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.35rem;
  font-weight: 400;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--wp--preset--color--action-green);
  border-radius: 999px;
  color: var(--wp--preset--color--white);
}

@media (max-width: 781px) {
  .tp-site-header .wp-block-navigation {
    justify-content: flex-end;
  }

  .tp-hero {
    min-height: 42rem;
  }

  .tp-hero::after {
    height: 26rem;
    opacity: 0.56;
    right: -8rem;
    top: 15rem;
    width: 17rem;
  }

  .tp-hero-mark {
    bottom: 2rem;
    right: 1rem;
    top: auto;
    transform: none;
    width: 13rem;
  }

  .tp-material-card,
  .tp-feature-panel,
  .tp-feature-panel--large {
    min-height: auto;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

