/* The shared type, spacing and width scale (docs/redesign-hub.md, section 3).
   Custom properties only, so every theme can load it. */
:root {
  /* Type. 13px is the smallest size on the site. */
  --text-xs: .8125rem;
  --text-sm: .875rem;
  --text-md: 1rem;
  --text-lg: 1.1875rem;
  --text-xl: 1.5rem;
  --text-2xl: clamp(1.75rem, 1.35rem + 1.7vw, 2.5rem);
  --text-3xl: clamp(2.25rem, 1.5rem + 3.2vw, 3.5rem);
  --text-hero: clamp(2.5rem, 1.4rem + 4.6vw, 4.5rem);
  --leading-display: 1.05;
  --leading-heading: 1.2;
  --leading-body: 1.6;
  --track-display: -.03em;
  --track-heading: -.015em;
  --weight-body: 400;
  --weight-strong: 600;
  --weight-heading: 700;
  --measure: 65ch;
  --measure-lead: 46ch;
  --measure-heading: 18ch;
  --font-ui: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing and width. */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-window: clamp(2rem, 1rem + 4vw, 4rem);
  --space-section: clamp(4.5rem, 2rem + 6vw, 8rem);
  --pad-window: clamp(1.5rem, .5rem + 3.5vw, 3.5rem);
  --gutter: clamp(1rem, 4vw, 2rem);
  --width-text: 42rem;
  --width-page: 70rem;
  --width-media: 75rem;
  /* Layout breakpoints are 640px and 900px; media queries can't read these. */
}
