/**
 * Sible foundation tokens (plg_system_siblefoundation 1.1.0)
 *
 * Source of truth: Figma file Nr0pEQGnm23qF9cTKRPFQQ ("Sible UI 2026-08"),
 * collection "Sible Foundations" (27 variables, one mode) and the 49 local
 * text styles. They were read with use_figma, which lists everything defined
 * in the file. Do not use get_variable_defs for this: it only returns
 * variables bound on a node and misses the rest. Do not hand edit values
 * here: change them in Figma, re-read them, and update this file to match.
 *
 * Prefix: --sf-
 * Existing prefixes this must never collide with: --sib-, --sible-, --vs-,
 * --sq-, --shop-.
 *
 * This file only declares custom properties on :root. It contains no element
 * or class rules, so loading it changes nothing on its own.
 *
 * Units: sizes are px, exactly as Figma specifies them. Figma stores line
 * height and letter spacing as percentages, so they are written here as a
 * unitless line height (110% is 1.1) and em tracking (8% is 0.08em). Figma
 * "auto" line height is written as `normal`.
 *
 * Type styles are `font` shorthand values, used as `font: var(--sf-type-...)`.
 * Styles with tracking in Figma have a matching --sf-tracking-* token to set
 * as `letter-spacing`. Most styles exist in Desktop and Mobile versions.
 * Wordmark Nav exists on Mobile only. Nav Link, Nav Search, Nav Login, Badge
 * Count, Button Label, Heading Subsection, Vendor Name,
 * Product Title, Price Large, Field Label, Field Value, Link Mono, Filter
 * Heading, Filter Option, Results Heading and Body Italic Single exist on
 * Desktop only; until Figma adds Mobile versions, use the Desktop style at
 * all widths.
 *
 * Mobile type styles apply below 48rem and Desktop type styles from 48rem up,
 * matching Gantry's mobile menu breakpoint. Figma defines no breakpoints.
 *
 * Fonts (loaded by this plugin from Google Fonts): Cormorant Garamond 400,
 * 500, 600, 400 italic, 500 italic; Courier Prime 400; Inter 400; Tangerine 400.
 * Inter Bold appears in Figma only in DEV NOTE annotations and is not loaded.
 *
 * BREAKPOINTS (match Gantry 5 Helium, which compiles these exact ranges):
 *   large mobile    30rem
 *   tablet          48rem   (also the Gantry mobile menu breakpoint)
 *   desktop         60rem
 *   large desktop   75rem
 * Gantry's own media queries are: max-width 30rem; 30.01rem to 47.99rem;
 * 48rem to 59.99rem; 60rem to 74.99rem; min-width 75rem.
 * PAGE-SPECIFIC (not a site breakpoint):
 *   product page two columns   56rem   (plg_system_sibleproduct: the details column
 *                                        reaches about 320px at about 889px; below it
 *                                        the gallery sits on top of the details)
 * Custom properties do not work inside @media conditions, so write these
 * values literally, for example @media (min-width: 48rem).
 */

