/* ── Fonts (self-hosted Inter variable, latin subset) ────────────────── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-var.woff2') format('woff2');
}

:root {
  --bg: #0d0d0d;
  --surface: #161616;
  --surface-2: #1f1f1f;
  --border: #2a2a2a;
  --text: #e8e8e8;
  --text-muted: #888;
  --accent: #1a5096;
  --accent-dim: rgba(26, 80, 150, 0.1);
  --accent-hover: #1f60b0;
  --tag-bg: #242424;
  --radius: 10px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Layout ──────────────────────────────────────────────────────────── */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header / Hero ───────────────────────────────────────────────────── */
header {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-name {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

header h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
}

.tagline {
  margin-top: 12px;
  font-size: 17px;
  color: var(--text-muted);
  max-width: 480px;
}

.personal-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.social-links {
  display: flex;
  gap: 20px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.social-links svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* ── Section ─────────────────────────────────────────────────────────── */
.section {
  padding: 56px 0;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* ── Project Card ────────────────────────────────────────────────────── */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
}

.card:hover {
  border-color: #383838;
  background: var(--surface-2);
}

.card:hover::before { opacity: 1; }

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.card-status {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 20px;
  padding: 3px 10px;
  white-space: nowrap;
}

.card-status.wip {
  color: #facc15;
  background: rgba(250, 204, 21, 0.1);
  border-color: rgba(250, 204, 21, 0.2);
}

.card h2 {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 8px;
}

.card-subtitle {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 10px;
}

.card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

/* ── Tags ────────────────────────────────────────────────────────────── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.tag {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--tag-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 9px;
}

/* ── Card Links ──────────────────────────────────────────────────────── */
.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.card-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  padding: 7px 14px;
  transition: all 0.15s;
}

.link-primary {
  background: var(--accent);
  color: #fff;
}

.link-primary:hover { background: var(--accent-hover); }

.link-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.link-secondary:hover {
  color: var(--text);
  border-color: #444;
}

.card-links svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ── Footer ──────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

footer p {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 520px) {
  header { padding: 48px 0 40px; }
  .section { padding: 40px 0; }
  .card { padding: 22px; }
  .card-header { flex-direction: column-reverse; align-items: flex-start; }
}
