/* Astra Shell — site stylesheet
   One font, one accent, flat surfaces. No blur, no glow, no gradients. */

:root{
  --bg:      #101112;
  --panel:   #161718;
  --line:    #2b2c2e;
  --text:    #e7e5df;
  --dim:     #8c8f92;
  --faint:   #5b5e61;

  /* theme accents, named after the real themes/ files in the repo */
  --default:  #4fb3a5;
  --crimson:  #c1443d;
  --matrix:   #3fb86f;
  --midnight: #5c7cfa;
  --obsidian: #9d8bd6;

  --accent: var(--default);
  --mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}
a{ color: inherit; }
code, .mono{ font-family: var(--mono); }
::selection{ background: var(--accent); color: #111; }
:focus-visible{ outline: 1px solid var(--accent); outline-offset: 2px; }

img{ max-width:100%; display:block; }

.wrap{
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- header / nav ---- */
header{
  border-bottom: 1px solid var(--line);
}
nav{
  max-width: 700px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 14px;
}
.brand{ font-weight: 700; color: var(--text); }
.brand span{ color: var(--faint); }
.navlist{ display:flex; gap: 18px; }
.navlist a{ color: var(--dim); }
.navlist a:hover, .navlist a.here{ color: var(--text); }
.navlist a.here{ text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--accent); }

/* ---- page basics ---- */
main{ padding: 48px 0 80px; }
h1{
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 14px;
}
h2{
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}
.lede{
  color: var(--dim);
  font-size: 16px;
  max-width: 56ch;
  margin: 0 0 6px;
}
.kicker{
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  text-transform: lowercase;
  margin-bottom: 10px;
}
p{ margin: 0 0 14px; color: var(--text); }
p.dim{ color: var(--dim); }

hr{
  border: none;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

.section{ margin: 40px 0; }

/* ---- little status line, used on the home page ---- */
.status{
  font-family: var(--mono);
  font-size: 13px;
  color: var(--faint);
  border: 1px solid var(--line);
  display: inline-block;
  padding: 5px 10px;
  margin-bottom: 22px;
}
.status b{ color: var(--accent); }

/* ---- terminal block ---- */
.term{
  border: 1px solid var(--line);
  background: var(--panel);
  margin: 26px 0;
}
.term-bar{
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}
.term-body{
  font-family: var(--mono);
  font-size: 14px;
  padding: 16px 14px;
  color: var(--dim);
}
.term-body .row{ white-space: pre-wrap; margin-bottom: 4px; }
.g{ color: var(--accent); }
.w{ color: var(--text); }
.cursor{
  display:inline-block; width:7px; height:14px; background: var(--accent);
  vertical-align: -2px; margin-left: 2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink{ 50%{ opacity:0; } }

/* ---- plain lists (features etc) ---- */
dl.plain{ margin: 0; }
dl.plain dt{
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text);
  margin-top: 20px;
}
dl.plain dt::before{
  content: "· ";
  color: var(--accent);
}
dl.plain dd{
  margin: 4px 0 0 14px;
  color: var(--dim);
  font-size: 14.5px;
}

/* ---- theme switcher ---- */
.swatches{ display:flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.swatch{
  font-family: var(--mono);
  font-size: 13px;
  color: var(--dim);
  background: none;
  border: 1px solid var(--line);
  padding: 6px 12px;
  cursor: pointer;
  display: flex; align-items: center; gap: 7px;
}
.swatch:hover{ color: var(--text); border-color: var(--faint); }
.swatch.active{ color: var(--text); border-color: var(--sw); }
.swatch.off{ opacity: .45; cursor: default; }
.swatch.off:hover{ color: var(--dim); border-color: var(--line); }
.dot{ width: 8px; height: 8px; border-radius: 50%; }
.theme-line{ font-family: var(--mono); font-size: 13px; color: var(--faint); margin-top: 10px; }

/* ---- tree ---- */
.tree{
  font-family: var(--mono);
  font-size: 13.5px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 18px 20px;
}
.tree .root{ color: var(--faint); margin-bottom: 6px; }
.tree .row{ display:flex; gap: 16px; padding: 4px 0; }
.tree .path{ color: var(--accent); white-space: nowrap; }
.tree .desc{ color: var(--dim); }

/* ---- install steps ---- */
.step{ margin: 22px 0; }
.step .n{ font-family: var(--mono); font-size: 12px; color: var(--accent); margin-bottom: 4px; }
.codebox{
  font-family: var(--mono);
  font-size: 13px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
}
.codebox code{ color: #cfe9e2; white-space: pre; }
.copy{
  background: none; border: none; color: var(--faint); cursor: pointer;
  font-family: var(--mono); font-size: 12px; flex-shrink: 0;
}
.copy:hover{ color: var(--accent); }

/* ---- buttons / links ---- */
.btn{
  font-family: var(--mono);
  font-size: 14px;
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line);
  margin-right: 10px;
}
.btn:hover{ border-color: var(--accent); color: var(--accent); }
.btn.primary{ background: var(--accent); border-color: var(--accent); color: #101112; }
.btn.primary:hover{ color: #101112; opacity: .9; }

.pagenav{
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display:flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--dim);
}
.pagenav a:hover{ color: var(--accent); }

/* ---- footer ---- */
footer{
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
}
.foot-row{
  max-width: 700px; margin: 0 auto; padding: 0 24px;
  display:flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-family: var(--mono); font-size: 12.5px; color: var(--faint);
}
.foot-row a:hover{ color: var(--text); }

@media (max-width: 560px){
  nav{ flex-direction: column; align-items: flex-start; gap: 10px; }
  .tree .row{ flex-direction: column; gap: 0; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}