@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url('../assets/fonts/bricolage-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url('../assets/fonts/bricolage-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ground: #F7DFD6;
  --ground-2: #FBEDE7;
  --ground-3: #EFCDC1;
  --line: rgba(59, 18, 12, 0.14);
  --ink: #3B120C;
  --ink-soft: #7A3E33;
  --red: #C8261A;
  --red-deep: #A51D12;
  --on-red: #FFF3EE;
  --basil: #2F6B3A;

  --font: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --fs-xl: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);

  --gutter: clamp(1rem, 3vw, 2rem);
  --section: clamp(4rem, 3rem + 4vw, 7rem);
  --nav-h: 4rem;

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-pill: 999px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--ground);
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-base);
  font-optical-sizing: auto;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { padding: 0; list-style: none; }
img, svg, iframe, picture { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
::selection { background: var(--red); color: var(--on-red); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .23 0 0 0 0 .07 0 0 0 0 .05 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  width: min(100% - 2 * var(--gutter), 1240px);
  margin-inline: auto;
}
.section { padding-block: var(--section); }

.h2 {
  font-size: var(--fs-xl);
  font-weight: 750;
  font-stretch: 85%;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.muted { color: var(--ink-soft); }
.nowrap { white-space: nowrap; }
p { text-wrap: pretty; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.skip {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.7rem 1rem;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--ground);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 1rem; }
@media (max-width: 47.99em) {
  .hide-sm { display: none !important; }
}

.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1.15rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color 200ms ease,
    color 200ms ease,
    transform 160ms var(--ease-out);
}
.btn:active { transform: scale(0.96); }
.btn .icon { width: 1.05em; height: 1.05em; }
.btn--sm { min-height: 2.5rem; padding: 0 0.95rem; font-size: 0.875rem; }
.btn--primary { background: var(--red); color: var(--on-red); }
.btn--soft { background: var(--ground-3); color: var(--ink); }
.btn--light { background: var(--on-red); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--ground); }

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--red-deep); }
  .btn--soft:hover { background: var(--ink); color: var(--ground); }
  .btn--light:hover { background: var(--ground-3); }
  .btn--dark:hover { background: #5C1E14; }
}

.btn--pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--red);
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .btn--pulse::after { animation: pulse 2.8s var(--ease-out) infinite; }
}
@keyframes pulse {
  0%   { inset: 0; opacity: 0.45; }
  70%  { inset: -0.6rem; opacity: 0; }
  100% { inset: -0.6rem; opacity: 0; }
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--ground-3);
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}
.icon-btn:active { transform: scale(0.92); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  font-weight: 500;
}
.status__dot {
  position: relative;
  width: 0.55rem;
  height: 0.55rem;
  flex: none;
  border-radius: 50%;
  background: var(--ink-soft);
}
[data-open="true"] .status__dot { background: var(--basil); }
[data-open="true"] .status__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--basil);
}
@media (prefers-reduced-motion: no-preference) {
  [data-open="true"] .status__dot::after { animation: ping 2s var(--ease-out) infinite; }
}
@keyframes ping {
  0%   { transform: scale(1); opacity: 0.6; }
  80%, 100% { transform: scale(2.6); opacity: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
