/* SiKick guide (/guide): how every function works. Near-black, lime (you) and silver (sidekick), Space Grotesk + Geist Mono.
   v3.css follows this file (lime/silver); with ?mode=light, light.css follows it and the .light rules below finish the job. */
:root {
  --bg: #05060a; --ink: #eef0f4; --ink2: #9ba1ad; --ink3: #5c626e; --ln: rgba(255,255,255,.055); --ln2: rgba(255,255,255,.1);
  --warm: #c6ff3d; --cold: #c9d2dc; --lime: #c6ff3d; --card: rgba(255,255,255,.022); --glass: rgba(14,17,25,.62);
  --sans: "Space Grotesk", ui-sans-serif, system-ui, sans-serif; --hud: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
html, body { margin: 0; }
body { --dot: rgba(255,255,255,.075); background: radial-gradient(1000px 700px at 95% 0%, color-mix(in srgb, var(--cold) 7%, transparent), transparent 60%), radial-gradient(900px 640px at -10% 30%, color-mix(in srgb, var(--lime) 5%, transparent), transparent 60%), radial-gradient(120% 90% at 55% 12%, transparent 0, color-mix(in srgb, var(--bg) 45%, transparent) 45%, var(--bg) 82%), radial-gradient(circle, var(--dot) 1px, transparent 1.3px) 0 0 / 28px 28px, var(--bg); background-attachment: fixed;
  color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
::selection { background: var(--lime); color: #0b0d07; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 6px; }

/* bar */
.gbar { position: fixed; top: 14px; left: 0; right: 0; margin: 0 auto; width: min(1240px, calc(100% - 28px)); height: 50px; z-index: 20; display: flex; align-items: center; gap: 8px;
  padding: 0 7px 0 22px; border: 1px solid var(--ln2); border-radius: 999px; background: var(--glass); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); box-shadow: 0 10px 40px -18px rgba(0,0,0,.8); }
.gbar .logo { font-size: 15px; font-weight: 600; text-decoration: none; margin-right: auto; white-space: nowrap; } .gbar .logo b { color: var(--warm); display: inline-block; width: .13em; height: .7em; margin: 0 .07em 0 .1em; background: currentColor; transform: skewX(-19deg); vertical-align: baseline; border-radius: .012em; } /* SI/KICK slash: cap-height bar on the baseline */
.gbar .logo small { font-family: var(--hud); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink3); font-weight: 400; margin-left: 12px; }
.gbar a.lk { font-family: var(--hud); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); text-decoration: none; padding: 9px 13px; border-radius: 999px; white-space: nowrap; transition: background .2s, color .2s; }
.gbar a.lk:hover { background: rgba(255,255,255,.06); color: var(--ink); }
.gbar a.mode { border: 1px solid var(--ln2); }
.gbar a.in { background: var(--ink); color: var(--bg); } .gbar a.in:hover { background: #fff; color: #000; }

/* intro */
.wrap { width: min(1240px, calc(100% - 28px)); margin: 0 auto; }
.intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: center; padding: 128px 0 40px; }
.tag { font-family: var(--hud); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink3); } .tag b { color: var(--warm); font-weight: 500; }
h1 { font-weight: 500; font-size: clamp(38px, 5vw, 68px); line-height: 1; letter-spacing: -.045em; margin: 22px 0 18px; }
h1 em { font-style: normal; color: var(--warm); } h1 span { color: var(--cold); }
.lead { color: var(--ink2); font-size: 17px; max-width: 58ch; margin: 0 0 26px; }
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ln2); max-width: 640px; }
.rules div { padding: 14px 14px 0 0; } .rules div + div { padding-left: 14px; border-left: 1px solid var(--ln); }
.rules span { display: block; font-family: var(--hud); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink3); }
.rules b { font-weight: 500; font-size: 14px; }

