/* ─────────────────────────────────────────────────────────────────────────────
   Shtern — typefaces and the fixed part of the scale.
   Colours and font stacks live in /assets/theme.css, which is generated from
   the database and editable in the console.
   ───────────────────────────────────────────────────────────────────────────── */

/* Served from this origin. No third party sees a request for a page of this
   site, which is also what allows font-src 'self' in the security policy. */

@font-face {
  font-family: "Italiana";
  src: url("../fonts/italiana-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-latin-italic-var.woff2") format("woff2-variations");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* The boutique's two families, both under the SIL Open Font License: a Hebrew
   and Latin serif for titles, and the sans the reference boutique sets its
   Hebrew in. The Hebrew files carry only the Hebrew block, so a page in one
   script never downloads the other. */
@font-face {
  font-family: "Frank Ruhl Libre";
  src: url("../fonts/frank-ruhl-libre-hebrew-var.woff2") format("woff2-variations");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
  font-family: "Frank Ruhl Libre";
  src: url("../fonts/frank-ruhl-libre-latin-var.woff2") format("woff2-variations");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans Hebrew";
  src: url("../fonts/plex-sans-hebrew-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
  font-family: "IBM Plex Sans Hebrew";
  src: url("../fonts/plex-sans-hebrew-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
  font-family: "IBM Plex Sans Hebrew";
  src: url("../fonts/plex-sans-hebrew-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  /* A fluid scale. Every step keeps a rem component, so the whole page still
     responds to the reader's own font-size setting — a viewport-only scale
     would ignore it, and that is a failure of WCAG 1.4.4. */
  --step--1: clamp(0.78rem, 0.76rem + 0.10vw, 0.84rem);
  --step-0:  clamp(0.95rem, 0.91rem + 0.18vw, 1.06rem);
  --step-1:  clamp(1.20rem, 1.10rem + 0.45vw, 1.50rem);
  --step-2:  clamp(1.65rem, 1.40rem + 1.10vw, 2.60rem);
  --step-3:  clamp(2.20rem, 1.70rem + 2.30vw, 4.00rem);
  --step-4:  clamp(3.20rem, 1.90rem + 6.00vw, 8.50rem);

  /* The boutique's fixed sizes for labels, captions and running text. They
     are rems for the same reason, so the accessibility menu's text size
     reaches them. The smallest is 12px at the default size: Hebrew letters
     stand lower than Latin capitals at the same size, and anything smaller
     stops reading as type. */
  --text-2xs:  0.75rem;
  --text-xs:   0.8125rem;
  --text-sm:   0.875rem;
  --text-md:   0.9375rem;
  --text-base: 1rem;

  /* Space is the material this page is made of, so the vertical rhythm is the
     widest step in the scale and grows further than any other. */
  --gutter:  clamp(1.25rem, 0.60rem + 3.00vw, 4.50rem);
  --rhythm:  clamp(5rem, 3.00rem + 6.00vw, 11rem);
  --gap:     clamp(1rem, 0.70rem + 1.20vw, 1.80rem);

  --shell-max: 1440px;
  --touch: 44px;
  /* What a button is given is --touch. This is the floor WCAG 2.2 sets for a
     standalone pointer target, and what a small control may not go below. */
  --touch-min: 24px;

  /* The corner the page's floating controls stand in: the accessibility
     trigger sits on the margin and the pause control stacks above it. The
     cookie sheet that covers the foot of the page keeps that column clear, so
     the measurements are written here once instead of at each of the three. */
  --corner-inset: clamp(0.75rem, 2vw, 1.5rem);
  --corner-trigger: 3.4rem;
  --corner-gap: 0.6rem;
  --corner-toggle: 2.25rem;

  /* The height of the sticky header, republished by the experience script once
     it has measured the real thing. Anchored headings clear it; the film pins
     beneath it. */
  --nav-height: 5.5rem;

  /* One easing and three durations for the whole site. The curve is symmetric
     and shallow: motion here confirms an action, it does not perform. */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.4, 0, 0.5, 1);
  --speed-fast: 180ms;
  --speed: 320ms;
  --speed-slow: 600ms;
}
