@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --brand-teal: #006d68;
  --brand-teal-deep: #07524f;
  --brand-coral: #d94f4f;
  --page-background: #f7faf9;
  --surface: #ffffff;
  --surface-soft: #eaf2f0;
  --text: #202627;
  --muted: #526264;
  --border: #cad8d6;
  --shadow-sm: 0 8px 24px rgba(32, 38, 39, 0.08);
  --shadow-lg: 0 22px 60px rgba(32, 38, 39, 0.16);
  --pico-font-family-sans-serif: "Source Sans 3", system-ui, sans-serif;
  --pico-font-family: "Source Sans 3", system-ui, sans-serif;
  --pico-background-color: var(--page-background);
  --pico-color: var(--text);
  --pico-muted-color: var(--muted);
  --pico-primary: var(--brand-teal);
  --pico-primary-background: var(--brand-teal);
  --pico-primary-border: var(--brand-teal);
  --pico-primary-hover: var(--brand-teal-deep);
  --pico-primary-hover-background: var(--brand-teal-deep);
  --pico-primary-hover-border: var(--brand-teal-deep);
  --pico-border-radius: 4px;
  color-scheme: light;
}

html[data-theme="dark"] {
  --page-background: #151d1d;
  --surface: #1d2828;
  --surface-soft: #243433;
  --text: #f2f6f5;
  --muted: #b2c0be;
  --border: #3c504e;
  --brand-teal: #39bdb4;
  --brand-teal-deep: #76d8d1;
  --brand-coral: #ff7771;
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.35);
  --pico-background-color: var(--page-background);
  --pico-color: var(--text);
  --pico-muted-color: var(--muted);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), rgba(0, 109, 104, 0.05) calc(100% - 1px)) 0 0 / 72px 72px,
    var(--page-background);
  color: var(--text);
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brand-coral);
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--text);
  color: var(--page-background);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--page-background) 94%, transparent);
}

.site-nav {
  width: min(1180px, calc(100% - 2rem));
  min-height: 4.75rem;
  margin: 0 auto;
  padding: 0;
}

.site-nav,
.site-nav ul,
.site-nav li,
.site-nav a {
  display: flex;
  align-items: center;
}

.site-nav {
  justify-content: space-between;
}

.site-nav ul {
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}

.site-nav li {
  margin: 0;
  padding: 0;
}

.site-nav a {
  min-height: 2.75rem;
  gap: 0.45rem;
  padding: 0.45rem 0.7rem;
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--brand-teal);
}

.brand {
  gap: 0.65rem !important;
  padding-left: 0 !important;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700 !important;
}

.brand-mark {
  display: inline-grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border-radius: 2px;
  background: var(--brand-teal);
  color: #ffffff;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 750;
  line-height: 1;
  box-shadow: 5px 5px 0 var(--brand-coral);
}

.theme-toggle {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  margin: 0 0 0 0.3rem;
  padding: 0;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  box-shadow: none;
}

.theme-toggle:hover {
  border-color: var(--brand-teal);
  background: var(--surface-soft);
  color: var(--brand-teal);
}

.theme-icon-moon,
html[data-theme="dark"] .theme-icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-icon-moon {
  display: block;
}

.hero {
  position: relative;
  display: grid;
  width: min(1180px, calc(100% - 2rem));
  min-height: calc(100svh - 8rem);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vh, 5.5rem) 0 4.75rem;
  align-items: center;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 9% -8vw 10% 49%;
  z-index: -3;
  background: var(--brand-teal);
  content: "";
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
}

.hero::after {
  position: absolute;
  top: 9%;
  right: -8vw;
  z-index: -1;
  width: min(48vw, 36rem);
  height: 0.6rem;
  background: var(--brand-coral);
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: min(42rem, 61%);
  padding: 1.5rem 0;
}

.eyebrow {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin: 0 0 0.8rem;
  color: var(--brand-teal);
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}

.eyebrow span {
  width: 2rem;
  height: 0.22rem;
  background: var(--brand-coral);
}

.hero h1,
.section-heading h2,
.support-section h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 680;
}

.hero h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(4.2rem, 9.5vw, 7.75rem);
  line-height: 0.96;
}

