$headerFont: system-ui, monospace;
$bodyFont: Verdana, monospace;

@mixin a4_dimensions {
  width: 210mm;
  height: 100%;
}

@mixin print_dimensions {
  width: 210mm;
  height: 297mm;
}


.resume-page {
  --fg: #000;
  padding: 2em 0;
  color: var(--fg);
  position: relative;
  margin: 4em 0;
  background: white;
  // display: grid;
  // justify-content: center;
  // align-content: center;
  height: max-content;
  // box-shadow:  1em 1em 1em 1em rgba(90, 90, 90, 0.384);
  box-shadow: 0px 3px 15px rgba(0,0,0,0.2);

  @media print {
    @page {
      size: A4;
      margin: 0;
      padding: 0;
    }

    html,
    body {
      @include print_dimensions;
    }
  }
}

@media print {
  .resume-page {
    margin: 0;
  }
}

.A4 {
  @include a4_dimensions;
  margin: 0;
  padding: 1em 3em;

  @media print {


    @page {
      size: A4;
      margin: none;
    }

    font-size: 12pt;
    line-height: 1.2;
    animation: none;
    box-shadow: none;
    opacity: 1;
  }
}


.resume {
  margin: 0;
  padding: 0;
  font-family: $bodyFont;

  header {
    text-align: center;
  }

  ul {
    padding-left: 2em;
  }

}

.title {
  font-family: $headerFont;
  font-size: 2.68em;
  // color: var(--fg);
}

.first-name {
  font-weight: 100;
  // color: var(--fg);
}

.last-name {
  font-weight: 900;
  // color: var(--fg);
}

.position {
  font-family: $bodyFont;
  font-size: 0.7em;
}

.location {
  font-family: $bodyFont;
  // color: var(--c7);
  font-size: 0.8em;
}

.contact {
  font-size: 0.9em;
  padding-bottom: 0.5em;

  span {
    padding: 0.1em;
    margin: auto;
  }
}

.summary {
  text-align: left;
}

.section-title {
  font-family: $headerFont;
  font-size: 1.5em;
  font-weight: bold;
  // color: var(--fg);
  overflow: hidden;
  text-align: left;

  @media print {
    line-height: 1.5;
  }
}

.section-title:after {
  background-color: var(--bg);
  content: "";
  display: inline-block;
  height: 2px;
  position: relative;
  width: 100%;
}

.section-title:after {
  background-color: var(--bg);
  left: 0;
  height: 2px;
  margin-right: -50%;
}

.section-heading-1 {
  display: inline;
  font-weight: 500;
  font-family: $headerFont;
  font-size: 1em;
  // color: var(--fg);

  span,
  p {
    font-weight: normal;
    // color: var(--c5);
    font-size: 0.7em;
  }
}

.section-heading-2 {
  font-weight: normal;
  font-family: $headerFont;
  font-size: 0.8em;
  // color: var(--c6);

  span,
  p {
    font-weight: normal;
    color: var(--c2);
  }
}

.left-meta {
  position: relative;
  font-style: italic;
  float: right;
  font-size: 0.8em;
  text-align: right;
}

.list {
  padding: 0.25em 0.75em;
  font-size: 0.7em;
  list-style-type: square;
}

.keywords {
  font-size: 0.9em;
  // color: var(--c1);
  // background-color: var(--c4);
  // border: solid 2px red;
  // border-radius: 4px;
  // padding: 0 10px;
}

.plain-link {
  text-decoration: none;
  // color: var(--c4);
}

.icon {
  padding: 0.5em;
  margin: auto;
  font-size: 0.75em;
  width: 2em;
  min-width: 2em;
  min-height: 2em;
  text-align: center;
  text-decoration: none;
  // color: red;

  @media print {
    font-size: 0.75em;
    color: black;
    animation: none;
    box-shadow: none;
    width: 2em;
    height: 2em;
    -webkit-box-shadow: none;
  }
}
