* {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  box-sizing: border-box;
}

body {
  padding: 0 0.5rem;
}

ul, ol {
  padding: 0 0 0 1rem;
  margin: 0;
}

li a {
  color: inherit;
}

p, li {
  color: #333B4B;
}

img {
  max-width: 100%;
}

main {
  margin: 1rem 0 3rem;
}

h3 {
  margin: 0 0 0.5rem;
}

main > * + * {
  margin-top: 1rem;
}

textarea {
  display: block;
  width: 100%;
  height: 8rem;
}

input, label {
  display: block;
}

span > label {
  display: inline-block;
}

.required > label, .optional > label {
  margin-bottom: 0.5rem;
}

form > * {
  width: 50%;
}

input:not([type="checkbox"]) {
  width: 100%;
}

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

form > button:last-of-type {
  margin-top: 2rem;
}

#error h1, #not-found h1 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

#error p , #not-found p {
  font-size: 1rem;
}

#top-nav {
  display: flex;
  justify-content: space-between;
  margin: 0.5rem 0;
  list-style-type: none;
  padding: 0;
}

#top-nav__links {
  display: flex;
}

.top-nav__link {
  text-transform: uppercase;
  letter-spacing: 0.075em;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2b2b2b;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.top-nav__link:hover, .top-nav__link.active  {
  border-bottom: 2px solid #89CFE8;
}

nav ul a:hover, nav ul a.active  {
  transition: border-bottom .15s ease-in;
}

#sub-nav {
  display: flex;
  background: #bfccd033;
  padding: 0.5rem 1rem;
  list-style-type: none;
}

#sub-nav a:hover {
  text-decoration: none;
  text-decoration-color: #2b2b2b;
  text-underline-offset: 2px;
}

#sub-nav > * + * {
  margin-left: 1rem;
}

#top-nav__links > * + * {
  margin-left: 0.5rem;
}

#logo {
  text-decoration: none;
  color: #2b2b2b;
  margin: 0;
}

#logo:visited {
  color: #2b2b2b;
}

#logo h1 {
  font-family: 'Helvetica';
  letter-spacing: -0.05em;
  text-transform: lowercase;
  margin-bottom: 0;
}


#quotes {
  margin-top: 2rem;
}

blockquote {
  font-style: italic;
  text-align: center;
}

hr {
  border: 0;
  height: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

#pagination ol {
  display: flex;
  justify-content: center;
}

#pagination {
  margin: 2rem 0 4rem 0;
}

#pagination * {
  font-size: 1.125rem;
  text-decoration: none;
}

button, .btn-link {
  padding: 0.75rem 1.5rem;
  background: #dfe7ee;
  border: 0;
  color: #4c5e7d;
  text-decoration: none;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  width: auto;
}

button:hover, .btn-link:hover {
  background: #cbd5e0;
  transition: ease background .2s;
}

.btn-warning {
  background: #f07575;
  color: #731a1a;
}

.btn-warning:hover {
  background: #df6d6d;
  transition: ease background .2s;
}

form > * + * {
  margin-bottom: 1rem;
}

.stack-hz {
  display: flex;
}

.stack-hz > * + * {
  margin-left: 1rem;
}

#confirmation-form button {
  margin: 0;
}

@media(min-width: 50em) {
  body {
    max-width: 848px;
    margin: 2rem auto 4rem auto;
    padding: 0 2rem;
  }

  #top-nav__links > * + * {
    margin-left: 1rem;
  }

  nav ul {
    margin: 1rem 0;
  }
}
