@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin.woff2?v=2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-latin.woff2?v=2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --pine: #1e3b32;
  --pine-deep: #162d26;
  --pollen: #e8c547;
  --lichen: #dce3d3;
  --on-pine: #e9eee4;
  --on-pine-muted: #b9c6b8;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(1.5rem, 6vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--pine);
  color: var(--on-pine);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--pollen);
  outline-offset: 4px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: 64rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(3rem, 10vh, 7rem) 2rem;
}

/* The mark */
.hero-mark {
  width: clamp(5.5rem, 14vw, 9rem);
  overflow: visible;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.hero-mark .sprout { fill: none; stroke: var(--lichen); stroke-width: 2.4; stroke-linecap: round; }
.hero-mark .leaf { fill: var(--lichen); }
.hero-mark .seed { fill: var(--pollen); }
.hero-mark .eye { fill: var(--pine); }

/* The one moment of motion: the sprout grows out of the seed. */
@media (prefers-reduced-motion: no-preference) {
  .hero-mark .sprout {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: grow 1.1s cubic-bezier(0.3, 0.7, 0.2, 1) 0.35s forwards;
  }
  .hero-mark .leaf {
    transform-box: fill-box;
    transform-origin: 0% 60%;
    transform: scale(0);
    animation: unfurl 0.8s cubic-bezier(0.25, 1.4, 0.4, 1) 1.15s forwards;
  }
}
@keyframes grow { to { stroke-dashoffset: 0; } }
@keyframes unfurl { to { transform: scale(1); } }

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.75rem, 1.5rem + 11vw, 10rem);
  font-weight: 350;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.lede {
  margin-top: clamp(1.25rem, 3vw, 2rem);
  max-width: 28rem;
  font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem);
  line-height: 1.45;
  color: var(--on-pine-muted);
  text-wrap: balance;
}

.contact {
  margin-top: clamp(2rem, 5vw, 3rem);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
}
.contact a {
  display: inline-block;
  padding-block: 0.35rem;
  color: var(--on-pine);
  text-decoration-color: var(--pollen);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}
.contact a:hover { color: var(--pollen); }

.foot {
  padding-block: 1.75rem;
  font-size: 0.875rem;
  color: var(--on-pine-muted);
}

/* 404 */
.not-found .btn {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  margin-top: 2rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  background: var(--pollen);
  color: #17221e;
  font-weight: 600;
  text-decoration: none;
  align-self: flex-start;
}
