﻿:root {
  --background: #0f172a;
  --text: #cbd5e1;
  --heading: #e2e8f0;
  --muted: #94a3b8;
  --accent: #5eead4;
  --accent-soft: rgba(45, 212, 191, 0.1);
  --panel: rgba(30, 41, 59, 0.5);
  --max-width: 1200px;
}

* {
  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;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(94, 234, 212, 0.25);
  color: var(--heading);
}

a {
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 16px;
  left: 16px;
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--background);
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.spotlight {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 15%),
    rgba(29, 78, 216, 0.13),
    transparent 80%
  );
}

.page-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 110px);
  width: min(var(--max-width), calc(100% - 96px));
  margin: 0 auto;
}

.intro {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
  padding: 92px 0;
}

.name {
  display: inline-block;
  color: var(--heading);
  font-size: 3.05rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.intro h1 {
  margin: 16px 0 0;
  color: var(--heading);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
}

.intro-copy {
  max-width: 410px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.section-nav {
  display: grid;
  gap: 14px;
  margin-top: 56px;
}

.section-nav a {
  display: flex;
  align-items: center;
  width: fit-content;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.section-nav a span {
  width: 32px;
  height: 1px;
  margin-right: 16px;
  background: var(--muted);
  transition: width 180ms ease, background 180ms ease;
}

.section-nav a:hover,
.section-nav a.active {
  color: var(--heading);
}

.section-nav a:hover span,
.section-nav a.active span {
  width: 64px;
  background: var(--heading);
}

.social-list {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-list a {
  display: block;
  width: 24px;
  height: 24px;
  color: var(--muted);
  transition: color 160ms ease, transform 160ms ease;
}

.social-list a:hover {
  color: var(--heading);
  transform: translateY(-2px);
}

.social-list svg {
  width: 100%;
  fill: currentColor;
}

main {
  padding: 96px 0;
}

.content-section {
  scroll-margin-top: 20px;
  margin-bottom: 144px;
}

.mobile-heading {
  display: none;
}

.prose {
  display: grid;
  gap: 20px;
}

.prose p {
  margin: 0;
}

.prose strong {
  color: var(--heading);
  font-weight: 500;
}

.entry-list {
  display: grid;
  gap: 10px;
}

.entry {
  position: relative;
  display: grid;
  grid-template-columns: 115px 1fr;
  gap: 18px;
  padding: 20px;
  margin: 0 -20px;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.entry:hover {
  border-color: rgba(148, 163, 184, 0.1);
  background: var(--panel);
  box-shadow: 0 18px 36px -24px rgba(2, 6, 23, 0.8);
}

.entry-content {
  min-width: 0;
}

.entry-date {
  padding-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.entry h3 {
  margin: 0;
  color: var(--heading);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}

.entry h3 span {
  color: var(--muted);
}

.entry p {
  margin: 10px 0 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  max-width: 100%;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.4;
}

.project {
  grid-template-columns: 115px 1fr;
}

.project-mark {
  display: grid;
  place-items: center;
  align-self: start;
  height: 62px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 5px;
  background:
    linear-gradient(135deg, rgba(94, 234, 212, 0.12), rgba(29, 78, 216, 0.08)),
    #162137;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
}

.entry h3 a {
  transition: color 160ms ease;
}

.project-heading {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.repo-status {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 500;
}

.github-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin-top: 16px;
  color: var(--heading);
  font-size: 0.9rem;
  font-weight: 600;
}

.github-more span {
  color: var(--accent);
  transition: transform 160ms ease;
}

.github-more:hover {
  color: var(--accent);
}

.github-more:hover span {
  transform: translate(3px, -3px);
}

.skill-groups {
  display: grid;
  gap: 14px;
}

.skill-group,
.credential {
  padding: 20px;
  margin: 0 -20px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.25);
}

.skill-group h3,
.credential h3 {
  margin: 0;
  color: var(--heading);
  font-size: 1rem;
  font-weight: 600;
}

.skill-group .tags {
  margin-top: 14px;
}

.credential {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.credential p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.credential .credential-label {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.credential > span {
  max-width: 175px;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: right;
}

.entry:hover h3 a {
  color: var(--accent);
}

.arrow {
  display: inline-block;
  color: inherit !important;
  transition: transform 160ms ease;
}

.entry:hover .arrow,
.contact-link:hover span {
  transform: translate(3px, -3px);
}

.contact {
  margin-top: -28px;
  padding-top: 20px;
}

.contact h2 {
  margin: 0;
  color: var(--heading);
  font-size: 1.35rem;
  letter-spacing: 0;
}

.contact p {
  max-width: 500px;
  margin: 14px 0 18px;
  color: var(--muted);
}

.contact-email,
.contact-link {
  color: var(--heading);
  font-weight: 600;
}

.contact-email {
  overflow-wrap: anywhere;
}

.contact-links {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.contact-link span {
  display: inline-block;
  color: var(--accent);
  transition: transform 160ms ease;
}

.contact-link:hover {
  color: var(--accent);
}

footer {
  padding: 96px 0 0;
}

footer p {
  max-width: 430px;
  margin: 0;
  color: #64748b;
  font-size: 0.78rem;
}

footer a {
  color: var(--muted);
  font-weight: 500;
}

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


@media (hover: none) {
  .entry:hover {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
  }

  .social-list a:hover,
  .github-more:hover span,
  .entry:hover .arrow,
  .contact-link:hover span {
    transform: none;
  }
}
@media (max-width: 900px) {
  .page-shell {
    display: block;
    width: min(680px, calc(100% - 40px));
  }

  .intro {
    position: static;
    height: auto;
    padding: 72px 0 84px;
  }

  .section-nav {
    display: none;
  }

  .social-list {
    margin-top: 40px;
  }

  main {
    padding: 0 0 80px;
  }

  .content-section {
    scroll-margin-top: 0;
    margin-bottom: 96px;
  }

  .mobile-heading {
    position: sticky;
    z-index: 5;
    top: 0;
    display: block;
    margin: 0 -20px 28px;
    padding: 14px 20px;
    background: rgba(15, 23, 42, 0.88);
    color: var(--heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: calc(100% - 28px);
  }

  .intro {
    padding: 48px 0 64px;
  }

  .name {
    font-size: 2.25rem;
  }

  .entry,
  .project {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px 12px;
    margin: 0 -12px;
  }

  .skill-group,
  .credential {
    margin: 0 -12px;
    padding: 16px 12px;
  }

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

  .credential > span {
    max-width: none;
    text-align: left;
  }

  .project-mark {
    width: 84px;
    height: 48px;
  }

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

  .content-section {
    margin-bottom: 80px;
  }

  footer {
    padding-top: 72px;
  }
}


@media (max-width: 420px) {
  body {
    font-size: 15px;
  }

  .name {
    font-size: 2rem;
    line-height: 1.08;
  }

  .intro h1 {
    font-size: 1.05rem;
  }

  .intro-copy,
  .contact p {
    font-size: 0.94rem;
  }

  .mobile-heading {
    margin-inline: -14px;
    padding-inline: 14px;
  }

  .entry,
  .project,
  .skill-group,
  .credential {
    margin-inline: -8px;
  }

  .project-mark {
    width: 76px;
  }

  .contact-links {
    flex-direction: column;
    gap: 10px;
  }

  .contact-link {
    width: fit-content;
    max-width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
