/* ==========================================================================
   COMPONENTS — the company-wide component library (the shared root DS).
   Written ONCE against canon token names (var(--...)). A client's design-lock
   token VALUES skin every component — same names/structure, different brand.
   Client themes include this file + their tokens.css; Claude Design derives
   from the preview/ cards. BEM · mobile-first · tokens only (no raw hex/px).

   Atomic Design tiers: ATOMS (button, tag, folio, section-title) → MOLECULES
   (card, field). ORGANISMS (header, hero, sections, footer) live in each
   client theme and graduate up here only once they repeat across clients.
   ========================================================================== */

/* ═══ ATOMS ═══════════════════════════════════════════════════════════════ */

/* --------------------------------------------------------------- button */
.btn {
  display: inline-flex;
  gap: var(--space-2xs);
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border: 1px solid var(--color-cta);
  border-radius: var(--radius-md);
  background: var(--color-cta);
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  color: var(--color-text-invert);
  transition: background var(--dur-base) var(--ease-out);
}

.btn:hover {
  border-color: var(--color-cta-hover);
  background: var(--color-cta-hover);
  text-decoration: none;
}

.btn--ghost {
  border-color: var(--color-border);
  background: transparent;
  color: var(--color-text);
}

.btn--ghost:hover {
  border-color: var(--color-text);
  background: transparent;
  color: var(--color-text);
}

.btn--lg {
  padding: 18px 36px;
  font-size: var(--text-lg);
}

/* --------------------------------------------------------------- tag */
.tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-3xs) var(--space-xs);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

.tag--accent {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ----------------------------------------------------------------- folio */
.folio {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(48px, 9vw, 120px);
  font-weight: var(--weight-black);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: var(--color-accent);
}

/* --------------------------------------------------------- section title */
.section-title {
  position: relative;
  max-width: 24ch;
  padding-bottom: var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.section-title::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 56px;
  height: 4px;
  background: var(--color-accent);
  content: "";
}

/* ═══ MOLECULES ═══════════════════════════════════════════════════════════ */

/* --------------------------------------------------------------- card */
.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-text);
}

.card__body {
  color: var(--color-text-dim);
}

/* -------------------------------------------------- field (label + control) */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.field label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--color-accent);
  outline: none;
}
