
:root {
  --bg: #0b101b;
  --panel: #111a29;
  --text: #f0f4fa;
  --muted: #a6b3c5;
  --accent: #7ce4d3;
  --blue: #a9c8ff;
  --line: #283448;
  --max: 1050px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 Inter, ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.container {
  width: min(var(--max), 90%);
  margin-inline: auto;
}

/* Header and navigation */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 16, 27, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

header nav {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  font-size: 1.25rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.brand span {
  color: var(--accent);
}

.navlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 0.87rem;
}

.navlinks a {
  transition: color 0.2s ease;
}

.navlinks a:hover,
.navlinks a[aria-current="page"] {
  color: var(--accent);
}


nav a {
  font-size: 1.05rem;
  padding: 10px 14px;
}


/* Page sections */

section {
  padding: 60px 0;
}

section + section {
  border-top: 1px solid rgba(40, 52, 72, 0.62);
}

#about {
  padding-top: 78px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Typography */

h1,
h2,
h3,
h4 {
  line-height: 1.25;
}

h1 {
  max-width: 900px;
  margin: 13px 0 18px;
  font-size: clamp(2.7rem, 6.5vw, 4.6rem);
  letter-spacing: -0.06em;
}

h1 span {
  color: var(--accent);
}

.hero-tagline {
  max-width: 1000px;
  margin: 0 0 24px;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  line-height: 1.15;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.hero-tagline span {
  color: var(--accent);
}

h2 {
  margin: 9px 0 20px;
  font-size: clamp(1.65rem, 3.5vw, 2.4rem);
  letter-spacing: -0.04em;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

p {
  margin: 0 0 14px;
}

.muted,
.resume-copy {
  color: var(--muted);
}

/* Hero */

.hero {
  padding: 48px 0 38px;
}

.hero > p {
  max-width: 720px;
  font-size: 1.05rem;
}

/* Section headings */

.section-head {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin-bottom: 12px;
}

/* Panels and cards */

.panel {
  min-width: 0;
  padding: clamp(22px, 3.5vw, 32px);
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(145deg, var(--panel), #0f1724);
}

.panel > :last-child {
  margin-bottom: 0;
}

/* About page */

.about-copy {
  width: 100%;
  max-width: none;
  line-height: 1.8;
  text-align: left;
}

.about-copy p {
  margin-bottom: 16px;
}

/* Skills grids */

.skills-list,
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.skill-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
}

.skill-card h3 {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 11px;
}

.skill-card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.93rem;
}

.skills-grid > a.panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.skills-grid > a.panel:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.skills-grid > a.panel p {
  margin-top: 4px;
}

/* Projects */

.project-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.project-title h2 {
  margin-bottom: 0;
}

.project-stack,
.experience-stack {
  display: grid;
  gap: 20px;
}

.project-stack > *,
.experience-stack > * {
  min-width: 0;
}

/* Lists */

ul,
ol {
  padding-left: 22px;
}

li {
  margin-bottom: 7px;
}

li::marker {
  color: var(--accent);
}

/* Buttons and contact links */

.contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 750;
  text-align: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.button.secondary {
  background: transparent;
  color: var(--text);
}

.contact-box {
  padding: clamp(22px, 3.5vw, 32px);
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(145deg, var(--panel), #0f1724);
}

.contact-box h2 {
  margin-top: 0;
}

.text-link {
  color: var(--accent);
  font-weight: 650;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Blog */

article h2 {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

article .eyebrow {
  margin-bottom: 8px;
}

/* Footer */

footer {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 20px;
}

/* Responsive layout */

@media (max-width: 760px) {
  header nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 15px 0;
  }

  .navlinks {
    gap: 9px 14px;
    font-size: 0.83rem;
  }

  section {
    padding: 42px 0;
  }

  .hero {
    padding: 28px 0 24px;
  }

  .hero-tagline {
    font-size: clamp(2.15rem, 8vw, 3.2rem);
  }

  .skills-list,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 22px;
  }

  .contact-links {
    align-items: stretch;
  }

  .contact-links .button {
    flex: 0 1 auto;
  }

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

@media (max-width: 400px) {
  .container {
    width: 92%;
  }

  .navlinks {
    gap: 8px 11px;
    font-size: 0.78rem;
  }

  .hero-tagline {
    font-size: 2.05rem;
  }

  .contact-links {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-links .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
