@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --paper: #f1f4ef;
  --paper-hi: #fbfcfa;
  --ink: #11261e;
  --ink-soft: #40554c;
  --spruce: #1d5c47;
  --spruce-deep: #143f31;
  --amber: #f0b429;
  --line: #c5d0c8;

  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Newsreader", Georgia, "Times New Roman", serif;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4rem, 9vw, 7.5rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

a { color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 76rem; margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: var(--gutter); top: -4rem;
  background: var(--ink); color: var(--paper); padding: .5rem 1rem; border-radius: 0 0 8px 8px;
  font-family: var(--display); z-index: 10;
}
.skip:focus { top: 0; }

/* Header */
.site-head { padding-block: 1.25rem; }
.site-head__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-head nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); font-family: var(--display); font-size: 1rem; font-weight: 500; }
.site-head nav a { text-decoration: none; }
.site-head nav a:hover { text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 2px; }
.site-head nav .nav-cta { border: 2px solid var(--ink); border-radius: 999px; padding: .4rem 1rem; }
.site-head nav .nav-cta:hover { background: var(--ink); color: var(--paper); text-decoration: none; }

.mark {
  display: inline-flex; align-items: center; gap: .3em;
  font-family: var(--display); font-weight: 800; font-size: 1.375rem; letter-spacing: -0.03em;
  text-decoration: none; color: var(--ink);
}
.mark__u {
  display: grid; place-items: center;
  width: 1.5em; height: 1.5em; border-radius: .42em;
  background: var(--spruce); color: var(--paper-hi);
}

/* Hero */
.hero { padding-block: clamp(2rem, 6vw, 5rem) var(--section); }
.hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.25rem, 1.3rem + 3.6vw, 3.75rem); font-weight: 750; font-stretch: 90%; max-width: 19ch; }
.hero__lede { margin-top: 1.5rem; font-size: 1.25em; color: var(--ink-soft); }
.hero .btn { margin-top: 2rem; }

.btn {
  display: inline-block; cursor: pointer;
  font-family: var(--display); font-weight: 650; font-size: 1.0625rem; text-decoration: none;
  background: var(--spruce); color: var(--paper-hi);
  border: 0; border-radius: 999px; padding: .85rem 1.6rem;
  transition: background-color .15s;
}
.btn:hover { background: var(--spruce-deep); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* The loop */
.loop { position: relative; margin: 0; width: 100%; max-width: 36rem; justify-self: center; aspect-ratio: 600 / 470; }
.loop svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.loop__track { fill: none; stroke: var(--spruce); stroke-width: 4; stroke-dasharray: 1; stroke-dashoffset: 0; }
.loop__along { fill: none; stroke: var(--amber); stroke-width: 3; stroke-dasharray: 2 9; stroke-linecap: round; }
.loop__arrows path { fill: var(--spruce); }
.loop__you { fill: var(--amber); stroke: var(--ink); stroke-width: 3; }
.loop__stop circle { fill: var(--paper); stroke: var(--spruce); stroke-width: 4; }
.loop__stop text { font-family: var(--display); font-weight: 700; font-size: 22px; text-anchor: middle; fill: var(--ink); }
.loop__stop .loop__name { font-size: 25px; font-weight: 650; letter-spacing: -0.01em; }
.loop__centre {
  position: absolute; inset: 27% 17%;
  display: grid; place-items: center; text-align: center;
  font-size: clamp(.95rem, 2.9vw, 1.2rem); line-height: 1.4; color: var(--ink-soft);
}

@media (prefers-reduced-motion: no-preference) {
  .loop__track { animation: draw 1.8s cubic-bezier(.6, 0, .2, 1) .2s both; }
  .loop__stop { animation: land .4s ease-out both; animation-delay: calc(.2s + var(--i) * .45s); }
  .loop__arrows, .loop__along, .loop__centre { animation: land .6s ease-out 2s both; }
  .loop__you { animation: land .3s ease-out 2.4s both; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .loop__you { display: none; }
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes land { from { opacity: 0; } to { opacity: 1; } }

/* What we do */
.what { background: var(--spruce); color: var(--paper-hi); padding-block: var(--section); }
.what h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: 0; color: var(--amber); }
.what__statement {
  margin-top: 1.5rem; max-width: 24ch;
  font-family: var(--display); font-weight: 600; font-stretch: 92%;
  font-size: clamp(1.75rem, 1.1rem + 3vw, 3.25rem); line-height: 1.12; letter-spacing: -0.02em;
  text-wrap: balance;
}

/* Who */
.who { padding-block: var(--section); }
.who h2, .how h2, .contact h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); }
.who__pair { margin-top: clamp(2rem, 4vw, 3rem); display: grid; gap: 2rem clamp(2rem, 6vw, 5rem); }
.who__pair img, .how__intro img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; background: var(--line); }
.who__pair h3 { font-size: 1.5rem; margin-top: 1.5rem; }
.who__pair p { margin-top: .75rem; max-width: 34ch; color: var(--ink-soft); }

