/* SeedLife -- lonunjie.org. Monochrome brand: paper above the horizon,
   ink below it, the seed mark straddling the line. No JS, no web fonts. */

:root {
  --paper: #ffffff;
  --ink: #0a0a0a;
  --muted: #5c5c5c;
  --line: #e4e4e4;
  --card: #f6f6f5;
  --focus: #2f6fed;
  --max: 44rem;
  --mark: clamp(7rem, 22vmin, 12rem);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0a0a0a;
    --ink: #f4f4f2;
    --muted: #a3a3a3;
    --line: #262626;
    --card: #151515;
    --focus: #7aa7ff;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "ss01", "cv11";
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--ink); color: var(--paper);
  padding: 0.5rem 0.75rem; border-radius: 6px; z-index: 10;
}
.skip:focus { top: 1rem; }

/* ---- Hero: the horizon ------------------------------------------------ */

.hero {
  position: relative;
  display: grid;
  grid-template-rows: 1fr 1fr;
  min-height: 100svh;
  background: linear-gradient(to bottom, var(--paper) 50%, var(--ink) 50%);
  text-align: center;
  padding: 0 1rem;
}

.hero .sky, .hero .ground {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .sky    { justify-content: flex-end; padding-bottom: calc(var(--mark) / 2 + 2rem); }
.hero .ground { justify-content: flex-start; padding-top: calc(var(--mark) / 2 + 2rem); color: var(--paper); }

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 4.75rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1;
}

.hero .tagline {
  margin: 0;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.horizon-mark {
  position: absolute;
  left: 50%; top: 50%;
  width: var(--mark); height: var(--mark);
  transform: translate(-50%, -50%);
}
.horizon-mark .on-sky    { fill: var(--ink); }
.horizon-mark .on-ground { fill: var(--paper); }

.scroll-cue {
  margin-top: auto;
  padding-bottom: 1.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.7;
  text-decoration: none;
}

/* ---- Content ---------------------------------------------------------- */

main section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 6rem) 1rem 0;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

p { margin: 0 0 1.1em; }
.lede { font-size: 1.2rem; }

.card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--ink); transform: translateY(-1px); }
.card .glyph {
  display: grid; place-items: center;
  width: 3.5rem; height: 3.5rem;
  border-radius: 14px;
  background: var(--ink); color: var(--paper);
  font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em;
}
.card h3 { margin: 0 0 0.2rem; font-size: 1.2rem; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); }
.badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.75rem; font-weight: 600;
  color: var(--muted);
  vertical-align: 0.15em;
}

.socials {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.6rem;
  list-style: none;
  margin: 0; padding: 0;
}
.socials a {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  transition: border-color 0.15s ease;
}
.socials a:hover { border-color: var(--ink); }
.socials svg { width: 1.25rem; height: 1.25rem; fill: currentColor; flex: none; }

footer {
  max-width: var(--max);
  margin: clamp(4rem, 10vw, 7rem) auto 0;
  padding: 2rem 1rem 3rem;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--muted);
}
footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
