/* World Fire apps — one small design system shared by the site and every prototype. Light, calm, card-based. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2"); }
:root {
  --bg: #f7f7f5; --surface: #ffffff; --surface-2: #fbfbfa; --line: #e8e8e4; --line-2: #f0f0ec;
  --ink: #1b1b18; --ink-2: #4a4a44; --muted: #85857c; --faint: #b4b4ab;
  --accent: #e2531f; --accent-ink: #b8400f; --accent-soft: #fdf0ea;
  --blue: #2d6688; --green: #2c8466; --amber: #8a6212; --violet: #6e56cf; --red: #c2443a; --teal: #2a93a8; --pink: #b8448f;
  --real: #1f7a55; --real-bg: #e9f6ef; --syn: #8a5a00; --syn-bg: #fff4dc; --unc: #6e56cf; --unc-bg: #f1eefc;
  --r-sm: 6px; --r: 10px; --r-lg: 14px;
  --shadow-1: 0 1px 2px rgba(20,20,10,.04), 0 0 0 1px var(--line);
  --shadow-2: 0 1px 2px rgba(20,20,10,.05), 0 8px 24px -8px rgba(20,20,10,.10), 0 0 0 1px var(--line);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.015em; color: var(--ink); }
h1 { font-size: 28px; font-weight: 650; letter-spacing: -0.025em; }
h2 { font-size: 18px; font-weight: 620; }
h3 { font-size: 14px; font-weight: 600; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: 12px; }
.muted { color: var(--muted); } .ink2 { color: var(--ink-2); }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 20; height: 56px; display: flex; align-items: center; gap: 14px; padding: 0 28px;
  background: rgba(247,247,245,.85); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 640; letter-spacing: -0.01em; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center;
  background: linear-gradient(135deg, #ff7a3d 0%, #e2531f 55%, #b8400f 100%); box-shadow: inset 0 -1px 0 rgba(0,0,0,.15); }
.brand-mark svg { width: 15px; height: 15px; }
.brand small { font-weight: 500; color: var(--muted); }
.crumbs { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: var(--faint); }
.spacer { flex: 1; }

/* Layout */
.page { max-width: 1180px; margin: 0 auto; padding: 36px 28px 80px; }
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.hero p.lede { margin-top: 8px; color: var(--ink-2); font-size: 15px; max-width: 640px; }
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Cards */
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: 20px; }
.card.pad-0 { padding: 0; overflow: hidden; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.card-b { padding: 16px 18px; }
a.card, .card.link { transition: box-shadow .16s ease, transform .16s ease; display: block; }
a.card:hover, .card.link:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }
.app-card { display: flex; flex-direction: column; gap: 14px; min-height: 230px; padding: 0; overflow: hidden; }
.app-card .cover { height: 92px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line-2); }
.app-card .cover svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.app-card .body { padding: 0 20px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.app-card .title { display: flex; align-items: center; gap: 10px; }
.app-card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.app-card.ghost { box-shadow: none; border: 1.5px dashed var(--line); background: transparent; align-items: center; justify-content: center; text-align: center; color: var(--muted); padding: 24px; }
.icon-tile { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-weight: 650; font-size: 13px; flex: none; }

/* Chips & badges */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 550;
  background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.real { background: var(--real-bg); color: var(--real); box-shadow: inset 0 0 0 1px #cfe9db; }
.chip.syn { background: var(--syn-bg); color: var(--syn); box-shadow: inset 0 0 0 1px #f3dfaa; }
.chip.unc { background: var(--unc-bg); color: var(--unc); box-shadow: inset 0 0 0 1px #ddd5f7; }
.chip.live { color: var(--green); } .chip.draft { color: var(--muted); } .chip.warn { color: var(--red); background: #fdf0ef; box-shadow: inset 0 0 0 1px #f5d3cf; }
.chip.accent { background: var(--accent-soft); color: var(--accent-ink); box-shadow: inset 0 0 0 1px #f8d6c7; }
.tag-mono { font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 8px; border: 0; cursor: pointer;
  font: 550 13px/1 var(--font); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); transition: box-shadow .12s, background .12s; }
.btn:hover { box-shadow: var(--shadow-2); }
.btn.primary { background: var(--ink); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.btn.primary:hover { background: #2e2e29; }
.btn.accent { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(180,60,10,.3); }
.btn.accent:hover { background: var(--accent-ink); }
.btn.ghost { background: transparent; box-shadow: none; color: var(--ink-2); }
.btn.ghost:hover { background: rgba(0,0,0,.04); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* Tables */
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
  padding: 9px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); position: sticky; top: 0; }
table.t td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.click { cursor: pointer; } table.t tr.click:hover td { background: #fafaf7; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Schema table cards */
.schema-card { padding: 0; overflow: hidden; }
.schema-card .sh { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.schema-card .sh b { font-family: var(--mono); font-size: 13px; font-weight: 600; }
.schema-card ul { list-style: none; margin: 0; padding: 6px 0; }
.schema-card li { display: flex; align-items: center; gap: 8px; padding: 4px 16px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.schema-card li .k { font-size: 10px; font-family: var(--font); font-weight: 650; padding: 1px 5px; border-radius: 4px; }
.k.pk { background: #fff1d6; color: #8a6212; } .k.fk { background: #e6f0f6; color: #2d6688; }
.schema-card li .ty { margin-left: auto; color: var(--faint); }

/* Stats */
.stat { padding: 18px 20px; }
.stat .v { font-size: 26px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat .l { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.bar { height: 6px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: var(--ink); }

/* Notices */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-1); font-size: 13px; color: var(--ink-2); }
.notice.syn { background: var(--syn-bg); box-shadow: inset 0 0 0 1px #f3dfaa; color: #5e4300; }
.notice.unc { background: var(--unc-bg); box-shadow: inset 0 0 0 1px #ddd5f7; color: #4b3a99; }
.notice.dev { background: #eef4ff; box-shadow: inset 0 0 0 1px #d6e2fb; color: #2a4a8a; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 560; color: var(--ink-2); }
.input, select.input, textarea.input { height: 36px; padding: 0 12px; border-radius: 8px; border: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  font: 14px var(--font); color: var(--ink); outline: none; transition: box-shadow .12s; }
textarea.input { height: auto; padding: 10px 12px; min-height: 84px; resize: vertical; }
.input:focus { box-shadow: inset 0 0 0 1px var(--ink-2), 0 0 0 3px rgba(226,83,31,.12); }
.hint { font-size: 12px; color: var(--muted); }
