/* nikitapn.com. Plain CSS: no build step between editing and reloading.
   Colours follow the NPRPC docs site so the subdomains feel related. */

:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --text: #1d1f23;
  --muted: #676b73;
  --border: #e4e1dc;
  --accent: #b4441f;
  --accent-soft: #fbeae4;
  --shadow: 0 1px 2px rgb(0 0 0 / 5%), 0 4px 16px rgb(0 0 0 / 5%);
  --mono: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171a;
    --surface: #1c1f23;
    --text: #e6e4df;
    --muted: #979ba3;
    --border: #2d3137;
    --accent: #f08a5d;
    --accent-soft: #3a2519;
    --shadow: none;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--sans);
}

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

.page {
  width: min(42rem, 100% - 2.5rem);
  margin: 0 auto;
}

/* ---- intro ------------------------------------------------------------ */

.intro { padding: 5rem 0 2.5rem; }

.intro h1 {
  margin: 0 0 1rem;
  font-size: 2.4rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.intro p { margin: 0 0 1rem; color: var(--muted); }
.intro .lead { font-size: 1.2rem; color: var(--text); }

.links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 1.5rem; }

.links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.9rem;
}

.links svg { width: 1.1rem; height: 1.1rem; }

/* ---- projects --------------------------------------------------------- */

.section-title {
  margin: 1rem 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.project {
  margin-bottom: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.project-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
}

.project h3 { margin: 0; font-size: 1.2rem; }
.project h3 a { color: var(--text); }
.project p { margin: 0.6rem 0 0; }

.tag {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.tag.soon {
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-size: 0.92rem;
}

.muted { color: var(--muted); }

/* ---- footer ----------------------------------------------------------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 3rem;
  padding-top: 1.25rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 480px) {
  .intro { padding-top: 3rem; }
  .intro h1 { font-size: 2rem; }
  .project { padding: 1rem 1.1rem; }
}
