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

:root {
  --paper: #f2efe8;
  --ink: #1f2a1c;
  --muted: #45503f;
  --ink-a: #ff7a3d;
  --ink-b: #2f8f5b;
  --rule: #1f2a1c33;
  --dots: radial-gradient(#1f2a1c29 1px, transparent 1.6px);
  --gutter: clamp(16px, 5vw, 64px);
}

* { 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(--paper);
  color: var(--ink);
  font-family: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.5;
}

a { color: inherit; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--ink-a); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Landing: mobile first, art stacked above the text */
.hero {
  flex-grow: 1;
  display: grid;
  gap: 40px;
  align-items: center;
  padding-top: clamp(32px, 8vw, 128px);
  padding-bottom: clamp(40px, 6vw, 72px);
}

.art {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 1 / 1;
  isolation: isolate;
}

.art span {
  position: absolute;
  mix-blend-mode: multiply;
  animation: register 1.1s cubic-bezier(.2, .7, .2, 1) both;
}

.art .head { aspect-ratio: 1 / 1; border-radius: 50%; }
.art .body { bottom: 0; border-radius: 999px 999px 0 0; }
.art .a { background-color: var(--ink-a); background-image: var(--dots); background-size: 7px 7px; --dx: -10px; --dy: 6px; }
.art .b { background-color: var(--ink-b); --dx: 10px; --dy: -6px; }
.art .head.a { left: 6%; top: 10%; width: 42%; }
.art .body.a { left: 0; width: 60%; height: 40%; }
.art .head.b { left: 40%; top: 4%; width: 46%; }
.art .body.b { left: 34%; width: 66%; height: 46%; }
.art .ring {
  mix-blend-mode: normal;
  border: 2px solid var(--ink);
  opacity: 0.55;
  --dx: 0px; --dy: 0px;
}
.art .ring.a { left: 7.2%; top: 11.4%; width: 42%; background: none; }
.art .ring.b { left: 41.4%; top: 5.2%; width: 46%; background: none; }

@keyframes register {
  from { transform: translate(var(--dx), var(--dy)); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.copy { display: flex; flex-direction: column; gap: 28px; }

h1 {
  margin: 0;
  font-size: clamp(54px, 15vw, 116px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.045em;
}
h1 .a { background: var(--ink-a); padding: 0 0.08em; }
h1 .b { background: #2f8f5b66; padding: 0 0.08em; }

.lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 30em;
  font-size: clamp(18px, 2vw, 22px);
  text-wrap: pretty;
}
.lines p { margin: 0; }

.cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0 24px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--ink-a);
  transition: transform .15s ease, box-shadow .15s ease;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.cta:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink-a); }
.cta:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink-a); }

footer {
  border-top: 1px solid var(--rule);
  padding: 24px 0 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  font-size: 15px;
  color: var(--muted);
}
footer .people, footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer a { display: inline-flex; align-items: center; min-height: 44px; }

/* Tablet: art beside nothing yet, but a bit bigger */
@media (min-width: 640px) {
  .art { width: min(100%, 420px); }
}

/* Desktop: two columns */
@media (min-width: 960px) {
  .hero { grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); }
  .art { width: 100%; }
}

/* Legal pages */
.legal {
  flex-grow: 1;
  max-width: 760px;
  padding-top: clamp(24px, 6vw, 72px);
  padding-bottom: 64px;
}
.legal .back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; text-decoration: none; }
.legal h1 { font-size: clamp(40px, 10vw, 64px); margin: 16px 0 32px; }
.legal h2 {
  margin: 32px 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1f6b43;
}
.legal p, .legal ul { margin: 0 0 12px; text-wrap: pretty; }
.legal ul { padding-left: 1.2em; }

@media (prefers-reduced-motion: reduce) {
  .art span { animation: none; }
  .cta { transition: none; }
}
