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

:root {
  --bg:          #0b0f14;
  --bg-surface:  #0f151c;
  --border:      #1c2530;
  --text:        #dde4ec;
  --text-muted:  #6b7f94;
  --accent:      #3a8fc1;
  --accent-dim:  #1e4a66;
  --mono: "SF Mono", "Fira Code", "Cascadia Code", "Consolas", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Layout ─────────────────────────────────────────────── */

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Header ─────────────────────────────────────────────── */

header {
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0 2.5rem;
}

.logo-img {
  display: block;
  width: 130px;
  opacity: 0.92;
  margin-bottom: 1.75rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

header p {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ── Sections ───────────────────────────────────────────── */

section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

section h2 {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* ── About ──────────────────────────────────────────────── */

.about p {
  font-family: var(--mono);
  color: var(--text);
  max-width: 60ch;
}

/* ── Projects ───────────────────────────────────────────── */

.project-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.project-item {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  transition: border-color 0.15s, background-color 0.15s;
}

.project-item:has(a):hover {
  border-color: var(--accent-dim);
  background-color: #121d28;
  cursor: pointer;
}

.project-item:first-child {
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}

.project-item:last-child {
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
}

.project-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.project-name {
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

.project-name a {
  color: var(--text);
}

.project-name a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.project-item:hover .project-name a {
  color: var(--accent);
  text-decoration: none;
}

.badge {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  padding: 0.1rem 0.45rem;
  border-radius: 2px;
}

.badge-soon {
  background: var(--accent-dim);
  color: var(--accent);
}

.badge-tag {
  background: #1a2a1a;
  color: #5a9e5a;
}

.project-desc {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── Links ──────────────────────────────────────────────── */

.link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.link-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.link-label {
  color: var(--text-muted);
  min-width: 6ch;
}

/* ── Footer ─────────────────────────────────────────────── */

footer {
  padding: 2rem 0;
}

footer p {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 480px) {
  header {
    padding: 2.5rem 0 2rem;
  }

  .project-item {
    padding: 1rem 1.125rem;
  }
}
