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

:root {
  font-family: Inter, system-ui, sans-serif;

  --bg: #000;
  --surface: #181c27;
  --border: #252a38;
  --text: #e2e6f0;
  --subtext: #7a8499;
  /* purple accent */
  --accent: #7c6af7;
  --accent-bg: rgba(124, 106, 247, 0.12);
  --accent-border: rgba(124, 106, 247, 0.25);
  /* blue accent */
/*   --accent: #5b8af5;
  --accent-bg: rgba(91, 138, 245, 0.10);
  --accent-border: rgba(91, 138, 245, 0.22); */
}

@supports (font-variation-settings: normal) {
  :root {
    font-family: InterVariable, system-ui, sans-serif;
  }
}

html {
  font-size: 16px;
}

body {
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

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

a:hover {
  text-decoration: underline;
}

p,
pre {
  margin-bottom: 1.25rem;
}

h1,
h2,
h3 {
  font-weight: 500;
}

pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;

}

pre code.hljs {
  background: transparent;
  padding: 0;
}

/* ── NAV ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.nav-logo {
  font-weight: 500;
  color: inherit;

  &:hover {
    text-decoration: none;
  }
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: var(--subtext);
  font-size: .75em;
}

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

/* ── LAYOUT ── */
.page {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* ── PAGE HEADER ── */
.page-header {
  margin-bottom: 1.25rem;
}

.page-header h2 {
  font-weight: 500;
}

.page-header p {
  font-size: 1.125rem;
  color: var(--subtext);
}

/* ── SECTION ── */
section {
  margin-bottom: 1.25rem;
}

.section-title {
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--subtext);
  margin-bottom: .75rem;
}

/* ── PROJECT CARDS ── */
.card-list {
  display: flex;
  flex-direction: column;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  border-bottom: 1px solid;
  border-bottom-color: var(--border);
  transition: opacity 0.1s;
  color: inherit;

  &:hover {
    text-decoration: none;
  }
}

.card:first-child {
  border-top: 1px solid var(--border);
}

.card:hover .card-title {
  text-decoration: underline;
}

.card-title {
  font-weight: 500;
  margin-bottom: 4px;
}

.card-desc {
  color: var(--subtext);
  margin-bottom: .75em;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  font-size: .75em;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--accent-bg);
  color: var(--accent);
  border-color: var(--accent-border);
}

.card-date {
  font-size: .75em;
  color: var(--subtext);
  margin-left: 4px;
}

/* ── FOOTER ── */
footer {
  padding: 20px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .75em;
}

footer span {
  font-size: .75em;
  color: var(--subtext);
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  font-size: .75em;
  color: var(--subtext);
}

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

@media (max-width: 560px) {
  .card-list {
    grid-template-columns: 1fr;
  }
}