/**
 * @theme Savannah — Flamingo Magazine
 * @version 2.0
 * @description Layer 1 of 6 · PROJECT FILE. Design tokens: every colour,
 *              type, space, width, radius and motion value the kit reads.
 *
 * Token NAMES are kit-standard (--jcd-). Only the VALUES here are
 * project-specific. Kit files consume these names and are never edited per
 * project. Client-facing names are comments only; the CSS must not depend on
 * them.
 *
 * REQUIRED TOKENS: kit CSS references every token below. Four colour tokens
 * are registered in _base.css and render MAGENTA when undeclared; any other
 * missing token silently drops the rule that reads it. Declare all of them,
 * and run tools/check-tokens.sh before uploading.
 */


/* ==========================================================================
   # 01. CUSTOM PROPERTIES
   ========================================================================== */

:root {

  /* Colour: brand */
  /**
   * THIS FILE OWNS THE COLOUR VALUES. Beaver Builder's Global Colors are
   * picker entries that REFERENCE these, never a second set of values.
   * BB's variable prefix is jcd-bb, so BB emits --jcd-bb-accent — a
   * distinct name that cannot collide with the declarations below.
   *
   * Do NOT set BB's prefix to jcd-color. BB would emit the same property
   * names this file declares, at the same :root specificity, and the
   * winner becomes whichever stylesheet loads last.
   */
  --jcd-color-accent:    #BF0D3E;  /* "Editorial Crimson" */
  --jcd-color-ink:       #0C0C0D;  /* "Premium Black" */
  --jcd-color-paper:     #FFFFFF;  /* "Crisp White" */
  --jcd-color-rule:      #EEEFF0;  /* "Soft Light Gray" */
  --jcd-color-paper-alt: #FBF8F2;  /* "Cream" — alternate section surface */
  --jcd-color-inverse-accent: #FFB8C5; /* 12.02:1 on ink — accent text and focus on dark rows */
  /**
   * Muted text as an alpha of ink rather than a fifth hue.
   * NOTE: 4.35:1 on paper and 4.27:1 on cream — both under AA's 4.5:1
   * for normal text. Raising to 0.57 clears both (4.67 / 4.59).
   * Flagged pending approval, not changed.
   */
  --jcd-color-muted:     rgba(12, 12, 13, 0.55);

  /* Registered tokens — see @property in _base.css */
  /**
   * Four colour tokens are registered and render MAGENTA when
   * undeclared. Magenta is an alarm, not a fallback.
   */

  /**
   * The accent used AS TEXT on a light ground. #BF0D3E measures 6.28:1
   * on paper and 5.93:1 on cream, so it clears 4.5:1 and is set equal
   * to the accent. Re-measure if the accent ever moves.
   */
  --jcd-color-accent-text: #BF0D3E;

  /**
   * Focus ring. 6.28:1 on paper, 5.46:1 on rule (the compact-bar
   * ground), 5.93:1 on cream, 3.11:1 on ink. Clears 1.4.11's 3:1
   * everywhere the kit currently draws one — ink is the tight one, so
   * re-measure before any dark row ships.
   */
  --jcd-color-focus:       #BF0D3E;

  /* Text on an accent-filled button. White on #BF0D3E is 6.28:1. */
  --jcd-color-cta-fg:      #FFFFFF;

  /**
   * Set to muted's alpha so the footer form does not shift.
   * NOTE: fails AA at 4.35:1, same as muted. See above.
   */
  --jcd-color-placeholder: rgba(12, 12, 13, 0.55);

  /* Colour: functional */
  --jcd-color-shadow:        rgba(0, 0, 0, 0.08);
  --jcd-color-scrim:         rgba(12, 12, 13, 0.45);    /* hero overlays */
  --jcd-color-veil:          rgba(255, 255, 255, 0.95); /* compact header bar */

  /* Colour: inverse — components sitting on ink */
  --jcd-color-inverse-body:  rgba(255, 255, 255, 0.70); /* 9.64:1 on ink */
  --jcd-color-inverse-muted: rgba(255, 255, 255, 0.60); /* 7.30:1 on ink */
  /**
   * NOTE: 2.17:1 on ink. Non-text, so 1.4.11's 3:1 applies — and it
   * still misses. 0.33 clears it. Flagged, not changed.
   */
  --jcd-color-inverse-rule:  rgba(255, 255, 255, 0.25);

  /* Type families */
  /**
   * Playfair Display is enqueued from Google in functions.php.
   * soleil arrives via the Adobe Fonts plugin, kit hmo0buh.
   * Landmark is self-hosted — @font-face lives in _fonts.css.
   */
  --jcd-font-serif: "Playfair Display", Georgia, serif;
  --jcd-font-sans:  soleil, -apple-system, BlinkMacSystemFont, sans-serif;

  /**
   * Headings are SOLEIL, not Playfair. _base.css reads this token, never
   * --jcd-font-serif.
   */
  --jcd-font-heading: var(--jcd-font-sans);

  /**
   * Landmark ships four distinct decorative cuts, not weights of one
   * family. Each needs its own @font-face and family name.
   */
  --jcd-font-display:             "Landmark", Georgia, serif;
  --jcd-font-display-inline:      "Landmark Inline", Georgia, serif;
  --jcd-font-display-shadow:      "Landmark Shadow", Georgia, serif;
  --jcd-font-display-dimensional: "Landmark Dimensional", Georgia, serif;

  /**
   * Data face. No kit component consumes it yet; declaring it does not
   * make anything render in mono. Pair it with
   * font-variant-numeric: tabular-nums wherever figures align.
   */
  --jcd-font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Type scale */
  /* Fixed px at a 16px root. _base.css sets html { font-size: 100% }. */
  --jcd-text-h1:      48px;
  --jcd-text-display: 72px;   /* hero headline */
  --jcd-text-h2:      36px;
  --jcd-text-h3:      28px;
  --jcd-text-h4:      22px;
  --jcd-text-lead:    18px;
  --jcd-text-body:    16px;
  --jcd-text-caption: 12px;
  /**
   * Kicker and button are SEPARATE values and must not be unified —
   * confirmed against the Loveable design system.
   */
  --jcd-text-kicker:  10px;   /* kickers, eyebrows, ad labels */
  --jcd-text-btn:     12px;   /* button, nav and link-CTA labels */

  /* Weights */
  /**
   * soleil kit hmo0buh ships 300 / 400 / 500 / 600 / 700 / 800.
   * Verify a weight is TICKED in the kit before using it — an omitted
   * weight rounds silently, exactly like a weight the family lacks.
   */
  --jcd-weight-light:   300;
  --jcd-weight-display: 300;
  --jcd-weight-regular: 400;
  --jcd-weight-medium:  500;
  --jcd-weight-semi:    600;
  --jcd-weight-bold:    700;

  /* Tracking */
  --jcd-tracking-tight:  0.18em;   /* read links */
  --jcd-tracking-nav:    0.24em;
  --jcd-tracking-btn:    0.18em;
  --jcd-tracking-kicker: 0.22em;   /* every kicker, sitewide; ad and footer labels */
  --jcd-tracking-wide:   0.42em;   /* long-form fact labels, scroll cue */

  /* Spacing, 4pt scale */
  /**
   * A value outside this scale is a VIOLATION, not an extension. Flag it
   * and use the nearest step.
   */
  --jcd-space-xs:  4px;
  --jcd-space-sm:  8px;
  --jcd-space-md:  16px;
  --jcd-space-lg:  24px;
  --jcd-space-xl:  40px;
  --jcd-space-2xl: 64px;
  --jcd-space-3xl: 96px;
  --jcd-space-4xl: 128px;

  /* Section rhythm */
  /**
   * Named by role. Repoint these to change the whole site's rhythm
   * without touching a single module rule.
   */
  --jcd-band-sm: var(--jcd-space-xl);   /* 40px */
  --jcd-band-md: var(--jcd-space-2xl);  /* 64px */
  --jcd-band-lg: var(--jcd-space-3xl);  /* 96px */
  --jcd-band-xl: var(--jcd-space-4xl);  /* 128px */

  --jcd-gutter:     var(--jcd-space-lg);
  --jcd-page-inset: var(--jcd-space-lg);

  /* Container */
  /**
   * Content width and breakpoints are DIFFERENT THINGS. Never let them
   * share a value by coincidence.
   */
  --jcd-content-max:   1280px;  /* matches the approved design container */
  --jcd-width-narrow:   760px;  /* long-form reading measure */
  --jcd-width-wide:    1600px;
  --jcd-width-article: 680px; /* article body column */

  /**
   * Measured on the built compact bar: 62px, rounded up to the nearest
   * 4pt step. _navigation.css consumes it as min-height, so the bar is
   * a stable number rather than whatever its contents compute to.
   */
  --jcd-header-height: var(--jcd-space-2xl);   /* 64px */

  /**
   * Derived, never typed: the sticky ad rail clears the bar plus a gap.
   * Repointing the height moves both.
   */
  --jcd-header-offset: calc(var(--jcd-header-height) + var(--jcd-space-lg));

  /* Media */
  /**
   * Default crop for post-grid featured images, consumed by
   * .jcd_ui_post_media. A row overrides it by setting the same property
   * on its own class — custom properties inherit, so the row's value
   * reaches the img without a more specific selector.
   */
  --jcd-media-ratio: 4 / 3;

  /* Radii */
  --jcd-radius-none: 0;
  --jcd-radius-sm:   6px;
  --jcd-radius-pill: 9999px;

  /* Motion */
  --jcd-ease:          cubic-bezier(0.4, 0, 0.2, 1);
  --jcd-ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --jcd-duration-fast: 150ms;
  --jcd-duration-base: 350ms;
  --jcd-duration-slow: 650ms;
}


