/* Nevet pre-launch site. Black on white, one serif for the wordmark and titles, the system sans
   for everything else. Fonts come from the visitor's system: the CSP allows nothing from another
   host, and no font file is self-hosted yet (see site/README.md). */

:root {
  --ink: #111111;
  --text: #2b2b2b;
  --muted: #5c5c5c;
  --soft: #767676;
  --rule: #e6e6e6;
  --paper: #ffffff;
  --owner: #fff1a8;
  --sprout: #6b9a70; /* soft green for hover accents; 3.2:1 on white, enough for large text */

  --serif: "Bodoni 72", "Bodoni MT", Didot, "Didot LT STD", "Playfair Display", "Noto Serif Display",
    Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial,
    sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}
.skip:focus { top: 16px; }

/* Button: the one black block on the page. */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85rem 1.9rem;
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.button:hover { background: #3a3a3a; }

/* Small uppercase labels, like "We're sprouting". */
.label,
.services {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Home ---------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 88px 16px 56px;
  text-align: center;
}

/* The hero logo. seed.css (generated by site/tools/pixel_seed.py) grows it from pixels when
   motion is welcome; without it, or with reduced motion, only the vector logo shows. */
.seed { position: relative; width: 64px; height: 79px; margin-bottom: 18px; }
.seed > img,
.seed > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.seed-pixels { display: none; pointer-events: none; }
.seed-pixels rect { fill: var(--ink); }

.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(5rem, 22vw, 8.75rem);
  line-height: 0.82;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.byline {
  margin-top: 22px;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.tagline {
  margin-top: 26px;
  font-size: clamp(1.25rem, 4.6vw, 1.5rem);
  line-height: 1.3;
  color: var(--ink);
}

.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 14px;
}
.services span { padding: 0 0.9em; }
.services span + span { border-left: 1px solid var(--rule); }

.hero .button { margin-top: 30px; }

.building {
  border-top: 1px solid var(--rule);
  padding: 48px 16px 24px;
  text-align: center;
}

.summary {
  max-width: 34em;
  margin: 26px auto 0;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--text);
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  max-width: 880px;
  margin: 56px auto 0;
  padding: 0;
  list-style: none;
}

.benefits h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2.125rem;
  line-height: 1.1;
  color: var(--soft);
  transition: color 0.3s ease;
}

/* A soft splash of green on the benefit you point at. Only where a pointer can hover: on touch
   screens the titles stay grey rather than sticking green after a tap. */
@media (hover: hover) {
  .benefits li:hover h3 { color: var(--sprout); }
}

.benefits p {
  max-width: 17em;
  margin: 10px auto 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .hero { padding-top: 64px; }
  .services { flex-direction: column; gap: 6px; }
  .services span { padding: 0; }
  .services span + span { border-left: 0; }
  .benefits { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
}

/* Desktop: the whole home page fits one screen, with no scrolling. Sizes and gaps follow the
   window's height (vh), so a short laptop screen gets a tighter page and a tall one keeps the full
   sizes; below about 600px of height the minimums win and the page scrolls. */
@media (min-width: 900px) {
  body.home {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
  }
  .home main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .hero { padding: clamp(20px, 4vh, 88px) 16px clamp(16px, 3.4vh, 56px); }
  .seed { width: auto; height: clamp(48px, 8.5vh, 79px); aspect-ratio: 64 / 79; margin-bottom: clamp(8px, 1.6vh, 18px); }
  .wordmark { font-size: clamp(4.5rem, 13vh, 8.75rem); }
  .byline { margin-top: clamp(10px, 2vh, 22px); }
  .tagline { margin-top: clamp(12px, 2.2vh, 26px); }
  .services { margin-top: clamp(8px, 1.4vh, 14px); }
  .hero .button { margin-top: clamp(14px, 3vh, 30px); }
  .building { padding: clamp(16px, 3vh, 48px) 16px 0; }
  .summary { margin-top: clamp(10px, 2vh, 26px); }
  .benefits { margin-top: clamp(16px, 3vh, 56px); }
  .benefits h3 { font-size: clamp(1.5rem, 4vh, 2.125rem); }
  .home .site-footer { padding: clamp(16px, 3vh, 56px) 16px clamp(16px, 2.6vh, 48px); }
}

/* ---------- Footer, every page ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  padding: 56px 16px 48px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.site-footer a { text-decoration: none; }
.site-footer a:hover,
.site-footer a[aria-current="page"] { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Policy pages and 404 ---------- */

.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 36px 16px 28px;
  text-align: center;
}

.brand {
  display: inline-flex;
  align-items: flex-end;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 23px; }
.brand span {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 0.8;
}

.prose {
  max-width: 42rem;
  margin: 0 auto;
  padding: 56px 16px 16px;
}

.prose h1 {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.25rem, 8vw, 3rem);
  line-height: 1.05;
  color: var(--ink);
}

.prose p + h1 { margin-top: 24px; }

.prose h2 {
  margin: 40px 0 10px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
}

.prose p,
.prose ul,
.prose ol { margin-top: 12px; }
.prose ul,
.prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 8px; }
.prose a { text-underline-offset: 3px; }

.prose .updated { margin-top: 0; font-size: 0.875rem; color: var(--soft); }
.prose .intro { margin-top: 28px; }
.prose .note {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}
.path { font-weight: 500; color: var(--ink); }

mark.owner {
  background: var(--owner);
  color: var(--ink);
  padding: 0 0.2em;
}

.notfound {
  padding: 96px 16px;
  text-align: center;
}
.notfound h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 3rem;
  line-height: 1.05;
  color: var(--ink);
}
.notfound p { margin: 14px 0 30px; color: var(--muted); }
