/* Reset from https://www.joshwcomeau.com/css/custom-css-reset/ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html,
body {
  height: 100%;
}

body {
  line-height: 1.5;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}
/* End Reset */

:root {
  --bg-color: #d82525;
  --text-color: white;
  --logo-color: white;
  --text-size-normal: 1.5rem;
  --text-size-small: 1.25rem;
  --title-size-normal: 3rem;
  --title-size-small: 2.25rem;
  --subtitle-size-normal: 1.8rem;
  --subtitle-size-small: 1.4rem;
  --subtitle-spacing: 1.5rem;
}

html {
  background-color: var(--bg-color);
  color: var(--text-color);
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.5;
}

main {
  flex: 1;
}

header {
  margin-top: 1rem;
}

footer {
  margin-bottom: 1rem;
}

/** Common text elements */
a {
  color: var(--text-color);
}

h1,
h2,
h3 {
  font-family: Georgia, serif;
  line-height: 1;
}

h1 {
  font-size: var(--title-size-small);
}

h2 {
  font-size: var(--subtitle-size-small);
}

h3 {
  font-size: var(--subtitle-size-small);
}

p,
a,
i {
  font-family: "Times New Roman", serif;
  font-size: var(--text-size-small);
}

p {
  line-height: 1.4;
  margin: 1.25rem 0;
}

/** Specific Layout Elements **/
.intro {
  font-style: italic;
}
