:root{
  --photo:
    url("https://gravatar.com/avatar/e423040b2a76b1351b68cd756436aa5af5131a6a26db6fbb9a3cdbf32b0fbb81?s=500"),
    url("photo.jpg");

  --navy:      #313C4E;   /* header card, section headings, icon badges */
  --teal:      #449399;   /* accent: role, dates, bullets, notch        */
  --sidebar:   #EBEBEB;   /* right column background                   */
  --chip:      #989DA6;   /* skill pills                               */
  --ink:       #000000;   /* body text                                 */
  --paper:     #FFFFFF;

  --font: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* page geometry */
  --margin:    12pt;      /* page margin on all four sides */
  --col-left:  271pt;     /* left (work experience) column */
  --col-gap:    12pt;
  --col-right: 288pt;     /* right (grey sidebar) column   */
  --header-h:  147pt;     /* height of the navy header card */
  --card-w:    285pt;     /* width of the navy header card  */
  --col-flow:  400pt;     /* continuation-page column — caps line length */
}

/* PAGE SETUP */
@page { size: A4; margin: 0; }

*{ box-sizing: border-box; }

html{ background: #8b8b8b; }
body{
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  font-size: 8pt;
  line-height: 1.23;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.page{
  width: 210mm;
  height: 297mm;
  margin: 0 auto;
  padding: var(--margin);
  background: var(--paper);
  position: relative;
  overflow: hidden;
}

/* HEADER */
.header{
  position: relative;
  height: var(--header-h);
}

.header-card{
  width: var(--card-w);
  height: var(--header-h);
  background: var(--navy);
  border-radius: 11pt;
  color: #fff;
  padding: 13pt 74pt 13pt 18pt;
}

.name{
  font-size: 20.1pt;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: .1pt;
  margin: 0 0 1pt;
}

.role{
  font-size: 11pt;
  font-weight: 400;
  line-height: 1.16;
  color: var(--teal);
  margin: 0 0 9pt;
}

.summary{
  font-size: 8pt;
  line-height: 1.23;
  margin: 0;
}

/* photo */
.photo{
  position: absolute;
  top: 14pt;
  left: calc(var(--card-w) - 58pt);
  width: 116pt;
  height: 116pt;
  border-radius: 50%;
  border: 3.5pt solid #fff;
  background-image: var(--photo);
  background-size: cover;
  background-position: center 18%;
  box-shadow: 0 0 0 .5pt #dcdcdc;
}

/* the small teal diamond hanging off the bottom of the card */
.notch{
  position: absolute;
  top: calc(var(--header-h) - 7pt);
  left: calc(var(--card-w) - 7pt);
  width: 14pt;
  height: 14pt;
  background: var(--teal);
  transform: rotate(45deg);
  border-radius: 2pt;
}

/* CONTACT */
.contact{
  position: absolute;
  top: 1.5pt;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 12.7pt;
}

.contact a,
.contact span{ color: var(--ink); text-decoration: none; }

.contact-row{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7pt;
  font-size: 8pt;
  white-space: nowrap;
}

.contact-icon{
  flex: 0 0 auto;
  width: 14pt;
  height: 14pt;
  border-radius: 3pt;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-icon svg{ width: 8.5pt; height: 8.5pt; fill: #fff; }

/* LAYOUT */
.body-grid{
  display: grid;
  grid-template-columns: var(--col-left) var(--col-right);
  gap: var(--col-gap);
  align-items: start;
}

.col-left{
  padding: 26pt 5pt 0 13pt;
}

.col-right{
  background: var(--sidebar);
  border-radius: 11pt;
  padding: 26pt 14pt 20pt;
  min-height: 645pt;
}

/* SECTION HEADERS */
.section{ margin-bottom: 26pt; }
.section:last-child{ margin-bottom: 0; }

.section-head{
  display: flex;
  align-items: center;
  gap: 14pt;
  margin-bottom: 8pt;
}

.section-head h2{
  font-size: 13.9pt;
  font-weight: 900;
  letter-spacing: .3pt;
  line-height: 1.12;
  color: var(--navy);
  margin: 0;
  text-transform: uppercase;
}

.badge{
  position: relative;
  width: 26pt;
  height: 26pt;
  flex: 0 0 auto;
}
.badge::after{
  content: "";
  position: absolute;
  inset: -2pt -6pt -2pt 4pt;
  background: #C1C4CA;
  border-radius: 3pt;
  transform: rotate(45deg);
}
.badge-front{
  position: absolute;
  inset: 0;
  background: var(--navy);
  border-radius: 4pt;
  transform: rotate(45deg);
  z-index: 1;
}
.badge svg{
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 12.5pt; height: 12.5pt;
  fill: #fff;
  z-index: 2;
}

/* WORK EXPERIENCE */
.job{
  margin-bottom: 15pt;
  break-inside: avoid;
}
.job:last-child{ margin-bottom: 0; }

.job-title{
  font-size: 11pt;
  font-weight: 700;
  line-height: 1.16;
  margin: 0;
}
.job-company{
  font-size: 11pt;
  font-weight: 400;
  line-height: 1.16;
  margin: 0 0 2.2pt;
}
.job-meta{
  display: flex;
  justify-content: space-between;
  gap: 10pt;
  font-size: 7.1pt;
  font-style: italic;
  line-height: 1.11;
  color: var(--teal);
  margin-bottom: 4pt;
}
.job-label{
  font-size: 7.1pt;
  font-style: italic;
  line-height: 1.11;
  color: var(--teal);
  margin-bottom: 2.2pt;
}

/* BULLETS */
ul.bullets{
  list-style: none;
  margin: 0;
  padding: 0;
}
ul.bullets li{
  position: relative;
  padding-left: 9.8pt;
  margin-bottom: 3pt;
}
ul.bullets li:last-child{ margin-bottom: 0; }
ul.bullets li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 2.4pt;
  width: 6.4pt;
  height: 6.4pt;
  background: var(--teal);
  clip-path: polygon(0 0, 52% 0, 100% 50%, 52% 100%, 0 100%);
  border-radius: 1pt;
}

/* EDUCATION */
.edu-degree{
  font-size: 11pt;
  font-weight: 700;
  line-height: 1.16;
  margin: 0;
}
.edu-school{
  font-size: 11pt;
  font-weight: 400;
  line-height: 1.16;
  margin: 0 0 2.2pt;
}
.edu-date{
  font-size: 7.1pt;
  font-style: italic;
  line-height: 1.11;
  color: var(--teal);
}

/* SKILLS */
.skills{
  display: flex;
  flex-wrap: wrap;
  gap: 6.5pt;
}
.skills span{
  background: var(--chip);
  color: #fff;
  border-radius: 3pt;
  padding: 4pt 7pt;
  font-size: 8pt;
  line-height: 1.1;
}

/* PROJECTS */
.project{ margin-bottom: 12pt; break-inside: avoid; }
.project:last-child{ margin-bottom: 0; }
.project h3{
  font-size: 8.9pt;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 3pt;
}
.project ul.bullets li{ margin-bottom: 2pt; }

/* CERTIFICATES */
.cert{ margin-bottom: 11pt; }
.cert:last-child{ margin-bottom: 0; }
.cert-name{ font-size: 8.9pt; line-height: 1.2; margin: 0 0 1pt; }
.cert-link{
  font-size: 7.1pt;
  font-style: italic;
  color: #6E747D;
  text-decoration: none;
}

/* CONTINUATION PAGES */
.page + .page{ margin-top: 8mm; }

.page-header{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: .75pt solid var(--navy);
  padding-bottom: 5pt;
  margin-bottom: 18pt;
}
.page-name{
  font-size: 11pt;
  font-weight: 700;
  color: var(--navy);
}
.page-num{
  font-size: 7.1pt;
  font-style: italic;
  color: var(--teal);
}

.col-flow{ padding: 0 13pt; max-width: var(--col-flow); }

/* SCREEN-ONLY BAR */
.hint{
  position: fixed;
  bottom: 10px; right: 10px;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  padding: 6px 11px;
  border-radius: 6px;
  opacity: .9;
  z-index: 99;
}

@media print{
  html{ background: #fff; }
  .hint{ display: none; }
  .page + .page{ margin-top: 0; }
  .page{ break-after: page; }
  .page:last-child{ break-after: auto; }
}
