/* ==========================================================================
   Design tokens
   Shared by the site and the page editor.
   Colors and fonts are defined in theme.json, which WordPress turns into
   --wp--preset--* variables (and also shows in the block editor). These
   aliases give them short names. Spacing and shape tokens live here.
   To change a color or font, edit theme.json, not this file.
   ========================================================================== */
:root {
    --color-base: var(--wp--preset--color--base);
    --color-ink: var(--wp--preset--color--ink);
    --color-muted: var(--wp--preset--color--muted);
    --color-accent: var(--wp--preset--color--accent);               /* large/decorative use */
    --color-accent-strong: var(--wp--preset--color--accent-strong); /* buttons, links, small text */
    --color-gold: var(--wp--preset--color--gold);
    --color-dusk: var(--wp--preset--color--dusk);
    /* Tints are mixed from the palette with color-mix(), so they follow any
       color change made in theme.json or Customize → Colors. */
    --color-line: color-mix(in srgb, var(--color-ink) 12%, transparent);   /* dividers */
    --color-border: color-mix(in srgb, var(--color-ink) 25%, transparent); /* input and button borders */
    --color-gold-soft: color-mix(in srgb, var(--color-gold) 35%, var(--color-base)); /* "Wave band" paragraphs */
    --gradient-sky: var(--wp--preset--gradient--dusk-sky);

    --font-heading: var(--wp--preset--font-family--heading);
    --font-display: var(--wp--preset--font-family--display); /* condensed Oswald for the big name and section titles */
    --font-body: var(--wp--preset--font-family--body);
    /* Each font pairing (Customize → Fonts) sets its own heading weight,
       because not every font goes up to 800. */
    --font-heading-weight: var(--wp--custom--heading-weight, 800);
    /* How tightly headings are spaced, as a multiplier of the values tuned for
       Bricolage (1 = as designed, 0 = the font's own spacing). Set per pairing. */
    --font-heading-tracking: var(--wp--custom--heading-tracking, 1);

    --space-xs: .5rem;
    --space-s: 1rem;
    --space-m: 2rem;
    --space-l: 4rem;
    --space-xl: 6rem;
    /* On phones in landscape the notch eats into the sides; env() is 0 everywhere else. */
    --gutter: max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
    /* The giant KELSEY PFENDLER (pattern kpr/home-name), sized to fill the content width: the width
       divided by how many font sizes wide the name is in the current heading font (each pairing's
       'name_width' in inc/fonts.php), plus 3% to spare. main.js then fits it exactly; this is what
       the editor shows and what's used before the script runs. */
    --name-size: calc(min(var(--width-wide), 100vw - 2 * var(--gutter)) / (var(--wp--custom--name-width, 9.22) * 1.03));
    /* The wave rolling through the big name: two crests and two troughs of different widths and
       heights, so it reads as a natural swell, drawn three times in a row as one continuous path
       (every piece leaves at the slope the next one starts at). It's one long image that slides,
       not a repeating tile, because repeated tiles leave a faint line where they meet. As a mask
       showing the area above the wave; its middle line is at 50 of 80, the --name-rise point. */
    --name-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4320 80' preserveAspectRatio='none'%3E%3Cpath d='M0 50 Q 240 10, 480 50 Q 610 71.7, 740 50 Q 940 16.7, 1140 50 Q 1290 75, 1440 50 Q 1680 10, 1920 50 Q 2050 71.7, 2180 50 Q 2380 16.7, 2580 50 Q 2730 75, 2880 50 Q 3120 10, 3360 50 Q 3490 71.7, 3620 50 Q 3820 16.7, 4020 50 Q 4170 75, 4320 50 V0 H0Z'/%3E%3C/svg%3E");
    --name-rise: .56; /* where the band's edge (the wave's middle line) crosses the name, in font sizes from its top: two thirds down the capitals */
    /* The Records band right after the hero overlaps the bottom of the video by this much, fading
       from clear to solid ink over exactly that distance (so it's solid where the video ends), and
       starts its text at --records-text-top so the eyebrow and heading sit on the middle of the fade. */
    --records-overlap: 420px;
    --records-text-top: 110px;
    --wave-height: 80px; /* height of the wavy edges on "Wave band" paragraphs */
    /* The site's one wave curve, as a mask showing the area below it. Every homepage wave
       ("Wave band" paragraphs) is cut from this; change the curve here. */
    --wave-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 48 C 180 10, 360 10, 540 40 S 900 78, 1080 44 S 1320 12, 1440 36 V80 H0Z'/%3E%3C/svg%3E");

    --radius-s: 12px;
    --radius-l: 20px;
    --width-content: 720px;
    --width-wide: 1100px;
}
