/************ Global Box Sizing ***************/
*,
*::before,
*::after {
    box-sizing: border-box;
}

/************ CSS Reset ***************/
p, ul, ol, h1, h2, h3, blockquote {
    margin: 0;
    padding: 0;
}
nav ul, nav ol {
    list-style-type: none;
}
/*************** End Reset ******************/

body {
    font-family: 'Crimson Text', serif;
    background: #fff;
    color: #333;
    padding-top: 9px;
    padding-bottom: 30px;
    padding-left: 20px;
    padding-right: 20px;
    font-size: 18px;
}

.container {
    max-width: 960px;
    padding: 20px;
    margin: 0 auto;
}

/*********** Typography **********/
h1, h2, h3 {
    font-family: Oswald, sans-serif;
    margin-bottom: .5em;
    font-weight: 400;
}

a {
    color: #CB2000;
    text-decoration: none;
}

p {
    margin-bottom: 1em;
    line-height: 1.4em;
}

p.large-link {
    font-size: 24px;
}

/***************** Navigation Styles *****************/
header nav {
    border-top: 3px solid #cb2000;
}

header nav ul {
    display: flex;
}

header nav ul li {
    flex: 1;
    border-right: 3px solid #cb2000;
}

header nav ul li:last-of-type {
    border-right: none;
}

header nav ul li a {
    display: block;
    color: #000;
    font-family: Oswald, sans-serif;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 1px;
    line-height: 28px;
}

header nav ul li a:hover {
    color: #cb2000;
}

/******** Header styles ******/
header {
    background: url("images/pen-small.png") center bottom no-repeat;
    height: 230px;
    position: relative;
}

header h1 {
    font-size: 60px;
    padding-left: 30px;
    padding-top: 30px;
    text-transform: uppercase;
    line-height: 50px;
    color: #2c3e6d;
    font-weight: 700;
}

header h1 span {
    font-family: 'Crimson Text', serif;
    display: block;
    font-size: 40px;
    text-transform: lowercase;
    color: #000;
    font-weight: 400;
}

header .cta {
    position: absolute;
    right: 20px;
    bottom: 0;
    font-size: 30px;
    margin-bottom: 0;
}

.cta::before {
  content: '\0007B\0000a0';
}

.cta::after {
  content: '\0000a0\0007D';
}

/******* Top Section Styles *******/
.new-box {
    background: #eee;
    padding: 5px;
}

.new-box h1 {
    font-size: 28px;
    color: #2D3E6C;
    margin-bottom: .8em;
}

.new-box article {
    border-left: 6px solid #cb2000;
    padding: 0 10px;
    margin-bottom: 20px;
}

.new-box h2 {
  color: #666;
  font-size: 20px;
  margin-bottom: .3em;
}

.new-box p {
  font-style: italic;
  color: #333;
  line-height: 1.2em;
}

.more {
  white-space: nowrap;
}
#top {
      margin-top: 20px;
    margin-bottom: 10px;
}
#top blockquote {
  font-size: 30px;
  line-height: 1.4em;
  padding: 30px;
  text-indent: -.5em;
  background: #fff;
  border-right: none;
}

blockquote footer {
  background: #fff;
  color: #000;
  margin-left: .5em;
  padding-top: 0px;
  display: block;
  font-style: normal;
}

/* Middle Section */
#middle {
  margin:0px 0;
}

#middle article {
  width: 100%;
  border-top: 3px solid #2D3E6C;
  margin: 0px 0;
  padding: 15px 0;
}

#middle h2 {
  font-size: 20px;
  color: #2D3E6C;
  text-transform: uppercase;
}

/******* Page Footer Nav *******/
.pagefooter div nav ul {
  margin-left: 20px;
}

.pagefooter nav ul li {
  margin-bottom: .5em;
}

.pagefooter nav ul li a {
  border: none;
  color: #c9cad1;
  font-size: 16px;
  font-family: Oswald, sans-serif;
  text-transform: uppercase;
}

/**** Final footer styling ****/
footer {
  background: #8B0000;
  color: #fff;
  padding: 20px 10px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
}

.footer-brand {
  text-align: left;
}

.footer-nav {
  text-align: right;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
}

.footer-nav ul li {
    margin: 10px 0;
    
}

.footer-nav ul li a {
    color: #fff;
    text-decoration: none;
}

.footer-mission {
    max-width: 400px;
    margin: 20px auto 0;
    text-align: center;
}

.footer-mission p {
    font-size: 1rem;
    line-height: 1.5;
    color: #fff;
}

.footer-mission span {
    font-weight: bold;
    text-transform: uppercase;
}

.footer-social-heading {
    text-align: left;
    margin-top: 20px;
    color: #fff;
}

.footer-social-heading h3 {
  font-size: 25px;
  font-weight: normal;
  margin-bottom: 0.5rem;
}

.social {
  list-style: none;
  display: flex;
  justify-content: left;
  margin-top: 0.5rem;
  padding: 0;
}

.social li {
  margin: 0 0.5rem;
}

.social li a {
  color: #fff;
  font-size: 1.2rem;
}

.pagefooter article {
  padding-top: 20px;
  background-color: #CD1114;
}

.pagefooter article span,
.pagefooter nav h3 {
  font-family: Oswald, sans-serif;
color: #FFFFFF;
    text-transform: uppercase;
}

.pagefooter .social {
    display: flex;
}

.pagefooter article nav ul li a {
    padding-right: 10px;
    font-size: 30px;
}

.pagefooter nav ul li a:hover {
    color: #fff;
}

@media (min-width: 501px) {
  #middle {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }

  #middle article {
    width: 48%;
  }

  #middle article:last-of-type {
    width: 100%;
  }

  header {
    display: flex;
    flex-direction: column;
    background: url("images/pen-small.png") center bottom no-repeat;
    height: 230px;
    position: relative;
  }

  header nav {
    order: 3;
    margin-top: auto;
  }

  header .cta {
    position: absolute;
    right: 20px;
    bottom: 30px;
    font-size: 30px;
    margin-bottom: 0;
  }

  .cta::before {
    content: '\0007B\0000a0';
  }

  .cta::after {
    content: '\0000a0\0007D';
  }

  #top {
    display: flex;
    flex-direction: row-reverse;
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
  }

  #top blockquote,
  .new-box {
    width: 50%;
  }
}

@media (min-width: 701px) {
  #middle {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
  }

  #middle article {
    flex: 1;
    margin: 0;
  }
}
