/* Maxwell Robbins — personal site (Sketch B: dark developer) */
:root {
  --bg: #0d1117;
  --bg-soft: #161b22;
  --border: #30363d;
  --text: #c9d1d9;
  --text-bright: #f0f6fc;
  --muted: #8b949e;
  --accent: #58a6ff;
  --green: #7ee787;
  --pink: #f778ba;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, "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: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1.25rem;
  background: rgba(13, 17, 23, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
.logo {
  font-family: var(--mono);
  font-weight: 800;
  color: var(--text-bright);
  font-size: 1.05rem;
}
.logo:hover { text-decoration: none; }
.cursor { color: var(--green); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.site-header nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.site-header nav a {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
}
.site-header nav a:hover { color: var(--text-bright); text-decoration: none; }

/* ---------- layout ---------- */
main { max-width: 880px; margin: 0 auto; padding: 0 1.25rem 3rem; }
.section { margin-top: 3.5rem; }
.section h2 {
  font-family: var(--mono);
  font-size: 1.45rem;
  color: var(--text-bright);
  margin: 0 0 0.9rem;
}
.prompt-char { color: var(--accent); }
.h-sub { color: var(--muted); font-size: 1rem; font-weight: 400; }
.section-lede { max-width: 62ch; }

/* ---------- terminal ---------- */
.hero { margin-top: 2.25rem; }
.terminal-window {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0.55rem 0.9rem;
  background: #21262d;
  border-bottom: 1px solid var(--border);
}
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }
.terminal-title {
  margin-left: 0.6rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}
.terminal-body {
  padding: 1.1rem 1.2rem 1.2rem;
  font-family: var(--mono);
  font-size: 0.92rem;
}
.boot {
  margin: 0;
  white-space: pre-wrap;
  color: var(--green);
  min-height: 5.2em;
  font-family: inherit;
}
.term-out { white-space: pre-wrap; margin-top: 0.4rem; color: var(--text); }
.term-out .echo { color: var(--muted); }
.term-input-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.8rem;
  border-top: 1px dashed var(--border);
  padding-top: 0.8rem;
}
.term-prompt { color: var(--green); white-space: nowrap; }
#term-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--text-bright);
  font-family: var(--mono);
  font-size: 0.92rem;
  padding: 0.2rem 0;
}
#term-input:focus-visible { outline-offset: 4px; }
.hero-links {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
  margin: 1rem 0 0.25rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.status-line {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--green);
  margin: 0.35rem 0 0;
}

/* ---------- planner demo ---------- */
.demo-wrap {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
}
#field {
  width: 100%;
  height: auto;
  display: block;
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: crosshair;
  touch-action: none;
}
.demo-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}
button {
  font-family: var(--mono);
  font-size: 0.85rem;
  background: #238636;
  color: #fff;
  border: 1px solid #2ea043;
  border-radius: 6px;
  padding: 0.45rem 1rem;
  cursor: pointer;
}
button:hover { background: #2ea043; }
.btn-ghost {
  background: #21262d;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: #30363d; }
.pt-count { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.demo-note { font-size: 0.88rem; color: var(--muted); margin: 0.8rem 0 0; }

/* ---------- github strip ---------- */
.gh-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}
.gh-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
}
.gh-card h3 { margin: 0 0 0.3rem; font-family: var(--mono); font-size: 0.95rem; }
.gh-card p { margin: 0 0 0.4rem; font-size: 0.85rem; color: var(--muted); }
.gh-meta { font-family: var(--mono); font-size: 0.75rem; color: var(--green); }
.gh-fallback { color: var(--muted); grid-column: 1 / -1; }

/* ---------- projects / cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.9rem;
}
.card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.15rem;
}
.card h3 { margin: 0 0 0.45rem; font-family: var(--mono); font-size: 1.05rem; }
.card p { margin: 0 0 0.5rem; font-size: 0.94rem; }
.card .tags {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--green);
  margin: 0;
}
.card-small h3 { color: var(--text-bright); }

/* ---------- about / skills / contact ---------- */
.about-text { max-width: 66ch; }
.skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.skill-list li { display: contents; }
.skill-chip {
  font-family: var(--mono);
  font-size: 0.85rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  color: var(--text-bright);
  cursor: pointer;
}
.skill-chip:hover { background: #21262d; border-color: var(--muted); }
.skill-chip.active { border-color: var(--green); color: var(--green); }
.skill-detail {
  margin-top: 0.95rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
}
.skill-detail h3 { margin: 0 0 0.4rem; font-family: var(--mono); font-size: 0.95rem; color: var(--text-bright); }
.skill-detail ul { margin: 0; padding-left: 1.1rem; }
.skill-detail li { margin-bottom: 0.3rem; font-size: 0.94rem; }
.skill-detail p { margin: 0; font-size: 0.94rem; }
.skill-hint { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 0; font-size: 1rem; }
.contact-list li { margin-bottom: 0.5rem; font-family: var(--mono); font-size: 0.92rem; }
.contact-label { color: var(--green); display: inline-block; min-width: 5.5em; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.4rem 1.25rem 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-family: var(--mono);
}

/* ---------- small screens ---------- */
@media (max-width: 560px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .terminal-body { font-size: 0.82rem; }
  .section { margin-top: 2.6rem; }
  main { padding: 0 0.9rem 2.4rem; }
}
