/* Kionjo docs. SeedeXR brand family (baraza-releases, paintball255-releases):
   dark ground, Space Grotesk headings, Darker Grotesque body, rounded surface cards.
   Kionjo accent = the record red of its icon and window (Tools~/make_icons.py, KionjoWindow.uss). */
:root{
  --bg:#121212; --surface:#1b1b1b; --surface-2:#222222;
  --text:#F5F5F5; --muted:#C6C6C6; --dim:#9A9A9A; --border:#2c2c2c;
  --accent:#E5534B;      /* dark skin Record red */
  --accent-deep:#D9433B; /* icon dot */
  --orange:#E96117;      /* SeedeXR brand orange, end of the rule */
  --link:#F28A81;        /* accent lifted for small text contrast on the dark ground */
  --code-bg:#0c0c0c; --slot-a:#191919; --slot-b:#1d1d1d; --slot-line:#3a3a3a;
  --head:"Space Grotesk",system-ui,sans-serif;
  --body:"Darker Grotesque",system-ui,sans-serif;
  --mono:ui-monospace,"Cascadia Mono",Consolas,"Liberation Mono",monospace;
}
*{box-sizing:border-box}
html{scroll-padding-top:16px}
html,body{margin:0}
body{background:var(--bg);color:var(--text);font-family:var(--body);font-size:1.1875rem;line-height:1.5;
     -webkit-font-smoothing:antialiased;overflow-wrap:break-word}
