:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #5f6975;
  --line: #d7dde3;
  --paper: #f8faf9;
  --white: #ffffff;
  --blue: #2864b8;
  --teal: #11786f;
  --red: #b43d4a;
  --shadow: 0 18px 50px rgba(23, 33, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(248, 250, 249, 0.9);
  border-bottom: 1px solid rgba(215, 221, 227, 0.75);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand img {
  width: 36px;
  height: 36px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

nav a:hover,
footer a:hover {
  color: var(--blue);
}

.hero,
.band,
footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  min-height: calc(100vh - 72px);
  padding: clamp(44px, 8vw, 88px) 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(3.6rem, 9vw, 7.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.04;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.summary {
  max-width: 680px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.75;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.button.secondary {
  background: var(--white);
}

.profile-panel {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.portrait {
  width: 132px;
  height: 132px;
  margin-bottom: 24px;
}

dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

dd {
  margin: 4px 0 0;
  font-weight: 750;
}

.band {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

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

.timeline {
  display: grid;
  gap: 18px;
}

.timeline article {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.time {
  color: var(--red);
  font-weight: 850;
}

.timeline p,
.project-card p {
  color: var(--muted);
  line-height: 1.7;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  min-height: 310px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.project-card img {
  width: 100%;
  height: 136px;
  margin-bottom: 18px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
}

.skill-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.skill-list li {
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 750;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 0 44px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 820px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero,
  .timeline article,
  .project-grid,
  .split,
  .skill-list {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .hero,
  .band,
  footer {
    width: min(100% - 28px, 1120px);
  }

  h1 {
    font-size: 3.35rem;
  }

  .profile-panel {
    padding: 18px;
  }

  footer {
    flex-direction: column;
  }
}
