/* variables */

:root {
  --color-primary: #173EF5;
  --color-secondary: #EEEFDF;

  --font-base: 'Libre Baskerville', serif;
  --font-alt: "Sofia Sans Condensed", sans-serif;

  --spacing-unit: 1rem; 

  --fs-h1: 2.986rem;
  --fs-h2: 2.488rem;
  --fs-h3: 2.074rem;
  --fs-h4: 1.728rem;
  --fs-h5: 1.44rem;
  --fs-h6: 1.2rem;
  --fs-body: 1rem;
}

html {
  font-size: 14px; /* base */
}

body {
  background-color: var(--color-secondary);
  color: var(--color-primary);
  font-family: var(--font-base);
  font-size: 1rem; /* 14px */
  line-height: 1.6;
  margin: 0;
  min-height: 100vh; 
  border: 25px solid #FFF; 
  box-sizing: border-box; 
}

.wrapper {
  max-width: 800px;
  margin: 100px;
}

.alt-heading {
  font-family: var(--font-alt);
  font-weight: 700;
  text-transform: uppercase;
}

a, a:link, a:visited {
  color: var(--color-primary);
}

h1, h2, h3, h4, h5, h6, p, li {
  font-weight: 400;
  margin-bottom: 0.5em;
}

/* Minor Third */
h1 {
  font-size: 2.986rem; 
  line-height: 1.2;
}

h2 {
  font-size: 2.488rem; 
  line-height: 1.25;
}

h3 {
  font-size: 2.074rem; 
  line-height: 1.3;
}

h4 {
  font-size: 1.728rem; 
  line-height: 1.35;
}

h5 {
  font-size: 1.44rem; 
  line-height: 1.4;
}

h6 {
  font-size: 1.2rem;
  line-height: 1.45;
}

p, li {
  font-size: 1rem; /* 14px base */
  margin-bottom: 1em;
}

.logo {
  color: var(--color-secondary);
  background-color: var(--color-primary);
  display: inline;
  padding: 4px 8px;
  border-radius: 7px;
  letter-spacing: 1px;
}

.intro {
  padding-bottom: 1.44rem;
  padding-top: 10%;
}

.intro-index {
  border-bottom: 1px solid;
}

.links, .company {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.links {
  padding-top: 1.44rem;
}

.social {
  font-size: 1.44rem;
}

.position {
  margin-bottom: 1.44rem;
}

.resume h5 {
  margin: 0;
}

.resume a {
  text-decoration: none;
}

.position p {
  font-style: italic;
}

.position h5 {
  margin: 1rem 0;
}

hr {
  border-top: 1px solid var(--color-primary);
  margin-top: 3rem;
}

.link-out {
  margin-top: 2.986rem;
}

.link-out a {
  font-size: 1.7284rem;
  line-height: 1.35;
  text-decoration: underline;
}

/* Small tablets and up (≥640px) */
@media (max-width: 640px) {
  html {
    font-size: 10px;
  }

  .wrapper {
    margin: 30px;
  }
}