:root {
  --text: #333333;
  --muted: #999999;
  --faint: #d9d9d9;
  --link: #0000ee;
  --bg: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.38;
}

a {
  color: var(--link);
}

.page {
  width: min(1180px, calc(100% - 34px));
  margin: 0 auto;
}

.hero {
  min-height: 340px;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 52px;
  align-items: center;
  justify-content: center;
  padding: 34px 0 42px;
  border-bottom: 1px solid var(--faint);
}

.photo {
  width: 305px;
  height: 305px;
  justify-self: end;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.25), transparent 24%),
    linear-gradient(135deg, #183f32, #326e56);
  font-size: 4.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

h1 {
  margin: 0 0 10px;
  font-size: 3.25rem;
  line-height: 1;
  font-weight: 400;
}

.tagline {
  max-width: 650px;
  margin: 0 0 18px;
  color: #8d8d8d;
  font-size: 1.45rem;
  font-style: italic;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.socials a {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #333333;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.socials a:hover,
.socials a:focus-visible {
  background: #111111;
}

.timeline {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 0 44px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 180px;
  width: 3px;
  background: var(--faint);
}

.item {
  position: relative;
  display: grid;
  grid-template-columns: 150px 28px 92px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 9px 0;
}

.date {
  color: #b6b6b6;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: right;
  padding-top: 2px;
}

.dot {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  margin: 4px auto 0;
  border-radius: 50%;
  background: #cfcfcf;
}

.logo {
  width: 82px;
  min-height: 82px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #ffffff;
  background: linear-gradient(135deg, #1d6048, #d4a044);
  font-weight: 700;
  font-size: 1.05rem;
}

.item:nth-child(3) .logo {
  background: linear-gradient(135deg, #243b6b, #5c8ad7);
}

.item:nth-child(4) .logo {
  background: linear-gradient(135deg, #2d7a58, #8cc06a);
}

.item:nth-child(5) .logo {
  background: linear-gradient(135deg, #1f1f1f, #bd7d3d);
}

.card {
  max-width: 790px;
}

.card p {
  margin: 0 0 14px;
}

.card p:last-child {
  margin-bottom: 0;
}

.text-only {
  grid-column: 3 / -1;
}

.footer {
  width: min(980px, calc(100% - 34px));
  margin: 0 auto;
  padding: 24px 0 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  border-top: 1px solid var(--faint);
  font-size: 0.98rem;
}

@media (max-width: 860px) {
  body {
    font-size: 16px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
    min-height: 0;
    padding-top: 32px;
  }

  .photo {
    width: 210px;
    height: 210px;
    justify-self: center;
    font-size: 3.2rem;
  }

  h1 {
    font-size: 2.65rem;
  }

  .tagline {
    margin-left: auto;
    margin-right: auto;
    font-size: 1.18rem;
  }

  .socials {
    justify-content: center;
  }

  .timeline {
    padding-top: 20px;
  }

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

  .item {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 0;
  }

  .date {
    grid-column: 2;
    text-align: left;
    padding-top: 0;
  }

  .dot {
    grid-column: 1;
    grid-row: 1 / span 3;
    margin-top: 4px;
  }

  .logo {
    grid-column: 2;
    width: 70px;
    min-height: 70px;
  }

  .card,
  .text-only {
    grid-column: 2;
  }
}
