/* ============================================================
   Debloat Toolkit — shared styles
   A terminal/dev-tool aesthetic: dark by default, monospace
   accents, amber highlight. Avoids the generic blue-gradient
   "AI startup" look.
   ============================================================ */

:root {
  --bg: #0b0d10;
  --bg-raised: #14171c;
  --bg-inset: #0e1013;
  --border: #23282f;
  --text: #e8e6df;
  --text-dim: #9aa0a8;
  --text-faint: #5f6670;
  --accent: #f2b33d;
  --accent-dim: #b9862a;
  --accent-text: #14171c;
  --ok: #6fbf73;
  --link: #f2b33d;
  --radius: 6px;
  --mono: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

code, pre, .mono { font-family: var(--mono); }

pre {
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  overflow-x: auto;
  font-size: 13.5px;
  color: #d7dbe0;
}

code {
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.9em;
}

pre code { border: none; padding: 0; background: none; }

img { max-width: 100%; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow { max-width: 760px; }

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

header.site {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(11, 13, 16, 0.92);
  backdrop-filter: blur(8px);
  z-index: 50;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.brand:hover { text-decoration: none; }

.brand .dot {
  width: 9px; height: 9px;
  background: var(--accent);
  border-radius: 2px;
  display: inline-block;
}

.brand .path { color: var(--text-faint); font-family: var(--mono); font-weight: 400; font-size: 14px; }

nav.links {
  display: flex;
  gap: 28px;
  align-items: center;
}

nav.links a {
  color: var(--text-dim);
  font-size: 14.5px;
  font-weight: 500;
}

nav.links a:hover { color: var(--text); text-decoration: none; }

nav.links a.active { color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  padding: 9px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  border: none;
  cursor: pointer;
}

.btn:hover { background: #ffc85c; text-decoration: none; }

.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn.ghost:hover { border-color: var(--accent-dim); background: var(--bg-raised); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 8px 10px;
  cursor: pointer;
}

/* ---------- hero ---------- */

.hero {
  padding: 88px 0 64px;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent-dim);
}

h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  max-width: 15ch;
}

.lede {
  font-size: 19px;
  color: var(--text-dim);
  max-width: 56ch;
  margin: 0 0 32px;
}

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }

.terminal {
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  max-width: 640px;
}

.terminal .bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.terminal .bar span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border);
}

.terminal pre {
  border: none;
  margin: 0;
  border-radius: 0;
}

.terminal .prompt { color: var(--accent); }
.terminal .comment { color: var(--text-faint); }
.terminal .ok { color: var(--ok); }

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

section { padding: 64px 0; border-bottom: 1px solid var(--border); }
section:last-of-type { border-bottom: none; }

.section-head { max-width: 620px; margin-bottom: 40px; }

h2 { font-size: 28px; letter-spacing: -0.01em; margin: 0 0 12px; }
h3 { font-size: 18px; margin: 0 0 8px; }

.section-head p { color: var(--text-dim); margin: 0; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.card .tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

.card p { color: var(--text-dim); margin: 0; font-size: 14.5px; }

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.steps li {
  counter-increment: step;
  display: flex;
  gap: 16px;
  padding: 18px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.steps li::before {
  content: counter(step);
  font-family: var(--mono);
  font-weight: 700;
  color: var(--accent-text);
  background: var(--accent);
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
}

.steps .body h3 { margin-bottom: 4px; }
.steps .body p { margin: 0; color: var(--text-dim); font-size: 14.5px; }

table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--text-faint); font-weight: 600; font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; }
td { color: var(--text-dim); }
td.yes { color: var(--ok); }

.callout {
  border-left: 3px solid var(--accent);
  background: var(--bg-raised);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14.5px;
  color: var(--text-dim);
}

.callout strong { color: var(--text); }

.callout.warn { border-left-color: #d97757; }
.callout.ok { border-left-color: var(--ok); }

/* ---------- ad slots ---------- */

.ad-slot {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  background: var(--bg-inset);
  margin: 40px 0;
}

.ad-slot.leaderboard { min-height: 90px; display: flex; align-items: center; justify-content: center; }
.ad-slot.rectangle { min-height: 250px; max-width: 336px; margin-left: auto; margin-right: auto; display: flex; align-items: center; justify-content: center; }
.ad-slot.in-article { min-height: 100px; display: flex; align-items: center; justify-content: center; }

/* ---------- guides list ---------- */

.guide-list { display: flex; flex-direction: column; gap: 0; }

.guide-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.guide-row:first-child { padding-top: 0; }

.guide-row .meta { color: var(--text-faint); font-family: var(--mono); font-size: 12.5px; margin-bottom: 6px; }
.guide-row h3 { margin: 0 0 6px; }
.guide-row h3 a { color: var(--text); }
.guide-row h3 a:hover { color: var(--accent); }
.guide-row p { margin: 0; color: var(--text-dim); font-size: 14.5px; max-width: 60ch; }

/* ---------- article ---------- */

article.post h1 { max-width: none; font-size: 36px; }
article.post .meta { font-family: var(--mono); color: var(--text-faint); font-size: 13px; margin-bottom: 32px; }
article.post h2 { font-size: 22px; margin-top: 44px; }
article.post p, article.post li { color: var(--text-dim); font-size: 16px; }
article.post ul, article.post ol { padding-left: 22px; }
article.post li { margin-bottom: 6px; }

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

footer.site {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 40px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); font-size: 14px; }
.footer-links a:hover { color: var(--text); }

.footer-note { color: var(--text-faint); font-size: 13px; max-width: 60ch; margin-top: 20px; }

/* ---------- responsive ---------- */

@media (max-width: 780px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  nav.links { display: none; }
  .menu-toggle { display: inline-flex; }
  nav.links.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
  }
  .hero { padding: 56px 0 40px; }
}
