/* ============================================================================
   Kotoba — brand components
   The single CODE implementation of docs/BRAND_GUIDELINES.md §8.
   One definition, reused on every surface, so the mark can never drift.
   Depends ONLY on css/tokens.css (color + type tokens). No hardcoded hex
   except the rest-shadows (warm sumi, same values as the journey topbar).

   Components:
     .kotoba-wordmark        the wordmark "Kotoba" (Shippori Mincho 600)
     .kotoba-motto           the motto line (Inter 400) — its 3 homes only (§7)
     .brand-hanko            a quiet standalone seal (nav / voice header)
     .brand-cluster          the in-app mark for dense chrome (topbar) — "Colophon rule"
     .brand-lockup           the vertical identity lockup (seal · wordmark · gold dot · motto)
   ============================================================================ */

/* ── The wordmark — §8 locked spec ─────────────────────────────────────────── */
.kotoba-wordmark {
  font-family: var(--font-wordmark);   /* 'Shippori Mincho','Noto Serif JP',serif */
  font-weight: 600;
  letter-spacing: 0.012em;
  color: var(--ink);
  font-style: normal;
  white-space: nowrap;
}
/* context scales (one wordmark, sized per surface — never a different font) */
.kotoba-wordmark--bar    { font-size: 21px; line-height: 1; letter-spacing: 0.014em; } /* topbar / nav — Mincho wants more air, not less, at 21px */
.kotoba-wordmark--header { font-size: 28px; line-height: 1; }                          /* desktop header */
.kotoba-wordmark--lockup { font-size: 30px; line-height: 1; }                          /* session-end / onboarding */
.kotoba-wordmark--splash { font-size: 80px; line-height: 1; }                          /* splash / social */

/* ── The motto — §8 locked spec. Appears in EXACTLY the 3 homes in §7. ──────── */
.kotoba-motto {
  font-family: var(--font-ui);         /* Inter */
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--stone);
  /* sentence case, with the period: "Japanese, one scene at a time." */
}

/* ── A quiet standalone seal — Learn Mode nav, Voice header ─────────────────── */
.brand-hanko {
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  display: block;
  box-shadow: 0 2px 8px rgba(20, 16, 10, 0.08);
}

/* ── In-app mark: the topbar brand cluster — "Colophon rule" (panel winner) ───
   seal + wordmark welded into one stamped lockup · a single inset cap-to-baseline
   hairline (the only divider, --divider never gold) · a recessed context column
   where the greeting leads and the date whispers beneath it. Identity, then a
   quiet colophon, then context. No motto in chrome (§7). */
.brand-cluster {
  display: flex;
  align-items: center;
  gap: 13px;
  flex: 1;
  min-width: 0;
}
.brand-cluster .bc-mark {           /* the welded seal+wordmark stamp */
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
}
.brand-cluster .bc-hanko {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  box-shadow: 0 2px 8px rgba(20, 16, 10, 0.08);
}
/* the cluster's wordmark carries the .kotoba-wordmark--bar modifier in markup —
   single source of truth for the bar size + tracking, so it can't drift from a stale copy */
.brand-cluster .bc-rule {           /* the colophon hairline — full --divider, holds at DPR */
  flex: 0 0 auto;
  width: 1px;
  align-self: center;
  height: 15px;                 /* cap-to-baseline of the 21px wordmark — a colophon rule, not a box edge */
  background: var(--divider);
}
.brand-cluster .bc-context {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}
.brand-cluster .bc-greet {          /* warm, present, recessed below the ink wordmark */
  font-family: var(--font-jp);
  font-size: 15px;
  line-height: 1.05;
  color: var(--stone);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-cluster .bc-date {           /* numeral-led folio whisper: "Thu · Jun 4" */
  font-family: var(--font-ui);
  font-size: 11.5px;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--color-faint-warm);   /* warm faint #6E6860 — holds AA at 11.5px regardless of mount context */
  white-space: nowrap;
}

/* ── Identity lockup: seal above · wordmark · single gold dot · motto ─────────
   The full brand statement for identity moments: splash, social/OG, onboarding
   hero, session-complete. §8 + §9. Size via a modifier. */
.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.brand-lockup .bl-seal {
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(20, 16, 10, 0.06); /* warm sumi rest shadow (same warm channels as the topbar seal), never pure black, never a glow */
  flex: 0 0 auto;
}
.brand-lockup .bl-dot {              /* the seal's one gold accent, reused as the divider */
  border-radius: 50%;
  background: var(--gold);
}

/* lockup — splash / social (large) */
.brand-lockup--splash .bl-seal       { width: 172px; height: 172px; }
.brand-lockup--splash .kotoba-wordmark { font-size: 80px; margin-top: 34px; }
.brand-lockup--splash .bl-dot        { width: 8px; height: 8px; margin: 24px 0; }
.brand-lockup--splash .kotoba-motto  { font-size: 24px; }

/* lockup — session-end / onboarding (compact) */
.brand-lockup--end .bl-seal          { width: 60px; height: 60px; }
.brand-lockup--end .kotoba-wordmark  { font-size: 30px; margin-top: 13px; }
.brand-lockup--end .bl-dot           { width: 6px; height: 6px; margin: 10px 0; }
.brand-lockup--end .kotoba-motto     { font-size: 14.5px; }

/* Reduced-motion / print: nothing here animates; components are static by design. */