a{color:var(--link);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
a:hover{color:#fff}
:focus-visible{outline:2px solid var(--link);outline-offset:3px;border-radius:4px}
.skip{position:absolute;left:12px;top:-60px;background:var(--accent);color:#121212;padding:8px 14px;
     border-radius:8px;font-family:var(--head);font-weight:700;z-index:10;text-decoration:none}
.skip:focus{top:12px}

/* Header: logo, divider, title, gradient rule */
header.top{background:var(--bg);border-bottom:1px solid var(--border);padding:34px 20px 26px;position:relative}
header.top::after{content:"";position:absolute;left:0;bottom:-1px;height:3px;width:100%;
     background:linear-gradient(90deg,var(--accent),var(--orange))}
.top-inner{max-width:880px;margin:0 auto;display:flex;align-items:center;gap:22px;flex-wrap:wrap}
.top .seede{height:46px;width:auto}
.top .divider{width:1px;height:40px;background:var(--border)}
.top .brand{display:flex;align-items:center;gap:12px;color:var(--text);text-decoration:none}
.top .mark{width:40px;height:40px}
.top .title{display:block;font-family:var(--head);font-size:1.5rem;margin:0;font-weight:700;letter-spacing:-.02em;line-height:1.2}
.top .sub{display:block;margin:3px 0 0;color:var(--muted);font-size:1rem;line-height:1.3}

/* Nav */
nav.site{border-bottom:1px solid var(--border);background:var(--bg)}
nav.site ul{max-width:880px;margin:0 auto;padding:6px 14px;list-style:none;display:flex;flex-wrap:wrap;gap:2px 4px}
nav.site li{margin:0}
nav.site a{display:inline-flex;align-items:center;min-height:44px;padding:0 10px;color:var(--muted);text-decoration:none;
     font-family:var(--head);font-size:.95rem;border-radius:8px}
nav.site a:hover{color:var(--text);background:var(--surface)}
nav.site a[aria-current="page"]{color:var(--text);box-shadow:inset 0 -2px 0 var(--accent)}
nav.site .gh{margin-left:auto}

/* Content */
main{max-width:880px;margin:0 auto;padding:30px 20px 70px}
h1,h2,h3,h4{font-family:var(--head);letter-spacing:-.015em;line-height:1.25;margin:0}
h1{font-size:2rem;margin:4px 0 10px}
h2{font-size:1.45rem;margin:0 0 10px}
h3{font-size:1.1rem;margin:22px 0 6px}
h4{font-size:1rem;margin:16px 0 4px;color:var(--muted)}
p{margin:8px 0}
.lead{font-size:1.25rem;color:var(--muted);max-width:44em}
.muted{color:var(--muted)}
ul,ol{margin:6px 0 8px;padding-left:24px} li{margin:5px 0}
li::marker{color:var(--dim)}
ol.steps{counter-reset:step;list-style:none;padding-left:0}
ol.steps>li{counter-increment:step;position:relative;padding-left:42px;margin:12px 0}
ol.steps>li::before{content:counter(step);position:absolute;left:0;top:1px;width:28px;height:28px;border-radius:50%;
     background:var(--surface-2);border:1px solid var(--border);color:var(--text);font-family:var(--head);
     font-size:.85rem;font-weight:700;display:grid;place-items:center}
strong{font-weight:700}
.ui{font-family:var(--head);font-size:.92em;font-weight:500;color:var(--text)}
code,kbd{font-family:var(--mono);font-weight:400;font-size:.8em;background:var(--surface-2);border:1px solid var(--border);
     border-radius:5px;padding:1px 5px;overflow-wrap:anywhere}
kbd{border-bottom-width:2px}
pre{background:var(--code-bg);border:1px solid var(--border);border-radius:10px;padding:14px 16px;overflow-x:auto;
     margin:10px 0;line-height:1.45}
pre code{background:none;border:0;padding:0;font-size:.8rem;white-space:pre-wrap;overflow-wrap:anywhere}

/* Cards */
.card{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:24px 26px;margin:22px 0}
.card>h2:first-child,.card>.eyebrow+h2{padding-bottom:12px;border-bottom:1px solid var(--border);margin-bottom:10px}
.eyebrow{font-family:var(--head);font-size:.72rem;font-weight:700;letter-spacing:.8px;text-transform:uppercase;
     color:var(--accent);margin:0 0 6px}
.know{border-left:3px solid var(--accent);background:var(--surface-2);border-radius:0 10px 10px 0;padding:10px 14px;margin:14px 0 4px}
.know>strong:first-child{font-family:var(--head);font-size:.8rem;letter-spacing:.6px;text-transform:uppercase;color:var(--muted);display:block}
.note{border:1px solid var(--border);border-radius:10px;padding:10px 14px;margin:12px 0;color:var(--muted)}

/* Goal grid on the home page */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px;margin:14px 0 0;padding:0;list-style:none}
.grid li{margin:0}
.tile{display:block;height:100%;background:var(--surface-2);border:1px solid var(--border);border-radius:12px;padding:14px 16px;
     color:var(--text);text-decoration:none;transition:border-color .15s ease}
.tile:hover{border-color:var(--accent);color:var(--text)}
.tile strong{font-family:var(--head);font-size:1rem;display:block;line-height:1.3}
.tile span{color:var(--muted);font-size:1rem;line-height:1.35;display:block;margin-top:4px}

/* Flow strip */
.flow{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:14px 0 4px;padding:0;list-style:none;counter-reset:f}
.flow li{margin:0;background:var(--surface-2);border:1px solid var(--border);border-radius:12px;padding:12px 14px;counter-increment:f}
.flow li::before{content:counter(f);font-family:var(--head);font-weight:700;color:var(--accent);margin-right:6px}
.flow strong{font-family:var(--head)}
.flow span{display:block;color:var(--muted);font-size:1rem;line-height:1.35;margin-top:2px}
@media (max-width:720px){ .flow{grid-template-columns:1fr 1fr} }

/* Tables */
.table-wrap{overflow-x:auto;margin:10px 0;border:1px solid var(--border);border-radius:10px}
table{border-collapse:collapse;width:100%;font-size:1rem;line-height:1.4}
th,td{text-align:left;vertical-align:top;padding:9px 12px;border-bottom:1px solid var(--border)}
th{font-family:var(--head);font-size:.85rem;font-weight:700;color:var(--muted);background:var(--surface-2)}
tr:last-child td{border-bottom:0}
td code{white-space:normal}

/* Screenshot slots: a neutral box with the caption until the real image lands */
figure.shot{margin:16px 0 8px}
figure.shot .frame{display:grid;min-height:11rem;border:1px dashed var(--slot-line);border-radius:10px;overflow:hidden;
     background:repeating-linear-gradient(135deg,var(--slot-a) 0 12px,var(--slot-b) 12px 24px)}
figure.shot .frame:has(img:not([hidden])){border-style:solid;border-color:var(--border)}
figure.shot .frame::before{content:"Screenshot coming";grid-area:1/1;place-self:center;font-family:var(--head);
     font-size:.8rem;letter-spacing:.6px;text-transform:uppercase;color:var(--dim)}
figure.shot img{grid-area:1/1;display:block;width:100%;height:auto;position:relative;background:var(--surface)}
figure.shot img[hidden]{display:none}
figure.shot figcaption{color:var(--muted);font-size:.95rem;margin-top:6px;line-height:1.35}

/* Footer */
footer{max-width:880px;margin:0 auto;padding:26px 20px 60px;color:var(--dim);font-size:.9rem;
     border-top:1px solid var(--border);display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;
     font-family:var(--head);align-items:center}
footer .brand{color:var(--muted)}
footer a{color:var(--muted)}

@media (max-width:520px){
  .top .divider{display:none}
  .top-inner{gap:14px}
  .top .seede{height:38px}
  h1{font-size:1.65rem}
  .card{padding:18px 16px}
  nav.site .gh{margin-left:0}
  ol.steps>li{padding-left:38px}
}
@media (prefers-reduced-motion:reduce){ *{transition:none!important} }
@media (max-width:520px){ th,td{padding:8px 9px} table{font-size:.95rem} }
