:root {
  --paper: #ffffff;
  --ink: #121212;
  --muted: #4d4d4d;
  --accent: #245a7a;
  --rule: #4f7d99;
  --screen: #e9ebee;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--screen);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.28;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 24, 31, 0.94);
  backdrop-filter: blur(10px);
}

.site-navbar {
  display: flex;
  min-height: 64px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  color: #f4f6fb;
}

.site-brand {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.site-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-links a {
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  color: #cbd2da;
  font-size: 0.9rem;
  transition: color 150ms ease, border-color 150ms ease;
}

.site-links a:hover,
.site-links a:focus-visible {
  color: #ffffff;
}

.site-links a[aria-current="page"] {
  border-bottom-color: #ffffff;
  color: #ffffff;
}

.resume-actions {
  display: flex;
  width: min(100% - 2rem, 8.5in);
  justify-content: space-between;
  margin: 1rem auto;
  font-family: Arial, Helvetica, sans-serif;
}

.resume-actions a {
  padding: 0.55rem 0.8rem;
  background: var(--paper);
  border: 1px solid #d2d5d9;
  border-radius: 5px;
  box-shadow: 0 6px 18px rgba(20, 25, 31, 0.1);
  font-size: 0.8rem;
  font-weight: 700;
}

.resume-page {
  display: flex;
  flex-direction: column;
  width: 8.5in;
  min-height: 11in;
  margin: 0 auto 2rem;
  padding: 0.5in 0.54in 0.4in;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 18px 55px rgba(20, 25, 31, 0.2);
}

.resume-header {
  margin-bottom: 0;
  padding-bottom: 0.21in;
  border-bottom: 2px solid var(--rule);
  text-align: center;
}

.resume-header h1 {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 26pt;
  line-height: 1;
}

.resume-title {
  margin: 0.08in 0 0.12in;
  color: var(--accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10pt;
  font-weight: 700;
  letter-spacing: 0;
}

.resume-title span {
  padding: 0 0.035in;
  color: #7f8b94;
}

address {
  font-style: normal;
}

.contact-block {
  display: grid;
  gap: 0.075in;
  justify-items: center;
  color: var(--muted);
  font-size: 8.5pt;
}

.contact-row,
.contact-email {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.07in;
}

.contact-label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 6.7pt;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink);
}

.contact-email a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-divider {
  color: #b8b8b8;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  gap: 0.18in;
  margin: 0.045in auto 0;
}

.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.045in;
  color: var(--muted);
  white-space: nowrap;
}

.profile-link-icon {
  width: 0.15in;
  height: 0.15in;
  flex: 0 0 auto;
  fill: #e24329;
}

.linkedin-icon {
  fill: #0a66c2;
}

.linkedin-icon text {
  fill: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 700;
}

.website-icon {
  fill: none;
  stroke: #4d4d4d;
  stroke-width: 1.6;
}

.resume-section {
  margin-top: 0.18in;
  flex: 0 0 auto;
}

.resume-header + .resume-section {
  margin-top: 0.22in;
}

.resume-section h2 {
  margin: 0 0 0.085in;
  padding-bottom: 0.025in;
  border-bottom: 1.5px solid var(--rule);
  color: var(--accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14pt;
  line-height: 1;
}

.resume-section h2 span {
  float: right;
  padding-top: 2px;
  color: var(--muted);
  font-size: 6.8pt;
  font-weight: 400;
}

.timeline-entry {
  display: grid;
  grid-template-columns: 0.88in minmax(0, 1fr);
  gap: 0.1in;
  margin-top: 0.105in;
  break-inside: avoid;
}

.entry-date {
  margin: 0;
  padding-top: 0.01in;
  font-size: 8.5pt;
  text-align: right;
  white-space: nowrap;
}

.entry-content {
  min-width: 0;
}

.entry-content h3 {
  margin: 0;
  font-size: 9.7pt;
  line-height: 1.18;
}

.entry-content h3 span {
  color: var(--muted);
  font-weight: 400;
}

.entry-content ul {
  margin: 0.035in 0 0 0.13in;
  padding: 0;
}

.entry-content li,
.entry-content p {
  margin: 0.018in 0;
  font-size: 8.7pt;
  line-height: 1.22;
}

.entry-content li {
  padding-left: 0.025in;
}

.project-entry {
  display: grid;
  grid-template-columns: 2.6in minmax(0, 1fr);
  gap: 0.08in;
  align-items: baseline;
  margin-top: 0.075in;
  break-inside: avoid;
}

.project-entry h3,
.project-entry p {
  margin: 0;
}

.project-entry h3 {
  font-size: 9.7pt;
  line-height: 1.18;
}

.project-entry p {
  font-size: 8.7pt;
  line-height: 1.22;
}

.education-entry {
  margin-top: 0.07in;
}

.credential-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.12in;
  align-items: baseline;
  margin: 0.06in 0 0 0.98in;
}

