/* Passalong — the only stylesheet. The view's CSP is `style-src 'self'`, so nothing here can be
   inlined into a page and nothing can be pulled from a CDN. Fonts are self-hosted for the same
   reason: `font-src 'self'` allows this origin and nothing else. */

/* ---- fonts ---------------------------------------------------------------------------------
   Two variable faces, latin subset, ~80KB together. Instrument Sans carries the interface;
   Source Serif carries guide prose, where the reading is long and a serif earns its place.
   `swap` so a slow font never blanks the text — the fallback metrics below are close enough
   that the swap does not jump the layout. */
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-var.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-var.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

/* ---- tokens --------------------------------------------------------------------------------
   Everything below composes from these. Spacing is a 4px scale, so cards, rows and buttons
   share one rhythm instead of the sixteen ad-hoc values this file used to carry. */
:root {
  color-scheme: light dark;

  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Iowan Old Style", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, "Cascadia Mono", monospace;

  /* Type. The display step is fluid so the hero fills a phone and a laptop equally. */
  --t-display: clamp(2.25rem, 1.2rem + 4.6vw, 3.5rem);
  --t-h1: clamp(1.75rem, 1.3rem + 1.8vw, 2.25rem);
  --t-h2: 1.3125rem;
  --t-h3: 1.0625rem;
  --t-body: 1.0625rem;
  --t-sm: 0.875rem;
  --t-xs: 0.8125rem;

  /* Space — 4px base. */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;

  --r-1: 0.375rem;
  --r-2: 0.625rem;
  --r-3: 1rem;
  --r-pill: 999px;

  --motion: 0.15s;

  /* Colour. `--surface` is the recessed fill (code, inputs), `--surface-raised` the lifted one
     (cards, panels). Borders alone used to carry every boundary; now fill does most of it. */
  --bg: #fbfaf7;
  --surface: #f4f2ec;
  --surface-raised: #ffffff;
  --fg: #1c1b19;
  --muted: #6b6862;
  --line: #e4e0d8;
  --line-strong: #cfcabf;
  --accent: #b5451b;
  --accent-hover: #97390f;
  --accent-fg: #fffaf7;
  --accent-soft: #f7e7de;
  --danger: #ab2f21;
  --code: #f4f2ec;
  --shadow-1: 0 1px 2px rgb(28 27 25 / 0.04), 0 1px 3px rgb(28 27 25 / 0.06);
  --shadow-2: 0 2px 4px rgb(28 27 25 / 0.04), 0 8px 24px rgb(28 27 25 / 0.07);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14130f;
    --surface: #1e1c18;
    --surface-raised: #1c1a16;
    --fg: #ece9e1;
    --muted: #9c988f;
    --line: #2e2b25;
    --line-strong: #423e36;
    --accent: #f08a5b;
    --accent-hover: #f7a077;
    --accent-fg: #1a1410;
    --accent-soft: #33241c;
    --danger: #e0705e;
    --code: #1e1c18;
    --shadow-1: 0 1px 2px rgb(0 0 0 / 0.3);
    --shadow-2: 0 2px 4px rgb(0 0 0 / 0.25), 0 8px 24px rgb(0 0 0 / 0.35);
  }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: var(--t-body) / 1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
}

main {
  max-width: 46rem;
  margin: 0 auto;
  padding: var(--s-7) var(--s-5) var(--s-9);
}
/* The landing runs wider than a reading column: it holds a hero and side-by-side panels. */
main.wide {
  max-width: 62rem;
}

/* ---- type ---------------------------------------------------------------------------------- */
h1,
h2,
h3 {
  /* Tight tracking is what stops large type reading as a blown-up paragraph. */
  letter-spacing: -0.021em;
  text-wrap: balance;
}
h1 {
  font-size: var(--t-h1);
  line-height: 1.15;
  margin: var(--s-2) 0 var(--s-3);
  font-weight: 600;
}
h2 {
  font-size: var(--t-h2);
  line-height: 1.3;
  margin: var(--s-6) 0 var(--s-3);
  font-weight: 600;
}
h3 {
  font-size: var(--t-h3);
  line-height: 1.4;
  margin: var(--s-5) 0 var(--s-2);
  font-weight: 600;
}
p {
  margin: 0 0 var(--s-4);
}
strong,
b {
  font-weight: 600;
}
a {
  color: var(--accent);
  text-underline-offset: 0.15em;
  text-decoration-thickness: from-font;
}
a:hover {
  color: var(--accent-hover);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font: 600 var(--t-xs) / 1 var(--font-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}
.brand img {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: var(--r-1);
}

header {
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--s-5);
  margin-bottom: var(--s-6);
}
/* The hero draws its own separation, so it drops the rule. */
header.hero {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: var(--s-7);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-3);
  align-items: center;
  font: var(--t-sm) / 1.5 var(--font-sans);
  color: var(--muted);
}
.meta b {
  color: var(--fg);
  font-weight: 500;
}
.tag {
  background: var(--surface);
  border-radius: var(--r-1);
  padding: 0.1em 0.45em;
  font: 500 var(--t-xs) / 1.6 var(--font-mono);
}
.status {
  color: var(--accent);
  font-weight: 500;
}
.muted {
  color: var(--muted);
}
/* Field hints inside a stacked form: smaller, and not carrying the label weight. */
form.join .muted {
  font-size: var(--t-xs);
  font-weight: 400;
}

