/* Brand direction from the spec: warm cream, forest green, mustard yellow, rounded shapes,
   subtle stitched details, readable text. Placeholder styling for the status page only. */
:root {
  --cream: #fbf6ea;
  --cream-deep: #f3ead3;
  --forest: #2f5d3a;
  --forest-ink: #1f3d27;
  --mustard: #d9a521;
  --ink: #2b2a26;
  --muted: #5d5a52;
  --alert: #9a3412;
  --alert-bg: #fdeee6;
  --radius: 18px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: ui-rounded, "Nunito", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

.page { max-width: 880px; margin: 0 auto; padding: 0 16px 48px; }

.banner {
  margin: 16px 0 32px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--forest);
  color: var(--cream);
  font-weight: 600;
  outline: 2px dashed rgba(251, 246, 234, 0.55);
  outline-offset: -7px;
}

.eyebrow { margin: 0; color: var(--forest); font-weight: 700; letter-spacing: 0.02em; }
h1 { margin: 4px 0 8px; font-size: 2.1rem; color: var(--forest-ink); }
.lede { margin: 0 0 8px; max-width: 62ch; }
.logo-note { color: var(--muted); font-size: 0.95rem; margin: 0 0 24px; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: #fffdf7;
  border-radius: var(--radius);
  padding: 18px 20px;
  border: 2px dashed var(--cream-deep);
  box-shadow: 0 0 0 4px #fffdf7, 0 0 0 5px var(--cream-deep);
}
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px 12px; }
.card h2 { margin: 0; font-size: 1.15rem; color: var(--forest-ink); }
.card p { margin: 8px 0 0; }
.purpose { color: var(--muted); }
.planned { font-size: 0.92rem; color: var(--muted); }

.pill { white-space: nowrap; font-size: 0.85rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--cream-deep); color: var(--ink); }
.state-test_key_unverified .pill { background: #fbefc8; color: #6b4f00; border: 1px solid var(--mustard); }
.state-live_key_blocked .pill { background: var(--alert-bg); color: var(--alert); border: 1px solid var(--alert); }

.foot { margin-top: 32px; color: var(--muted); font-size: 0.95rem; }

/* States added in B1 */
.state-set_untested .pill { background: #fbefc8; color: #6b4f00; border: 1px solid var(--mustard); }
.state-checking .pill { background: var(--cream-deep); color: var(--muted); }
.state-connected .pill { background: #e3efe2; color: var(--forest-ink); border: 1px solid var(--forest); }
.state-unreachable .pill, .state-unknown .pill { background: var(--alert-bg); color: var(--alert); border: 1px solid var(--alert); }

.foot p { margin: 4px 0; }
.noscript { max-width: 880px; margin: 16px auto; padding: 0 16px; }

.update-banner {
  position: sticky; top: 0; z-index: 10;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center;
  padding: 10px 16px; background: var(--mustard); color: var(--ink); font-weight: 700;
}
.update-banner button {
  font: inherit; font-weight: 700; padding: 6px 14px; border-radius: 999px;
  border: 2px solid var(--forest-ink); background: var(--cream); color: var(--forest-ink); cursor: pointer;
}
.update-banner button:focus-visible { outline: 3px solid var(--forest); outline-offset: 2px; }
