/* Borders, radii, shadows, grain. Leaf is a hairline-and-rule system:
   corners are square, elevation is drawn, not blurred. */
:root{
  --radius-none:0px;
  --radius-xs:2px;      /* the only radius used on most controls */
  --radius-sm:4px;
  --radius-pill:999px;  /* platform chips + filter pills only */

  --border-width-hair:1px;
  --border-width-strong:2px;
  --border-hair:1px solid var(--border-hairline);
  --border-ink:1px solid var(--border-strong);

  /* Elevation is an offset hard shadow — no blur, no colour tint. */
  --shadow-none:none;
  --shadow-offset:3px 3px 0 var(--leaf-ink);
  --shadow-offset-lg:6px 6px 0 var(--leaf-ink);
  --shadow-offset-accent:3px 3px 0 var(--leaf-lime-deep);
  --shadow-inset-hair:inset 0 0 0 1px var(--border-hairline);
  --shadow-overlay:0 24px 64px rgba(18,20,14,.28);

  --focus-ring:0 0 0 2px var(--surface-page),0 0 0 4px var(--state-focus-ring);

  /* Retro-digital textures */
  --grid-line:rgba(18,20,14,.07); /* @kind other */
  --texture-grid:repeating-linear-gradient(to right,var(--grid-line) 0 1px,transparent 1px 64px),repeating-linear-gradient(to bottom,var(--grid-line) 0 1px,transparent 1px 64px); /* @kind other */
  --texture-scanline:repeating-linear-gradient(to bottom,rgba(18,20,14,.045) 0 1px,transparent 1px 4px); /* @kind other */
  --texture-hatch:repeating-linear-gradient(45deg,var(--leaf-rule) 0 1px,transparent 1px 7px); /* @kind other */

  --scrim-image:linear-gradient(180deg,rgba(18,20,14,.72) 0%,rgba(18,20,14,.28) 46%,rgba(18,20,14,.86) 100%); /* @kind other */
  --scrim-image-light:linear-gradient(180deg,rgba(244,243,236,.62) 0%,rgba(244,243,236,.78) 44%,rgba(244,243,236,.96) 100%); /* @kind other */
  --grid-line-light:rgba(18,20,14,.09); /* @kind other */
  --texture-grid-light:repeating-linear-gradient(to right,rgba(18,20,14,.09) 0 1px,transparent 1px 64px),repeating-linear-gradient(to bottom,rgba(18,20,14,.09) 0 1px,transparent 1px 64px); /* @kind other */
  --scrim-bottom:linear-gradient(180deg,transparent 0%,rgba(18,20,14,.85) 100%); /* @kind other */
  --image-filter:saturate(.82) contrast(1.04); /* @kind other */
  --image-filter-duotone:grayscale(1) contrast(1.12); /* @kind other */
}