/* ---- code ----------------------------------------------------------------------------------- */
pre,
code,
kbd,
samp {
  font-family: var(--font-mono);
  font-size: 0.9em;
}
pre {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: var(--s-4);
  border-radius: var(--r-2);
  overflow-x: auto;
  line-height: 1.55;
  font-size: var(--t-sm);
}
pre code {
  font-size: inherit;
}
:not(pre) > code {
  background: var(--surface);
  padding: 0.12em 0.36em;
  border-radius: var(--r-1);
}

ol,
ul {
  padding-left: 1.35em;
  margin: 0 0 var(--s-4);
}
li {
  margin: var(--s-1) 0;
}
li::marker {
  color: var(--muted);
}

table {
  border-collapse: collapse;
  font-size: var(--t-sm);
  width: 100%;
}
td,
th {
  border: 1px solid var(--line);
  padding: var(--s-2) var(--s-3);
  text-align: left;
}
th {
  background: var(--surface);
  font-weight: 600;
}
blockquote {
  margin: var(--s-4) 0;
  padding-left: var(--s-4);
  border-left: 2px solid var(--line-strong);
  color: var(--muted);
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--s-6) 0;
}

footer {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  font-size: var(--t-sm);
  color: var(--muted);
}
footer a {
  color: var(--muted);
}
footer a:hover {
  color: var(--accent);
}

/* ---- buttons --------------------------------------------------------------------------------
   `.btn` is a button and `.chip` is a filter toggle. They used to be one rule, which is why a
   tab bar, a destructive action and a filter all looked identical. Three button weights now:
   filled (`.primary`) for the one action a view is about, tonal (`.tonal`, `.nudge`) for the
   next tier, ghost (bare `.btn`) for everything else. */
.btn,
button.primary,
.btn.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font: 500 var(--t-sm) / 1 var(--font-sans);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-1);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--motion) ease,
    border-color var(--motion) ease,
    color var(--motion) ease,
    box-shadow var(--motion) ease;
}
/* Ghost: the default. */
.btn {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--fg);
}
.btn:hover {
  background: var(--surface);
  border-color: var(--muted);
}
/* Filled: one per view. */
button.primary,
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
  font-weight: 600;
  box-shadow: var(--shadow-1);
}
button.primary:hover,
.btn.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--accent-fg);
}
button.primary[disabled] {
  opacity: 0.55;
  cursor: default;
  box-shadow: none;
}
/* Tonal: reads as accent without competing with the filled one. */
.btn.tonal,
.btn.nudge {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent);
  font-weight: 600;
}
.btn.tonal:hover,
.btn.nudge:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.btn.danger {
  color: var(--muted);
}
.btn.danger:hover {
  color: var(--danger);
  border-color: var(--danger);
  background: transparent;
}
.btn.lg {
  font-size: var(--t-body);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-2);
}

/* Filter toggles. Pill-shaped so they never read as actions. */
.chips {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}
.chip {
  font: 500 var(--t-xs) / 1 var(--font-sans);
  padding: 0.5rem var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color var(--motion) ease,
    border-color var(--motion) ease,
    color var(--motion) ease;
}
.chip:hover {
  color: var(--fg);
  border-color: var(--line-strong);
  background: var(--surface);
}
.chip.on {
  color: var(--accent-fg);
  background: var(--accent);
  border-color: var(--accent);
}

/* ---- form fields ----------------------------------------------------------------------------
   Inputs are set in the sans, not the mono they used to use — mono fields are what made the hub
   read like an admin panel. The token and invite fields keep mono, because their content is. */
