/**
 * Blackford — Layout Primitives
 *
 * .bf-container system: max-width, responsive padding via clamp().
 * .bf-section system: consistent vertical rhythm.
 *
 * @package Blackford
 * @version 2.0.0
 */

/* ─── Container ─────────────────────────────────────────────────────────────── */

.bf-container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.5rem, 4vw, 3rem);
  padding-right: clamp(1.5rem, 4vw, 3rem);
}

.bf-container--wide {
  max-width: 1440px;
}

.bf-container--narrow {
  max-width: 880px;
}

/* ─── Section rhythm ────────────────────────────────────────────────────────── */

.bf-section {
  padding-top: clamp(4rem, 8vw, 8rem);
  padding-bottom: clamp(4rem, 8vw, 8rem);
}

.bf-section--dense {
  padding-top: clamp(2.5rem, 5vw, 5rem);
  padding-bottom: clamp(2.5rem, 5vw, 5rem);
}

.bf-section--airy {
  padding-top: clamp(6rem, 12vw, 12rem);
  padding-bottom: clamp(6rem, 12vw, 12rem);
}

/* ─── Section colour variants ───────────────────────────────────────────────── */

.bf-section--dark {
  background: var(--wp--preset--color--concrete-900);
  color: var(--wp--preset--color--concrete-100);
}

.bf-section--light {
  background: var(--wp--preset--color--concrete-100);
  color: var(--wp--preset--color--concrete-800);
}

.bf-section--mid {
  background: var(--wp--preset--color--concrete-200);
  color: var(--wp--preset--color--concrete-800);
}

.bf-section--ink {
  background: var(--wp--preset--color--concrete-ink, #0C0D0F);
  color: var(--wp--preset--color--concrete-100);
}

/* ─── Hairline dividers ─────────────────────────────────────────────────────── */

.bf-hairline {
  border: none;
  border-top: 1px solid var(--wp--preset--color--concrete-200);
  margin: 0;
}

.bf-hairline--dark {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.bf-hairline--lilac {
  border-top-color: var(--wp--preset--color--lilac-accent);
}

/* ─── CTAs ──────────────────────────────────────────────────────────────────── */

.bf-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--wp--preset--color--concrete-100);
  background: var(--wp--preset--color--concrete-900);
  border: 1px solid var(--wp--preset--color--concrete-900);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
  cursor: pointer;
}

.bf-cta-primary:hover {
  background: var(--wp--preset--color--concrete-ink);
  border-color: var(--wp--preset--color--concrete-ink);
  color: var(--wp--preset--color--concrete-100);
}

.bf-cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--wp--preset--color--concrete-800);
  background: transparent;
  border: 1px solid var(--wp--preset--color--concrete-400);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
  cursor: pointer;
}

.bf-cta-ghost:hover {
  background: var(--wp--preset--color--concrete-900);
  border-color: var(--wp--preset--color--concrete-900);
  color: var(--wp--preset--color--concrete-100);
}

/* Dark context ghost */
.bf-section--dark .bf-cta-ghost,
.bf-section--ink .bf-cta-ghost {
  color: var(--wp--preset--color--concrete-100);
  border-color: rgba(244, 245, 246, 0.3);
}

.bf-section--dark .bf-cta-ghost:hover,
.bf-section--ink .bf-cta-ghost:hover {
  background: rgba(244, 245, 246, 0.1);
  border-color: var(--wp--preset--color--concrete-100);
}

/* ─── Eyebrow text ──────────────────────────────────────────────────────────── */

.bf-eyebrow {
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wp--preset--color--concrete-600);
  display: block;
  margin-bottom: 0.875rem;
}

.bf-eyebrow--mono {
  font-family: var(--wp--preset--font-family--jetbrains-mono);
}

.bf-section--dark .bf-eyebrow,
.bf-section--ink .bf-eyebrow {
  color: var(--wp--preset--color--concrete-400);
}

/* ─── Figure / image ────────────────────────────────────────────────────────── */

.bf-figure {
  margin: 0;
  line-height: 0;
}

.bf-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

/* ─── Reduced motion ────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
