/* ============================================================
   mikedzikowski.com — the résumé as a repository
   Dark is the intended look; light is a first-class toggle.
   ============================================================ */

:root {
  /* ground → ink */
  --ground:   #0a0d12;
  --surface:  #11161d;
  --raised:   #161c25;
  --line:     #1f2833;
  --line-soft:#182029;
  --ink:      #c9d4e0;
  --ink-hi:   #e8eef5;
  --dim:      #6f7d8f;

  /* semantic — GitHub's own vocabulary, used for meaning not decoration */
  --pass:     #3fb950;
  --merge:    #a371f7;
  --link:     #58a6ff;

  /* linguist colours, lifted for legibility on a dark ground */
  --l-ps:     #4a8fd4;
  --l-bicep:  #519aba;
  --l-py:     #4b8bbe;
  --l-sh:     #89e051;
  --l-hcl:    #8b5cf6;
  --l-docker: #2496ed;
  --l-other:  #8b949e;

  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --r: 6px;
  --wrap: 1010px;
}

:root[data-theme="light"] {
  --ground:   #ffffff;
  --surface:  #f6f8fa;
  --raised:   #ffffff;
  --line:     #d1d9e0;
  --line-soft:#e4e8ed;
  --ink:      #1f2328;
  --ink-hi:   #010409;
  --dim:      #59636e;

  --pass:     #1a7f37;
  --merge:    #8250df;
  --link:     #0969da;

  --l-ps:     #012456;
  --l-py:     #3572a5;
  --l-sh:     #5da531;
  --l-other:  #848d97;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 14px/1.55 var(--mono);
  font-feature-settings: "liga" 0;
}

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

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--link); color: #fff;
  padding: 10px 16px; z-index: 50;
}
.skip:focus { left: 12px; top: 12px; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.ico { width: 16px; height: 16px; fill: currentColor; flex: 0 0 auto; }
.dim { color: var(--dim); }
.ok  { color: var(--pass); }

/* ── repo header ──────────────────────────────────────── */

.repohead {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding-top: 18px;
}

.repohead-in {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 14px;
}

.path {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.path .ico { color: var(--dim); }
.path a { font-weight: 400; }
.path strong { color: var(--ink-hi); font-weight: 600; }
.path .sep { color: var(--dim); margin-inline: -2px; }

.chip {
  font-size: 11px;
  line-height: 1;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--dim);
}

.ghost {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--dim);
  padding: 7px 9px;
  cursor: pointer;
  display: flex;
  transition: color .12s, border-color .12s;
}
.ghost:hover { color: var(--ink-hi); border-color: var(--dim); }

/* tabs */
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }

.tab {
  color: var(--ink);
  padding: 8px 12px 11px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  font-size: 13px;
}
.tab:hover { text-decoration: none; border-bottom-color: var(--line); }
.tab.is-on { border-bottom-color: #f78166; color: var(--ink-hi); font-weight: 500; }

/* ── layout ───────────────────────────────────────────── */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 244px;
  gap: 40px;
  padding-block: 26px 64px;
  align-items: start;
}

/* ── branch bar ───────────────────────────────────────── */

.branchbar {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12.5px;
  margin-bottom: 16px;
}
.branch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 5px 11px;
  color: var(--ink-hi);
  font-weight: 500;
}
.branch .ico { color: var(--dim); }
.branchbar strong { color: var(--ink-hi); font-weight: 600; }
.lnk { margin-left: auto; }

/* ── language bar ─────────────────────────────────────── */

.langs { margin-bottom: 22px; }

.bar {
  display: flex;
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--line-soft);
  gap: 2px;
}
.bar i {
  display: block;
  width: var(--w);
  background: var(--c);
  /* the single orchestrated moment on page load */
  animation: grow .7s cubic-bezier(.2,.8,.2,1) both;
}
.bar i:nth-child(2) { animation-delay: .06s; }
.bar i:nth-child(3) { animation-delay: .12s; }
.bar i:nth-child(4) { animation-delay: .18s; }
.bar i:nth-child(5) { animation-delay: .24s; }
.bar i:nth-child(6) { animation-delay: .30s; }
.bar i:nth-child(7) { animation-delay: .36s; }

