:root {
  color-scheme: dark;
  font-family: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #050607;
  --panel: #0b0f16;
  --panel-alt: #10141d;
  --border: #1a1f2b;
  --border-soft: rgba(255, 255, 255, 0.06);
  --text: #e8ecf5;
  --muted: #9aa0b5;
  --accent: #48efb7;
  --accent-strong: #2dd28f;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(circle at 20% 20%, rgba(72, 239, 183, 0.08), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(77, 106, 255, 0.08), transparent 45%), var(--bg);
  color: var(--text);
  line-height: 1.65;
}

body {
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease;
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

.frame {
  width: min(880px, calc(100vw - 2.5rem));
  margin: 0 auto;
  padding: 3.5rem 0 4.5rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.95rem;
  text-transform: lowercase;
  color: var(--muted);
}

.nav-links a[aria-current="page"] {
  color: var(--text);
}

.content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.intro {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.75rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.intro-tag,
.section-label,
.project-label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.intro h1,
.page-intro h1,
.intro h2 {
  margin: 0;
  font-size: clamp(2.6rem, 4vw, 3.1rem);
  font-weight: 600;
}

.intro-subtitle {
  margin: 0;
  font-size: 1.1rem;
  color: var(--accent);
}

.intro-body {
  display: grid;
  gap: 0.9rem;
  color: var(--muted);
}

.section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.coming-soon {
  margin: 0;
  padding: 2rem;
  width: 100%;
  text-align: center;
  font-size: 1.1rem;
  color: var(--muted);
  background: var(--panel-alt);
  border: 1px dashed var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.section-header h2 {
  margin: 0.2rem 0 0;
  font-size: 1.8rem;
}

.text-link {
  font-size: 0.9rem;
  color: var(--muted);
}

.project-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-card {
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 160ms ease, transform 160ms ease;
}

.project-card:hover,
.project-card:focus-within {
  border-color: var(--accent-strong);
  transform: translateY(-2px);
}

.project-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.project-heading h3 {
  margin: 0;
  font-size: 1.35rem;
}

.project-role {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.project-copy {
  margin: 0;
  color: #c5cada;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}

.tag-row {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag-row li {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

.status-pill {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  color: var(--muted);
}

.status-pill[data-state="current"] {
  color: #56ffa9;
  border-color: rgba(86, 255, 169, 0.35);
}

.status-pill[data-state="past"] {
  color: #7a849a;
  border-color: rgba(122, 132, 154, 0.4);
}

.status-pill[data-state="building"] {
  color: #8aa4ff;
  border-color: rgba(138, 164, 255, 0.35);
}

.status-pill[data-state="open"] {
  color: #ff9ed6;
  border-color: rgba(255, 158, 214, 0.35);
}

.page-intro {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.page-intro p {
  margin: 0;
  color: var(--muted);
}

.list-card {
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  box-shadow: var(--shadow);
}

.list-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.list-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.list-card p {
  margin: 0;
  color: #c5cada;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-handle {
  margin: 0;
  color: var(--accent);
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.status-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(72, 239, 183, 0.8);
}

.bio-body {
  display: grid;
  gap: 1.2rem;
  max-width: 68ch;
  color: var(--muted);
}

.footer-links {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: lowercase;
}

@media (max-width: 640px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .project-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .intro {
    padding: 2rem;
  }
}
