:root {
  --bg: #111317;
  --surface: #181b21;
  --border: #262b34;
  --text: #eef1f5;
  --muted: #9aa3b2;
  --accent: #f59e0b;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(740px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}

.nav {
  display: flex;
  gap: 1.25rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
}

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

main {
  flex: 1;
}

.intro {
  padding: 4rem 0 2rem;
}

.intro h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.lead {
  margin: 0;
  font-size: 1.12rem;
  color: var(--muted);
}

.muted {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.section h2 {
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.project-list {
  display: grid;
  gap: 1rem;
}

.project-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.4rem;
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.project-top h3 {
  margin: 0;
  font-size: 1.1rem;
}

.tag {
  font-size: 0.78rem;
  color: var(--accent);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}

.project-item p,
.section > p {
  margin: 0;
  color: var(--muted);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.links a {
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  font-size: 0.92rem;
}

.links a:hover {
  border-color: var(--accent);
}

.prose h2 {
  margin-top: 1.75rem;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem 0 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
}

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

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