/* the orb (site-orb.js / site-orb.css): the app's ASCII orb, its words to the right */
.orb { position: relative; justify-self: center; margin: 0; display: grid; justify-items: center; gap: 10px; }
.orb .sko { --os: clamp(150px, 17vw, 220px); }
.orb .sko-t { position: absolute; left: calc(100% - 6px); top: 50%; translate: 0 -50%; }
/* the words wrap onto two lines (the jokes are long); with less room beside the orb they sit under it instead */
.orb .sko-t { width: 19ch; white-space: normal; letter-spacing: .04em; text-wrap: balance; }
@media (min-width: 861px) and (max-width: 1240px) {
  .orb .sko { flex-direction: column; gap: 0; }
  .orb .sko::before, .orb .sko::after { top: calc(var(--os) / 2); }
  .orb .sko-t { position: static; translate: none; width: 24ch; min-height: 2.6em; text-align: center; }
}
.orb figcaption { position: relative; z-index: 1; margin-top: 4px; text-align: center; font-family: var(--hud); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink2); }

/* index + content */
.layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding: 24px 0 80px; }
.toc { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; }
.toc h2 { font-family: var(--hud); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink3); font-weight: 400; margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--ln2); }
.toc a { display: flex; gap: 10px; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--ink2); text-decoration: none; font-size: 13.5px; transition: color .2s, border-color .2s; }
.toc a i { font-family: var(--hud); font-style: normal; font-size: 10.5px; color: var(--ink3); padding-top: 2px; min-width: 18px; }
.toc a:hover { color: var(--ink); } .toc a.on { color: var(--ink); border-left-color: var(--warm); } .toc a.on i { color: var(--warm); }

.sec { padding: 8px 0 40px; border-top: 1px solid var(--ln); }
.sec:first-child { border-top: 0; }
.sec > header { display: flex; align-items: baseline; gap: 14px; margin: 28px 0 8px; }
.sec > header i { font-family: var(--hud); font-style: normal; font-size: 11px; letter-spacing: .14em; color: var(--warm); }
.sec h2 { font-weight: 500; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.03em; line-height: 1.1; margin: 0; }
.sec > p { color: var(--ink2); max-width: 70ch; margin: 0 0 20px; }
.sub { font-family: var(--hud); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink3); font-weight: 400; margin: 28px 0 12px; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fn { border: 1px solid var(--ln2); border-radius: 16px; padding: 20px 20px 16px; background: var(--card); min-width: 0; }
.fn h3 { font-size: 17px; font-weight: 500; letter-spacing: -.015em; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fn h3 .k { margin-left: auto; }
.fn dl { margin: 0; display: grid; gap: 10px; }
.fn dt { font-family: var(--hud); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink3); }
.fn dd { margin: 2px 0 0; color: var(--ink2); font-size: 14px; overflow-wrap: anywhere; }
.fn dd b, .sec p b, .faq b { color: var(--ink); font-weight: 500; }
.fn ul { margin: 4px 0 0; padding-left: 18px; } .fn li { margin: 2px 0; }
.fn.wide { grid-column: 1 / -1; }

kbd { display: inline-block; min-width: 22px; padding: 1px 6px; border: 1px solid var(--ln2); border-bottom-width: 2px; border-radius: 6px; font-family: var(--hud); font-size: 12px; line-height: 1.5; text-align: center; color: var(--ink); background: rgba(255,255,255,.03); white-space: nowrap; }
code { font-family: var(--hud); font-size: 12.5px; color: var(--ink); background: rgba(255,255,255,.05); padding: 1px 6px; border-radius: 5px; overflow-wrap: anywhere; }
q { color: var(--ink); } q::before { content: '\201C'; } q::after { content: '\201D'; }

.note { display: flex; gap: 14px; align-items: flex-start; border: 1px solid color-mix(in srgb, var(--warm) 35%, transparent); border-radius: 14px; padding: 14px 18px; margin: 0 0 18px; background: color-mix(in srgb, var(--lime) 4%, transparent); color: var(--ink2); max-width: 78ch; }
.note::before { content: '/'; font-family: var(--hud); font-weight: 500; color: var(--warm); font-size: 18px; line-height: 1.3; }
.note b { color: var(--ink); font-weight: 500; }

