/* TERRA GENESIS Git getting-started — local styles only, no tracking. */
:root {
  --bg: #0c1210;
  --bg-2: #121a16;
  --card: #1a241c;
  --card-2: #212e24;
  --forest: #1b3d2c;
  --moss: #9dc282;
  --sage: #c5d4b4;
  --cream: #f4efe4;
  --muted: #b8c3b4;
  --line: #334036;
  --timber: #8b5e34;
  --bark: #3d2a1c;
  --gold: #d4b56a;
  --orange: #e86f1a;
  --orange-ink: #1a0f08;
  --danger: #e8a884;
  --code-bg: #101714;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  --display: "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", ui-sans-serif, system-ui, sans-serif;
  --body: "Segoe UI", "Helvetica Neue", system-ui, ui-sans-serif, sans-serif;
  --mono: "Cascadia Code", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --radius: 14px;
  --max: 72rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.25rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.65;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(61, 90, 50, 0.28), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(139, 94, 52, 0.16), transparent 55%),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.07;
  background-image:
    repeating-linear-gradient(
      -18deg,
      transparent 0 22px,
      #9dc282 22px 23px,
      transparent 23px 48px
    );
}

img, svg { max-width: 100%; height: auto; display: block; }

a {
  color: var(--moss);
  text-underline-offset: 0.18em;
}
a:hover { color: var(--gold); }
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--orange);
  color: var(--orange-ink);
  padding: 0.6rem 1rem;
  z-index: 100;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(12, 18, 16, 0.92);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.wordmark img, .wordmark svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.wordmark strong {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--cream);
}
.wordmark span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.header-nav a:not(.btn) {
  color: var(--sage);
  text-decoration: none;
  font-size: 0.95rem;
}
.header-nav a:not(.btn):hover { color: var(--gold); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: var(--orange-ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.88rem;
  padding: 0.55rem 0.95rem;
  border-radius: 8px;
  border: 0;
  line-height: 1.1;
}
.btn:hover { color: var(--orange-ink); filter: brightness(1.08); }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--line);
}
.btn-ghost:hover { color: var(--gold); border-color: var(--gold); }

/* Hero */
.hero {
  padding: 2.4rem 0 1.6rem;
  display: grid;
  gap: 1.25rem;
}
.kicker {
  margin: 0 0 0.45rem;
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}
.hero h1 {
  margin: 0 0 0.7rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  font-weight: 750;
}
.lede {
  margin: 0;
  max-width: 42rem;
  color: var(--sage);
  font-size: 1.12rem;
}

.notice {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, var(--card), #172118);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 44rem;
}
.notice strong { color: var(--cream); }
.notice p { margin: 0; color: var(--sage); }

/* Sections */
.section {
  padding: 2.1rem 0 0.4rem;
  border-top: 1px solid var(--line);
  margin-top: 1.6rem;
}
.section h2 {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.section > .intro {
  margin: 0 0 1.3rem;
  color: var(--sage);
  max-width: 46rem;
}

/* Download cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
  gap: 1rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 100%;
}
.card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.card p { margin: 0; color: var(--sage); }
.card .os-tag { flex: none; }
.card .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.35rem;
}
.os-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 1rem;
}
.steps > li {
  counter-increment: step;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.2rem 1.2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem 1rem;
}
.steps > li::before {
  content: counter(step);
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: var(--forest);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid #3d5a46;
  grid-row: 1 / span 2;
  margin-top: 0.1rem;
}
.steps h3 {
  margin: 0;
  font-size: 1.12rem;
  grid-column: 2;
}
.steps .body {
  grid-column: 2;
  color: var(--sage);
}
.steps .body > *:first-child { margin-top: 0; }
.steps .body > *:last-child { margin-bottom: 0; }

.callout {
  margin: 0.9rem 0 0;
  padding: 0.85rem 1rem;
  background: #24180f;
  border: 1px solid #5a3d22;
  border-radius: 10px;
  color: var(--cream);
}
.callout strong { color: var(--gold); }

pre, code { font-family: var(--mono); }
code {
  font-size: 0.92em;
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.08em 0.38em;
  color: var(--cream);
}
pre {
  margin: 0.8rem 0 0;
  padding: 0.9rem 1rem;
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-x: auto;
  color: var(--cream);
  font-size: 0.92rem;
  line-height: 1.5;
}
pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
}

.os-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
  gap: 1rem;
}
.os-grid h3 { margin: 0 0 0.4rem; }

footer {
  margin-top: 2.6rem;
  padding: 1.4rem 0 2.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}
footer p { margin: 0 0 0.4rem; }

@media (max-width: 720px) {
  .header-nav a:not(.btn) { display: none; }
  .steps > li {
    grid-template-columns: auto 1fr;
  }
  body { font-size: 1rem; }
}