input,
textarea,
select {
  font: var(--t-body) / 1.4 var(--font-sans);
  padding: var(--s-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-1);
  background: var(--surface-raised);
  color: var(--fg);
  transition:
    border-color var(--motion) ease,
    box-shadow var(--motion) ease;
}
input::placeholder {
  color: var(--muted);
}
input:hover {
  border-color: var(--muted);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
input:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}
input[name="token"],
.invite-paste input,
.hub input[type="search"] {
  font-family: var(--font-mono);
  font-size: var(--t-sm);
}

/* ---- panels ---------------------------------------------------------------------------------
   One raised surface, shared by every boxed region. These were five near-identical border rules. */
.card,
.team,
.activity,
.tokens,
.identity,
.panel {
  background: var(--surface-raised);
  border: 1px solid var(--edge, var(--line));
  border-radius: var(--r-3);
  box-shadow: var(--shadow-1);
  padding: var(--s-2) var(--s-5) var(--s-5);
  margin-bottom: var(--s-5);
}
.card {
  padding-bottom: var(--s-4);
  margin-bottom: 0;
}
.card .head,
.team .head,
.activity .head,
.tokens .head,
.identity .head,
.panel .head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.card h2,
.team h2,
.activity h2,
.tokens h2,
.identity h2,
.panel h2 {
  margin: var(--s-4) 0 var(--s-1);
  font-size: var(--t-h3);
  color: var(--head, var(--fg));
}
.card .head .muted,
.tokens .head .muted {
  font-size: var(--t-sm);
}

/* The urgent variants only swap two colours, so they ride on custom properties. A
   `.card.waiting h2` rule would sit above every later `.x h2` and make each one a descending
   selector — the trap this file is written to avoid. */
.card,
.identity {
  --edge: var(--line);
  --head: var(--fg);
}
.card.waiting,
.card.failing,
.identity.needed {
  --edge: var(--accent);
  --head: var(--accent);
}

/* ---- hub ------------------------------------------------------------------------------------ */
.hub .toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
  margin-bottom: var(--s-5);
}
.hub input[type="search"] {
  flex: 1 1 16rem;
}
.chips.scopes {
  margin-bottom: var(--s-4);
}

.guides {
  list-style: none;
  padding: 0;
  margin: 0;
}
.guide {
  padding: var(--s-4) 0;
  border-top: 1px solid var(--line);
  margin: 0;
}
.guide:last-child {
  border-bottom: 1px solid var(--line);
}
.guide .head {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  align-items: baseline;
}
.guide .title {
  font-size: var(--t-h3);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--fg);
  text-decoration: none;
}
.guide .title:hover {
  color: var(--accent);
}
.guide .meta {
  margin-top: var(--s-2);
}
.guide .actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-3);
}
.guide.consumed .title,
.status.consumed {
  color: var(--muted);
}
.status.promoted::before {
  content: "\2605\00a0";
}

/* ---- the sign-in screen ----------------------------------------------------------------------
   `/hub` serves this and the hub itself, so this state carries its own brand and heading. The
   whole column is centred — header included — because a left-aligned header above a centred card
   is two alignment systems arguing on one screen. */
.auth {
  max-width: 25rem;
  margin: var(--s-6) auto 0;
  text-align: center;
}
.auth h1 {
  font-size: var(--t-h1);
  margin: var(--s-5) 0 var(--s-3);
}

.authcard {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  box-shadow: var(--shadow-1);
  padding: var(--s-5);
  text-align: left;
}

/* The secondary paths are one line under the fold of the card, not a second section competing
   with the primary one. */
.auth-alt {
  margin: var(--s-4) 0 0;
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  font-size: var(--t-sm);
  color: var(--muted);
  text-align: center;
}
.linkish {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.linkish:hover {
  color: var(--accent-hover);
}
/* Invite links and API tokens are how a minority arrive, so they fold away rather than sitting
   at the same weight as the password form. */
details.more {
  margin-top: var(--s-5);
  text-align: left;
}
details.more summary {
  cursor: pointer;
  color: var(--muted);
  font-size: var(--t-sm);
  text-align: center;
}
details.more summary:hover {
  color: var(--fg);
}

.empty {
  color: var(--muted);
  padding: var(--s-7) 0;
  text-align: center;
}
.empty pre {
  display: inline-block;
  text-align: left;
  font-size: var(--t-sm);
}
.error {
  color: var(--danger);
  font-size: var(--t-sm);
  margin: 0;
}

/* ---- board --------------------------------------------------------------------------------- */
.board {
  display: grid;
  gap: var(--s-4);
  align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  margin-bottom: var(--s-5);
}
.card-rows {
  list-style: none;
  padding: 0;
  margin: var(--s-3) 0 0;
}
.card-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-1) var(--s-3);
  align-items: baseline;
  padding: var(--s-3) 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.card-row:first-child {
  border-top: 0;
  padding-top: var(--s-1);
}
.card-row .card-title {
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
}
.card-row .card-title:hover {
  color: var(--accent);
}
.card-row .meta {
  grid-column: 1;
}
.card-row .btn {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}
.card-row .warn,
.card-row.stale .card-title {
  color: var(--accent);
}
h2.all {
  margin: var(--s-6) 0 var(--s-3);
}
.verdict b,
.pulled b {
  color: var(--accent);
}