.rec { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 22px; border-radius: 6px; background: #07080b; position: relative; vertical-align: middle; }
.rec::before { content: ''; width: 3px; height: 15px; background: #c6ff3d; border-radius: 2px; transform: rotate(20deg); }
.rec::after { content: ''; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #ff3b30; animation: blink 1.2s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .15; } }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-family: var(--hud); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink3); font-weight: 400; padding: 0 12px 10px 0; border-bottom: 1px solid var(--ln2); }
.tbl td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--ln); color: var(--ink2); vertical-align: top; overflow-wrap: anywhere; }
.tbl td:first-child { white-space: nowrap; color: var(--ink); }
.tbl code { white-space: nowrap; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--ln); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 30px 16px 0; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font-family: var(--hud); color: var(--warm); font-size: 16px; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin: 0 0 16px; color: var(--ink2); max-width: 70ch; }

.gfoot { border-top: 1px solid var(--ln); padding: 26px 0 40px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-family: var(--hud); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); }
.gfoot a { color: var(--ink2); text-decoration: none; } .gfoot a:hover { color: var(--ink); }
.gfoot nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* phones and small tablets */
@media (max-width: 1100px) { .cards { grid-template-columns: 1fr; } .layout { gap: 32px; grid-template-columns: 190px minmax(0, 1fr); } }
@media (max-width: 860px) {
  html { scroll-padding-top: 72px; }
  .gbar { top: 10px; width: calc(100% - 20px); padding-left: 16px; height: 46px; gap: 4px; }
  .gbar .logo small, .gbar a.back { display: none; }
  .gbar a.lk { padding: 8px 10px; }
  .wrap { width: calc(100% - 32px); }
  .intro { grid-template-columns: 1fr; padding: 92px 0 12px; gap: 20px; }
  .orb { order: -1; justify-self: start; } .orb .sko { --os: 104px; } .orb .sko-t { position: static; translate: none; width: auto; min-width: 0; } .orb figcaption { display: none; }
  .lead { font-size: 16px; }
  .rules div { padding-right: 8px; } .rules div + div { padding-left: 10px; } .rules b { font-size: 13px; }
  .layout { grid-template-columns: 1fr; gap: 8px; padding-top: 8px; }
  .toc { position: static; max-height: none; overflow: visible; }
  .toc ol { border-left: 0; display: flex; flex-wrap: wrap; gap: 6px; }
  .toc a { border: 1px solid var(--ln2); border-radius: 999px; margin: 0; padding: 5px 11px; font-size: 12.5px; }
  .toc a.on { border-color: var(--warm); }
  .fn { padding: 16px 16px 14px; }
  .tbl td:first-child { white-space: normal; }
}

/* calm motion */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .rec::after { animation: none; } }

/* light mode (?mode=light): light.css sets the tokens; these finish the panels */
.light { --card: #ffffff; --glass: rgba(255,255,255,.78); }
.light .gbar { box-shadow: 0 10px 30px -18px rgba(16,19,23,.35); }
.light .gbar a.lk:hover { background: rgba(16,19,23,.06); }
.light .gbar a.in { background: var(--ink); color: #fff; }
.light .fn { box-shadow: 0 1px 2px rgba(16,19,23,.04), 0 12px 32px -18px rgba(16,19,23,.18); }
.light kbd { background: #fff; } .light code { background: rgba(16,19,23,.05); }
.light .note { background: rgba(198,255,61,.12); border-color: rgba(74,138,0,.3); }
.light .orb figcaption { color: var(--ink3); }
body.light { --dot: rgba(16,19,23,.11); background: radial-gradient(1100px 700px at 92% -8%, rgba(102,112,127,.10), transparent 62%), radial-gradient(900px 640px at -12% 34%, rgba(198,255,61,.14), transparent 60%), radial-gradient(120% 90% at 55% 12%, transparent 0, color-mix(in srgb, var(--bg) 45%, transparent) 45%, var(--bg) 82%), radial-gradient(circle, var(--dot) 1px, transparent 1.3px) 0 0 / 28px 28px, var(--bg); background-attachment: fixed; }
.light .sec > header i, .light .toc a.on i { color: #4a8a00; }
.light .toc a.on { border-left-color: #4a8a00; }
