:root {
  --accent: #8e24aa;
  --accent-dark: #6a1b9a;
  --text: #242424;
  --muted: #666;
  --background: #fff;
  --surface: #faf8fb;
  --border: #e7dfea;
  --header-height: 68px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

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

img {
  display: block;
  max-width: 100%;
}

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

a:hover {
  text-decoration: underline;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.navbar {
  width: min(1100px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-name {
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-name:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

main {
  padding-top: var(--header-height);
}

.content-width {
  width: min(940px, calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  min-height: 430px;
  display: grid;
  place-items: center;
  text-align: center;
  background: linear-gradient(180deg, #fbf7fc 0%, #ffffff 100%);
}

.hero-content {
  padding: 72px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.025em;
}

h1 {
  margin: 0;
  font-size: clamp(2.0rem, 7vw, 4.7rem);
}

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

h2 {
  margin: 0 0 24px;
  font-size: clamp(1.5rem, 4vw, 2.0rem);
}

h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.intro-text {
  max-width: 700px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 1.0rem;
}

.page-section {
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
}

.about-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.profile-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
}

.about-content p:first-child,
.project-content p:first-of-type,
.resume-section p:first-of-type {
  margin-top: 0;
}

.quick-links {
  margin-top: 28px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.quick-links h3 {
  font-size: 1.05rem;
}

.link-row,
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.link-row a,
.project-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 600;
  font-size: 0.93rem;
}

.link-row a:hover,
.project-links a:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.news-list {
  display: grid;
  gap: 0;
}

.news-list p {
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.news-list p:first-child {
  padding-top: 0;
}

.news-list p:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.news-list time {
  display: inline-block;
  min-width: 105px;
  color: var(--accent-dark);
  font-weight: 700;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading h2 {
  margin-bottom: 10px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.project-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid var(--border);
}

.project-card:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.project-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: var(--surface);
}

.project-content p {
  margin-bottom: 18px;
}

.project-card-no-image {
  grid-template-columns: 1fr;
}

.resume-section {
  text-align: center;
}

.resume-section p {
  max-width: 700px;
  margin-inline: auto;
  color: var(--muted);
}

.resume-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 12px 20px;
  border-radius: 9px;
  background: var(--accent);
  color: white;
  font-weight: 700;
}

.resume-button:hover {
  background: var(--accent-dark);
  text-decoration: none;
}

footer {
  padding: 28px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 720px) {
  :root {
    --header-height: 62px;
  }

  .navbar {
    width: min(100% - 24px, 940px);
  }

  .site-name {
    display: none;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    gap: 24px;
  }

  .content-width {
    width: min(100% - 28px, 940px);
  }

  .hero {
    min-height: 360px;
  }

  .page-section {
    padding: 58px 0;
  }

  .about-layout,
  .project-card {
    grid-template-columns: 1fr;
  }

  .profile-image {
    width: min(300px, 80vw);
    margin-inline: auto;
  }

  .project-media img {
    max-height: 320px;
  }

  .news-list time {
    display: block;
    margin-bottom: 4px;
  }
}
