/* BlurLetter's frame and pages, scoped under .bl-app (docs/BRAND.md). The
   family's look, BlurBoard's copy of BlurFolder's: palette, bar, buttons,
   type and corners. Light only. Phone first. The font maker's own rules
   (hf-) come with the vendored BlurHandFont release. */

.bl-app {
  --bl-teal: #00c6cf;          /* BlurPaper's teal, every sibling's */
  --bl-teal-dark: #00a3ab;
  --bl-teal-soft: #e0f7f8;
  --bl-teal-ink: #00636a;      /* teal text on a light ground: readable */
  --bl-ink: #2f3440;
  --bl-muted: #6b7280;
  --bl-line: #e3e6ec;
  --bl-bg: #f6f8fa;
  --bl-card: #ffffff;
  --bl-bad: #c0392b;
}
.bl-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bl-bg);
  color: var(--bl-ink);
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
.bl-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.6rem 1rem; background: #fff; border-bottom: 1px solid var(--bl-line); position: relative; z-index: 20; }
.bl-brand { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--bl-teal); font-size: 1.35rem; text-decoration: none; white-space: nowrap; }
.bl-brand b { font-weight: 700; }
.bl-logo { display: block; width: 28px; height: 28px; border-radius: 4px; }
.bl-nav { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.bl-who { color: var(--bl-muted); font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 30vw; }
.bl-main { flex: 1 1 auto; width: 100%; max-width: 60rem; margin: 0 auto; padding: 1.5rem 1rem; box-sizing: border-box; }
.bl-foot { padding: 1rem; text-align: center; color: var(--bl-muted); font-size: 0.85rem; }
.bl-muted { color: var(--bl-muted); }
.bl-error { color: var(--bl-bad); }
.bl-pad { padding: 1rem; }
.bl-center { text-align: center; }

/* Buttons: background, colour, border and radius together — BlurPager's
   baseline `button` rule paints white text and its own corners (its D143). */
.bl-app .bl-button, .bl-app button.bl-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.6rem 1.2rem;
  border: 1px solid var(--bl-teal); border-radius: 6px; background: var(--bl-teal); color: #fff;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.bl-app .bl-button:hover { background: var(--bl-teal-dark); border-color: var(--bl-teal-dark); }
.bl-app .bl-small, .bl-app button.bl-small { padding: 0.35rem 0.9rem; font-size: 0.9rem; }
.bl-app .bl-wide { display: flex; width: 100%; }
.bl-app button.bl-quiet, .bl-app button.bl-link, .bl-app button.bl-ghost, .bl-app summary.bl-quiet {
  padding: 0.3rem 0.6rem; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--bl-muted); font: inherit; cursor: pointer;
}
.bl-app button.bl-ghost { border-color: var(--bl-line); background: #fff; color: var(--bl-ink); }
.bl-app button.bl-ghost:hover { border-color: var(--bl-teal); }
.bl-app button.bl-link { color: var(--bl-teal-dark); text-decoration: underline; padding: 0; }
.bl-app button.bl-quiet:hover, .bl-app summary.bl-quiet:hover { background: rgba(0, 0, 0, 0.05); color: var(--bl-ink); }
.bl-app button:disabled { opacity: 0.6; cursor: default; }
.bl-paper-mark { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; border-radius: 2px; }
h1 .bl-paper-mark { margin-right: 0.45rem; }

.bl-card { background: var(--bl-card); border: 1px solid var(--bl-line); border-radius: 10px; padding: 1.25rem; margin-bottom: 1rem; }
.bl-narrow { max-width: 26rem; margin: 2rem auto; }
.bl-card h1 { margin: 0 0 1rem; font-size: 1.4rem; display: flex; align-items: center; }
.bl-or { text-align: center; margin: 1rem 0 0; color: var(--bl-muted); }

.bl-hero { padding: 2rem 0; }
.bl-hero h1 { font-size: 2rem; margin: 0 0 1rem; line-height: 1.2; }
.bl-lead { font-size: 1.1rem; line-height: 1.6; max-width: 40rem; }
.bl-points { line-height: 1.8; padding-left: 1.2rem; }

.bl-steps { counter-reset: step; list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 0.75rem; }
.bl-steps li { counter-increment: step; display: flex; gap: 0.75rem; align-items: baseline; line-height: 1.5; }
.bl-steps li::before { content: counter(step); flex: none; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--bl-teal-soft); color: var(--bl-teal-ink); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

/* A visible wait (the ecosystem's rule, 2026-10-16). */
.bl-waiting { display: flex; align-items: center; gap: 0.6rem; }
.bl-spinner { width: 1.2rem; height: 1.2rem; border: 3px solid var(--bl-line); border-top-color: var(--bl-teal); border-radius: 50%; animation: bl-spin 0.8s linear infinite; flex: none; }
@keyframes bl-spin { to { transform: rotate(360deg); } }

@media (max-width: 700px) {
  .bl-main { padding: 1rem 0.75rem; }
  .bl-who { display: none; }
  .bl-hero h1 { font-size: 1.6rem; }
}

/* The font maker (BlurHandFont's default page, docs/MAKE.md) in the family's
   colours: it reads the host's --teal, --line, --muted and --ink. */
.bl-make { --teal: var(--bl-teal-dark); --line: var(--bl-line); --muted: var(--bl-muted); --ink: var(--bl-ink); }
