/* wz-foundations */
/* Design foundations derived from the theme. Do not hand-edit: apply_design_foundations rewrites this whole block. */

:root {
    --wz-space-2xs: clamp(8px, 0.5rem + 0.2vw, 12px);
    --wz-space-xs: clamp(12px, 0.75rem + 0.3vw, 16px);
    --wz-space-s: clamp(16px, 1rem + 0.5vw, 24px);
    --wz-space-m: clamp(24px, 1.5rem + 0.8vw, 32px);
    --wz-space-l: clamp(32px, 2rem + 1.2vw, 48px);
    --wz-space-xl: clamp(48px, 3rem + 2vw, 72px);
    --wz-space-2xl: clamp(64px, 4rem + 3vw, 96px);
    --wz-space-3xl: clamp(80px, 5rem + 4vw, 128px);
    --wz-flow: 0.9em;
    --wz-radius-s: 2px;
    --wz-radius-m: 4px;
    --wz-radius-l: 6px;
    --wz-surface: rgba(0, 0, 0, .035);
    --wz-surface-high: rgba(0, 0, 0, .06);
    --wz-border: rgba(0, 0, 0, .14);
    --wz-text-muted: rgba(0, 0, 0, .62);
    --wz-ink: #14161a;
    --wz-ink-on: #f4f2f0;
    --wz-elev-1: 0 1px 2px rgba(17, 17, 17, .06), 0 2px 6px rgba(17, 17, 17, .05);
    --wz-elev-2: 0 1px 2px rgba(17, 17, 17, .07), 0 4px 12px rgba(17, 17, 17, .07), 0 12px 28px rgba(17, 17, 17, .06);
}

/* Vertical rhythm between sections. The theme ships 20/30/40/50 px, below the 64-96 px
   a content section needs; margin "none" stays untouched (it is glued on purpose). */
.body__wrapper .wiziblocks__item.small { margin-bottom: var(--wz-space-l); }
.body__wrapper .wiziblocks__item.medium { margin-bottom: var(--wz-space-2xl); }
.body__wrapper .wiziblocks__item.large { margin-bottom: var(--wz-space-3xl); }
.body__wrapper .wiziblocks__item:not(.small):not(.medium):not(.large):not(.none) { margin-bottom: var(--wz-space-2xl); }

/* Flow inside a block. The theme sets margin:0 and padding:0 on headings and paragraphs,
   so two paragraphs touch. The class is repeated to win over the theme rule without !important. */
body.body .wiziblocks__item.wiziblocks__item p + p { margin-top: var(--wz-flow); }
body.body .wiziblocks__item.wiziblocks__item h2 + p,
body.body .wiziblocks__item.wiziblocks__item h3 + p,
body.body .wiziblocks__item.wiziblocks__item h4 + p { margin-top: var(--wz-space-2xs); }
body.body .wiziblocks__item.wiziblocks__item p + h2,
body.body .wiziblocks__item.wiziblocks__item p + h3 { margin-top: var(--wz-space-m); }

/* Display voice "editorial": Titles become editorial: up to 96 px, set tight, the way a magazine opens a story. */
/* The theme caps a title at 48 px and font.titleSize does nothing, so the size lives here. */
body.body .wiziblocks__item.wiziblocks__item h1,
body.body .wiziblocks__item.wiziblocks__item h2 {
    font-weight: 500;
    line-height: 1.0;
    letter-spacing: -0.02em;
    text-transform: none;
}
body.body .wiziblocks__item.wiziblocks__item h1 { font-size: clamp(2.5rem, 1rem + 5vw, 6rem); }
body.body .wiziblocks__item.wiziblocks__item h2 { font-size: clamp(2rem, 1rem + 3.2vw, 4rem); }

/* Line-height: generous on reading sizes (the theme sets 1.4 on titles and text alike). */
body.body .wiziblocks__item.wiziblocks__item h3 { line-height: 1.2; }
body.body .wiziblocks__item.wiziblocks__item p,
body.body .wiziblocks__item.wiziblocks__item li { line-height: 1.55; }

/* Measure: 45-75 characters per line. A one-column text block spans the whole container otherwise. */
body.body .wiziblocks__item.wiziblocks__item .wizi-txt--one p { max-width: 68ch; margin-inline: auto; }

/* Surface strategy "alternate": Sections alternate between the page background and a tinted surface: the page reads in chapters. */
/* Hang these on a section with class_custom. The colour goes on __maxWidth: the theme repaints */
/* the page background there, so painting .wiziblocks__item alone shows only in the gutters. */
.wiziblocks__item.wz-alt .wiziblocks__item__maxWidth {
    background-color: var(--wz-surface);
    padding-block: var(--wz-space-l);
}

/* Elevation: layered shadows. A single shadow reads as cheap; the theme ships one at 75% opacity. */
body.body .wiziBtn:hover { box-shadow: var(--wz-elev-2); }

/* Visible focus ring (WCAG 2.4.7). Keyboard only: it never shows on a mouse click. */
body.body a:focus-visible,
body.body button:focus-visible,
body.body input:focus-visible,
body.body select:focus-visible,
body.body textarea:focus-visible,
body.body [tabindex]:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: var(--wz-radius-s);
}

/* Every header variant pins itself on mobile, so an anchor or a keyboard focus
   lands under it without this (WCAG 2.4.11 Focus Not Obscured). Values measured
   in a browser, not guessed: docs/tools/header-sticky-probe.mjs. */
html { scroll-padding-top: 70px; }
/* This variant leaves the top free on a desktop. */
@media (min-width: 1024px) { html { scroll-padding-top: 0; } }

/* /wz-foundations */

/* wz-tokens */
/* Design tokens measured on a reference and mapped onto this shop. Do not hand-edit:
   apply_design_tokens rewrites this whole block. It loads AFTER wz-foundations and overrides it. */

/* The foundations read these: redefining them reconfigures the shop without fighting a cascade. */
:root {
    --wz-space-2xs: 8px;
    --wz-space-xs: 16px;
    --wz-space-s: 24px;
    --wz-space-m: 32px;
    --wz-space-l: 48px;
    --wz-space-xl: 80px;
    --wz-space-2xl: 120px;
    --wz-space-3xl: 160px;
    --wz-space-2xl: 88px;
    --wz-radius-m: 8px;
    --wz-radius-s: 4px;
    --wz-surface: #eef2f1;
    --wz-border: #cfd8d6;
    --wz-elev-1: none;
    --wz-elev-2: none;
}

/* Type scale measured on the reference, in the units it uses. */
body.body .wiziblocks__item.wiziblocks__item h1 { font-size: 56px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 400; }
body.body .wiziblocks__item.wiziblocks__item h2 { font-size: 36px; line-height: 1.15; letter-spacing: -0.01em; font-weight: 400; }
body.body .wiziblocks__item.wiziblocks__item h3 { font-size: 22px; line-height: 1.3; font-weight: 600; }
body.body .wiziblocks__item.wiziblocks__item p,
body.body .wiziblocks__item.wiziblocks__item li { font-size: 16px; line-height: 1.65; font-weight: 400; }

/* Cards, images and blocks: the theme has no radius option for these. */
body.body .prod .prod__article,
body.body .prod .prod__img,
body.body .wiziblocks__item.wiziblocks__item img { border-radius: 8px; }
/* Fields: the theme styles them itself. */
body.body input[type="text"],
body.body input[type="email"],
body.body input[type="search"],
body.body select,
body.body textarea { border-radius: 4px; }
/* The theme ships one shadow of its own on the button hover. */
body.body .wiziBtn,
body.body .wiziBtn:hover { box-shadow: none; }

/* /wz-tokens */
