/* Site-wide smooth corners. Unsupported browsers keep their border-radius.
   Circular and pill-shaped components explicitly use corner-shape: round. */
:root {
  --site-corner-shape: squircle;
  --site-corner-radius-scale: 1;
}

@supports (corner-shape: squircle) {
  :root {
    /* Match the old round corner's diagonal inset with the squircle curve. */
    --site-corner-radius-scale: 1.84;
  }
}

*,
*::before,
*::after {
  corner-shape: var(--site-corner-shape);
}
