/* Reset styles for elements used in this document */
html,
body,
h1,
h2,
h3,
h4,
p,
a,
span,
footer,
header,
main {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

footer,
header,
main {
  display: block;
}

/* my styles below */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial,
    sans-serif;
  font-weight: 400;
  line-height: 1.5;
  color: #333;
  background-color: #fff;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 1rem 0;
  color: #222;
}

h2 {
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.3;
  margin: 2rem 0 1rem 0;
  color: #222;
}

h3 {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.4;
  margin: 1.5rem 0 0.75rem 0;
  color: #222;
}

h4 {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.4;
  margin: 1.25rem 0 0.5rem 0;
  color: #222;
}

h1,
h2,
h3,
h4 {
  letter-spacing: -0.001rem;
}

p {
  font-size: 1.25rem;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
  color: #333;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: #0066cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

span {
  font-weight: 500;
}

header {
  background-color: #cd3d3c;
  color: #fff;
  padding: 4rem 2rem;
  text-align: center;
  border-bottom: 4px solid #8e2b2a;
  margin-bottom: 2rem;
}

header p:first-of-type {
  font-size: 3.5rem;
  color: #fff;
  text-transform: uppercase;
}

header p,
span {
  margin: 0;
  color: #fff;
  font-weight: 400;
  font-size: 1.75rem;
}

footer {
  background-color: #f5f5f5;
  border-top: 4px solid #8e2b2a;
  margin-top: 3rem;
  padding: 2rem 0;
  text-align: center;
}

footer p {
  color: #666;
  font-weight: 300;
}

main p:last-of-type {
  font-style: italic;
}
