:root {
  color-scheme: light;
  --ink: #17202a;
  --text: #303946;
  --muted: #707b89;
  --line: #d8dee7;
  --paper: #fffdf9;
  --surface: rgba(255, 255, 255, 0.76);
  --soft: #f3f6f8;
  --accent: #315d67;
  --accent-strong: #1f4850;
  --warm: #a87538;
  --shadow: 0 24px 70px rgba(37, 47, 63, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(168, 117, 56, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(49, 93, 103, 0.12), rgba(255, 253, 249, 0) 380px),
    var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.76;
}

a {
  color: var(--accent-strong);
  text-underline-offset: 4px;
}

a:hover {
  color: var(--warm);
}

.page {
  width: min(1060px, calc(100% - 44px));
  margin: 0 auto;
  padding: 54px 0 42px;
}

.profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 178px;
  gap: 46px;
  align-items: center;
  padding: 34px 36px;
  background: var(--surface);
  border: 1px solid rgba(216, 222, 231, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.profile h1 {
  margin: 0;
  color: var(--ink);
  font-size: 56px;
  line-height: 1.1;
  letter-spacing: 0;
}

.profile__subtitle {
  margin: 12px 0 8px;
  color: var(--accent-strong);
  font: 700 17px/1.45 Inter, "Segoe UI", Arial, sans-serif;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin: 8px 0 16px;
  color: var(--muted);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
}

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

.contact a:hover {
  color: var(--accent-strong);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.quick-links a {
  padding: 5px 10px;
  color: var(--accent-strong);
  background: rgba(49, 93, 103, 0.08);
  border: 1px solid rgba(49, 93, 103, 0.16);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.quick-links a:hover {
  background: rgba(168, 117, 56, 0.12);
  border-color: rgba(168, 117, 56, 0.28);
}

.intro {
  max-width: 780px;
  margin: 0;
  color: var(--text);
  font-size: 18px;
}

.avatar {
  width: 178px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 22%;
  border: 8px solid #fff;
  outline: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(23, 32, 42, 0.18);
}

.section {
  padding: 34px 0 2px;
}

.section h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  color: var(--ink);
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: 0;
}

.section h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--ink), rgba(23, 32, 42, 0.08));
  opacity: 0.75;
}

.entry {
  position: relative;
  margin-bottom: 20px;
  padding: 0 0 0 18px;
  border-left: 3px solid rgba(49, 93, 103, 0.28);
}

.entry__head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: baseline;
  margin-bottom: 6px;
}

.entry h3,
.project h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.38;
}

.entry__head span,
.project span,
.muted {
  color: var(--muted);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
}

.entry p {
  margin: 6px 0;
}

ul {
  margin: 6px 0 0 0;
  padding-left: 22px;
}

li {
  margin: 7px 0;
}

.project-list {
  display: grid;
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 26px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.project:first-child {
  border-top: 1px solid var(--line);
}

.project p {
  margin: 6px 0 0;
}

.project span {
  justify-self: end;
  padding-top: 2px;
  color: var(--accent-strong);
  text-align: right;
  font-weight: 650;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 20px;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.timeline time {
  color: var(--muted);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
}

.footer {
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 14px/1.5 Inter, "Segoe UI", Arial, sans-serif;
  text-align: right;
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 30px, 1060px);
    padding-top: 26px;
  }

  .profile {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 24px;
  }

  .profile h1 {
    font-size: 40px;
  }

  .avatar {
    width: 150px;
    grid-row: 1;
  }

  .entry__head,
  .project {
    display: block;
  }

  .entry__head span,
  .project span {
    display: block;
    margin-top: 4px;
    text-align: left;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (max-width: 440px) {
  .page {
    width: min(100% - 24px, 1060px);
  }

  .profile {
    padding: 20px;
  }

  .section h2 {
    font-size: 23px;
  }
}
