:root {
  color-scheme: dark;
  --background: #0c0d0f;
  --surface: #14161a;
  --border: #282b31;
  --text: #f1f3f5;
  --muted: #a0a7b1;
  --accent: #8ce7bd;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: inherit; }

.page-shell,
.footer {
  width: min(100% - 3rem, 980px);
  margin-inline: auto;
}

.hero {
  padding: clamp(7.5rem, 20vh, 12rem) 0 clamp(5rem, 12vw, 8rem);
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
  max-width: 650px;
  margin-bottom: 0.85rem;
  font-size: clamp(2.8rem, 8vw, 5.75rem);
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.specialties {
  margin-bottom: 1.4rem;
  color: #d4d8de;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 550;
}

.specialties span,
.stack b { color: var(--accent); font-weight: 500; }

.intro {
  max-width: 530px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.projects { padding-bottom: 7rem; }

.section-heading { margin-bottom: 1.75rem; }

.section-heading .eyebrow { margin-bottom: 0.55rem; }

h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 2.35rem);
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  display: flex;
  min-height: 282px;
  flex-direction: column;
  padding: 1.6rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: var(--surface);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  border-color: #4a515b;
  background: #181b20;
  outline: none;
  transform: translateY(-3px);
}

.project-card:focus-visible { box-shadow: 0 0 0 3px rgba(140, 231, 189, 0.35); }

.project-card__topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

h3 {
  margin-bottom: 0;
  font-size: 1.28rem;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.status {
  flex: none;
  padding: 0.3rem 0.55rem;
  border: 1px solid #3c4149;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.status--active { border-color: rgba(140, 231, 189, 0.38); color: var(--accent); }

.project-card p {
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.stack {
  display: block;
  margin-top: auto;
  color: #d5d9df;
  font-size: 0.77rem;
}

.card-link {
  display: block;
  margin-top: 1.35rem;
  color: var(--accent);
  font-size: 0.83rem;
  font-weight: 650;
}

.card-link span { display: inline-block; transition: transform 160ms ease; }
.project-card:hover .card-link span,
.project-card:focus-visible .card-link span { transform: translate(2px, -2px); }

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

.footer p { margin-bottom: 0; }
.footer nav { display: flex; gap: 1.25rem; }
.footer a { text-underline-offset: 0.2em; }
.footer a:hover,
.footer a:focus-visible { color: var(--accent); }
.footer a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

@media (max-width: 640px) {
  .page-shell,
  .footer { width: min(100% - 2rem, 980px); }
  .hero { padding-top: 6rem; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 0; }
  .footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