/* ---- teams, activity, tokens ---------------------------------------------------------------- */
.members {
  list-style: none;
  padding: 0;
  margin: var(--s-2) 0 var(--s-3);
  font-size: var(--t-sm);
  line-height: 1.8;
}
.invite {
  display: inline-flex;
  gap: var(--s-2);
  align-items: center;
  flex-wrap: wrap;
  font-size: var(--t-sm);
}
.invite code,
.newtoken code {
  user-select: all;
}
.identity form,
form.join {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: center;
}
form.join {
  display: grid;
  gap: var(--s-4);
  max-width: 26rem;
  margin: var(--s-5) 0;
}
form.join label {
  display: grid;
  gap: var(--s-2);
  font-size: var(--t-sm);
  font-weight: 500;
}

.identity p {
  margin: 0 0 var(--s-3);
}

.notes {
  list-style: none;
  padding: 0;
  margin: var(--s-2) 0 0;
  font-size: var(--t-sm);
  line-height: 1.9;
}
.note {
  color: var(--muted);
  border: 0;
  padding: 0;
}
.note a {
  color: inherit;
}
.note.unread {
  color: var(--fg);
}
.note.unread::marker {
  content: "";
}
.note .when {
  display: inline-block;
  min-width: 6.5rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.note.unread .when::before {
  content: "\2022\00a0";
  color: var(--accent);
}

.invite-paste {
  display: flex;
  gap: var(--s-2);
  margin: var(--s-2) 0 var(--s-4);
  max-width: 30rem;
}
.grow {
  flex: 1;
  min-width: 0;
}
.newtoken {
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  border-radius: var(--r-2);
  padding: var(--s-4);
  margin: var(--s-3) 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: center;
}
.newtoken p {
  flex-basis: 100%;
  margin: 0;
  font-size: var(--t-sm);
}
.newtoken code {
  word-break: break-all;
}

/* ---- guide views ---------------------------------------------------------------------------- */
.views {
  display: inline-flex;
  gap: var(--s-1);
  margin: var(--s-4) 0 var(--s-5);
  padding: var(--s-1);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
}
.views a {
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-1);
  color: var(--muted);
  text-decoration: none;
  font: 500 var(--t-sm) / 1.4 var(--font-sans);
  transition:
    background-color var(--motion) ease,
    color var(--motion) ease;
}
.views a:hover {
  color: var(--fg);
}
.views a.on {
  background: var(--surface-raised);
  color: var(--fg);
  box-shadow: var(--shadow-1);
}
.note {
  color: var(--muted);
}

details.rest {
  border-top: 1px solid var(--line);
  margin-top: var(--s-6);
  padding-top: var(--s-4);
}
details.rest summary {
  cursor: pointer;
  color: var(--muted);
  font: 500 var(--t-sm) / 1.6 var(--font-sans);
  font-family: var(--font-sans);
}
details.rest summary:hover {
  color: var(--fg);
}

.pull {
  margin-top: var(--s-7);
  padding: var(--s-4) var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  font: var(--t-sm) / 1.7 var(--font-sans);
}
.pull code {
  background: none;
  padding: 0;
  user-select: all;
  font-size: var(--t-sm);
}

/* ---- landing --------------------------------------------------------------------------------
   The one page a stranger sees. It leads with what the product produces, rather than describing
   it: `.showcase` is a real guide rendered at reduced scale, built from markup because the page's
   CSP allows no images from anywhere but this origin and no script at all. */
