:root {
  --bg: #0d0e10;
  --surface: #15171a;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.1);
  --text: #e8e8ec;
  --muted: #9a9aa3;
  --accent: #e8a87c;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

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

.page {
  max-width: 840px;
  margin: 0 auto;
  padding: 96px 32px 64px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 112px;
}

.hero__media {
  width: 260px;
  height: 260px;
  flex-shrink: 0;
}

.hero__photo {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  object-fit: cover;
  box-shadow:
    0 0 0 1px var(--border-strong),
    0 0 0 2px rgba(232, 168, 124, 0.18),
    0 24px 60px -20px rgba(0, 0, 0, 0.6);
}

.hero__body {
  min-width: 0;
}

.hero__kicker {
  margin: 0 0 14px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.hero__name {
  font-size: 52px;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin: 0 0 14px;
  line-height: 1.05;
}

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

.hero__contacts {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 15px;
}

.hero__contacts li:not(:last-child)::after {
  content: "·";
  color: var(--border-strong);
  margin-left: 14px;
}

.hero__langs {
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: var(--muted);
}

.hero__langs-label {
  color: var(--muted);
  opacity: 0.7;
  margin-right: 6px;
}

/* Sections */
.section {
  margin-bottom: 96px;
}

.section__title {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin: 0 0 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.section__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* About */
.about {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about li {
  position: relative;
  padding-left: 22px;
  color: var(--text);
}

.about li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
}

/* Chips */
.chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips li {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  padding: 5px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--text);
  background: transparent;
}

.chips--mono li {
  color: var(--muted);
  font-size: 12px;
  padding: 4px 9px;
}

/* Timeline */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border-strong);
}

.job {
  position: relative;
  padding-left: 44px;
}

.job::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}

.job__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 20px;
  margin-bottom: 14px;
}

.job__title-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.job__company {
  font-weight: 600;
  font-size: 20px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.job__role {
  font-size: 14px;
  color: var(--muted);
}

.job__period {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  color: var(--accent);
  white-space: nowrap;
}

.job__lead {
  margin: 0 0 12px;
  color: var(--text);
}

.job__list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.job__list li {
  position: relative;
  padding-left: 20px;
  color: var(--text);
}

.job__list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.7em;
  width: 5px;
  height: 1px;
  background: var(--muted);
}

.job__list li strong {
  font-weight: 600;
  color: var(--text);
}

.job__skills-label {
  margin: 16px 0 10px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* Education */
.edu {
  margin: 0;
  color: var(--text);
}

/* Footer */
.footer {
  margin-top: 80px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.footer__sep {
  color: var(--border-strong);
}

/* Mobile */
@media (max-width: 640px) {
  .page {
    padding: 48px 20px 48px;
    max-width: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 72px;
    justify-items: start;
  }

  .hero__media {
    width: 150px;
    height: 150px;
  }

  .hero__photo {
    border-radius: 18px;
  }

  .hero__name {
    font-size: 36px;
  }

  .hero__contacts li:not(:last-child)::after {
    margin-left: 14px;
  }

  .section {
    margin-bottom: 64px;
  }

  .timeline::before {
    left: 7px;
  }

  .job {
    padding-left: 32px;
  }

  .job::before {
    left: 2px;
  }

  .job__company {
    font-size: 18px;
  }

  .job__period {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  a {
    transition: none;
  }
}
