/* app/styles/base.css — reset, type, safe-area insets, the state and band classes (E §2; the wbl-ui skill:
   behaviour here, decoration in theme.css). */
:root { --sat: env(safe-area-inset-top, 0px); --sar: env(safe-area-inset-right, 0px); --sab: env(safe-area-inset-bottom, 0px); --sal: env(safe-area-inset-left, 0px); }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body { font: 16px/1.45 var(--v-font-ui, -apple-system, system-ui, "Helvetica Neue", Arial, sans-serif); color: var(--v-ink, #262119); background: var(--v-page, #fbf7ef); padding: calc(var(--sat) + 16px) calc(var(--sar) + 16px) calc(var(--sab) + 16px) calc(var(--sal) + 16px); }
.root { max-width: 920px; margin: 0 auto; }
h1, h2 { margin: 0 0 8px; }
.display { font-family: var(--v-font-display, inherit); text-transform: uppercase; letter-spacing: var(--v-track-caps, 0.055em); font-weight: 600; }
h1.display { font-size: 1.6rem; } h2.display { font-size: 1.1rem; margin-top: 28px; }
.muted { color: var(--v-ink-soft, #7a7264); margin: 0 0 16px; }
.card { background: var(--v-surface, #fffdf8); border: 1px solid var(--v-line, #e7ddc9); border-radius: var(--v-r-md, 16px); padding: 16px; box-shadow: var(--v-shadow-sm, none); }
.rows { list-style: none; margin: 0; padding: 0; } .rows li { padding: 6px 0; border-top: 1px solid var(--v-line-soft, #f0e8d8); font-variant-numeric: tabular-nums; } .rows li:first-child { border-top: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.btn { font: inherit; border: 1px solid var(--v-line, #e7ddc9); background: var(--v-accent, #0e9c93); color: #fff; border-radius: var(--v-r-sm, 12px); padding: 8px 14px; cursor: pointer; min-height: 40px; }
.btn-quiet { background: transparent; color: var(--v-ink, #262119); }
/* the states (ui/states.js) — tile and inline sizes */
.state { padding: 20px; border-radius: var(--v-r-md, 16px); background: var(--v-surface-2, #f4eee1); }
.state-tile { min-height: 120px; } .state-inline { padding: 4px 0; background: transparent; }
.state-copy { margin: 0 0 4px; font-weight: 600; } .state-inline .state-copy { font-weight: 500; font-size: 0.95rem; }
.state-detail { margin: 0; color: var(--v-ink-soft, #7a7264); font-size: 0.9rem; }
.state-actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.state-loading { animation: state-appear 0.01s linear 0.8s both; }   /* no spinner under ~800 ms (E §9) */
@keyframes state-appear { from { opacity: 0; } to { opacity: 1; } }
.state-denied { border-left: 4px solid var(--v-pine-500, #1d6a56); }
.state-failed { border-left: 4px solid var(--v-coral, #e0574a); }
/* the bands (ui/banner.js) */
.band { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: var(--v-r-sm, 12px); margin-bottom: 10px; font-size: 0.95rem; }
.band-offline { background: var(--v-sun-100, #fde6cd); color: var(--v-bark-900, #262119); }   /* sunset = "this is live/dated", never lake */
.band-refusal { background: #fbe4e1; color: var(--v-bark-900, #262119); }
.band-copy { flex: 1; } .band-detail { color: var(--v-ink-soft, #7a7264); } .band-tile { font-size: 0.9rem; } .band-inline { padding: 2px 0; background: transparent; }
.band-close { margin-left: auto; }
/* forms (pages/sign-in) */
.card-narrow { max-width: 420px; }
.form { display: grid; gap: 12px; margin-top: 8px; }
.form label { display: grid; gap: 4px; font-size: 0.9rem; color: var(--v-ink-soft, #7a7264); }
.form label.check { grid-template-columns: auto 1fr; align-items: start; gap: 8px; color: var(--v-ink, #262119); }
.form input[type=email], .form input[type=password], .form input[type=text] { font: inherit; padding: 10px 12px; border: 1px solid var(--v-line, #e7ddc9); border-radius: var(--v-r-sm, 12px); background: var(--v-surface, #fffdf8); color: inherit; min-height: 44px; }
.form input:focus { outline: 2px solid var(--v-accent, #0e9c93); outline-offset: 1px; }
.small { font-size: 0.85rem; }
