:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --accent: #2563eb;
  --accent-bg: #eff6ff;
  --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  font-family: "Inter", "Noto Sans SC", system-ui, sans-serif;
  line-height: 1.6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f111a;
    --surface: #1e212b;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --border: #334155;
    --accent: #60a5fa;
    --accent-bg: rgba(96, 165, 250, 0.15);
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.2), 0 2px 4px -2px rgb(0 0 0 / 0.2);
  }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(100% - 2rem, 960px); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: blur(12px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 0; }
.brand { color: var(--text); font-size: 1.1rem; font-weight: 700; text-decoration: none; }
.site-header nav { display: flex; gap: 1.25rem; font-size: 0.95rem; }

.breadcrumb {
  display: flex; align-items: center; gap: 0.35rem; margin-bottom: 1.25rem;
  font-size: 0.9rem; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb .sep { color: color-mix(in srgb, var(--muted) 70%, transparent); user-select: none; }
.breadcrumb .current { color: var(--text); }

.project-hero { padding: 3rem 0 1.5rem; }
.hero-eyebrow { margin: 0 0 0.75rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.project-hero h1 { margin: 0 0 0.5rem; font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; }
.lede { margin: 0; color: var(--muted); font-size: 1.1rem; max-width: 40rem; }

.projects-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; max-width: 760px; margin-bottom: 5rem; }
.project-card {
  padding: 2rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--card-shadow); display: flex; flex-direction: column;
}
.project-card header { margin-bottom: 1.25rem; }
.project-head-titles { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.project-card h2 { margin: 0; font-size: 1.35rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.project-subtitle { font-size: 0.9rem; color: var(--muted); font-weight: 500; }

.project-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ptag {
  font-size: 0.75rem; padding: 0.2rem 0.6rem; border-radius: 6px;
  background: var(--accent-bg); color: var(--accent); font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
}

.project-desc { margin: 0 0 1.25rem; color: var(--text); font-size: 0.95rem; line-height: 1.6; }
.project-highlights { margin: 0 0 1.5rem; padding-left: 1.2rem; color: var(--muted); font-size: 0.9rem; line-height: 1.65; }
.project-highlights li { margin-bottom: 0.5rem; }
.project-highlights li:last-child { margin-bottom: 0; }

.project-links { margin-top: auto; padding-top: 1.25rem; border-top: 1px dashed var(--border); display: flex; flex-wrap: wrap; gap: 1.25rem; }
.project-links a { font-size: 0.88rem; font-weight: 600; color: var(--muted); }
.project-links a:hover { color: var(--accent); text-decoration: none; }

.site-footer {
  padding: 3rem 0 2rem; color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--border);
  text-align: center; display: flex; flex-direction: column; gap: 1.25rem;
}
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5rem; }
.footer-links a { color: var(--muted); font-weight: 500; text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.site-footer p { margin: 0; }

@media (max-width: 640px) {
  .project-card { padding: 1.5rem; }
}
