@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=D2+Coding&display=swap');

:root {
  --bg-base: #16181a;
  --bg-surface: #1e2024;
  --bg-raised: #282a2e;
  --text: #ffffff;
  --text-muted: #7b8496;
  --accent: #bd5eff;
  --link: #5ef1ff;
  --link-hover: #5eff6c;
  --secondary: #ff6e5e;
  --seedling: #5ef1ff;
  --growing: #f1ff5e;
  --evergreen: #5eff6c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-base);
  color: var(--text);
  line-height: 1.6;
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.25rem;
  color: var(--accent);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  text-transform: lowercase;
  letter-spacing: 0.05em;
}

h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

p {
  margin-bottom: 0.75rem;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: var(--link-hover);
}

code {
  font-family: 'D2 Coding', 'D2Coding', monospace;
  font-size: 0.9em;
  background: var(--bg-raised);
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

/* nav */
.site-nav {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--bg-raised);
  font-size: 0.9rem;
}

.site-nav .site-name {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-right: auto;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
}

.site-nav a:hover {
  color: var(--text);
}

/* site mark (SVG icon) */
.site-mark {
  display: inline-block;
  width: 20px;
  height: 20px;
  vertical-align: -3px;
  margin-right: 0.35rem;
  flex-shrink: 0;
}

/* footer */
.colophon {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--bg-raised);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: 'D2 Coding', 'D2Coding', monospace;
}

/* cards */
.card {
  background: var(--bg-surface);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

.card h3 {
  font-size: 1rem;
}

.card .meta {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* now page items */
.now-item {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--bg-raised);
}

.now-item:last-child {
  border-bottom: none;
}

.now-item .title {
  font-weight: 600;
}

.now-item .desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* progress bar */
.progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.progress-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-raised);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
}

.progress-pct {
  font-family: 'D2 Coding', 'D2Coding', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  min-width: 2.5em;
  text-align: right;
}

/* status badges */
.status {
  display: inline-block;
  font-family: 'D2 Coding', 'D2Coding', monospace;
  font-size: 0.7rem;
  padding: 0.15em 0.5em;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 0.4rem;
  color: var(--bg-base);
  font-weight: 500;
}

.status.active { background: var(--seedling); }
.status.paused { background: var(--text-muted); }
.status.planned { background: var(--growing); }

/* section icon */
.section-icon {
  margin-right: 0.3rem;
}

hr {
  border: none;
  border-top: 1px solid var(--bg-raised);
  margin: 2rem 0;
}

/* section spacing */
section {
  margin-bottom: 1rem;
}

/* sparkline charts */
.sparkline-wrap {
  margin-top: 0.5rem;
}

.sparkline-label {
  display: flex;
  justify-content: space-between;
  font-family: 'D2 Coding', 'D2Coding', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sparkline-label-center {
  opacity: 0.5;
}

.sparkline svg {
  width: 100%;
  height: 48px;
  display: block;
  margin-top: 0.3rem;
}

.sparkline path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sparkline .area {
  stroke: none;
  fill: var(--accent);
  opacity: 0.12;
}

/* stat row */
.stat-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.stat {
  font-family: 'D2 Coding', 'D2Coding', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stat strong {
  color: var(--text);
  font-size: 0.9rem;
}

/* muted text helper */
.muted {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* now page specifics */
.now-updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}
