/* GSS design system — the whole site now uses the language the /join/ page established:
   green brand, soft paper wash, a logo mark, generously padded cards with a low shadow, an
   uppercase eyebrow, and tight display type. Portal-only pieces layer on top in /app/app.css. */

:root {
  color-scheme: light dark;
  --green: #0f7a4a;
  --green-dark: #075f39;
  --ink: #17221c;
  --muted: #5c6962;
  --paper: #f4f8f5;
  --card: #ffffff;
  --line: #dce7df;
  --danger: #b3261e;
  --warn: #a2560a;
  --wash: rgba(15, 122, 74, .13);
  --shadow: 0 1.2rem 3.5rem rgba(23, 34, 28, .09);
  --radius: 1.35rem;
  --measure: 46rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --green: #4ade80;
    --green-dark: #86efac;
    --ink: #e9efea;
    --muted: #9aa8a0;
    --paper: #0f1512;
    --card: #171f1a;
    --line: #26332b;
    --danger: #ff6b6b;
    --warn: #f0a94a;
    --wash: rgba(74, 222, 128, .10);
    --shadow: 0 1.2rem 3.5rem rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100svh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  color: var(--ink);
  background: radial-gradient(circle at 20% 0%, var(--wash), transparent 38rem), var(--paper);
}

a { color: var(--green-dark); text-underline-offset: .15em; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: .5rem; top: .5rem; background: var(--card); padding: .5rem; z-index: 10; }

/* Brand -------------------------------------------------------------------- */
.brand {
  display: flex; align-items: center; gap: .75rem;
  margin: 0; color: var(--green-dark); font-weight: 750; letter-spacing: -.01em;
  text-decoration: none;
}
.mark {
  width: 2.65rem; height: 2.65rem; display: grid; place-items: center;
  border-radius: .8rem; color: #fff; background: var(--green);
  box-shadow: 0 .45rem 1.4rem rgba(7, 95, 57, .22);
  font-size: .9rem; letter-spacing: .03em; font-weight: 800; flex: none;
}

/* Shell -------------------------------------------------------------------- */
.page {
  width: min(100%, var(--measure));
  margin: 0 auto;
  padding: max(1.75rem, env(safe-area-inset-top)) 1rem max(2.5rem, env(safe-area-inset-bottom));
}
.topbar { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.topbar .spacer { flex: 1; }
.topbar nav { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: .92rem; }
.topbar nav a { color: var(--muted); text-decoration: none; }
.topbar nav a:hover, .topbar nav a[aria-current="page"] { color: var(--ink); }

.card {
  padding: clamp(1.4rem, 5vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 1rem; }

/* Type --------------------------------------------------------------------- */
.eyebrow {
  margin: 0 0 .4rem; color: var(--green-dark);
  font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
h1 {
  margin: 0; max-width: 18ch;
  font-size: clamp(1.9rem, 7vw, 2.85rem); line-height: 1.03; letter-spacing: -.04em;
}
h2 {
  margin: 2rem 0 .5rem; font-size: .8rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: var(--green-dark);
}
h3 { font-size: 1.02rem; margin: 1.4rem 0 .35rem; }
p { margin: .7rem 0; }
.intro, .lede, .lead { margin: 1rem 0 1.35rem; color: var(--muted); font-size: 1.05rem; }

/* Release-notes build headings: "Build 438 — readable at any text size". The build number carries
   the weight; the descriptor is secondary so a long one never competes with it. */
h2 .tag {
  font-weight: 600; letter-spacing: 0; text-transform: none;
  color: var(--muted); font-size: .95em;
}
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.sub { color: var(--muted); margin-top: 0; }

.prose ul { padding-left: 1.15rem; margin: .5rem 0; }
.prose li { margin: .5rem 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

/* Tiles -------------------------------------------------------------------- */
.tiles { display: grid; gap: .8rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
@media (min-width: 34rem) { .tiles { grid-template-columns: 1fr 1fr; } }

.tile {
  display: block; padding: 1.1rem 1.25rem; border: 1px solid var(--line);
  border-radius: 1rem; background: var(--card); box-shadow: var(--shadow);
  text-decoration: none; color: inherit;
}
.tile:hover, .tile:focus-visible { border-color: var(--green); transform: translateY(-1px); }
.tile .title { font-weight: 700; letter-spacing: -.01em; }
.tile .sub { font-size: .9rem; margin-top: .2rem; }

/* Controls ----------------------------------------------------------------- */
button, .btn {
  display: inline-block; font: inherit; border-radius: .8rem; border: 1px solid var(--line);
  padding: .7rem 1.15rem; min-height: 44px; background: var(--card); color: var(--ink);
  cursor: pointer; text-decoration: none; text-align: center; font-weight: 600;
}
button.primary, .btn.primary {
  background: var(--green); border-color: var(--green); color: #fff;
  box-shadow: 0 .45rem 1.4rem rgba(7, 95, 57, .22);
}
button.ghost { border: 0; background: none; color: var(--muted); min-height: 36px; padding: .3rem .5rem; }
button[disabled] { opacity: .5; cursor: default; }

.pill {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; padding: .18rem .55rem; border-radius: 999px;
  border: 1px solid currentColor; white-space: nowrap; color: var(--muted);
}
.pill.accent { color: var(--green-dark); }

.notice {
  border-left: 3px solid var(--warn); padding: .75rem 1rem; background: var(--card);
  border-radius: 0 1rem 1rem 0; margin: 1rem 0; box-shadow: var(--shadow);
}
.notice.error { border-color: var(--danger); }
.empty { text-align: center; color: var(--muted); padding: 2rem 1rem; }

footer.site {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: center;
  font-size: .86rem; color: var(--muted);
}
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--ink); }

/* Controls must never be squeezed out of a row at large text sizes — the exact bug that made
   the app's field-dimension form unusable on a parent's phone. */
@media (max-width: 26rem) {
  .topbar { gap: .6rem; }
  .page { padding-left: .9rem; padding-right: .9rem; }
}
