@page {
  size: auto; /* auto is the initial value */
  margin: 10mm; /* this affects the margin in the printer settings */
}

@font-face {
  font-family: "Bitstream Vera Sans";
  font-style: normal;
  font-weight: normal;
  src:
    local("Bitstream Vera Sans"),
    url("Vera.woff") format("woff");
}

@font-face {
  font-family: "Bitstream Vera Sans";
  font-style: bold;
  font-weight: bold;
  src:
    local("Bitstream Vera Sans Bold"),
    url("Vera-Bold.woff") format("woff");
}

/* Copper on Charcoal */
:root {
  --text: #334155;
  --heading: #9a5a2f;
  --header-bg: #25211e;
  --header-text: #ffffff;
  --header-text-hover: #ecdcce;
  --header-divider: #5a4f45;
  --accent: #b0703c;
  --divider: #ece4dc;
  --tag-bg: #f8f5f1;
  --tag-border: #ece4dc;
  --tag-hover-bg: #ecdcce;
  --tag-hover-border: #d6bca0;
}

html {
  background-color: #ffffff;
  margin: 0px;
}

body {
  font-family: "Bitstream Vera Sans", sans-serif;
  font-size: 1em;
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
  line-height: 1.5em;
  color: var(--text);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 900;
}

h1 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  line-height: 1.3em;
  font-size: 2.5em;
  letter-spacing: -0.01em;
}

h2 {
  font-family: "Libre Baskerville", serif;
  line-height: 1.4em;
  font-size: 1.15em;
  margin-bottom: 16px;
}

h3 {
  font-weight: normal;
  margin-bottom: 8px;
}

h5 {
  margin: 0px 0 4px;
}

p {
  margin: 12px 0;
}

ul {
  margin: 0;
}
ul + ul {
  margin-top: 16px;
}

body > div {
  padding: 16px;
}

aside,
main {
  box-sizing: border-box;
  padding: 0 16px 16px;
  margin-top: 16px;
}

aside h2,
main h2 {
  color: var(--heading);
  font-size: 1.6em;
  font-weight: 400;
}

aside {
  float: left;
  width: 33%;
}

main {
  float: right;
  width: 66%;
  border-left: 1px solid var(--divider);
}

main h3 span {
  vertical-align: middle;
}

main a,
main a:visited {
  color: var(--accent);
  text-decoration: underline;
}

#profile {
  margin-bottom: 16px;
  background-color: var(--header-bg);
  color: var(--header-text);
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

#profile h2 {
  font-weight: normal;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--header-divider);
  margin-bottom: 8px;
}

#profile a {
  color: var(--header-text);
  text-decoration: none;
}

#profile a:hover {
  color: var(--header-text-hover);
  text-decoration: underline;
}

#profile .bio,
#profile .contact {
  float: left;
}

#profile h1,
#profile h2 {
  margin: 0;
}

#profile .bio {
  float: left;
  width: 66%;
}

#profile .contact {
  float: right;
  text-align: right;
  max-width: 33%;
  font-size: 0.85em;
}

#profile .contact ul {
  padding: 0 0 0 24px;
  text-align: left;
}

#profile .contact li {
  list-style: none;
  padding-left: 8px;
}

#profile .contact li span {
  display: inline-block;
  vertical-align: top;
}

#profile .contact li i {
  margin-left: -24px;
  margin-right: 8px;
}

.category-list {
  margin: 0;
  padding: 0;
}

.category-list > li {
  list-style: none;
  margin-bottom: 16px;
}

.qualification-list {
  padding-left: 32px;
}

.qualification-list li {
  list-style: none;
  position: relative;
}

.qualification-list li:before {
  content: "+";
  position: absolute;
  left: -20px;
  top: -1px;
  color: var(--accent);
  font-weight: 400;
  font-size: 11px;
}

.tag-list {
  margin-bottom: 32px;
  padding-left: 0px;
}

.tag-list li {
  list-style: none;
  display: inline-block;
  margin: 4px 0;
  padding: 6px 12px;
  background-color: var(--tag-bg);
  border: 1px solid var(--tag-border);
  border-radius: 6px;
}

.tag-list li:hover {
  background-color: var(--tag-hover-bg);
  border-color: var(--tag-hover-border);
  cursor: default;
}

#education p {
  margin: 4px 0 16px 0;
}

#references {
  margin-top: 32px;
}

img.bullet {
  margin: 0 10px 0 -32px;
  vertical-align: middle;
}

main {
  padding-left: 48px;
}

@media only screen and (max-width: 800px) {
  body {
    padding: 0;
  }

  aside,
  main,
  #profile .bio,
  #profile .contact {
    float: none;
    width: 100%;
    max-width: 100%;
    border: none;
  }
}

@media print {
  :root {
    --heading: var(--header-bg);
  }

  body {
    padding: 0px;
    font-size: 12px;
    line-height: 16px;
  }
  .no-print {
    display: none;
  }

  #profile {
    color: #000;
    margin-bottom: 0;
    background-color: transparent;
    box-shadow: none;
  }

  aside,
  main {
    page-break-inside: auto;
    break-inside: auto;
  }

  main {
    padding-bottom: 0;
  }

  #profile a {
    color: #000;
  }

  #education {
    page-break-inside: avoid;
  }

  #education h2 {
    page-break-after: avoid;
  }

  .category-list > li {
    page-break-inside: avoid;
  }
}
