/* KG7JZZ · Mike / bashNinja
   Minimal terminal/documentation aesthetic.
   Light by default, adapts to dark via prefers-color-scheme. */

:root {
  --bg:        #fbfbf9;
  --fg:        #1b1b1b;
  --muted:     #5c5c5c;
  --rule:      #d8d8d2;
  --accent:    #0a7d3e;   /* phosphor green, toned down for light bg */
  --accent-2:  #b35a00;   /* amber */
  --code-bg:   #f0f0ec;
  --link:      #0a6c8a;
  --maxw:      54rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:       #101311;
    --fg:       #d6e0d6;
    --muted:    #8a978a;
    --rule:     #2a312a;
    --accent:   #4ee08a;
    --accent-2: #ffb454;
    --code-bg:  #1a1f1a;
    --link:     #5ec8e6;
  }
}

* { box-sizing: border-box; }

html { font-size: 16px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-monospace, "SFMono-Regular", "JetBrains Mono", "DejaVu Sans Mono",
               "Cascadia Code", Menlo, Consolas, monospace;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--accent);
  color: var(--bg);
  padding: .5rem 1rem;
  z-index: 10;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

/* ---- header / banner ---- */

header.masthead {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.banner {
  color: var(--accent);
  font-size: clamp(.42rem, 2.6vw, .95rem);
  line-height: 1.15;
  margin: .5rem 0 0;
  overflow-x: auto;
  white-space: pre;
}

.tagline {
  color: var(--muted);
  margin: .75rem 0 0;
  font-size: .95rem;
}
.tagline .sep { color: var(--rule); padding: 0 .35rem; }

/* ---- nav ---- */

nav.top {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  font-size: .9rem;
}
nav.top a {
  color: var(--link);
  text-decoration: none;
  white-space: nowrap;
}
nav.top a::before { content: "› "; color: var(--muted); }
nav.top a:hover,
nav.top a:focus { text-decoration: underline; }

/* ---- sections ---- */

section { margin: 2.25rem 0; scroll-margin-top: 1rem; }

h2 {
  font-size: 1.15rem;
  margin: 0 0 .75rem;
  color: var(--fg);
  border-bottom: 1px dashed var(--rule);
  padding-bottom: .35rem;
}
h2::before { content: "## "; color: var(--accent); }

h3 {
  font-size: 1rem;
  margin: 1.25rem 0 .4rem;
  color: var(--accent-2);
}

p { margin: .6rem 0; }

a { color: var(--link); }

.lead { font-size: 1.05rem; }

ul { padding-left: 1.25rem; margin: .5rem 0; }
li { margin: .2rem 0; }

code, .mono { background: var(--code-bg); padding: .05rem .35rem; border-radius: 3px; }

.callout {
  border-left: 3px solid var(--accent);
  background: var(--code-bg);
  padding: .6rem .9rem;
  margin: 1rem 0;
}

.prompt { color: var(--accent); }
.prompt::before { content: "$ "; }

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: .25rem 1.5rem;
}
.cols ul { margin: 0; }

/* ---- contact ---- */

.contact dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .35rem 1rem;
  margin: .5rem 0;
}
.contact dt { color: var(--muted); }
.contact dd { margin: 0; }

/* ---- footer ---- */

footer {
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
  padding-top: 1rem;
  color: var(--muted);
  font-size: .85rem;
}
footer .seventythree { color: var(--accent); font-size: 1rem; }

@media (max-width: 30rem) {
  nav.top { flex-direction: column; gap: .15rem; }
}
