@font-face {
  font-family: "Geist";
  src: url("assets/geist-pl.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --canvas: #ECE9E4;
  --ink: #0E0E0E;
  --paper: #FFFFFF;
  --muted: #67635D;
  --muted-on-ink: #A9A59F;
  --grass: #6AC83C;
  --grass-back: #A8D985;
  --lawn: 200px;            /* kept in sync by main.js */
  --vh: 1vh;                /* 1% of the real viewport height, set by main.js */
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

p, h1 { margin: 0; }

/* ======================================================= static page (no JS, reduced motion) */
.scene {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: clamp(32px, 7vh, 72px);
  padding: 40px 20px calc(var(--lawn) * 0.7);
  text-align: center;
}

.world, .shape, .wc { display: contents; }
.blades { display: none; }

.msg {
  font-size: clamp(1.5rem, 0.9rem + 3vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.026em;
  line-height: 1.12;
  text-wrap: balance;
  max-width: 26ch;
}
.msg-2 { color: var(--muted); font-weight: 560; margin-top: -0.6em; }

.title { display: grid; justify-items: center; gap: 0.3em; }

.brand {
  font-size: clamp(4.4rem, min(0.9rem + 17vw, 32vh), 10.6rem);
  font-weight: 680;
  letter-spacing: -0.055em;
  line-height: 0.9;
  white-space: nowrap;
}
.seed { color: var(--grass); }

.soon {
  font-size: clamp(1.4rem, 0.9rem + 2vw, 2.75rem);
  font-weight: 540;
  letter-spacing: -0.015em;
  color: var(--muted);
}

.lawn, .paw { display: none; }

.still .lawn { display: block; position: fixed; left: 0; bottom: 0; width: 100%; pointer-events: none; z-index: -1; }

/* ======================================================= animated page */
.anim .scene {
  position: fixed;
  inset: 0;
  display: block;
  padding: 0;
  min-height: 0;
  /* whatever sinks below the grass line fades out instead of showing through the blades */
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--lawn) * 0.9), transparent calc(100% - var(--lawn) * 0.36));
          mask-image: linear-gradient(to bottom, #000 calc(100% - var(--lawn) * 0.9), transparent calc(100% - var(--lawn) * 0.36));
}

.anim .world { display: block; position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.anim .shape { display: block; position: absolute; left: 0; top: 0; overflow: hidden; }
.anim .wc { display: block; position: absolute; left: 0; top: 0; }
.anim .blades { display: block; position: absolute; left: 0; top: 0; }
.anim .blades i { position: absolute; left: 0; top: 0; display: block; background: var(--grass); transform-origin: 50% 100%; }

.anim .msg {
  position: absolute;
  left: 0;
  top: 0;
  max-width: none;
  margin: 0;
  color: var(--paper);
  font-weight: 560;
  letter-spacing: -0.018em;
  line-height: 1.16;
  text-align: center;
}
.anim .msg-2 { color: var(--muted-on-ink); }
.anim .msg .w { display: inline-block; opacity: 0; }
.anim .msg .keep { white-space: nowrap; }

.anim .title {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.3em;
  padding: 0 20px calc(var(--vh) * 16);
  text-align: center;
}
.anim .brand .l { display: inline-block; opacity: 0; }
.anim .brand .seed { display: inline-block; opacity: 0; }
.anim .soon { opacity: 0; }

.anim .lawn {
  display: block;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 3;
  pointer-events: none;
}

/* under the lawn: when the cat sits low it peeks over the grass */
.anim .paw {
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 2;
  pointer-events: none;
}

@media (pointer: fine) {
  .anim.handoff body { cursor: url("assets/cursor-paw.svg") 16 19, url("assets/cursor-paw.png") 16 19, auto; }
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