@keyframes grow { from { width: 0; } to { width: var(--w); } }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  list-style: none;
  margin: 13px 0 0;
  padding: 0;
  font-size: 12px;
}
.legend li { display: flex; align-items: center; gap: 7px; color: var(--ink); }
.legend span { color: var(--dim); }

.legend b, .side-langs b, .pmeta b {
  width: 9px; height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
}

/* ── file tree ────────────────────────────────────────── */

.tree {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 26px;
}

.row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 15px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  font-size: 13px;
}
.row:last-child { border-bottom: 0; }
.row:hover { background: var(--surface); text-decoration: none; }
.row:hover .nm { color: var(--link); text-decoration: underline; }

.row .dir  { color: #7d8590; }
.row .file { color: var(--dim); }
:root[data-theme="light"] .row .dir { color: #54aeff; }

.nm { flex: 0 0 auto; min-width: 150px; }
.msg {
  color: var(--dim);
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── panels ───────────────────────────────────────────── */

.panel {
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin-bottom: 26px;
  scroll-margin-top: 20px;
  overflow: hidden;
}

.panel-h {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-hi);
}
.panel-h .ico { color: var(--dim); }
.panel-h .ico.ok { color: var(--pass); }

/* ── README prose ─────────────────────────────────────── */

.prose { padding: 30px 34px 34px; font-family: var(--sans); }

.prose h2 {
  margin: 0 0 4px;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-hi);
  font-family: var(--sans);
}

.prose p { margin: 0 0 15px; max-width: 64ch; font-size: 15px; line-height: 1.68; }

.lede {
  font-size: 17px !important;
  line-height: 1.6 !important;
  color: var(--ink-hi);
  padding-bottom: 4px;
}

.prose strong { color: var(--ink-hi); font-weight: 600; }

.loc {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--dim);
  font-size: 13px !important;
  margin: 22px 0 0 !important;
  font-family: var(--mono);
}

/* ── commit log : the centrepiece ─────────────────────── */

.log { list-style: none; margin: 0; padding: 0; }

.commit {
  padding: 20px 26px 22px 52px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.commit:last-child { border-bottom: 0; }

/* the graph spine, drawn inside the panel so nothing clips */
.commit::before {
  content: "";
  position: absolute;
  left: 25px; top: 0; bottom: 0;
  width: 2px;
  background: var(--line);
}
.commit:first-child::before { top: 26px; background: linear-gradient(var(--pass), var(--line)); }
.commit:last-child::before  { bottom: auto; height: 26px; }

.commit::after {
  content: "";
  position: absolute;
  left: 20px; top: 21px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--ground);
  border: 2px solid var(--dim);
  box-sizing: border-box;
}
.commit:first-child::after {
  border-color: var(--pass);
  background: var(--pass);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--pass) 18%, transparent);
}

.cmeta {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 9px;
  font-size: 12px;
}

.badge {
  --bc: var(--dim);
  font-size: 11px;
  line-height: 1;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--bc);
  color: var(--bc);
}
.badge.pass  { --bc: var(--pass); }
.badge.merge { --bc: var(--merge); }

.commit h3 {
  margin: 0 0 7px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-hi);
  letter-spacing: -0.01em;
}

.commit p {
  margin: 0;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.66;
  max-width: 62ch;
  font-family: var(--sans);
}

.cfoot {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 13px;
}

.sha {
  font-size: 11.5px;
  color: var(--dim);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 3px 7px;
  border-radius: var(--r);
}

.tag {
  font-size: 11px;
  color: var(--dim);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 999px;
}

/* ── pinned projects ──────────────────────────────────── */

.pins { display: grid; grid-template-columns: 1fr 1fr; }

.pin {
  padding: 18px 20px 20px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  display: block;
}
.pin:nth-child(2n) { border-right: 0; }
.pin:nth-last-child(-n+2) { border-bottom: 0; }
.pin:hover { background: var(--surface); text-decoration: none; }
.pin:hover .pname { text-decoration: underline; }

