:root {
  --paper: #ffffff;
  --ink: #111111;
  --muted: #66625d;
  --line: #d6d2cb;
  --accent: #d94b32;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #e8e6e1;

  color: var(--ink);

  font-family:
    Arial,
    Helvetica,
    sans-serif;
}

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


/* =========================
   TOOLBAR
========================= */

.cv-toolbar {
  max-width: 210mm;

  margin: 25px auto 15px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  font-size: 0.8rem;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cv-toolbar button {
  padding: 12px 18px;

  border: none;

  background: var(--ink);
  color: white;

  font: inherit;

  cursor: pointer;
}


/* =========================
   CV PAGE
========================= */

.cv {
  width: 210mm;
  min-height: 297mm;

  margin: 0 auto 40px;

  padding:
    18mm
    18mm
    15mm;

  background: var(--paper);
}


/* =========================
   HEADER
========================= */

.cv-header {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto;

  gap: 30px;

  padding-bottom: 18px;

  border-bottom:
    2px solid var(--ink);
}

.cv-label {
  margin: 0 0 7px;

  color: var(--accent);

  font-size: 8pt;
  font-weight: 700;

  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cv-header h1 {
  margin: 0;

  font-size: 31pt;
  line-height: 0.9;

  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.cv-title {
  margin: 8px 0 0;

  font-size: 11pt;
  font-weight: 700;
}

.cv-contact {
  text-align: right;

  font-size: 8.5pt;
  line-height: 1.45;
}

.cv-contact p {
  margin: 0 0 3px;
}


/* =========================
   SECTIONS
========================= */

.cv section {
  margin-top: 24px;
}

.cv-profile {
  display: grid;

  grid-template-columns:
    105px
    minmax(0, 1fr);

  gap: 20px;
}

.cv-profile h2 {
  margin: 0;

  font-size: 8pt;

  text-transform: uppercase;
  letter-spacing: 0.08em;

  color: var(--muted);
}

.cv-profile > p {
  margin: 0;

  max-width: 580px;

  font-size: 10pt;
  line-height: 1.45;
}

.cv-section-heading {
  margin-bottom: 12px;

  padding-bottom: 6px;

  border-bottom:
    1px solid var(--ink);
}

.cv-section-heading h2 {
  margin: 0;

  font-size: 9pt;

  text-transform: uppercase;
  letter-spacing: 0.08em;
}


/* =========================
   FEATURED EXPERIENCE
========================= */

.cv-featured-credit {
  padding: 11px 0 13px;

  border-bottom:
    1px solid var(--line);

  break-inside: avoid;
  page-break-inside: avoid;
}

.cv-role-line {
  display: flex;

  justify-content: space-between;
  align-items: flex-start;

  gap: 20px;
}

.cv-featured-credit h3 {
  margin: 0;

  font-size: 12pt;
  line-height: 1.1;

  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.cv-role {
  margin: 3px 0 0;

  color: var(--accent);

  font-size: 8.5pt;
  font-weight: 700;

  text-transform: uppercase;
}

.cv-date {
  flex: 0 0 auto;

  font-size: 8pt;
  font-weight: 700;

  color: var(--muted);
}

.cv-production {
  margin: 4px 0 7px;

  font-size: 8pt;

  color: var(--muted);
}

.cv-summary {
  margin: 0 0 6px;

  font-size: 9pt;
  line-height: 1.4;
}

.cv-featured-credit ul {
  margin: 5px 0 0;

  padding-left: 17px;
}

.cv-featured-credit li {
  margin-bottom: 3px;

  font-size: 8.5pt;
  line-height: 1.35;
}


/* =========================
   FULL CREDITS
========================= */

.cv-credit-list {
  border-top:
    1px solid var(--line);
}

.cv-credit-row {
  display: grid;

  grid-template-columns:
    75px
    minmax(0, 1fr)
    160px;

  gap: 12px;

  padding: 7px 0;

  border-bottom:
    1px solid var(--line);

  font-size: 8pt;

  break-inside: avoid;
}

.cv-credit-year {
  color: var(--muted);

  font-weight: 700;
}

.cv-credit-row strong {
  display: block;

  text-transform: uppercase;
}

.cv-credit-row span {
  display: block;

  margin-top: 2px;

  color: var(--accent);

  font-weight: 700;
}

.cv-credit-company {
  color: var(--muted);

  text-align: right;
}


/* =========================
   ADDITIONAL
========================= */

.cv-additional p {
  margin: 0;

  font-size: 9pt;
  line-height: 1.5;
}


/* =========================
   FOOTER
========================= */

.cv-footer {
  margin-top: 30px;

  padding-top: 8px;

  display: flex;
  justify-content: space-between;

  border-top:
    1px solid var(--line);

  font-size: 7.5pt;

  color: var(--muted);
}


/* =========================
   PRINT / PDF
========================= */

@page {
  size: A4;
  margin:
    18mm
    17mm
    16mm;
}

@media print {

  body {
    background: white;
  }

  .cv-toolbar {
    display: none;
  }

  .cv {
    width: auto;
    min-height: 0;

    margin: 0;
    padding: 0;

    box-shadow: none;
  }

}


/* =========================
   MOBILE PREVIEW
========================= */

@media screen and (max-width: 800px) {

  body {
    background: white;
  }

  .cv-toolbar {
    width: auto;

    margin: 15px 18px;
  }

  .cv {
    width: 100%;
    min-height: 0;

    margin: 0;

    padding: 28px 18px;
  }

  .cv-header {
    grid-template-columns: 1fr;
  }

  .cv-contact {
    text-align: left;
  }

  .cv-profile {
    grid-template-columns: 1fr;
  }

  .cv-credit-row {
    grid-template-columns:
      60px
      minmax(0, 1fr);
  }

  .cv-credit-company {
    grid-column: 2;

    text-align: left;
  }

}