/* How */
.how { padding-block: 0 var(--section); }
.how__intro { display: grid; gap: 2rem clamp(2rem, 6vw, 5rem); align-items: center; }
.how__lede { margin-top: 1.25rem; max-width: 30ch; font-size: 1.25em; }
.steps {
  list-style: none; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0;
  counter-reset: step; display: grid; gap: 2rem;
}
.steps li { counter-increment: step; position: relative; padding-left: 3.75rem; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -.15rem;
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border: 3px solid var(--spruce); border-radius: 50%; background: var(--paper);
  font-family: var(--display); font-weight: 700; font-size: 1.125rem;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: calc(1.25rem - 1.5px); top: 2.5rem; bottom: -2rem;
  border-left: 3px solid var(--spruce);
}
.steps h3 { font-size: 1.5rem; }
.steps p { margin-top: .5rem; max-width: 40ch; color: var(--ink-soft); }
.how__along {
  margin-top: clamp(2.5rem, 5vw, 4rem); padding: 1.25rem 0 0;
  border-top: 3px dotted var(--amber);
  max-width: 44ch; font-size: 1.15em;
}

/* Contact */
.contact { background: var(--paper-hi); border-top: 1px solid var(--line); padding-block: var(--section); }
.contact__grid { display: grid; gap: 2.5rem clamp(2rem, 6vw, 5rem); }
.contact p { margin-top: 1rem; max-width: 36ch; color: var(--ink-soft); }
.form { display: grid; gap: 1.25rem; max-width: 34rem; }
.field { display: grid; gap: .4rem; }
.field label { font-family: var(--display); font-weight: 600; font-size: 1rem; }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: var(--paper);
  border: 2px solid var(--line); border-radius: 10px; padding: .7rem .9rem; width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--amber); outline-offset: 0; border-color: var(--spruce); }
.form .btn { justify-self: start; }
.contact .form__status { margin: 0; min-height: 1.6em; max-width: none; color: var(--ink); font-family: var(--display); font-weight: 500; font-size: 1rem; }
.contact .form__status[data-state="error"] { color: #9c2b1b; }
altcha-widget {
  --altcha-border-width: 2px; --altcha-border-radius: 10px; --altcha-max-width: 100%;
  --altcha-color-base: var(--paper); --altcha-color-border: var(--line); --altcha-color-text: var(--ink);
  font-family: var(--display); font-size: 1rem;
}

/* Footer */
.site-foot { background: var(--ink); color: var(--paper); padding-block: 2rem; font-family: var(--display); font-size: 1rem; }
.site-foot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.mark--foot { color: var(--paper); }

@media (min-width: 44rem) {
  .who__pair { grid-template-columns: 1fr 1fr; }
  .how__intro { grid-template-columns: 1fr 1fr; }
  .contact__grid { grid-template-columns: 5fr 6fr; }
}
@media (min-width: 60rem) {
  .hero__grid { grid-template-columns: 1fr 1fr; }
  .loop { justify-self: end; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .steps li { padding-left: 0; padding-top: 4rem; }
  .steps li::before { top: 0; }
  .steps li:not(:last-child)::after {
    left: 2.5rem; right: -2rem; top: calc(1.25rem - 1.5px); bottom: auto;
    border-left: 0; border-top: 3px solid var(--spruce);
  }
}
@media (max-width: 34rem) {
  .site-head nav a:not(.nav-cta) { display: none; }
}
