/* ============================================================
   Themes G — 1-bit dither
   Two colours only. Art comes from css/dither-assets.css
   (generated by scripts/dither.py).
   ============================================================ */

.s-dither {
  --ink: #121212; --paper: #eceae4;
  --bg: var(--paper); --fg: var(--ink); --muted: var(--ink); --accent: var(--ink); --on-accent: var(--paper);
  --surface: var(--paper); --line: var(--ink); --r: 0; --icon-sw: 2;
  --font: "IBM Plex Mono", ui-monospace, monospace; --display: "Jersey 10", "IBM Plex Mono", monospace;
  --d25: repeating-conic-gradient(var(--ink) 0 25%, transparent 0 100%) 0 0 / 4px 4px;
  --d50: repeating-conic-gradient(var(--ink) 0 25%, transparent 0 50%) 0 0 / 4px 4px;
  --d75: repeating-conic-gradient(transparent 0 25%, var(--ink) 0 100%) 0 0 / 4px 4px;
  --pin: repeating-linear-gradient(var(--ink) 0 2px, transparent 2px 4px);
  font-size: 15px; -webkit-font-smoothing: none;
  image-rendering: pixelated;
}
.s-dither .sp-bg i:nth-child(1) { display: block; left: 0; right: 0; bottom: 0; height: 192px; background: var(--dither-ramp) 0 0 / 16px 192px repeat-x; image-rendering: pixelated; }
.s-dither .sp-nav { margin: calc(var(--pad) * -1) calc(var(--pad) * -1) 0; padding: 8px var(--pad); border-bottom: 2px solid var(--ink); background: var(--paper); }
.s-dither .sp-logo { font-size: 26px; font-weight: 400; }
.s-dither .sp-mark { width: 20px; height: 20px; border: 2px solid var(--ink); background: var(--d50); }
.s-dither .sp-links { gap: 22px; }
.s-dither .sp-kicker { padding: 3px 8px; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; }
.s-dither .sp-title { font-weight: 400; font-size: clamp(48px, 9.4cqi, 112px); line-height: .9; letter-spacing: .01em; }
.s-dither .t2 { color: transparent; background: var(--d50); -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 1.5px var(--ink); }
.s-dither .sp-lede { color: var(--ink); font-size: 16px; line-height: 1.55; }
.s-dither .sp-btn { padding: .5em 1.4em; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 15px; font-weight: 400; transition: none; }
.s-dither .sp-btn--primary { box-shadow: 0 0 0 2px var(--paper), 0 0 0 5px var(--ink); margin: 3px; }
.s-dither .sp-btn--secondary { box-shadow: none; }
.s-dither .sp-btn:hover { background: var(--d25), var(--paper); }
.s-dither .sp-btn:active { background: var(--ink); color: var(--paper); }
.s-dither .sp-nav .sp-btn { padding: .3em 1em; font-size: 13px; }
.s-dither .sp-art { border: 2px solid var(--ink); background: var(--dither-planet) center / cover no-repeat, var(--ink); image-rendering: pixelated; box-shadow: 4px 4px 0 var(--ink); }
.s-dither .sp-art::before { content: "orbit.pic"; position: absolute; left: 0; right: 0; top: 0; z-index: 1; height: 24px; display: grid; place-items: center; border-bottom: 2px solid var(--ink); font: 500 12px/1 "IBM Plex Mono", monospace; background: linear-gradient(var(--paper), var(--paper)) center / 104px 100% no-repeat, var(--pin) 0 5px / 100% 14px no-repeat, var(--paper); }
.s-dither .sp-art::after { content: ""; position: absolute; left: 10px; top: 5px; z-index: 2; width: 14px; height: 14px; border: 2px solid var(--ink); background: var(--paper); }
.s-dither .sp-cards { gap: 18px; }
.s-dither .sp-card { padding: 38px 16px 18px; border: 2px solid var(--ink); background: var(--paper); box-shadow: 3px 3px 0 var(--ink); }
.s-dither .sp-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 22px; border-bottom: 2px solid var(--ink); background: var(--d25), var(--paper); }
.s-dither .sp-card:nth-child(2)::before { background: var(--d50), var(--paper); }
.s-dither .sp-card:nth-child(3)::before { background: var(--d75), var(--paper); }
.s-dither .sp-card::after { position: absolute; right: 6px; top: 3px; padding: 0 5px; background: var(--paper); font: 500 11px/16px "IBM Plex Mono", monospace; }
.s-dither .sp-card:nth-child(1)::after { content: "25%"; }
.s-dither .sp-card:nth-child(2)::after { content: "50%"; }
.s-dither .sp-card:nth-child(3)::after { content: "75%"; }
.s-dither .sp-card h3 { font-size: 28px; font-weight: 400; line-height: 1; }
.s-dither .sp-card p { color: var(--ink); font-size: 14px; }
.s-dither .sp-icon { border: 2px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink); }
.s-dither .sp-panel { border: 2px solid var(--ink); background: var(--paper); box-shadow: 4px 4px 0 var(--ink); }
.s-dither .sp-label { font-family: var(--display); font-size: 24px; font-weight: 400; }
.s-dither .sp-input { border: 2px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink); font-size: 15px; }
.s-dither .sp-input:focus { background: var(--d25), var(--paper); }
.s-dither .sp-controls { font-size: 14px; }
.s-dither .sp-switch { width: 16px; height: 16px; border-radius: 0; background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); }
.s-dither .sp-switch::after { inset: 0; width: auto; height: auto; border-radius: 0; box-shadow: none; opacity: 0; background: linear-gradient(45deg, transparent 43%, var(--ink) 43% 57%, transparent 57%), linear-gradient(-45deg, transparent 43%, var(--ink) 43% 57%, transparent 57%); }
.s-dither .is-on .sp-switch { background: var(--paper); }
.s-dither .is-on .sp-switch::after { opacity: 1; transform: none; }
.s-dither .sp-bar { height: 16px; border-radius: 0; background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); }
.s-dither .sp-bar > span { top: 2px; bottom: 2px; left: 2px; border-radius: 0; background: var(--d50); }
.s-dither .sp-chips span { border: 2px solid var(--ink); border-radius: 8px; background: var(--paper); color: var(--ink); font-size: 13px; }
