/* Habitat landing — design system lifted from the flask.do dissection.
   One ground, one ink at opacities, half-pixel bevels, light not fill.
   No webfonts by design: zero font bytes is part of the aesthetic. */

:root {
  --void: #09090B;            /* footer only — the single tonal break */
  --ground: #191919;          /* the page. nothing else paints a background */
  --inbetween: #202020;       /* grid fill, used at ~20% alpha */
  --raised: #2C2C2C;          /* chips, pills, cards — mostly at low alpha */
  --line: rgb(63,63,63);      /* hairline sides + bottom */
  --line-top: rgb(81,81,81);  /* hairline top edge: the faked overhead light */
  --ink: #FAFAFA;             /* the one ink; hierarchy is opacity, not hue */
  --ink-70: rgba(250,250,250,.7);
  --ink-50: rgba(250,250,250,.5);
  --ink-40: rgba(250,250,250,.4);
  --muted: #A1A1AA;           /* nav links, metadata — the one cool gray */
  /* Canopy: light through leaves. Light on top edges, moss and amber underneath. */
  --jade: #D6EFDC;            /* brand light. appears as glow and rim, never paint */
  --moss: #7ED08F;
  --amber: #E8B05C;
  --sand: #EFD7A4;
  --sans: ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}

* { box-sizing: border-box; border-color: #2A2A2A; }
html { background: var(--ground); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

/* rails: content lives at 960, the hero alone speaks at 1200 */
.rail   { width: 100%; max-width: 960px;  margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.rail-w { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
@media (min-width: 768px) {
  .rail, .rail-w { padding-left: 40px; padding-right: 40px; }
}

/* the section rhythm: 80 · h2 · 16 · body · 40 · visual · 80 */
section { padding: 64px 0; scroll-margin-top: 96px; }
@media (min-width: 768px) { section { padding: 80px 0; } }

h1, h2 { margin: 0; font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(30px, 5vw, 44px); }
h2 { font-size: clamp(24px, 4vw, 40px); }
p  { margin: 0; font-size: 15px; line-height: 1.6; letter-spacing: -0.01em;
     color: var(--ink-70); text-wrap: pretty; max-width: 62ch; }
h2 + p { margin-top: 16px; }
.visual { margin-top: 40px; }
a { color: var(--muted); text-decoration: none; transition: color .2s; }
/* buttons carry their own label colors; the global hover must not repaint them */
a:not(.btn):hover { color: var(--ink); }
a:focus-visible, button:focus-visible { outline: 2px solid #D4D4D8; outline-offset: 2px; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0; }

/* the border that isn't a border */
.eb { border: .5px solid var(--line); border-top: .5px solid var(--line-top); }
.eb-grad {
  box-shadow: inset 0 .5px 0 0 rgba(214,239,220,.25),
              inset 0 -.5px 0 0 rgba(126,208,143,.32),
              inset 0 0 0 .5px rgba(119,119,113,.4);
}

/* the shadow ladder: one everyday shadow, one hero escalation */
.sh    { box-shadow: 0 10px 15px -3px rgba(0,0,0,.2), 0 4px 6px -4px rgba(0,0,0,.2); }
.sh-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,.5); }

/* buttons lit from below */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 20px;
  border-radius: 9999px; border: none;
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  cursor: pointer; text-decoration: none;
}
.btn > span { position: relative; z-index: 2; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  border-radius: inherit; opacity: 0; transition: opacity .3s ease;
}
.btn:hover::before { opacity: 1; }
.btn-primary {
  background: linear-gradient(to top, #D6EFDC 20%, #fafafa 80%);
  color: #09090b;
  box-shadow: inset 0 1px rgba(255,255,255,.85), inset 0 -1px rgba(9,9,11,.06),
              0 0 0 .5px rgba(9,9,11,.55), 0 1px 2px rgba(0,0,0,.35), 0 4px 12px rgba(0,0,0,.22);
}
.btn-primary::before {
  background:
    radial-gradient(50% 30% at 50% 112.3%, #7ED08F, rgba(126,208,143,0)),
    radial-gradient(60% 51.9% at 50% 110%, #E8B05C, rgba(232,176,92,0)),
    radial-gradient(89% 60% at 50% 95%, #efd7a4, rgba(239,215,164,0)),
    #fafafa;
  box-shadow: inset 0 1px rgba(255,255,255,.85), inset 0 -1px rgba(9,9,11,.06);
}
.btn-secondary {
  background: rgba(44,44,44,.6);
  color: rgba(255,255,255,.7);
  box-shadow: inset 0 .5px 0 0 rgba(214,239,220,.25), inset 0 0 0 .5px rgba(119,119,113,.4);
  transition: box-shadow .2s ease;
}
.btn-secondary:hover {
  box-shadow: inset 0 .5px 0 0 rgba(214,239,220,.55), inset 0 0 0 .5px rgba(119,119,113,.4);
}
.btn-secondary::before {
  background:
    radial-gradient(50% 30% at 50% 112.3%, rgba(126,208,143,.3), rgba(126,208,143,0)),
    radial-gradient(60% 51.9% at 50% 110%, rgba(232,176,92,.3), rgba(232,176,92,0)),
    radial-gradient(89% 60% at 50% 95%, rgba(239,215,164,.3), rgba(239,215,164,0));
}

/* the wordmark: a live gradient, never an image */
.wordmark {
  font-weight: 500; letter-spacing: -0.02em;
  background: linear-gradient(116.53deg, #D6EFDC 36.57%, #FFFFFF 78.02%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* the ambient wash: three lamps, blur on blur, edge always hidden */
.wash {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 10% 15%, rgba(214,239,220,.35) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 60%, rgba(232,176,92,.12) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 35%, rgba(126,208,143,.12) 0%, transparent 50%);
  filter: blur(120px) saturate(1.2);
}

/* the lit seam: a fading rule plus the light it reflects */
.seam { position: relative; height: 1px; }
.seam::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.55) 50%, transparent 100%);
}
.seam::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  top: -5px; height: 7px; width: 160px; border-radius: 9999px;
  background: rgba(214,239,220,.25); filter: blur(12px);
}

/* perf valve: everything freezes while scrolling */
@media (prefers-reduced-motion: no-preference) {
  html.is-scrolling * { animation-play-state: paused !important; transition: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
