/* MechSmith.net — Building Bobby docu-series */
:root {
  --bg: #0e1216;
  --panel: #151b21;
  --panel-2: #1a222a;
  --line: #2a343d;
  --text: #e9e6e1;
  --muted: #9aa5ae;
  --amber: #f5a524;
  --amber-dim: #b97a1a;
  --blue: #5aa9ff;
  --green: #4ade80;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
  font-size: 17px;
}
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(14,18,22,.92);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, var(--amber), #d14a1f);
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; color: #141414;
}
.brand-name { font-weight: 800; letter-spacing: .12em; font-size: 15px; }
.brand-name small { display: block; font-weight: 400; letter-spacing: .28em; font-size: 10px; color: var(--muted); }
nav.main-nav { display: flex; gap: 26px; }
nav.main-nav a { color: var(--muted); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
nav.main-nav a:hover, nav.main-nav a.active { color: var(--amber); text-decoration: none; }

/* hero */
.hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.kicker {
  font-family: var(--mono); font-size: 13px; letter-spacing: .3em;
  color: var(--amber); text-transform: uppercase; margin-bottom: 18px;
}
.hero h1 { font-size: 52px; line-height: 1.08; letter-spacing: -0.01em; margin-bottom: 20px; }
.hero h1 .accent { color: var(--amber); }
.hero p.lede { color: var(--muted); font-size: 19px; max-width: 52ch; margin-bottom: 30px; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 10px;
  background: var(--amber); color: #141414; font-weight: 700; font-size: 15px;
}
.btn:hover { text-decoration: none; background: #ffb63d; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); margin-left: 12px; }
.btn.ghost:hover { border-color: var(--amber); color: var(--amber); }
.hero-img img { width: 100%; border-radius: 16px; border: 1px solid var(--line); display: block; }
.hero-img figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; font-family: var(--mono); }

/* phase timeline */
.phases { padding: 20px 0 64px; }
.section-title {
  font-family: var(--mono); font-size: 13px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 26px;
}
.phase-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.phase {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 20px; position: relative;
}
.phase .num { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .2em; }
.phase h3 { margin: 10px 0 8px; font-size: 18px; }
.phase p { font-size: 14px; color: var(--muted); }
.phase.active { border-color: var(--amber); }
.phase.active::after {
  content: "ACTIVE"; position: absolute; top: 18px; right: 16px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em;
  color: #141414; background: var(--amber); border-radius: 6px; padding: 3px 8px;
}

/* post cards */
.posts { padding: 8px 0 72px; }
.post-card {
  display: grid; grid-template-columns: 220px 1fr; gap: 28px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px; margin-bottom: 20px; align-items: center;
}
.post-card:hover { border-color: var(--amber-dim); }
.post-card img { width: 100%; border-radius: 10px; border: 1px solid var(--line); display: block; }
.post-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .12em; margin-bottom: 8px; }
.post-meta .tag {
  color: var(--amber); border: 1px solid var(--amber-dim); border-radius: 6px;
  padding: 2px 8px; margin-right: 8px;
}
.post-card h3 { font-size: 22px; margin-bottom: 8px; }
.post-card h3 a { color: var(--text); }
.post-card p { color: var(--muted); font-size: 15px; }

/* article */
.article { padding: 56px 0 80px; }
.article .kicker { margin-bottom: 12px; }
.article h1 { font-size: 42px; line-height: 1.15; margin-bottom: 14px; max-width: 22ch; }
.article .dateline { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 36px; }
.article p { margin-bottom: 20px; max-width: 68ch; }
.article h2 { font-size: 26px; margin: 40px 0 14px; }
.article ul, .article ol { margin: 0 0 20px 24px; max-width: 64ch; }
.article li { margin-bottom: 8px; }
.article figure { margin: 36px 0; }
.article figure img { width: 100%; border-radius: 14px; border: 1px solid var(--line); display: block; }
.article figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; font-family: var(--mono); }
.spec-box {
  background: var(--panel-2); border: 1px solid var(--line); border-left: 4px solid var(--amber);
  border-radius: 10px; padding: 20px 24px; margin: 32px 0; max-width: 68ch;
}
.spec-box h4 { font-family: var(--mono); font-size: 13px; letter-spacing: .2em; color: var(--amber); margin-bottom: 12px; }
.spec-box table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-box td { padding: 6px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.spec-box td:first-child { color: var(--muted); width: 42%; padding-right: 16px; }
.back-link { display: inline-block; margin-top: 48px; font-family: var(--mono); font-size: 14px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer .mono { font-family: var(--mono); font-size: 12px; letter-spacing: .15em; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .phase-grid { grid-template-columns: 1fr 1fr; }
  .post-card { grid-template-columns: 1fr; }
  nav.main-nav { gap: 16px; }
}
@media (max-width: 520px) {
  .phase-grid { grid-template-columns: 1fr; }
}