.hero {
  padding: var(--s-6) 0 0;
  text-align: center;
}
.hero h1 {
  font-size: var(--t-display);
  line-height: 1.05;
  letter-spacing: -0.032em;
  font-weight: 600;
  margin: var(--s-5) auto var(--s-4);
  max-width: 16em;
}
.lede {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 34rem;
  margin: 0 auto var(--s-6);
  text-wrap: pretty;
}
.cta {
  display: flex;
  gap: var(--s-3);
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-cmd {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: var(--s-3) var(--s-4);
  font: var(--t-sm) / 1 var(--font-mono);
  color: var(--fg);
}
.cta-cmd b {
  color: var(--muted);
  font-weight: 400;
  user-select: none;
}
.cta-cmd span {
  user-select: all;
}

.showcase {
  margin: var(--s-7) 0 var(--s-8);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.showcase .bar {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-4);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font: var(--t-xs) / 1 var(--font-mono);
  color: var(--muted);
}
.showcase .dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--line-strong);
}
.showcase .url {
  margin-left: var(--s-2);
  /* The faux address bar is decoration; on a narrow screen it should clip like a real one
     rather than wrap to a second line and push the frame taller. */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.showcase .body {
  padding: var(--s-5) var(--s-5) var(--s-6);
}
.showcase h3 {
  margin: var(--s-2) 0 var(--s-3);
  font-size: 1.375rem;
  letter-spacing: -0.022em;
}
.showcase .meta {
  margin-bottom: var(--s-4);
  font-size: var(--t-xs);
}
.showcase h4 {
  font: 600 var(--t-sm) / 1.4 var(--font-sans);
  margin: var(--s-5) 0 var(--s-2);
  color: var(--fg);
}
.showcase .sc-prose {
  font-family: var(--font-serif);
  font-size: var(--t-sm);
  line-height: 1.6;
  color: var(--fg);
}
.showcase .sc-prose ol {
  margin: 0;
}
.showcase .folded {
  margin-top: var(--s-5);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  font: var(--t-sm) / 1.5 var(--font-sans);
  color: var(--muted);
}
.showcase .folded::before {
  content: "\25b8\00a0";
}

.steps {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin: var(--s-5) 0 var(--s-8);
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  margin: 0;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: var(--s-3);
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font: 600 var(--t-sm) / 1 var(--font-sans);
}
.steps b {
  display: block;
  margin-bottom: var(--s-1);
}
.steps p {
  margin: 0;
  color: var(--muted);
  font-size: var(--t-sm);
  line-height: 1.6;
}

.two {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  margin-bottom: var(--s-8);
  align-items: start;
}
.two .panel {
  margin-bottom: 0;
  height: 100%;
}

.two .panel p:last-child,
.two .panel ul:last-child {
  margin-bottom: 0;
}
.two ul {
  padding-left: 1.15em;
}
.two li {
  margin-bottom: var(--s-2);
}

.closer {
  text-align: center;
  padding: var(--s-7) var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  margin-bottom: var(--s-6);
}
.closer h2 {
  margin-top: 0;
}
.closer p {
  max-width: 34rem;
  margin-inline: auto;
  color: var(--muted);
}
.eyebrow {
  font: 600 var(--t-xs) / 1 var(--font-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-3);
}

/* ---- leaf overrides --------------------------------------------------------------------------
   Everything below refines a component defined earlier, so it is more specific than the rule it
   adjusts. Keeping these last is what stops the file from growing descending-specificity pairs,
   where a later, plainer selector silently loses to an earlier, sharper one. */

/* Guide bodies, and only guide bodies, are set in the serif: they are long-form prose someone
   reads end to end. Interface chrome stays in the sans. */
article.prose {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.65;
}

article.prose h1,
article.prose h2,
article.prose h3 {
  font-family: var(--font-sans);
  letter-spacing: -0.018em;
}

article.prose code,
article.prose pre {
  font-family: var(--font-mono);
}

article.prose .note,
.note.lead {
  border-left: 2px solid var(--accent);
  padding-left: var(--s-4);
  color: var(--muted);
}

.verdict.bad b {
  color: var(--danger);
}

.two .panel > h2 {
  margin-top: var(--s-4);
}

.authcard form.join {
  margin: 0;
  max-width: none;
}
.authcard button.primary {
  margin-top: var(--s-1);
  width: 100%;
}
.auth .lede {
  font-size: var(--t-body);
  margin: 0 auto var(--s-6);
  max-width: none;
}
details.more p {
  font-size: var(--t-sm);
  margin-top: var(--s-4);
}
details.more .invite-paste {
  max-width: none;
}

@media (max-width: 34rem) {
  main {
    padding-left: var(--s-4);
    padding-right: var(--s-4);
  }
  .hero {
    text-align: left;
  }
  .hero h1,
  .lede {
    margin-inline: 0;
  }
  .cta {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --motion: 0.01ms;
  }
}
