:root {
  color-scheme: light;
  --navy: #232f3e;
  --text: #344354;
  --muted: #596979;
  --accent: #24617d;
  --sidebar-link: #b6dce9;
  --border: #dce4ea;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  background-color: #edf1f5;
  color: var(--text);
}

.resume-container {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  grid-template-areas: 'profile content' 'details content' 'details actions';
  max-width: 1080px;
  margin: 40px auto;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(23, 39, 57, 0.1);
}

.left-column {
  min-width: 0;
  background-color: var(--navy);
  color: #edf3f8;
  padding: 32px 28px;
}

.profile {
  grid-area: profile;
  text-align: center;
  border-radius: 12px 0 0 0;
  padding-top: 40px;
  padding-bottom: 24px;
}

.left-column img {
  border-radius: 50%;
  width: 110px;
  height: 110px;
  object-fit: cover;
  object-position: center 15%;
  margin-bottom: 15px;
}

.profile h1 {
  color: #fff;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}

.specialty {
  color: #c6dbe8;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

.contact-details {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #455365;
  text-align: left;
  font-size: 14px;
}

.contact-details p + p {
  margin-top: 8px;
}

.contact-details a {
  overflow-wrap: anywhere;
}

.sidebar-details {
  grid-area: details;
  border-radius: 0 0 0 12px;
  padding-top: 8px;
}

.left-section + .left-section {
  margin-top: 28px;
}

.left-section h2 {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid #455365;
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.left-section ul {
  list-style: none;
}

.left-section li {
  font-size: 15px;
  margin-bottom: 8px;
}

.skill-group + .skill-group {
  margin-top: 16px;
}

.skill-group h3 {
  color: #c6dbe8;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 6px;
}

.skill-group li {
  margin-bottom: 4px;
}

.right-column {
  grid-area: content;
  min-width: 0;
  padding: 40px 44px 0;
}

.section {
  margin-bottom: 34px;
}

.section h2 {
  color: var(--navy);
  font-size: 21px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.3px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.professional-summary {
  text-align: left;
}

.experience-item + .experience-item,
.education-item + .education-item {
  border-top: 1px solid var(--border);
  margin-top: 22px;
  padding-top: 22px;
}

.title {
  color: var(--navy);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.5;
  margin-bottom: 5px;
}

.company {
  color: var(--accent);
  font-weight: 600;
}

.right-column small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.experience-item > p + p {
  margin-top: 10px;
}

.experience-highlights {
  margin-top: 10px;
  padding-left: 20px;
}

.experience-highlights li + li {
  margin-top: 6px;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.left-column a {
  color: var(--sidebar-link);
}

a:hover {
  text-decoration-thickness: 2px;
}

.left-column a:hover {
  color: #fff;
}

a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
  border-radius: 2px;
}

.resume-actions {
  grid-area: actions;
  min-width: 0;
  padding: 0 44px 40px;
}

.download-btn {
  display: block;
  margin: 8px 0 0 auto;
  background-color: var(--navy);
  color: #fff;
  padding: 12px 20px;
  min-height: 44px;
  border: 1px solid var(--navy);
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.download-btn:hover {
  background-color: var(--accent);
  border-color: var(--accent);
}

.download-btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

@media screen and (max-width: 1140px) {
  .resume-container {
    margin: 24px;
  }

  .right-column {
    padding: 32px 32px 0;
  }

  .resume-actions {
    padding: 0 32px 32px;
  }
}

@media screen and (max-width: 900px) {
  .resume-container {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: 'profile' 'content' 'details' 'actions';
  }

  .profile {
    border-radius: 12px 12px 0 0;
    padding: 28px;
  }

  .contact-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 24px;
    max-width: 600px;
    margin: 20px auto 0;
  }

  .contact-details p + p {
    margin-top: 0;
  }

  .sidebar-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding: 28px;
    border-radius: 0;
  }

  .right-column {
    padding-bottom: 32px;
  }

  .resume-actions {
    padding: 28px;
  }

  .download-btn {
    width: 100%;
    margin: 0;
  }

  .left-section + .left-section {
    margin-top: 0;
  }
}

@media screen and (max-width: 540px) {
  .resume-container {
    margin: 12px;
  }

  .profile,
  .right-column,
  .sidebar-details,
  .resume-actions {
    padding: 28px 20px;
  }

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

  .contact-details,
  .sidebar-details {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .download-btn {
    width: 100%;
  }
}
