body {
  font-family: var(--body-font);
  font-optical-sizing: auto;
  color: var(--text-color);
  background: var(--bg-color);
  font-size: var(--base-font-size);
  text-wrap: pretty;
}

.container {
  max-width: var(--container-max-width);
  padding: 4vh;
  margin: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  margin-bottom: 1rem;
}

h1 { font-size: calc(var(--base-font-size) * var(--scale-ratio) * 2.5); }
h2 { font-size: calc(var(--base-font-size) * var(--scale-ratio) * 1.5); }
h3 { font-size: calc(var(--base-font-size) * var(--scale-ratio) * 1.125); }
h4 { font-size: calc(var(--base-font-size) * var(--scale-ratio) * 1.1); }
h5 { font-size: calc(var(--base-font-size) * var(--scale-ratio) * 1.05); }
h6 { font-size: calc(var(--base-font-size) * var(--scale-ratio) * 1); }

p {
  margin-bottom: 1rem;
}

p:first-of-type {
  color: var(--primary-color);
  font-weight: 500;
  font-size: larger;
  letter-spacing: .1rem;
  line-height: 1.8;
}

a {
  color: var(--primary-color);
}

em {
  color: var(--secondary-color);
}

/* Utility */

.window-center {
  height: 100vh;
  width: 100vw;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.job-title {
  display: flex;
  align-items: center;
}

.job-title em {
  background: var(--highlight-lightest-variant);
  border-radius: 6px;
  padding: 5px 8px;
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  margin-left: 1rem;
}

input, button {
  padding: 3px 10px;
  border: 3px solid;
  background: transparent;
  border-radius: 0;
}

button {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 0px !important;
}

.email-hidden {
  display: none;
}

/* Tooltip */
.tooltip-container {
  position: relative;
  display: inline-block;
}

.tooltip-trigger {
  cursor: pointer;
  text-decoration: underline;
}

.tooltip-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0%;
  background-color: #fff;
  border: 3px solid #000;
  padding: 1rem;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 1);
  z-index: 10;
  min-width: 300px;
  max-width: 75vw;
  overflow: scroll;
}

.tooltip-content .close-tooltip {
  content: 'x';
  position: sticky;
  top: 0;
  left: 2px;
  border: 3px solid;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  color: #333;
  background: white;
  outline: 5px solid white;
  z-index: 3;
}

.tooltip-content .tooltip-text {
  margin-top: 2rem;
}

.tooltip-trigger > code {
  background: var(--code-bg-color);
  color: white;
  transition: 600ms all ease-in-out;
  transform-origin: bottom left;
}

.tooltip-trigger:hover > code {
  transform: scale(1.25);
  z-index: 1;
}

.tooltip-trigger:focus > code {
  transform: scale(2);
  font-weight: 900;
  box-shadow: 0 0 100vh 100vh rgba(89, 70, 154, .96);
}

/* Code Editor */

.code-editor {
  position: relative;
}

.code-editor code {
  background: #222;
  color: #f4f4f4;
  display: block;
  overflow: scroll;
  font-size: .9rem;
  margin: 0;
}

.code-editor::before {
  content: "Code <>";
  position: absolute;
  top: .5rem;
  right: 1rem;
  font-size: 14px;
  font-weight: bold;
  color: #282c34;
  background-color: #abb2bf;
  padding: 2px 6px;
  border-radius: 3px;
}

.skill-group strong {
  display: block;
  flex-basis: 100%;
  margin-bottom: .25rem;
}