/* ============================================================
   jakecummings.dev — shared stylesheet
   ============================================================ */

:root {
  --bg:           #0f172a;
  --panel:        #111827;
  --panel-light:  #1e293b;
  --text:         #e5e7eb;
  --muted:        #94a3b8;
  --accent:       #60a5fa;
  --accent-soft:  #93c5fd;
  --border:       #334155;
  --good:         #22c55e;
  --warn:         #f59e0b;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
}

/* ── Navigation ─────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  backdrop-filter: blur(10px);
}
nav .nav-inner {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
nav a {
  color: var(--text);
  text-decoration: none;
  margin-left: 14px;
  font-size: 0.92rem;
  white-space: nowrap;
}
nav a:hover { color: var(--accent); }
.brand { font-weight: bold; color: var(--accent-soft); font-size: 1rem; }

/* ── Page header ────────────────────────────────────── */
header {
  padding: 80px 24px;
  background:
    radial-gradient(circle at top right, rgba(96,165,250,0.18), transparent 34%),
    linear-gradient(135deg, #111827, #1e293b);
}
.header-inner { max-width: 1100px; margin: auto; }

h1 {
  font-size: clamp(2.1rem, 6vw, 4rem);
  margin: 0 0 14px;
  line-height: 1.1;
}
.subtitle {
  color: var(--accent-soft);
  font-size: 1.15rem;
  margin-bottom: 20px;
}
.summary {
  max-width: 880px;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

/* ── Buttons ────────────────────────────────────────── */
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }

.button {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  background: transparent;
  font-size: 0.92rem;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.button.primary {
  background: var(--accent);
  color: #0f172a;
  font-weight: bold;
}
.button:hover { opacity: 0.82; text-decoration: none; }

/* ── Main / sections ────────────────────────────────── */
main { max-width: 1100px; margin: auto; padding: 52px 24px; }
section { margin-bottom: 72px; }

h2 { font-size: 1.85rem; margin: 0 0 12px; color: var(--text); }
h3 { color: var(--accent-soft); margin-top: 0; margin-bottom: 8px; font-size: 1.05rem; }

.section-intro { color: var(--muted); max-width: 860px; margin-bottom: 24px; line-height: 1.7; }
.note { color: var(--muted); font-size: 0.92rem; line-height: 1.6; margin-top: 12px; }

/* ── Grids ──────────────────────────────────────────── */
.grid   { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }

/* ── Cards ──────────────────────────────────────────── */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
}
.card > *:last-child { margin-bottom: 0; }

.card.featured {
  border-color: rgba(96,165,250,0.4);
  background: linear-gradient(135deg, rgba(96,165,250,0.09), var(--panel));
}
.callout {
  background: linear-gradient(135deg, rgba(96,165,250,0.11), var(--panel));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.status-box {
  background: rgba(245,158,11,0.09);
  border: 1px solid rgba(245,158,11,0.4);
  border-radius: 16px;
  padding: 20px;
}
.status-box strong { color: #fbbf24; }

/* ── Tags ───────────────────────────────────────────── */
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.tag {
  font-size: 0.78rem;
  color: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 9px;
  background: var(--panel-light);
  white-space: nowrap;
}

/* ── Small link row (project cards) ─────────────────── */
.link-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.small-link {
  display: inline-block;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--accent-soft);
  background: var(--panel-light);
  font-size: 0.88rem;
  text-decoration: none;
  white-space: nowrap;
}
.small-link:hover { border-color: var(--accent); text-decoration: none; }

/* ── Metrics ────────────────────────────────────────── */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.metric {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}
.metric .label {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.metric .value {
  display: block;
  margin-top: 6px;
  color: var(--accent-soft);
  font-weight: bold;
  font-size: 1.1rem;
}

/* ── Timeline ───────────────────────────────────────── */
.timeline { border-left: 2px solid var(--border); padding-left: 22px; }
.timeline-item { margin-bottom: 24px; position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -29px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}

/* ── Tables ─────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  margin-top: 18px;
}
table { width: 100%; border-collapse: collapse; min-width: 580px; }
th, td { border-bottom: 1px solid var(--border); padding: 11px 14px; text-align: left; vertical-align: top; font-size: 0.95rem; }
th { color: var(--accent-soft); background: var(--panel-light); font-weight: bold; }
tr:last-child td { border-bottom: none; }

/* ── Links ──────────────────────────────────────────── */
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Lists ──────────────────────────────────────────── */
ul { padding-left: 22px; margin: 0 0 12px; }
li { margin-bottom: 7px; }

/* ── Code ───────────────────────────────────────────── */
code {
  background: var(--panel-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 5px;
  color: var(--accent-soft);
  font-size: 0.9em;
}

/* ── Doc links ──────────────────────────────────────── */
.doc-link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 18px; }
.doc-link {
  display: block;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  color: var(--text);
  text-decoration: none;
}
.doc-link strong { color: var(--accent-soft); display: block; margin-bottom: 6px; }
.doc-link span { color: var(--muted); font-size: 0.93rem; display: block; }
.doc-link .open-text { display: inline-block; margin-top: 12px; color: var(--accent-soft); font-weight: bold; }
.doc-link:hover { border-color: var(--accent); text-decoration: none; }

/* ── Images ─────────────────────────────────────────── */
.image-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 24px; }
.image-card { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.image-card img { width: 100%; display: block; }
.image-card .caption { padding: 13px 16px; color: var(--muted); font-size: 0.92rem; }

.feature-image { margin: 22px 0 28px; }
.feature-image img { width: 100%; display: block; border-radius: 18px; border: 1px solid var(--border); }

.photo-placeholder {
  background: var(--panel-light);
  border: 2px dashed var(--border);
  border-radius: 16px;
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.93rem;
}
.photo-placeholder strong { display: block; color: var(--accent-soft); font-size: 1rem; margin-bottom: 8px; }

/* ── Gallery ────────────────────────────────────────── */
.details-gallery {
  margin-top: 26px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 22px;
}
.details-gallery summary { cursor: pointer; color: var(--accent-soft); font-weight: bold; font-size: 1rem; }
.full-ui-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 18px; }
.full-ui-grid img { width: 100%; border-radius: 12px; border: 1px solid var(--border); display: block; }

/* ── BOM table ──────────────────────────────────────── */
.bom-table-wrap { overflow-x: auto; margin-top: 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--panel); }
.bom-table { width: 100%; border-collapse: collapse; min-width: 580px; }
.bom-table th, .bom-table td { border-bottom: 1px solid var(--border); padding: 11px 14px; text-align: left; vertical-align: top; font-size: 0.95rem; }
.bom-table th { color: var(--accent-soft); background: var(--panel-light); font-weight: bold; }
.bom-table tr:last-child td { border-bottom: none; }


/* ── Footer ─────────────────────────────────────────── */
footer { text-align: center; padding: 32px; color: var(--muted); border-top: 1px solid var(--border); font-size: 0.92rem; }