.hero-lede {
  max-width: 27rem;
  margin: 1.25rem 0 0;
  color: var(--text);
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
  font-weight: 650;
  line-height: 1.2;
}

.hero-detail {
  max-width: 31rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.65rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  gap: 0.55rem;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1rem;
  border: 2px solid transparent;
  border-radius: 3px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.button-primary {
  background: var(--brand-teal);
  color: #ffffff;
  box-shadow: 5px 5px 0 var(--brand-coral);
}

.button-primary:hover {
  background: var(--brand-teal-deep);
  color: #ffffff;
  box-shadow: 3px 3px 0 var(--brand-coral);
}

.button-secondary {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--brand-teal);
  background: var(--surface-soft);
  color: var(--brand-teal);
}

.hero-art {
  position: absolute;
  inset: 12% -2.5rem 13% 43%;
  z-index: -2;
  overflow: hidden;
}

.hero-art::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--page-background) 0%, color-mix(in srgb, var(--page-background) 82%, transparent) 18%, transparent 55%);
  content: "";
}

.hero-art img {
  position: absolute;
  right: 0;
  width: min(50vw, 39rem);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 3px;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

.hero-art-bt {
  top: 3%;
  transform: translateX(5%) rotate(1.5deg);
}

.hero-art-love {
  bottom: 4%;
  transform: translateX(-1%) rotate(-1.5deg);
}

.section-cue {
  position: absolute;
  bottom: 0.9rem;
  left: 0;
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.section-cue:hover {
  color: var(--brand-teal);
}

.products-section {
  padding: clamp(4rem, 8vw, 7rem) max(1rem, calc((100% - 1180px) / 2));
  border-top: 0.6rem solid var(--brand-coral);
  background: var(--surface);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(15rem, 0.65fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-heading h2 {
  max-width: 16ch;
  margin: 0;
  color: var(--text);
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1.02;
}

.section-heading > p {
  max-width: 25rem;
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.25rem);
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.product-media {
  display: grid;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  place-items: center;
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.product-card:hover .product-media img {
  transform: scale(1.018);
}

.product-body {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.product-label {
  margin: 0 0 0.55rem;
  color: var(--brand-teal);
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}

.product-body h3 {
  margin: 0;
  color: var(--text);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 670;
  line-height: 1.05;
}

.product-body p:last-child {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.product-footer {
  margin: 0;
  padding: 0 clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem);
  background: transparent;
}

.product-link {
  display: inline-flex;
  min-height: 2.75rem;
  gap: 0.55rem;
  align-items: center;
  color: var(--brand-teal);
  font-weight: 750;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25rem;
}

.product-link svg {
  transition: transform 180ms ease;
}

.product-link:hover svg {
  transform: translate(2px, -2px);
}

.support-section {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.75fr);
  gap: 2rem;
  align-items: center;
  padding: clamp(3.5rem, 7vw, 6rem) max(1rem, calc((100% - 1180px) / 2));
  background: var(--brand-teal-deep);
  color: #ffffff;
}

.eyebrow-light {
  color: #ffffff;
}

.support-section h2 {
  max-width: 19ch;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}

.support-link {
  display: inline-flex;
  min-width: 0;
  min-height: 3.4rem;
  gap: 0.7rem;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 3px;
  background: #ffffff;
  color: #064b48;
  font-weight: 750;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.support-link:hover {
  border-color: #ffffff;
  background: transparent;
  color: #ffffff;
}

.site-footer {
  padding: 2.25rem max(1rem, calc((100% - 1180px) / 2));
  border-top: 1px solid var(--border);
  background: var(--page-background);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.25rem;
  align-items: center;
}

.footer-brand {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-brand .brand-mark {
  width: 1.9rem;
  height: 1.9rem;
  font-size: 1.1rem;
  box-shadow: 3px 3px 0 var(--brand-coral);
}

.site-footer nav {
  display: flex;
  gap: 1rem;
}

.site-footer nav a {
  color: var(--muted);
  font-weight: 650;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  text-align: right;
}

.error-page {
  min-height: 100svh;
}

.not-found {
  position: relative;
  display: grid;
  width: min(1180px, calc(100% - 2rem));
  min-height: calc(100svh - 4.8rem);
  margin: 0 auto;
  padding: 4rem 0;
  place-items: center start;
  overflow: hidden;
}

.not-found-copy {
  position: relative;
  z-index: 2;
  max-width: 40rem;
}

.not-found h1 {
  max-width: 10ch;
  margin: 0;
  color: var(--text);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 680;
  line-height: 0.98;
}

.not-found-copy > p:not(.eyebrow) {
  max-width: 34rem;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.not-found-mark {
  position: absolute;
  right: -0.05em;
  z-index: 0;
  color: color-mix(in srgb, var(--brand-teal) 10%, transparent);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(14rem, 38vw, 34rem);
  font-weight: 800;
  line-height: 0.8;
  pointer-events: none;
}

.js .hero-copy > *,
.js .section-heading,
.js .product-card,
.js .support-section > * {
  animation: reveal 550ms both cubic-bezier(0.22, 1, 0.36, 1);
}

.js .hero-copy > :nth-child(2) {
  animation-delay: 70ms;
}

.js .hero-copy > :nth-child(3) {
  animation-delay: 120ms;
}

.js .hero-copy > :nth-child(4),
.js .hero-copy > :nth-child(5) {
  animation-delay: 170ms;
}

.js .product-card:nth-child(2) {
  animation-delay: 90ms;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 780px) {
  .site-nav {
    width: min(100% - 1.25rem, 1180px);
    min-height: 4.25rem;
  }

  .site-nav a {
    padding-inline: 0.45rem;
  }

  .hero {
    width: min(100% - 1.25rem, 1180px);
    min-height: calc(100svh - 6.75rem);
    padding: 2rem 0 4rem;
    align-items: start;
  }

  .hero::before {
    inset: 50% -1rem 8% 18%;
    clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
  }

  .hero::after {
    top: 50%;
    right: -1rem;
    width: 68%;
  }

  .hero-copy {
    width: 100%;
    padding: 0;
  }

  .hero h1 {
    font-size: clamp(3.75rem, 18vw, 5.6rem);
  }

  .hero-art {
    inset: auto -0.65rem 3.4rem 10%;
    height: clamp(8rem, 25vh, 13rem);
  }

  .hero-art::after {
    background: linear-gradient(180deg, var(--page-background) 0%, transparent 38%);
  }

  .hero-art img {
    width: min(88vw, 32rem);
  }

  .hero-art-bt {
    top: 2%;
    right: 2%;
  }

  .hero-art-love {
    right: 10%;
    bottom: 0;
  }

  .section-heading,
  .support-section {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 1rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .support-section {
    gap: 1.75rem;
  }

  .support-link {
    justify-self: start;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
  }

  .site-footer p {
    grid-column: 1 / -1;
    text-align: left;
  }

  .not-found {
    align-items: start;
    padding-top: 4rem;
  }

  .not-found-mark {
    right: -0.1em;
    bottom: 1rem;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 1rem;
  }

  .brand {
    font-size: 1.1rem;
  }

  .brand-mark {
    width: 1.95rem;
    height: 1.95rem;
    font-size: 1.15rem;
    box-shadow: 3px 3px 0 var(--brand-coral);
  }

  .nav-links a span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .site-nav a,
  .theme-toggle {
    width: 2.75rem;
    justify-content: center;
  }

  .brand {
    width: auto !important;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .button {
    padding-inline: 0.65rem;
    font-size: 0.9rem;
  }

  .section-heading h2 {
    font-size: clamp(2.25rem, 13vw, 3.2rem);
  }

  .product-media {
    aspect-ratio: 1.8 / 1;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .site-footer p {
    grid-column: auto;
  }
}

@media (max-height: 620px) and (max-width: 780px) {
  .hero {
    min-height: calc(100svh - 5.5rem);
    padding-top: 1rem;
  }

  .hero-detail {
    display: none;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 15vw, 4.5rem);
  }

  .hero-lede {
    margin-top: 0.7rem;
  }

  .hero-actions {
    margin-top: 1rem;
  }

  .hero-art {
    height: 6.5rem;
  }
}

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

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

@media (forced-colors: active) {
  .brand-mark,
  .eyebrow span,
  .hero::before,
  .hero::after {
    forced-color-adjust: none;
  }

  .button,
  .support-link,
  .product-card {
    border: 2px solid CanvasText;
  }
}