/* Grimoire — corners. The defining move is a CHAMFER, not a radius: ornate panels
   have their corners cut on a 45° bevel so a gold bracket can sit in the notch.
   Rounded shapes are reserved for item slots, medallions and keycaps. */
:root {
  --r-none: 0; /* @kind radius */
  --r-xs: 3px;        /* @kind radius */
  --r-sm: 6px;        /* @kind radius */
  --r-md: 10px;       /* @kind radius */
  --r-slot: 15px;     /* @kind radius */
  --r-lg: 18px;       /* @kind radius */
  --r-key: 7px;       /* @kind radius */
  --r-pill: 999px;    /* @kind radius */

  --chamfer: 15px;        /* @kind radius */
  --chamfer-sm: 9px;      /* @kind radius */
  --chamfer-lg: 24px;     /* @kind radius */

  /* Chamfered panel silhouette — all four corners cut. */
  --clip-panel: polygon(
    var(--chamfer) 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer),
    100% calc(100% - var(--chamfer)), calc(100% - var(--chamfer)) 100%,
    var(--chamfer) 100%, 0 calc(100% - var(--chamfer)), 0 var(--chamfer)
  ); /* @kind other */
  --clip-panel-sm: polygon(
    var(--chamfer-sm) 0, calc(100% - var(--chamfer-sm)) 0, 100% var(--chamfer-sm),
    100% calc(100% - var(--chamfer-sm)), calc(100% - var(--chamfer-sm)) 100%,
    var(--chamfer-sm) 100%, 0 calc(100% - var(--chamfer-sm)), 0 var(--chamfer-sm)
  ); /* @kind other */
  /* Left-anchored ribbon heading: square left edge, arrow-cut right edge. */
  --clip-ribbon: polygon(0 0, calc(100% - 30px) 0, 100% 50%, calc(100% - 30px) 100%, 0 100%); /* @kind other */
  /* Beveled shield used by the bottom action bar. */
  --clip-shield: polygon(
    12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 20px),
    calc(100% - 20px) 100%, 20px 100%, 0 calc(100% - 20px), 0 12px
  ); /* @kind other */

  --bw-hairline: 1px; /* @kind spacing */
  --bw-frame: 2px;      /* @kind spacing */
}
