/* ------------------------------------------------------------------------
   api.thrivefsm.com: a plain list of ThriveFSM's API products, on top of
   shared/brand.css (ADR 0040 in ThriveFSM/thrivefsm-srs).

   A graphite band with the mark, one paper band holding a card per product,
   and a short graphite footer. It sells nothing and has no navigation: each
   product's own address is where anything happens.

   No scripts and no inline styles: the security policy in _headers refuses
   both.
   ------------------------------------------------------------------------ */

/* The footer sits at the foot of the screen even when the list is short. */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; width: 100%; box-sizing: border-box; }

.top { background: linear-gradient(var(--graphite), var(--graphite)); color: var(--on-dark); }
.seam { height: 3px; background: linear-gradient(var(--ember), var(--ember)); }

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 24px;
  padding-bottom: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand .wordmark { font-size: 23px; }
.masthead .kicker { color: var(--on-dark-muted); }

.list { padding-top: clamp(40px, 7vw, 80px); padding-bottom: clamp(48px, 8vw, 96px); }
.list h1 {
  font-size: clamp(32px, 4.6vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.lead { margin-top: 14px; color: var(--muted); max-width: var(--measure); }

.product {
  margin-top: clamp(32px, 5vw, 48px);
  background: linear-gradient(var(--card), var(--card));
  border: 1px solid var(--hair);
  padding: clamp(20px, 3vw, 32px);
  max-width: 720px;
}
.product .kicker { color: var(--ember-text); }
.product h2 {
  margin: 6px 0 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.2;
}
.product p { max-width: var(--measure); }
.links { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 500; }
.links a { text-decoration-color: var(--ember); }
.note { margin-top: 12px; color: var(--muted); font-size: 15px; }

.footer { background: linear-gradient(var(--graphite), var(--graphite)); color: var(--on-dark-faint); }
.legal {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 24px;
  padding-bottom: max(32px, env(safe-area-inset-bottom, 0px));
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
}
