:root {
  --background-color: #f4f0e9;
  --primary-color: #cbad3e;
  --secondary-color: #b7a35e;
  --text-color: #000;
  --text-color-secondary: #2f1a45;
  --link-text-color__hover: #004f23;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--background-color);
  font-family: Trebuchet, Trebuchet MS, Tahoma, Arial, sans-serif;
  padding: 0 15px;
}

table {
  border: 1px solid var(--primary-color);
  margin-bottom: 1.2em;
  width: 100%;
}

table,
th,
td {
  border: 1px solid var(--text-color-secondary);
  border-collapse: collapse;
  font-size: 0.9em;
  padding: 7px 10px;
}

h1,
h2,
h3,
h4,
h5 {
  line-height: 1.4;
}

p,
li,
q,
th,
td,
li {
  line-height: 1.6;
  font-size: 1em;
}

small {
  line-height: 1.6;
  font-family: inherit;
  font-size: 0.8em;
}

a {
  color: var(--text-color);
  line-height: 1.6;
  text-decoration: none;
  font-size: inherit;
}

a:hover {
  text-decoration: underline;
}

h4 {
  font-size: 1.15em;
}

h5 {
  font-size: 1.05em;
}

article {
  padding-bottom: 0;
}

header {
  padding: 15px 0;
}

section header {
  padding: 0;
}

main {
  margin: 40px 0;
  padding: 0 20px;
}

main p,
main ul,
main img,
main q,
main h4 {
  margin-bottom: 1.2em;
}

main li {
  margin-left: 35px;
}

footer {
  text-align: center;
  margin-bottom: 35px;
}

.link {
  text-decoration: underline;
}

.link:hover {
  color: var(--link-text-color__hover);
}

.wrapper {
  border-top: 8px solid var(--primary-color);
  border-left: 2px solid var(--primary-color);
  border-right: 2px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  margin: 47px auto 35px;
}

.italic {
  font-style: italic;
}

.bold {
  font-weight: bold;
}

.logo {
  display: block;
  height: 152px;
  padding: 25px;
  width: 100%;
}

.line {
  border-bottom: 2px dotted var(--text-color);
  width: 100%;
}

.ampersand {
  font-family: helvetica !important;
}

nav {
  background-color: var(--primary-color);
}

nav ul {
  display: inline-block;
  list-style: none;
  margin: 0 auto;
  width: 100%;
}

.nav-item {
  display: inline-block;
  border-bottom: 2px solid var(--secondary-color);
  text-align: center;
  width: 100%;
}

.nav-item:nth-child(5) {
  border-bottom: none !important;
}

.nav-link {
  color: var(--text-color-secondary);
  display: block !important;
  font-weight: bold;
  font-size: 1em;
  padding: 8px 0;
  text-decoration: none;
  width: 100%;
}

.citation {
  padding-left: 1em;
}

.citation p,
.citation span,
.citation a {
  line-height: 2;
}

.image-container {
  text-align: center;
}

.image-container img {
  height: 240px;
  width: 320px;
}

.table-of-contents {
  border: 1px solid var(--text-color-secondary);
  padding: 10px 10px 0.1px;
  margin: 1.6em 0 1.8em;
}

.table-of-contents ul {
  list-style: circle;
}

.table-of-contents ul h5 {
  padding: 15px 10px 10px;
}

.adviser p {
  margin-bottom: 0 !important;
}

.adviser p:nth-child(1) {
  margin-bottom: 1em !important;
}

.topic-introduction {
  margin-bottom: 2em;
}

.quotes {
  padding-top: 0.5em;
}

.indention {
  text-indent: 1em;
}

@media (min-width: 600px) {
  .logo {
    margin: auto;
    width: 574px;
  }
}

@media (min-width: 800px) {
  body {
    padding: 0;
  }
  .wrapper {
    width: 95%;
  }
  .logo {
    padding: 0;
  }
  .nav-item {
    border-bottom: none;
    border-right: 2px solid var(--secondary-color);
  }
  .nav-item:nth-child(5) {
    border-right: none;
  }
  .table-of-contents {
    width: 50%;
  }
  .flex-container {
    flex-direction: row;
  }
  .flex-container .box:nth-child(1) {
    padding-right: 1em;
  }
}

@media (min-width: 801px) {
  .wrapper {
    width: 800px;
  }
  .nav-item {
    width: 140px;
  }
  .nav-item:nth-child(2) {
    width: 195px !important;
  }
  .nav-item:nth-child(5) {
    width: 160px !important;
  }
}
