/* ───────────────────────────────────────────────────────
   kariochi · components-brand.css
   Brand wordmark + canonical identity rules.
   Extracted from components.css (split 2026-05-30).
   ─────────────────────────────────────────────────────── */

/* ─── Brand wordmark ─────────────────────────────────────────────────────── */
/* Canonical markup: <a class="brand" href="/">kari<em>o</em>chi</a>
   Loaded on every surface (landing + admin) — NOT in admin-shell.css.       */
.brand {
  display: inline-flex; align-items: baseline; gap: 0;
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-weight: 800; font-size: 16px; letter-spacing: -0.04em; line-height: 1;
  color: var(--fg-primary); text-decoration: none;
  flex-shrink: 0; font-optical-sizing: auto;
  position: relative; /* establishes stacking context for halo z-index:-1 on ::after */
}
.brand:hover { color: var(--fg-primary); text-decoration: none; }
.brand em {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic; font-weight: 500;
  color: var(--brand-primary); /* emerald — the brand moment */
  letter-spacing: -0.02em; position: relative;
}
/* Soft radial-halo pulse behind the "o" — quiet live signal */
.brand em::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 130%; height: 130%; border-radius: 50%;
  background: radial-gradient(circle, rgba(26,158,110,0.25) 0%, transparent 60%);
  z-index: -1; opacity: 0; animation: brand-pulse 3.6s ease-in-out infinite;
}
@keyframes brand-pulse {
  0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
  50%      { opacity: 1; transform: translate(-50%, -50%) scale(1.0); }
}
@media (prefers-reduced-motion: reduce) { .brand em::after { animation: none; } }

/* ═════════════════════════════════════════════════════════════════
   BRAND CANONICAL — wordmark anatomy, clearspace, do/don't
   ═════════════════════════════════════════════════════════════════ */

.brand-canonical {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.brand-canonical > .panel {
  background: var(--bg-surface);
  padding: var(--space-6);
}
.brand-stage {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 280px;
  background:
    linear-gradient(var(--bg-app) 0 0) padding-box,
    var(--bg-surface);
  padding: var(--space-8);
  text-align: center;
  position: relative;
}
.brand-stage .wm-xl {
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-weight: 800;
  font-size: 80px;
  letter-spacing: -0.05em;
  color: var(--fg-primary);
  text-transform: lowercase;
  line-height: 1;
  font-optical-sizing: auto;
  position: relative;
  z-index: 1;
}
.brand-stage .wm-xl em {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: var(--brand-primary);
  letter-spacing: -0.025em;
}
.brand-stage .clearspace {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  pointer-events: none;
}
.brand-stage .clearspace::before {
  content: "";
  width: 540px; max-width: 80%;
  height: 160px;
  border: 1px dashed var(--border-default);
  border-radius: var(--radius-sm);
  opacity: 0.45;
}
.brand-stage .stage-label {
  position: absolute; bottom: var(--space-3); left: var(--space-3);
  font-family: ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-tertiary);
  background: var(--bg-surface);
  padding: 2px 7px; border-radius: var(--radius-sm);
}

.brand-rules { display: flex; flex-direction: column; gap: var(--space-4); }
.brand-rules .rule {
  display: flex; flex-direction: column; gap: 2px;
}
.brand-rules .rule-h {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--fg-primary);
  letter-spacing: -0.005em;
}
.brand-rules .rule-b {
  font-size: var(--text-sm);
  color: var(--fg-secondary);
  line-height: 1.5;
}
.brand-rules .rule-b code {
  font-family: ui-monospace, monospace; font-size: var(--text-xs);
  background: var(--bg-subtle); padding: 1px 5px; border-radius: var(--radius-sm);
}

.do-dont {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.do-dont .item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex; flex-direction: column; gap: var(--space-3);
}
.do-dont .item .preview {
  height: 60px;
  background: var(--bg-app);
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.04em;
  text-transform: lowercase;
}
.do-dont .item .preview em {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic; font-weight: 500;
  color: var(--brand-primary);
}
.do-dont .item .badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--text-xs); font-weight: var(--weight-semibold);
  letter-spacing: 0.01em;
}
.do-dont .item.do .badge    { color: var(--status-success-fg); }
.do-dont .item.dont .badge  { color: var(--status-error-fg); }
.do-dont .item .badge svg   { width: 13px; height: 13px; }
.do-dont .item .desc {
  font-size: var(--text-sm); color: var(--fg-secondary); line-height: 1.5;
}
