/* open.gismo guided setup — design session, 2026-08-27.

   Base tokens follow the obot report family (executive overview 2026-07-21,
   goal atlas 2026-07-24, platform gap analysis 2026-07-25) and inherit the
   same three-state light/dark contract: the complete light palette on bare
   :root, the dark palette redefined under prefers-color-scheme guarded
   against an explicit light choice, and again under [data-theme="dark"] so a
   toggle wins in both directions.

   The walkthrough page overrides these with open.gismo's own espresso theme
   (see walkthrough.css) because a mock of a product should look like the
   product, not like the page it is printed on.

   Every state carries a glyph AND a word. No colour-only status anywhere.
   Nothing is fetched at view time: no CDN, no web fonts, no build step. */

:root {
  --ground: #f4f6f7;
  --surface: #ffffff;
  --surface-2: #eef2f3;
  --ink: #16232d;
  --muted: #536470;
  --faint: #7f929e;
  --border: #dde4e7;
  --hairline: #e8edef;
  --accent: #0e7c86;
  --accent-deep: #0a5b63;
  --accent-tint: #e2f1f2;

  --good: #0ca30c;
  --good-ink: #0a6b0a;
  --good-tint: #e6f5e6;
  --warn: #fab219;
  --warn-ink: #8a5d00;
  --warn-tint: #fdf3dd;
  --bad: #d03b3b;
  --bad-ink: #a32424;
  --bad-tint: #fbe9e9;

  --f-display: "SF Pro Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Iowan Old Style", "Palatino Linotype", "Charter", Georgia, Cambria, "Times New Roman", serif;
  --f-mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
  --shadow: 0 1px 2px rgba(20, 40, 55, .05), 0 8px 24px -12px rgba(20, 40, 55, .14);
  --shadow-soft: 0 1px 2px rgba(20, 40, 55, .04);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0d141a; --surface: #141e26; --surface-2: #1a2831;
    --ink: #e7eef2; --muted: #9aabb6; --faint: #6f828e;
    --border: #263640; --hairline: #1f2d36;
    --accent: #3cc3d0; --accent-deep: #7fd8e0; --accent-tint: #0f2e33;
    --good: #4cc44c; --good-ink: #6fd36f; --good-tint: #12291a;
    --warn: #e8bf62; --warn-ink: #e8bf62; --warn-tint: #2d2409;
    --bad: #f08b8b; --bad-ink: #f08b8b; --bad-tint: #2e1414;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6);
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, .25);
  }
}

:root[data-theme="dark"] {
  --ground: #0d141a; --surface: #141e26; --surface-2: #1a2831;
  --ink: #e7eef2; --muted: #9aabb6; --faint: #6f828e;
  --border: #263640; --hairline: #1f2d36;
  --accent: #3cc3d0; --accent-deep: #7fd8e0; --accent-tint: #0f2e33;
  --good: #4cc44c; --good-ink: #6fd36f; --good-tint: #12291a;
  --warn: #e8bf62; --warn-ink: #e8bf62; --warn-tint: #2d2409;
  --bad: #f08b8b; --bad-ink: #f08b8b; --bad-tint: #2e1414;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, .25);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 60rem; margin: 0 auto; padding: 0 1.25rem 6rem; }

/* ---------- masthead ---------- */
.mast {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 2.75rem 0 2rem;
  margin-bottom: 2.5rem;
}
.mast .wrap { padding-bottom: 0; }
.eyebrow {
  font-size: .74rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--accent-deep); font-weight: 700; margin: 0 0 .7rem;
}
.mast h1 {
  font-family: var(--f-serif); font-weight: 600;
  font-size: clamp(1.85rem, 5.2vw, 2.9rem); line-height: 1.12;
  margin: 0 0 .85rem; letter-spacing: -.012em;
}
.standfirst {
  font-size: clamp(1rem, 2.6vw, 1.12rem); color: var(--muted);
  margin: 0 0 1.4rem; max-width: 46rem;
}
.byline {
  font-size: .82rem; color: var(--faint); margin: 0;
  display: flex; flex-wrap: wrap; gap: .4rem 1.1rem;
}

/* ---------- nav ---------- */
.pagenav {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin: 0 0 1.5rem;
}
.pagenav a {
  display: inline-block; padding: .42rem .85rem;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  text-decoration: none; font-size: .84rem; font-weight: 600;
}
.pagenav a:hover { border-color: var(--accent); color: var(--accent-deep); }
.pagenav a[aria-current="page"] {
  background: var(--accent); border-color: var(--accent); color: #fff;
}

/* ---------- structure ---------- */
section { margin: 0 0 3.25rem; scroll-margin-top: 1rem; }
h2 {
  font-family: var(--f-serif); font-weight: 600;
  font-size: clamp(1.35rem, 3.4vw, 1.72rem); line-height: 1.2;
  margin: 0 0 .3rem; letter-spacing: -.008em;
}
h2 .num {
  font-family: var(--f-mono); font-size: .68em; color: var(--accent-deep);
  font-weight: 700; margin-right: .55rem;
}
h3 {
  font-size: 1.03rem; font-weight: 700; margin: 2rem 0 .5rem;
  letter-spacing: -.003em;
}
h4 { font-size: .93rem; font-weight: 700; margin: 1.4rem 0 .4rem; }
.deck { color: var(--muted); margin: 0 0 1.4rem; max-width: 46rem; }
p { margin: 0 0 1rem; max-width: 46rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.3rem; max-width: 46rem; }
li { margin: 0 0 .45rem; }
li > strong:first-child { color: var(--ink); }
a { color: var(--accent-deep); }
code {
  font-family: var(--f-mono); font-size: .87em;
  background: var(--surface-2); padding: .1em .34em;
  border-radius: 4px; border: 1px solid var(--hairline);
  overflow-wrap: anywhere;
}
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }

