/* ==========================================================================
   Bhurtsoft — design tokens
   Every reusable value (colors, type, spacing, radii, shadows, motion)
   lives here. style.css only references these custom properties.
   ========================================================================== */

:root {
    /* ----------------------------------------------------------------------
       Colors — "Paper & Ink"
       A light, warm paper background with near-black ink, taken from the
       black-and-white owl logo. Amber is only used as a fill behind ink
       text (badges, highlights), never as text on paper, so every
       text/background pair meets WCAG AA contrast.
       ---------------------------------------------------------------------- */
    --color-background: #f4f1ea;
    --color-background-translucent: rgb(244 241 234 / 0.9);
    --color-surface: #fbf9f4;
    --color-surface-hover: #e4ded1;
    --color-border: #d9d2c3;
    --color-border-dashed: #cfc7b6;
    --color-ink: #16161a;
    --color-ink-hover: #000000;
    --color-text: #16161a;
    --color-text-muted: #4a4740;
    --color-text-subtle: #5e5a50;
    --color-text-inverse: #f4f1ea;
    --color-link-hover: #5a4a1e;
    --color-accent: #e8a33d;
    --color-accent-contrast: #16161a;
    --color-focus: #16161a;
    --color-focus-inverse: #e8a33d;
    --color-placeholder-stripe: rgb(22 22 26 / 0.07);
    --color-backdrop: rgb(22 22 26 / 0.45);

    /* ----------------------------------------------------------------------
       Typography
       Self-hosted variable fonts (see /fonts, SIL Open Font License):
       Bricolage Grotesque for headings, Figtree for body text.
       System fonts are the fallback while the fonts load.
       ---------------------------------------------------------------------- */
    --font-family-fallback: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-family-base: "Figtree", var(--font-family-fallback);
    --font-family-heading: "Bricolage Grotesque", var(--font-family-fallback);
    --font-size-xsmall: 0.8125rem;
    --font-size-small: 0.875rem;
    --font-size-base: 1.0625rem;
    --font-size-large: 1.25rem;
    --font-size-tile: 1.5rem;
    --font-size-h1: clamp(2.75rem, 1.5rem + 4.5vw, 5.25rem);
    --font-size-h2: clamp(2rem, 1.5rem + 2vw, 2.75rem);
    --font-size-h3: 1.25rem;
    --font-size-card-title: clamp(2.5rem, 2rem + 2vw, 3.5rem);
    --font-weight-regular: 400;
    --font-weight-semibold: 600;
    --font-weight-bold: 800;
    --line-height-base: 1.6;
    --line-height-heading: 1.1;
    --line-height-display: 0.98;
    --line-height-tight: 1;
    --letter-spacing-heading: -0.03em;
    --letter-spacing-display: -0.035em;
    --letter-spacing-badge: 0.06em;
    --measure: 65ch;
    --measure-lead: 34rem;
    --underline-offset: 0.2em;
    --underline-thickness: 0.125em;

    /* ----------------------------------------------------------------------
       Spacing scale
       ---------------------------------------------------------------------- */
    --space-2xs: 0.25rem;
    --space-xs: 0.5rem;
    --space-s: 0.75rem;
    --space-m: 1rem;
    --space-l: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4.5rem;
    --space-4xl: 5.5rem;

    /* ----------------------------------------------------------------------
       Layout
       ---------------------------------------------------------------------- */
    --layout-min-height: 100vh;
    --container-max-width: 72rem;
    --container-padding: var(--space-l);
    --header-logo-size: 3.25rem;
    --menu-button-height: 2.75rem;
    --hero-art-size: min(18.75rem, 70vw);
    --hero-art-offset: 1.125rem;
    --hero-art-rotation: -3deg;
    --hero-text-basis: 32.5rem;
    --hero-art-basis: 17.5rem;
    --card-image-width-wide: 58%;
    --card-image-min-height: 20rem;
    --tile-min-width: 15rem;
    --button-min-height: 3.25rem;
    --button-icon-size: 1.125rem;
    --platform-icon-size: 1.25rem;
    --tag-icon-size: 1.2em;
    --gallery-min-width: 18rem;
    --aspect-ratio-media: 16 / 9;
    --skip-link-hidden-offset: -200%;
    --social-link-size: 2.75rem;
    --social-icon-size: 1.5rem;
    --visually-hidden-size: 0.0625rem;

    /* ----------------------------------------------------------------------
       Borders and radii
       ---------------------------------------------------------------------- */
    --border-width: 0.0625rem;
    --border-width-strong: 0.09375rem;
    --border-width-dashed: 0.125rem;
    --border-radius-small: 0.375rem;
    --border-radius-medium: 0.875rem;
    --border-radius-large: 1.25rem;
    --border-radius-xlarge: 1.5rem;
    --border-radius-art: 2.5rem;
    --border-radius-pill: 62.5rem;
    --focus-outline-width: 0.1875rem;
    --focus-outline-offset: 0.1875rem;

    /* ----------------------------------------------------------------------
       Shadows and effects
       ---------------------------------------------------------------------- */
    --shadow-card: 0 0.5rem 1.5rem rgb(22 22 26 / 0.06);
    --shadow-card-hover: 0.5rem 0.5rem 0 var(--color-accent);
    --shadow-menu: 0 1rem 2rem rgb(22 22 26 / 0.15);
    --header-blur: 0.5rem;
    --placeholder-stripe-size: 0.75rem;
    --placeholder-stripe-gap: 1.5rem;

    /* ----------------------------------------------------------------------
       Stacking order
       ---------------------------------------------------------------------- */
    --z-index-card-action: 1;
    --z-index-header: 10;
    --z-index-skip-link: 20;

    /* ----------------------------------------------------------------------
       Motion
       ---------------------------------------------------------------------- */
    --transition-duration: 150ms;
    --transition-timing: ease-in-out;
    --hover-lift: -0.25rem;
    --menu-slide-offset: -1rem;

    /* Respect users who prefer less motion: disable transitions and lifts */
    @media (prefers-reduced-motion: reduce) {
        --transition-duration: 0ms;
        --hover-lift: 0;
        --menu-slide-offset: 0;
    }
}