/* ==========================================================================
   # 02. BREAKPOINTS
   ========================================================================== */

/**
 * Beaver Builder defaults. DO NOT CHANGE, here or in BB Global Settings ->
 * Responsive Layouts.
 *
 *   Extra Large : > 1200px  (no query — the unprefixed state)
 *   Large       : max-width: 1200px   (993–1200)
 *   Medium      : max-width:  992px   (769–992)
 *   Small       : max-width:  768px   (<=768)
 *
 * Desktop-first, max-width only, matching BB's own generated CSS. NEVER write
 * min-width.
 *
 * BB permits these to be edited globally, and that is the hazard. BB
 * generates its module CSS from whatever Global Settings says, while every
 * query in this kit is hardcoded to the values above. Edit one and the two
 * step at different widths — a band of viewport sizes where half the system
 * has responded and half has not. Nothing errors. The kit's queries are the
 * contract; Global Settings must match THEM, not the reverse.
 *
 * NOTE: --jcd-content-max is 1280px and the Large breakpoint is 1200px. These
 * are different things and must not be assumed equal.
 *
 * The query below steps the section rhythm down on phones.
 */

@media (max-width: 768px) {
  :root {
    --jcd-band-sm: var(--jcd-space-lg);   /* 24px */
    --jcd-band-md: var(--jcd-space-xl);   /* 40px */
    --jcd-band-lg: var(--jcd-space-2xl);  /* 64px */
    --jcd-band-xl: var(--jcd-space-3xl);  /* 96px */
    --jcd-gutter:  var(--jcd-space-md);   /* 16px */
  }
}