/* ---------- cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-soft); margin: 0 0 1.25rem;
}
.card > :last-child { margin-bottom: 0; }
.card h3 { margin-top: 0; }

.claim {
  border-left: 4px solid var(--accent);
  background: var(--accent-tint);
  border-radius: 0 12px 12px 0;
  padding: 1.1rem 1.35rem;
  margin: 0 0 1.5rem;
}
.claim p { max-width: none; }
.claim > :last-child { margin-bottom: 0; }

.callout {
  border-left: 4px solid var(--warn);
  background: var(--warn-tint);
  border-radius: 0 10px 10px 0;
  padding: .95rem 1.2rem; margin: 1.25rem 0;
}
.callout.bad { border-left-color: var(--bad); background: var(--bad-tint); }
.callout.good { border-left-color: var(--good); background: var(--good-tint); }
.callout > :last-child { margin-bottom: 0; }
.callout p { max-width: none; }
.callout .lbl {
  display: block; font-size: .72rem; letter-spacing: .11em;
  text-transform: uppercase; font-weight: 700; margin-bottom: .35rem;
  color: var(--warn-ink);
}
.callout.bad .lbl { color: var(--bad-ink); }
.callout.good .lbl { color: var(--good-ink); }

/* ---------- commitments ---------- */
.commits { display: grid; gap: .75rem; margin: 1.5rem 0; }
.commit {
  display: grid; grid-template-columns: 3.1rem 1fr; gap: .3rem 1rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: .95rem 1.1rem;
}
.commit .k {
  font-family: var(--f-mono); font-weight: 700; font-size: .82rem;
  color: var(--accent-deep); padding-top: .12rem;
}
.commit .t { font-weight: 700; }
.commit .d { grid-column: 2; color: var(--muted); font-size: .92rem; }
@media (max-width: 30rem) {
  .commit { grid-template-columns: 1fr; }
  .commit .d { grid-column: 1; }
}

/* ---------- tables ---------- */
.tw { overflow-x: auto; margin: 0 0 1.25rem; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .89rem; min-width: 34rem; }
th, td { text-align: left; padding: .58rem .8rem; border-bottom: 1px solid var(--hairline); vertical-align: top; }
thead th {
  background: var(--surface-2); font-size: .74rem; letter-spacing: .05em;
  text-transform: uppercase; color: var(--muted); font-weight: 700;
  position: sticky; top: 0; border-bottom: 1px solid var(--border);
}
tbody tr:last-child td { border-bottom: 0; }
td.mono, th.mono, .mono { font-family: var(--f-mono); font-size: .84rem; }
td.num { text-align: right; font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

.tag {
  display: inline-block; font-size: .7rem; font-weight: 700;
  padding: .12rem .48rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface-2);
  color: var(--muted); white-space: nowrap;
}
.tag.ok  { background: var(--good-tint); color: var(--good-ink); border-color: transparent; }
.tag.no  { background: var(--bad-tint);  color: var(--bad-ink);  border-color: transparent; }
.tag.hm  { background: var(--warn-tint); color: var(--warn-ink); border-color: transparent; }
.tag.ask { background: var(--accent-tint); color: var(--accent-deep); border-color: transparent; }

/* ---------- figures ---------- */
figure { margin: 1.5rem 0; }
figcaption { font-size: .82rem; color: var(--muted); margin-top: .6rem; max-width: 46rem; }
pre {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; padding: .9rem 1rem; overflow-x: auto;
  font-family: var(--f-mono); font-size: .82rem; line-height: 1.55; margin: 0 0 1.1rem;
}
pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.term {
  background: #10191f; color: #d7e3ea; border-color: #223039;
}
.term .c { color: #7d97a6; }
.term .g { color: #7fd39a; }
.term .r { color: #f2969a; }
.term .y { color: #efc463; }

/* ---------- steps ---------- */
.steps { counter-reset: st; list-style: none; padding: 0; margin: 1.5rem 0; max-width: none; }
.steps > li {
  counter-increment: st; position: relative;
  padding: 0 0 1.4rem 3.1rem; margin: 0;
  border-left: 2px solid var(--border); margin-left: 1rem;
}
.steps > li::before {
  content: counter(st); position: absolute; left: -1.05rem; top: 0;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: .84rem; font-weight: 700;
}
.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps h4 { margin-top: .1rem; }
.steps p, .steps ul { max-width: 42rem; }

/* ---------- ledger sample ---------- */
.ledger { display: grid; gap: .5rem; margin: 1.25rem 0; }
.lrow {
  display: grid; grid-template-columns: 1.6rem 1fr auto; gap: .8rem;
  align-items: baseline; padding: .6rem .85rem;
  border: 1px solid var(--border); border-radius: 8px; background: var(--surface);
  font-size: .9rem;
}
.lrow .gl { font-size: .95rem; }
.lrow .pr { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); text-align: right; }

/* ---------- footer ---------- */
footer.rf {
  border-top: 1px solid var(--border); margin-top: 3rem;
  padding-top: 1.5rem; font-size: .84rem; color: var(--muted);
}
footer.rf a { color: var(--accent-deep); }
.src { font-size: .82rem; }
.src li { margin-bottom: .3rem; }

@media (max-width: 34rem) {
  body { font-size: 15px; }
  .wrap { padding: 0 .95rem 4rem; }
  .steps > li { padding-left: 2.4rem; }
  .steps > li::before { width: 1.8rem; height: 1.8rem; left: -.9rem; font-size: .76rem; }
  .lrow { grid-template-columns: 1.4rem 1fr; }
  .lrow .pr { grid-column: 2; text-align: left; }
}
