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

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

:root {
  --paper: #f4efe4;
  --paper-dark: #efe9db;
  --ink: #2a2622;
  --ink-soft: #4a443d;
  --muted: #6b635a;
  --green: #3e6b52;
  --rust: #9a5b20;
  --line: rgba(42, 38, 34, 0.14);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 4px;
}

::selection {
  background: var(--green);
  color: var(--paper);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
}

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

.shell {
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 239, 228, 0.9);
  backdrop-filter: blur(12px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1;
}

.brand-mark {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.nav-links {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 25px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-dark {
  background: var(--ink);
  color: var(--paper);
}

.button-dark:hover {
  background: var(--green);
  color: var(--paper);
}

.button-outline {
  border-color: rgba(42, 38, 34, 0.28);
}

.button-outline:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.button-small {
  min-height: 42px;
  padding: 9px 18px;
  font-size: 14px;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.sky {
  position: absolute;
  inset: 0 0 auto;
  height: 190px;
  pointer-events: none;
}

.cloud {
  position: absolute;
  width: 240px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
  stroke-linecap: round;
  opacity: 0.18;
  animation: cloud-drift 80s linear infinite;
}

.cloud-one {
  top: 26px;
  left: -250px;
}

.cloud-two {
  top: 108px;
  left: -200px;
  animation-duration: 110s;
  animation-delay: 16s;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-top: 96px;
}

.eyebrow {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 3.4s ease-in-out infinite;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 18ch;
  font-size: clamp(64px, 7.2vw, 100px);
  line-height: 0.96;
}

h1 em,
.closing em {
  color: var(--green);
  font-weight: 300;
}

.hero-actions {
  margin-top: 42px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 44px;
}

.lede {
  max-width: 54ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.6;
}

.button-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.landscape {
  position: relative;
  height: 250px;
  margin-top: 46px;
}

.landscape > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 250px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.ground-faint {
  opacity: 0.25;
}

.green {
  stroke: var(--green);
}

.tree {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: sway-wide 8.5s ease-in-out infinite;
}

.tree-two {
  animation-duration: 11s;
  animation-delay: 1.4s;
}

.grass path {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: sway 4.4s ease-in-out infinite;
}

.walker {
  position: absolute;
  bottom: 34px;
  left: -100px;
  z-index: 4;
  width: 86px;
  animation: walk 46s linear infinite;
}

.walker > svg {
  width: 86px;
  height: 122px;
  overflow: visible;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  animation: bob 1.1s ease-in-out infinite;
}

.walker-arm,
.walker-leg {
  transform-box: fill-box;
  transform-origin: top;
  animation: limb 1.1s ease-in-out infinite;
}

.walker-arm-right,
.walker-leg-right {
  animation-direction: reverse;
}

.section {
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}

.section-tint,
.site-footer {
  background: var(--paper-dark);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr);
  align-items: center;
  gap: 72px;
}

h2 {
  max-width: 20ch;
  font-size: clamp(44px, 5vw, 58px);
  line-height: 1.04;
}

.body-large {
  max-width: 50ch;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: 17.5px;
  line-height: 1.65;
}

.body-large + .body-large {
  margin-top: 18px;
}

.narrow {
  max-width: 34ch;
}

.draw-sketch {
  width: 100%;
  overflow: visible;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.queue-sketch text {
  fill: var(--muted);
  stroke: none;
  font: 12px var(--sans);
  letter-spacing: 0.12em;
}

.queue-sketch .green-text {
  fill: var(--green);
  font: italic 20px var(--serif);
  letter-spacing: 0;
}

[data-draw] {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

[data-draw].is-visible {
  animation: draw 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.queue {
  opacity: 0.35;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}

.steps {
  margin: 64px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  border-top: 1px solid rgba(42, 38, 34, 0.24);
}

.steps li {
  padding: 34px 36px 0;
  border-left: 1px solid var(--line);
}

.steps li:first-child {
  padding-left: 0;
  border-left: 0;
}

.steps li:last-child {
  padding-right: 0;
}

.step-number {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.step-number::first-letter {
  color: var(--green);
}

.step-sketch {
  height: 136px;
  margin-top: 22px;
}

.steps li > p:last-child {
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}

.pulse-stroke {
  animation: pulse 2s ease-in-out infinite;
}

.panel-section {
  position: relative;
  overflow: hidden;
}

.panel-split {
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 80px;
}

.panel-mock {
  overflow: hidden;
  border: 1px solid rgba(42, 38, 34, 0.2);
  border-radius: 14px;
  background: #f7f3e9;
  box-shadow: 0 24px 60px rgba(42, 38, 34, 0.12);
  transform: rotate(0.8deg);
}

.panel-bar {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 17px;
  border-bottom: 1px solid var(--line);
}

.panel-brand {
  font-size: 18px;
}

.panel-brand .brand-mark {
  width: 20px;
  height: 20px;
}

.panel-body {
  padding: 22px;
}

.panel-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.panel-name {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.panel-name span {
  margin-left: 7px;
  color: var(--green);
  font-size: 11px;
  font-weight: 500;
}

.panel-name i {
  width: 6px;
  height: 6px;
  display: inline-block;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--green);
}

.panel-muted,
.panel-safety {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.panel-rule {
  height: 1px;
  margin: 18px 0;
  background: var(--line);
}

.draft {
  min-height: 150px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink-soft);
  font: 14px / 1.55 var(--sans);
}

.mock-actions {
  margin-top: 14px;
  display: flex;
  gap: 9px;
}

.mock-actions span {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-align: center;
  font-size: 12px;
}

.mock-actions .mock-primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.panel-safety {
  margin-top: 10px;
  text-align: center;
}

.principles {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 72px;
  align-items: start;
}

.principle-list article {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 28px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.principle-list article:first-child {
  padding-top: 0;
}

.principle-list article > span {
  color: var(--green);
  font: italic 28px var(--serif);
}

.principle-list h3 {
  margin: 0;
  font: 400 20px var(--sans);
  letter-spacing: -0.02em;
}

.principle-list p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 80px;
  align-items: start;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span {
  color: var(--green);
  font-size: 24px;
  transition: transform 180ms ease;
}

.faq-list details[open] summary span {
  transform: rotate(45deg);
}

.faq-list details p {
  max-width: 62ch;
  margin: -2px 38px 22px 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}

.closing {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  padding: 96px 0 0;
  text-align: center;
}

.closing .eyebrow {
  margin-bottom: 22px;
}

.closing h2 {
  max-width: 18ch;
  margin: 0 auto;
  font-size: clamp(54px, 7vw, 80px);
  line-height: 0.98;
}

.closing p:not(.eyebrow) {
  margin: 24px 0 30px;
  color: var(--ink-soft);
  font-size: 18px;
}

.closing-land {
  position: absolute;
  inset: auto -5% 0;
  height: 200px;
  border-top: 2px solid rgba(42, 38, 34, 0.38);
  border-radius: 50% 50% 0 0;
  transform: translateY(70px) rotate(-1deg);
  background: var(--paper-dark);
}

.site-footer {
  padding: 52px 0 38px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 48px;
}

.footer-tagline {
  max-width: 30ch;
  margin: 16px 0 0;
  color: var(--muted);
  font: italic 17px / 1.5 var(--serif);
}

.footer-grid h2 {
  margin: 4px 0 14px;
  color: var(--muted);
  font: 600 11px var(--sans);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-grid > div:not(:first-child) {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.copyright {
  margin-top: 42px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.legal-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.legal-card {
  width: min(620px, 100%);
  padding: 56px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper-dark);
  text-align: center;
}

.legal-card .brand {
  margin-bottom: 42px;
}

.legal-card h1 {
  max-width: none;
  font-size: clamp(44px, 8vw, 68px);
}

.legal-card p {
  margin: 22px auto 30px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.6;
}

@keyframes cloud-drift {
  to {
    transform: translateX(calc(100vw + 500px));
  }
}

@keyframes sway-wide {
  0%,
  100% {
    transform: rotate(-1.2deg);
  }
  50% {
    transform: rotate(1.4deg);
  }
}

@keyframes sway {
  0%,
  100% {
    transform: rotate(-2.4deg);
  }
  50% {
    transform: rotate(2.4deg);
  }
}

@keyframes walk {
  to {
    transform: translateX(calc(100vw + 190px));
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes limb {
  0%,
  100% {
    transform: rotate(13deg);
  }
  50% {
    transform: rotate(-15deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 900px) {
  .shell {
    width: min(100% - 40px, 720px);
  }

  .nav-links {
    display: none;
  }

  .hero-copy {
    padding-top: 72px;
  }

  .hero-actions,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .button-stack {
    width: min(100%, 360px);
  }

  .split,
  .panel-split,
  .principles,
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .queue-sketch {
    max-width: 580px;
    margin: 0 auto;
  }

  .steps {
    grid-template-columns: 1fr;
    border-top: 0;
  }

  .steps li,
  .steps li:first-child,
  .steps li:last-child {
    padding: 30px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .step-sketch {
    max-width: 380px;
  }

  .panel-mock {
    width: min(100%, 470px);
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .shell {
    width: calc(100% - 32px);
  }

  .nav {
    min-height: 64px;
  }

  .nav .button {
    min-height: 40px;
    padding: 8px 13px;
  }

  .hero-copy {
    padding-top: 56px;
  }

  .hero .eyebrow {
    max-width: 28ch;
    line-height: 1.5;
  }

  h1 {
    font-size: clamp(48px, 14.5vw, 68px);
  }

  h2 {
    font-size: clamp(40px, 12vw, 52px);
  }

  .lede {
    font-size: 17px;
  }

  .button-stack,
  .button-stack .button {
    width: 100%;
  }

  .landscape {
    height: 210px;
  }

  .landscape > svg {
    height: 210px;
  }

  .walker {
    width: 64px;
  }

  .walker > svg {
    width: 64px;
    height: 92px;
  }

  .section {
    padding: 68px 0;
  }

  .principle-list article {
    grid-template-columns: 54px 1fr;
    gap: 14px;
  }

  .panel-body {
    padding: 18px;
  }

  .mock-actions {
    flex-direction: column;
  }

  .closing {
    min-height: 570px;
    padding-top: 74px;
  }

  .closing h2 {
    font-size: clamp(48px, 14vw, 64px);
  }

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

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .legal-card {
    padding: 40px 22px;
  }
}

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

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

  [data-draw] {
    stroke-dashoffset: 0;
  }
}
