@charset "utf-8";
/**
 * ==========================================================================
 * Przystanek Twórczość - Branding V2 Design Tokens & Base Utilities
 * Spec: docs/specs/2026-09-11-new-branding.md
 * ==========================================================================
 */

:root {
  /* ========================================
     1. BRAND COLOR PALETTE
     ======================================== */
  --color-brand-dark: #152f30;
  --color-brand-accent: #d96c4a;
  --color-brand-soft: #e8ded0;
  --color-brand-sage: #8ca39a;
  --color-white: #ffffff;

  /* Semantic Mappings */
  --color-text-primary: var(--color-brand-dark);
  --color-text-muted: rgba(21, 47, 48, 0.7);
  --color-text-on-dark: var(--color-white);

  --color-bg-main: var(--color-white);
  --color-bg-card: var(--color-white);
  --color-bg-accent-soft: var(--color-brand-soft);
  --color-bg-dark: var(--color-brand-dark);

  --color-border-subtle: rgba(21, 47, 48, 0.15);
  --color-focus-ring: var(--color-brand-accent);

  /*
   * ⚠️  WCAG CONTRAST WARNING (Spec §8.1)
   * --color-brand-accent (#D96C4A) MUST NOT be used for body text
   * or any text smaller than ~18px on a light background — contrast ratio
   * is ~3.1:1 (fails AA 4.5:1 for normal text).
   * Safe uses: large UI elements (≥18px bold / ≥24px regular), buttons
   * with white text, decorative accents, and active-state indicators.
   */

  /* ========================================
     2. TYPOGRAPHY STACK
     ======================================== */
  --font-family-base:
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;

  --fs-h1-desktop: 3.25rem; /* 52px */
  --fs-h1-mobile: 2.25rem; /* 36px */
  --fs-h2-desktop: 2.25rem; /* 36px */
  --fs-h2-mobile: 1.75rem; /* 28px */
  --fs-h3: 1.5rem; /* 24px */
  --fs-body: 1.125rem; /* 18px */
  --fs-meta: 0.8125rem; /* 13px */

  --lh-tight: 1.15;
  --lh-section: 1.25;
  --lh-body: 1.65;

  --ls-meta: 0.1em;
  --ls-btn: 0.08em; /* Spec §6.5: button/CTA letter-spacing */

  /* ========================================
     3. SPACING SYSTEM
     ======================================== */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-xxl: 110px;

  /* ========================================
     4. BORDER RADIUS
     ======================================== */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  /* ========================================
     5. LAYOUT & CONTAINERS
     ======================================== */
  --container-max-width: 1200px;
  --canvas-margin: clamp(
    32px,
    5vw,
    48px
  ); /* Spec §5.1: side padding, never touches edge */
}

/* ==========================================================================
   GLOBAL BASELINE & ACCESSIBILITY (WCAG 2.2 AA)
   ========================================================================== */

/* Visible Focus Indicator (WCAG 2.2 AA) */
:focus-visible {
  outline: 3px solid var(--color-focus-ring) !important;
  outline-offset: 2px !important;
}

/* Accessible Selection Style */
::selection {
  background-color: var(--color-brand-soft);
  color: var(--color-brand-dark);
}

/* Reduced Motion Support (WCAG) */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   BUTTONS & CTAs (Spec Section 6.5)
   ========================================================================== */

/* Primary CTA Button */
.btn-primary,
a.btn-primary {
  background-color: var(--color-brand-accent);
  color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 14px 28px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-btn);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    transform 0.15s ease;
}

.btn-primary:hover,
.btn-primary:focus,
a.btn-primary:hover,
a.btn-primary:focus {
  background-color: #c45b3a;
  color: var(--color-white);
  text-decoration: none;
}

/* Secondary Editorial Link CTA */
.link-cta,
a.link-cta {
  color: var(--color-brand-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-btn);
  font-size: var(--fs-meta);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.link-cta:hover,
.link-cta:focus,
a.link-cta:hover,
a.link-cta:focus {
  color: var(--color-brand-accent);
  border-color: var(--color-brand-accent);
  text-decoration: none;
}

/* ==========================================================================
   TYPOGRAPHY & BADGE UTILITIES (Spec Section 4)
   ========================================================================== */

.meta-badge {
  font-size: var(--fs-meta);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-meta);
  color: var(--color-text-muted);
}

.meta-badge--accent {
  color: var(--color-brand-accent);
}

.meta-badge--sage {
  color: var(--color-brand-sage);
}

/* ==========================================================================
   VISUAL MOTIFS & SYGNETS (Spec Section 3.2)
   ========================================================================== */

.motif-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  vertical-align: middle;
}

.motif-dot--accent {
  background-color: var(--color-brand-accent);
}

.motif-dot--sage {
  background-color: var(--color-brand-sage);
}

.motif-dot--soft {
  background-color: var(--color-brand-soft);
}

/* ==========================================================================
   SURFACE & CONTAINER UTILITIES (Spec Section 5)
   ========================================================================== */

.bg-brand-soft {
  background-color: var(--color-brand-soft);
}

.bg-brand-dark {
  background-color: var(--color-brand-dark);
  color: var(--color-white);
}

.bg-brand-sage {
  background-color: var(--color-brand-sage);
}

.text-brand-dark {
  color: var(--color-brand-dark);
}

.text-brand-accent {
  color: var(--color-brand-accent);
}

.text-brand-sage {
  color: var(--color-brand-sage);
}

/* Rounded imagery helpers (Spec Section 5.2 & 7.1) */
.img-rounded-lg {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.img-rounded-xl {
  border-radius: var(--radius-xl);
  overflow: hidden;
}
