* {
  box-sizing: border-box;
}

:root {
  --bg: #ffffff;
  --text: #0b0b0b;
  --muted: #6b7280;
  --accent: #111827;
  --border: rgba(0, 0, 0, 0.06);
}

html {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

.container {
  width: min(100%, 960px);
  margin-inline: auto;
  padding-inline: 20px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-image: url("https://png.pngtree.com/png-vector/20231126/ourmid/pngtree-clipart-panda-white-background-png-image_10727356.png");
  background-size: cover;
  background-position: center;
  border: 2px solid var(--border);
  position: relative;
}

.avatar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background-image: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.4) 1px,
    transparent 1px
  );
  background-size: 3px 3px;
  pointer-events: none;
  opacity: 0.2;
}

.primary-nav {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  justify-content: center;
  flex-wrap: wrap;
  padding: 8px 0;
}

.primary-nav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.primary-nav a:hover {
  text-decoration: underline;
}

.hero {
  min-height: 100vh;
  width: 100%;
  margin: 0 calc(50% - 50vw);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-block: 64px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.3) 1px,
    transparent 1px
  );
  background-size: 4px 4px;
  pointer-events: none;
  opacity: 0.15;
  z-index: 2;
}

.hero-panda {
  position: fixed;
  right: 5%;
  bottom: -20px;
  width: clamp(150px, 20vw, 300px);
  height: auto;
  opacity: 0.9;
  pointer-events: none;
  z-index: 1;
  display: block;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.hero-title {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(40px, 8vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 24px 0 20px;
}

.lede {
  max-width: 780px;
}
.lede p {
  color: var(--accent);
  font-size: 18px;
}
.lede p + p {
  margin-top: 18px;
  color: var(--muted);
}

.lede a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.lede a:hover {
  text-decoration: underline;
}

.break {
  display: none;
}

.section {
  min-height: 100vh;
  padding: 64px 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-margin-top: 64px;
}

.hero {
  margin-top: 64px;
}

.section h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(32px, 5vw, 48px);
  margin: 0 0 40px;
  letter-spacing: -0.02em;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.project-card {
  padding: 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.25) 1px,
    transparent 1px
  );
  background-size: 5px 5px;
  pointer-events: none;
  opacity: 0.1;
  border-radius: 12px;
}

.project-card:hover {
  transform: translateY(-4px);
}

.project-card h3 {
  font-size: 24px;
  margin: 0 0 16px;
  color: var(--accent);
}

.project-card p {
  color: var(--muted);
  margin: 0;
  flex-grow: 1;
}

.project-links {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.project-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.project-links a:hover {
  text-decoration: underline;
}

.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 48px 0;
  margin-top: 64px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.social-links {
  display: flex;
  gap: 32px;
}

.social-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: var(--accent);
}

.copyright {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 32px;
}

.timeline-meta {
  color: var(--muted);
}

.timeline-meta time {
  display: block;
  font-weight: 500;
  margin-bottom: 4px;
}

.timeline-content h3 {
  font-size: 20px;
  margin: 0 0 12px;
  color: var(--accent);
}

.timeline-content p {
  color: var(--muted);
  margin: 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
}

.skill-category h3 {
  font-size: 20px;
  margin: 0 0 16px;
  color: var(--accent);
}

.skill-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
}

.skill-category li {
  margin-bottom: 8px;
}

@media (max-width: 640px) {
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .timeline-meta {
    display: flex;
    gap: 12px;
    align-items: baseline;
  }

  .timeline-meta time {
    margin: 0;
  }
}
@media (min-width: 720px) {
  .break {
    display: inline;
  }
}

body::after {
  content: "";
  position: fixed;
  inset: auto 0 0 0;
  height: 80px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), var(--bg));
  pointer-events: none;
}