.credential-entry h3,
.credential-entry p {
  margin: 0;
  font-size: 8.7pt;
  line-height: 1.2;
}

.credential-entry h3 span {
  color: var(--muted);
  font-weight: 400;
}

.credential-entry p {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

.skills-list {
  margin: 0;
  font-size: 8.5pt;
}

.skills-list div {
  display: grid;
  grid-template-columns: 1.62in minmax(0, 1fr);
  gap: 0.12in;
  margin-top: 0.055in;
}

.skills-list dt {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 7.7pt;
  font-weight: 700;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
}

.skills-list dd {
  margin: 0;
}

.skills-list .languages-row {
  margin-top: 0.08in;
  padding-top: 0.07in;
  border-top: 1px solid rgba(36, 90, 122, 0.2);
}

.languages-row dd {
  color: var(--ink);
}

@media (max-width: 850px) {
  .resume-actions {
    width: calc(100% - 1rem);
  }

  .resume-page {
    width: 100%;
    min-height: auto;
    margin: 0;
    padding: 1.25rem;
    overflow: visible;
    box-shadow: none;
  }
}

@media (max-width: 620px) {
  .site-navbar {
    min-height: auto;
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
  }

  .site-brand {
    font-size: 0.9rem;
  }

  .site-links {
    width: 100%;
    justify-content: center;
    gap: 0.9rem;
  }

  .site-links a {
    font-size: 0.8rem;
  }

  .timeline-entry,
  .project-entry .entry-content,
  .skills-list div,
  .credential-entry {
    grid-template-columns: 1fr;
  }

  .credential-entry {
    margin-left: 0;
  }

  .entry-date,
  .skills-list dt {
    text-align: left;
  }

  .skills-list dt {
    white-space: normal;
  }

  .resume-section h2 span {
    display: block;
    float: none;
    margin-top: 0.3rem;
  }
}

@media print {
  @page {
    size: letter;
    margin: 0;
  }

  html,
  body {
    background: #ffffff;
  }

  .resume-actions {
    display: none;
  }

  .site-header {
    display: none;
  }

  .resume-page {
    width: 8.5in;
    height: 11in;
    min-height: 11in;
    margin: 0;
    padding-top: 0.4in;
    padding-right: 0.54in;
    padding-bottom: 0.3in;
    padding-left: 0.54in;
    box-shadow: none;
  }

  .resume-header {
    padding-bottom: 0.18in;
  }

  .resume-header h1 {
    font-size: 25pt;
  }

  .resume-title {
    font-size: 9.7pt;
  }

  .contact-block {
    font-size: 8.2pt;
  }

  .resume-section {
    margin-top: 0.13in;
  }

  .resume-header + .resume-section {
    margin-top: 0.16in;
  }

  .resume-section h2 {
    font-size: 13.5pt;
  }

  .timeline-entry {
    margin-top: 0.075in;
  }

  .entry-content h3,
  .project-entry h3 {
    font-size: 9.4pt;
  }

  .entry-content ul {
    margin-top: 0.025in;
  }

  .entry-content li,
  .entry-content p {
    margin-top: 0.012in;
    margin-bottom: 0.012in;
    font-size: 8.2pt;
    line-height: 1.16;
  }

  .project-entry {
    margin-top: 0.06in;
  }

  .project-entry p,
  .credential-entry h3,
  .credential-entry p {
    font-size: 8.4pt;
  }

  .credential-entry {
    margin-top: 0.05in;
  }

  .skills-list {
    font-size: 8.2pt;
  }

  .skills-list div {
    margin-top: 0.045in;
  }

  .skills-list dt {
    font-size: 7.4pt;
  }

  html[lang="fr"] .resume-page {
    padding-top: 0.25in;
    padding-bottom: 0.2in;
  }

  html[lang="fr"] .resume-section {
    margin-top: 0.12in;
  }

  html[lang="fr"] .resume-header + .resume-section {
    margin-top: 0.145in;
  }

  html[lang="fr"] .timeline-entry {
    margin-top: 0.07in;
  }

  html[lang="fr"] .project-entry {
    margin-top: 0.055in;
  }

  html[lang="fr"] .credential-entry {
    margin-top: 0.045in;
  }

  html[lang="fr"] .skills-list div {
    margin-top: 0.03in;
  }

  html[lang="fr"] .skills-list .languages-row {
    padding-top: 0.05in;
  }
}