:root {
    /* Colour: ground */
    --sf-color-ground-page: #ffffff;
    --sf-color-ground-panel: #fdfdde;
    --sf-color-ground-inverse: #1e1d1c;
    --sf-color-ground-nav: #2a2624;
    --sf-color-ground-cream: #efebe1;

    /* Colour: ink */
    --sf-color-ink-primary: #2a2624;
    --sf-color-ink-secondary: #807a74;
    --sf-color-ink-inverse: #ffffff;

    /* Colour: line */
    --sf-color-line-default: #dbdbd1;
    --sf-color-line-subtle: #f2f2f2;
    --sf-color-line-strong: #6e645d;

    /* Colour: accent (Figma: Login pill, review stars, Open to Commissions) */
    --sf-color-accent-green: #5c7958;
    --sf-color-accent-green-hover: #748d71;
    --sf-color-accent-badge: #cd4444;

    /* Spacing */
    --sf-space-2xs: 4px;
    --sf-space-xs: 8px;
    --sf-space-sm: 12px;
    --sf-space-md: 16px;
    --sf-space-lg: 24px;
    --sf-space-xl: 32px;
    --sf-space-2xl: 48px;
    --sf-space-3xl: 64px;
    --sf-space-4xl: 96px;
    --sf-space-5xl: 128px;

    /* Radius */
    --sf-radius-sm: 2px;
    --sf-radius-md: 5px;
    --sf-radius-pill: 999px;

    /* Font families */
    --sf-font-display: "Cormorant Garamond", Garamond, "Times New Roman", serif;
    --sf-font-mono: "Courier Prime", "Courier New", Courier, monospace;
    --sf-font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
    --sf-font-script: "Tangerine", "Brush Script MT", cursive;

    /* Type styles: Desktop */
    --sf-type-desktop-display: 400 132px/1 var(--sf-font-display);
    --sf-type-desktop-heading-xl: 600 36px/1.1 var(--sf-font-display);
    --sf-type-desktop-heading-lg: 600 32px/1.15 var(--sf-font-display);
    --sf-type-desktop-heading-md: 400 28px/1.2 var(--sf-font-display);
    --sf-type-desktop-title: 400 24px/1.25 var(--sf-font-display);
    --sf-type-desktop-body-emphasis: 600 20px/1.45 var(--sf-font-display);
    --sf-type-desktop-body: 400 20px/1.45 var(--sf-font-display);
    --sf-type-desktop-body-italic: italic 400 20px/1.45 var(--sf-font-display);
    --sf-type-desktop-caption: 400 16px/1.4 var(--sf-font-display);
    --sf-type-desktop-label-mono: 400 15px/1.3 var(--sf-font-mono);
    --sf-type-desktop-wordmark-display: 400 200px/normal var(--sf-font-script);
    --sf-type-desktop-product-description: italic 500 20px/1.3 var(--sf-font-display);
    --sf-type-desktop-review-name: 400 20px/1.3 var(--sf-font-sans);
    --sf-type-desktop-review-body: 400 14px/1.4 var(--sf-font-sans);
    --sf-type-desktop-review-meta: 400 12px/1.3 var(--sf-font-sans);
    --sf-type-desktop-nav-link: 400 32px/normal var(--sf-font-display);
    --sf-type-desktop-nav-search: 400 28px/normal var(--sf-font-display);
    --sf-type-desktop-nav-login: 400 24px/normal var(--sf-font-display);
    --sf-type-desktop-badge-count: 400 9px/normal var(--sf-font-mono);
    --sf-type-desktop-button-label: 600 24px/normal var(--sf-font-display);
    --sf-type-desktop-heading-section: 500 36px/normal var(--sf-font-display);
    --sf-type-desktop-heading-subsection: 500 30px/normal var(--sf-font-display);
    --sf-type-desktop-vendor-name: 600 56px/1.1 var(--sf-font-display);
    --sf-type-desktop-product-title: 600 38px/normal var(--sf-font-display);
    --sf-type-desktop-price-large: 400 24px/1.3 var(--sf-font-mono);
    --sf-type-desktop-field-label: 400 15px/normal var(--sf-font-mono);
    --sf-type-desktop-field-value: 400 20px/normal var(--sf-font-display);
    --sf-type-desktop-link-mono: 400 18px/normal var(--sf-font-mono);
    --sf-type-desktop-filter-heading: 600 19px/normal var(--sf-font-display);
    --sf-type-desktop-filter-option: 400 17px/normal var(--sf-font-display);
    --sf-type-desktop-results-heading: 600 26px/normal var(--sf-font-display);
    --sf-type-desktop-body-italic-single: italic 400 20px/normal var(--sf-font-display);

    /* Type styles: Mobile */
    --sf-type-mobile-display: 400 72px/1 var(--sf-font-display);
    --sf-type-mobile-heading-xl: 600 30px/1.12 var(--sf-font-display);
    --sf-type-mobile-heading-lg: 600 26px/1.16 var(--sf-font-display);
    --sf-type-mobile-heading-md: 400 24px/1.2 var(--sf-font-display);
    --sf-type-mobile-title: 400 20px/1.28 var(--sf-font-display);
    --sf-type-mobile-body-emphasis: 600 18px/1.5 var(--sf-font-display);
    --sf-type-mobile-body: 400 18px/1.5 var(--sf-font-display);
    --sf-type-mobile-body-italic: italic 400 18px/1.5 var(--sf-font-display);
    --sf-type-mobile-caption: 400 15px/1.4 var(--sf-font-display);
    --sf-type-mobile-label-mono: 400 14px/1.3 var(--sf-font-mono);
    --sf-type-mobile-wordmark-display: 400 113px/normal var(--sf-font-script);
    --sf-type-mobile-wordmark-nav: 400 40px/36px var(--sf-font-script);
    --sf-type-mobile-product-description: italic 500 18px/1.3 var(--sf-font-display);
    --sf-type-mobile-review-name: 400 18px/1.3 var(--sf-font-sans);
    --sf-type-mobile-review-body: 400 14px/1.4 var(--sf-font-sans);
    --sf-type-mobile-review-meta: 400 12px/1.3 var(--sf-font-sans);
    --sf-type-mobile-heading-section: 500 30px/1.2 var(--sf-font-display);

    /* Letter spacing: 8% in Figma for these styles (Desktop and Mobile where both exist) */
    --sf-tracking-label-mono: 0.08em;
    --sf-tracking-product-description: 0.08em;
    --sf-tracking-review-name: 0.08em;
    --sf-tracking-review-body: 0.08em;
    --sf-tracking-review-meta: 0.08em;
    --sf-tracking-price-large: 0.08em;
    --sf-tracking-field-label: 0.08em;
    --sf-tracking-filter-heading: 0.08em;
}
