/* Dashboard styles */

#hero {
  max-width: 1500px;
  margin: 0 auto;
  padding: 34px 22px 6px;
}
#hero .path {
  color: var(--muted-dim);
  font-size: 13px;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
#hero h1 {
  margin: 0 0 6px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.01em;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
#hero h1 .role {
  font-size: 14px;
  font-weight: 400;
  color: var(--accent);
}
#hero .role::before {
  content: "— ";
  color: var(--muted-dim);
}
#hero p.lede {
  max-width: 78ch;
  color: var(--muted);
  margin: 10px 0 0;
}
#hero .lede b {
  color: var(--fg);
  font-weight: 600;
}

/* grid  */

#dashboard {
  max-width: 1500px;
  margin: 0 auto;
  padding: 24px 22px 60px;
  column-count: 4;
  column-gap: 18px;
}
@media (max-width: 1400px) {
  #dashboard {
    column-count: 3;
  }
}
@media (max-width: 1020px) {
  #dashboard {
    column-count: 2;
  }
}
@media (max-width: 640px) {
  #dashboard {
    column-count: 1;
    padding: 18px 16px 40px;
  }
}

.widget {
  break-inside: avoid;
  margin: 0 0 18px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 16px 18px 18px;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease;
}
.widget:hover {
  border-color: var(--muted-dim);
}
.widget h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 13px;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}
.widget h2 svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--accent);
}
.widget .sub {
  color: var(--muted-dim);
  font-size: 13px;
  margin: -9px 0 12px;
}

/* Tags */
.tag-group {
  margin-bottom: 16px;
}
.tag-group:last-child {
  margin-bottom: 0;
}
.tag-group-label {
  display: block;
  color: var(--muted-dim);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  background: var(--tag-bg);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 13.5px;
  color: var(--fg);
  white-space: nowrap;
}

/* Lists */
.rowlist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rowlist li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
}
.rowlist li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.rowlist .name {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--fg);
}
.rowlist .meta {
  color: var(--muted-dim);
  font-size: 13px;
}
.statusdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 5px var(--accent-line);
  flex-shrink: 0;
}

/* bullet list */
ul.bullets {
  margin: 0;
  padding-left: 1.1em;
}
ul.bullets li {
  margin-bottom: 6px;
  color: var(--fg);
}
ul.bullets li:last-child {
  margin-bottom: 0;
}
ul.bullets li::marker {
  color: var(--accent);
  content: "› ";
}
ul.bullets.muted li {
  color: var(--muted);
}

/* Stats */
.stat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
}
.stat-row:last-child {
  margin-bottom: 0;
}
.stat-row .label {
  width: 118px;
  flex-shrink: 0;
  color: var(--muted);
  font-size: 12px;
}
.stat-row .bar {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--tag-bg);
  overflow: hidden;
  border: 1px solid var(--rule);
}
.stat-row .bar > span {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-line), var(--accent));
  width: 0%;
  transition: width 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.stat-row .pct {
  width: 34px;
  text-align: right;
  color: var(--muted-dim);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

/* Projects */
.entry {
  margin-bottom: 16px;
}
.entry:last-child {
  margin-bottom: 0;
}
.entry-title {
  font-weight: 700;
  color: var(--fg);
  font-size: 15.5px;
}
.entry-meta {
  color: var(--muted-dim);
  font-size: 13.5px;
  font-style: italic;
  margin: 1px 0 7px;
}
.entry-tech {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

/* Roadmap */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 7px 0;
  font-size: 14.5px;
}
.checklist .box {
  width: 13px;
  height: 13px;
  border: 1px solid var(--muted-dim);
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.checklist li.done .box {
  background: var(--accent);
  border-color: var(--accent);
}
.checklist li.done .box::after {
  content: "✓";
  font-size: 9px;
  color: #04170a;
  font-weight: 700;
}
.checklist li.active {
  color: var(--fg);
}
.checklist li.active .box {
  border-color: var(--accent);
}
.checklist li.done span.txt {
  color: var(--muted-dim);
  text-decoration: line-through;
  text-decoration-color: var(--rule);
}
.checklist .tagpill {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 3px;
  padding: 1px 6px;
  flex-shrink: 0;
  text-transform: uppercase;
}

/* Links */
.linkrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
}
.linkrow:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.linkrow svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
  flex-shrink: 0;
}
.linkrow a {
  color: var(--fg);
  font-size: 14.5px;
}
.linkrow a:hover {
  color: var(--accent);
}
.linkrow .sublabel {
  color: var(--muted-dim);
  font-size: 12.5px;
  display: block;
}

/* Quote */
blockquote.q {
  margin: 0;
  padding-left: 12px;
  border-left: 2px solid var(--accent-line);
  color: var(--muted);
  font-style: italic;
  font-size: 14.5px;
}
blockquote.q cite {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 12.5px;
  color: var(--muted-dim);
}

/* Uptime */
#uptime-widget .metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin-top: 2px;
}

#uptime-widget .metric .num {
  font-size: 26px;
  font-weight: 700;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
#uptime-widget .metric .num small {
  font-size: 13px;
  color: var(--muted-dim);
  font-weight: 400;
  margin-left: 2px;
}
#uptime-widget .metric .lbl {
  color: var(--muted-dim);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 3px;
}
#uptime-widget .divider {
  grid-column: 1 / -1;
  height: 1px;
  background: var(--rule);
  margin: 2px 0 4px;
}

#scramble-name {
  display: inline;
}

@media (prefers-reduced-motion: reduce) {
  .stat-row .bar > span {
    transition: none;
  }
}
