/* Fresh compiled CSS replacement for the resume page. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --text: #20252b;
  --muted: #626b75;
  --accent: #315f7d;
  --accent-dark: #24485f;
  --border: #d9dee3;
  --paper: #ffffff;
  --background-dark: #182733;
  --background-mid: #29475a;
  --background-light: #42687b;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-mid) 45%, var(--background-light) 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.resume {
  width: calc(100% - 3rem);
  max-width: 1050px;
  margin: 3rem auto;
  padding: 3.5rem 4rem;
  background: var(--paper);
  border-radius: 6px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  overflow-wrap: break-word;
}

.resume p {
  margin: 0.45rem 0 0.8rem;
}

.resume a {
  color: var(--accent);
  text-decoration: none;
}

.resume a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* Header */

.resume-header {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  gap: 2.25rem;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 2px solid var(--accent);
}

.headshot {
  display: block;
  width: 155px;
  height: 155px;
  object-fit: cover;
  object-position: center;
  border-radius: 5px;
}

.identity {
  min-width: 0;
}

.identity h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
}

.tagline {
  margin: 0.7rem 0 0 !important;
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.contact {
  margin: 0.65rem 0 0 !important;
  color: var(--muted);
  font-size: 0.95rem;
}

.resume-actions {
  margin-top: 1rem;
}

.download-button {
  display: inline-block;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: #fff !important;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none !important;
  transition: background 0.15s ease, transform 0.15s ease;
}

.download-button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

/* Sections */

.resume-section {
  margin: 0;
}

.resume-section h2 {
  margin: 2.15rem 0 0.9rem;
  padding-bottom: 0.35rem;
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  border-bottom: 1px solid var(--border);
}

/* Lists */

.resume ul {
  max-width: 100%;
  margin: 0.5rem 0 0.9rem;
  padding-left: 1.35rem;
  list-style-position: outside;
}

.resume li {
  max-width: 100%;
  margin: 0.25rem 0;
  padding-left: 0.1rem;
  color: var(--text);
  overflow-wrap: break-word;
}

.skills-list {
  margin-bottom: 0 !important;
}

.skills-list li {
  margin-bottom: 0.4rem;
}

.responsibilities {
  margin: 0.45rem 0 0 !important;
  padding-left: 1.35rem !important;
}

.responsibilities li {
  margin-bottom: 0.3rem;
}

/* Experience */

.job {
  margin: 1.25rem 0 1.8rem;
}

.job + .job {
  margin-top: 1.8rem;
}

.job-primary {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  width: 100%;
}

.job-primary h3 {
  min-width: 0;
  margin: 0;
  color: var(--accent);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.3;
}

.job-date {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.job-secondary {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem;
  margin-top: 0.1rem;
  color: var(--accent);
  font-size: 0.94rem;
  line-height: 1.3;
}

.employer {
  font-weight: 600;
}

.job-location {
  font-weight: 400;
}

.job-description {
  margin: 0.1rem 0 0.5rem !important;
  color: var(--accent) !important;
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1.3;
  opacity: 0.8;
}

/* Genesis subroles */

.subroles {
  margin-top: 0.8rem;
}

.subrole {
  margin: 0.9rem 0 1rem 0.65rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
}

.subrole:last-child {
  margin-bottom: 0;
}

.subrole-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  width: 100%;
  margin-bottom: 0.2rem;
}

.subrole-header h4 {
  min-width: 0;
  margin: 0;
  color: var(--accent);
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.3;
}

.subrole-date {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Education */

.education-entry {
  margin: 0.85rem 0 1.05rem;
}

.education-primary {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  width: 100%;
}

.education-primary h3 {
  min-width: 0;
  margin: 0;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.education-date {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}

.education-secondary {
  margin-top: 0.1rem;
  color: var(--accent);
  font-size: 0.87rem;
  line-height: 1.3;
  opacity: 0.8;
}

/* Certifications */

.certification {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  width: 100%;
  margin: 0.45rem 0;
  color: var(--accent);
}

.certification-name {
  min-width: 0;
  font-weight: 600;
}

.certification-date {
  flex: 0 0 auto;
  font-size: 0.86rem;
  font-weight: 550;
  white-space: nowrap;
  opacity: 0.82;
}

/* Mobile */

@media (max-width: 700px) {
  body {
    background: #fff;
  }

  .resume {
    width: 100%;
    margin: 0;
    padding: 1.5rem;
    border-radius: 0;
    box-shadow: none;
  }

  .resume-header {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
    margin-bottom: 1.5rem;
  }

  .headshot {
    width: 125px;
    height: 125px;
  }

  .identity h1 {
    font-size: 2.2rem;
  }

  .job-primary,
  .subrole-header,
  .education-primary,
  .certification {
    display: block;
  }

  .job-date,
  .subrole-date,
  .education-date,
  .certification-date {
    display: block;
    margin-top: 0.1rem;
  }

  .subrole {
    margin-left: 0.2rem;
    padding-left: 0.8rem;
  }
}

/* Print */

@media print {
  body {
    background: #fff;
    font-size: 11pt;
  }

  .resume {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .resume-actions {
    display: none;
  }

  .resume-section h2 {
    break-after: avoid;
  }

  .job,
  .education-entry,
  .certification {
    break-inside: avoid;
  }

  a {
    color: inherit !important;
  }
}