.pname { color: var(--link); font-weight: 600; font-size: 13.5px; display: block; }

.pin p {
  margin: 8px 0 14px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--dim);
  font-family: var(--sans);
}

.pmeta { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--dim); }

/* ── skills.json ──────────────────────────────────────── */

.code {
  margin: 0;
  padding: 22px 26px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.85;
  background: var(--ground);
}
.code .k { color: var(--link); }
.code .s { color: var(--l-sh); }
.code .p { color: var(--dim); }

/* ── checks ───────────────────────────────────────────── */

.checks { list-style: none; margin: 0; padding: 0; }

.checks li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}
.checks li:last-child { border-bottom: 0; }
.checks li span:first-of-type { flex: 1; min-width: 0; }
.checks li .dim { font-size: 12px; white-space: nowrap; }

/* ── contact : GitHub's issue list ────────────────────── */

.issue-lede {
  margin: 0;
  padding: 18px 18px 16px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--dim);
  border-bottom: 1px solid var(--line-soft);
}

.issues { list-style: none; margin: 0; padding: 0; }

.issues li { border-bottom: 1px solid var(--line-soft); }
.issues li:last-child { border-bottom: 0; }

.issues a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 18px;
  color: var(--ink);
  font-size: 13px;
}
.issues a:hover { background: var(--surface); text-decoration: none; }
.issues a:hover .ititle { color: var(--link); text-decoration: underline; }

.issues .open { color: var(--pass); }

.ititle { font-weight: 500; color: var(--ink-hi); min-width: 92px; }
.imeta { color: var(--dim); font-size: 12.5px; overflow-wrap: anywhere; }

/* ── about rail ───────────────────────────────────────── */

.col-side { position: sticky; top: 22px; }

.side-h {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-hi);
  margin: 0 0 11px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}
.side-h + .side-h,
.side-links + .side-h,
.side-langs + .side-h { margin-top: 28px; }

.side-p {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.62;
  color: var(--dim);
  margin: 0 0 18px;
}

.side-links { list-style: none; margin: 0; padding: 0; }
.side-links li { margin-bottom: 10px; }
.side-links a {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 12.5px;
  word-break: break-all;
}
.side-links .ico { color: var(--dim); }
.side-links a:hover { color: var(--link); }
.side-links a:hover .ico { color: var(--link); }

.side-langs { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.side-langs li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}
.side-langs li span { margin-left: auto; color: var(--dim); }

/* AI: declared capabilities, so they read as repo topics rather than
   measured language counts. Different shape, different kind of claim. */
.side-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.side-tags li {
  font-size: 11.5px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--link);
  background: color-mix(in srgb, var(--link) 12%, transparent);
}

/* ── footer ───────────────────────────────────────────── */

.foot {
  border-top: 1px solid var(--line);
  padding-block: 22px 40px;
  font-size: 12px;
  color: var(--dim);
}
.foot .wrap { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* ── responsive ───────────────────────────────────────── */

@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .col-side { position: static; }
}

@media (max-width: 620px) {
  body { font-size: 13px; }
  .prose { padding: 24px 20px 26px; }
  .prose h2 { font-size: 25px; }
  .lede { font-size: 16px !important; }
  .commit { padding: 18px 16px 20px 42px; }
  .commit::before { left: 19px; }
  .commit::after { left: 14px; }
  .pins { grid-template-columns: 1fr; }
  .pin { border-right: 0; }
  .pin:nth-last-child(2) { border-bottom: 1px solid var(--line-soft); }
  .nm { min-width: 0; }
  .msg { display: none; }
  .lnk { margin-left: 0; }
  .code { padding: 18px; font-size: 12px; }
  .checks li { flex-wrap: wrap; gap: 8px; }
  .issues a { flex-wrap: wrap; gap: 8px 11px; }
  .ititle { min-width: 0; }
  .imeta { flex-basis: 100%; padding-left: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  .bar i { animation: none; }
  * { transition: none !important; }
}
