/*!
Theme Name: THOTW
Theme URI: http://example.com
Author: Jay Hoffmann
Version: 1.0.0
*/

/* postcss style.unprefixed.css -u autoprefixer --no-map -o style.css*/

:root,
.home--bottom {
  --bg-color-featured: rgb(253, 240, 227);
  --bg-color: #f2f2f2;
  --text-color: #252525;
  --text-color: rgb(55, 65, 81);
  --heading-color: rgb(17, 24, 39);
  --light-color: #808080;
  --lightest-color: #d8d8d8;
  --primary-color: #0FA3B1;
  --secondary-color: rgba(76, 250, 175, 1);
  --monospace: monospace;
  --box-width: 42em;
  --sans-serif: "Oswald", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --serif: 'Lora', Book Antiqua, Palatino, Palatino Linotype, Palatino LT STD, Georgia, serif;
}

.home {
  --bg-color: #252525;
  --text-color: #fdfdfd;
  --heading-color: var(--text-color);
  --light-color: #ccc;
}

/*! minireset.css v0.0.2 | MIT License | github.com/jgthms/minireset.css */
html,
body,
p,
ol,
ul,
li,
dl,
dt,
dd,
blockquote,
figure,
fieldset,
legend,
textareapre,
iframe,
hr,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

ul {
  list-style: none;
}

hr {
  margin-top: 3.1111111em;
  margin-bottom: 3.1111111em;
  border-color: #e5e7eb;
}

button,
input,
select,
textarea {
  margin: 0;
}

img,
embed,
figure,
object,
audio,
video {
  height: auto;
  max-width: 100%;
}

iframe {
  border: 0;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

td,
th {
  padding: 0;
  text-align: left;
}

blockquote {
  padding: 0 20px;
  color: var(--text-color);
  border-left: 2px solid var(--primary-color);
  border-right: 2px solid var(--primary-color);
  font-style: italic;
}

blockquote p:before {
  content: "“";
}

blockquote p:after {
  content: "”";
}

.cf:before,
.cf:after {
  content: " ";
  display: table;
}

.cf:after {
  clear: both;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #fff;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  -webkit-clip-path: none;
  clip-path: none;
  color: #333;
  display: block;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

@media (min-width: 769px) {
  .screen-reader-text-mobile {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
  }

  .screen-reader-text-mobile:focus {
    background-color: #fff;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    -webkit-clip-path: none;
    clip-path: none;
    color: #333;
    display: block;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
  }
}

/* Baseline */

/* Base typography */
body {
  font-family: var(--serif);
  line-height: 1.7;
  color: var(--text-color);
  background: var(--bg-color);
}

h1,
h2,
h3,
h4,
h5,
h6,
.heading {
  line-height: 1.2;
  color: var(--heading-color);
  font-family: var(--sans-serif);
  font-weight: 700;
}

h2 {
  font-size: 2.25rem;
}

h3,
.lead {
  font-size: 1.5rem;
}

h4,
.timeline__title,
.h4 {
  font-size: 1.25rem;
}

.text {
  color: var(--text-color);
}

.timeline__title[class] {
  margin-bottom: 5px;
  margin-top: 5px;
}

.article .timeline__title {
  font-size: 1rem;
  padding-top: 0.25rem;
}

h5 {
  font-size: 1rem;
}

h6,
.small {
  font-size: 11px;
}

.extra-small {
  font-size: 0.75rem;
}

a {
  color: currentColor;
  text-decoration: none;
  transition: all 0.15s ease-in-out;
}

a:hover {
  color: var(--primary-color);
}

.timeline .card__title a,
.entry__content a,
.article__title a,
.card__title a {
  text-decoration: underline;
}

.card__title a {
  -webkit-text-decoration-color: currentColor;
          text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
  -webkit-text-decoration-skip: ink;
          text-decoration-skip-ink: auto;
}

.entry__content a,
.article__title a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15rem;
  -webkit-text-decoration-color: var(--primary-color);
          text-decoration-color: var(--primary-color);
}

.entry__content a:hover {
  color: var(--primary-color);
}

.single .container {
  font-size: 1.125rem;
}

.entry__content {
  line-height: 1.7777778;
}

.entry__content p,
.entry__content ol,
.entry__content ul {
  margin-bottom: 1.33333em;
  margin-top: 1.3333em;
}

.entry__content blockquote {
  margin-top: 1.6666667em;
  margin-bottom: 1.6666667em;
}

.entry__content h2,
.entry__content h3,
.entry__content h4,
.entry__content h5,
.entry__content h6 {
  margin-top: 1.6666667em;
  margin-bottom: 0.6666667em;
  line-height: 1.5;
}

.entry__content h2+*,
.entry__content h3+*,
.entry__content h4+*,
.entry__content h5+*,
.entry__content h6+* {
  margin-top: 0;
}

.entry__content .deck {
  font-weight: bold;
}

.entry__content .deck__rule {
  max-width: 50px;
  margin: 1rem auto;
  height: 3px;
  border: none;
  background: #e5e7eb;
}

.card__title a {
  -webkit-text-decoration-color: var(--primary-color);
          text-decoration-color: var(--primary-color);
}

.timeline .card__title a,
a.card__category {
  color: var(--primary-color);
  -webkit-text-decoration-color: var(--text-color);
          text-decoration-color: var(--text-color);
}

a.card__category:hover {
  color: var(--text-color);
}

.timeline .card__title a:hover {
  color: var(--text-color);
  -webkit-text-decoration-color: var(--primary-color);
  text-decoration-color: var(--text-color);
}

.alignfull--featured .card__title a {
  color: var(--text-color);
  text-decoration: underline;
  -webkit-text-decoration-color: var(--primary-color);
          text-decoration-color: var(--primary-color);
}

.alignfull--featured .card__title a:hover {
  color: var(--primary-color);
}

input {
  padding: 5px 10px;
  font-family: var(--serif)
}

input,
button {
  font-size: 1rem;
  -webkit-appearance: none;
  border: 1px solid rgb(218, 218, 218);
}

.icon {
  width: 1rem;
}

/* Links and Headings */
button,
.button {
  font-family: var(--sans-serif);
  display: inline-block;
  padding: 0.5em;
  border-radius: 5px;
  -webkit-filter: hue-rotate(0deg);
  filter: hue-rotate(0deg);
  cursor: pointer;
  border: none;
  text-transform: uppercase;
  text-decoration: none;
}

.home .button--gradient {
  color: var(--bg-color);
  text-decoration: none;
}

.home .button--outline {
  color: var(--text-color);
}

.button--gradient {
  background: linear-gradient(45deg,
      var(--primary-color) 0%,
      var(--secondary-color) 100%);
  transition: all 0.5s;
}

.button--gradient:hover,
.entry__content .button--gradient:hover {
  -webkit-filter: hue-rotate(-25deg);
  filter: hue-rotate(-25deg);
  color: var(--text-color);
}

.button--outline {
  border: 1px solid currentColor;
}

.button--outline:hover {
  background: white;
  color: var(--bg-color) !important;
}

/* Header */

.logo {
  display: inline-block;
  position: relative;
  margin-top: 20px;
}

.logo img {
  width: 450px;
}


/* Nav */
.nav {
  display: flex;
  align-items: center;
}

@media (min-width: 769px) {
  .nav {
    padding-left: 30px;
  }
}

.nav__item {
  position: relative;
  top: 10px;
  margin: 0 10px;
  font-size: 0.85rem;
  font-family: var(--sans-serif);
  font-weight: bold;
}

.nav__item:before {
  content: "⚆";
  margin-right: 5px;
  position: relative;
  top: -2px;
}

.nav .nav__item:last-child::after {
  content: none;
}

@media (min-width: 769px) {
  .nav__item {
    font-size: 1rem;
  }
}

.nav__item .current-menu-item {
  color: var(--light-color);
}

.nav__item button {
  background: none;
  border: 1px solid var(--light-color);
  border-radius: 10px;
  height: 12px;
  padding: 0 5px;
  position: relative;
  top: 5px;
  margin-left: 4px;
  transition: all 0.2s;
}

.nav__item button svg {
  fill: var(--light-color);
  transition: all 0.2s;
}

.nav__item button[aria-expanded="true"],
.nav__item button:hover {
  border-color: var(--primary-color);
}

.nav__item button[aria-expanded="true"] svg,
.nav__item button:hover svg {
  fill: var(--primary-color);
}

.nav__item .icon {
  width: 12px;
  position: relative;
  top: -4px;
  pointer-events: none;
}

.nav__item .dropdown__menu {
  font-size: 0.875rem;
}

/* Dropdown */
.dropdown {
  display: table;
  position: relative;
}

.dropdown__menu {
  display: none;
  list-style: none;
  margin: 0;
  outline: 0;
  padding: 10px;
  background: var(--bg-color);
  overflow: hidden;
  position: absolute;
  z-index: 1;
  min-width: 100%;
  max-width: 300px;
  border: 1px solid var(--lightest-color);
  border-radius: 5px;
  white-space: nowrap;
}

[aria-expanded="true"]+.dropdown__menu {
  display: block;
}

.dropdown>[data-toggle] {
  position: relative;
  cursor: pointer;
}

.dropdown__item {
  list-style: none;
}

/* Layout */
.container {
  max-width: var(--box-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.container--wide {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 769px) {
  .container--wide {
    padding: 0 2rem;
  }
}

.main {
  margin-top: 2rem;
}

.alignfull {
  width: 99vw;
  margin-left: -50vw;
  margin-right: -50vw;
  position: relative;
  left: 50%;
  right: 50%;
}

.alignfull--featured {
  padding: 2rem 0;
  background: linear-gradient(to bottom, #f2f2f2 0%, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0) 70%, #f2f2f2 100%), url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAH0lEQVQIW2NgYODjBWJWKOZgQOKwQDAKByLAgSTACQAp6QE8mK8aTgAAAABJRU5ErkJggg==);
  border-top: 1px solid var(--primary-color);
  border-bottom: 1px solid var(--primary-color);
}

.card.alignfull--featured {
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.alignfull--featured .card__title {
  max-width: 75%;
  font-size: 2rem;
}

/* Utilities */
.space-below {
  margin-bottom: 2.75rem;
}

.space-below--double {
  margin-bottom: 4.5rem;
}

/* Section */

.section p,
.section .lead {
  margin-bottom: 1rem;
}

.section__header {
  margin-bottom: 1rem;
}

.section__grid {
  display: flex;
  flex-wrap: wrap;
}

.section__item {
  text-align: center;
  margin-right: 20px;
  width: 130px;
}

.entry__content .section__item__text,
.section__item__text {
  font-size: 0.75rem;
  line-height: 1.1;
  margin-top: 5px;
}

.section__grid .section__item:nth-child(2n - 1) .link {
  color: var(--primary-color);
}

.section__grid .section__item:nth-child(2n - 2) .link {
  color: var(--secondary-color);
}

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

/* Email */
.subscribe-form {
  margin-bottom: 10px;
}

.email-container a {
  text-decoration: underline;
}

.subscribe-form-hp {
  visibility: hidden;
  height: 0;
  width: 1px;
}

.subscribe-form__email {
  width: 350px;
  max-width: 100%;
  margin-bottom: 10px;
}



/* Main Archives */
@media (min-width: 25rem) {
  .archives__grid {
    --auto-grid-min-size: 25rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--auto-grid-min-size), 1fr));
    grid-gap: 3rem;
  }
}

/* Card */
.card {
  margin-bottom: 0;
  margin-bottom: 2rem;
}

.card__title {
  margin-bottom: 5px;
}

.card__category {
  line-height: 1;
  font-style: italic;
  padding: 3px 0 10px 3px;
  display: inline-block;
}

/* Search Form */
.search-form {
  margin: 3rem auto;
  text-align: center;
}

.search-field {
  margin-bottom: 10px;
}

/* Article */
.article:before {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  left: 0;
  z-index: -1;
  height: 500px;
}


.article__header {
  padding-top: 2rem;
  margin-bottom: 2rem;
}

.article__title {
  margin-bottom: 10px;
}

.article__meta {
  color: var(--light-color);
}

.article__email {
  background: white;
  padding: 2rem;
}

.timeline__email {
  margin-top: 2rem;
}

.timeline__email form {
  display: flex;
}

.timeline__email .button {
  padding: 4px 15px;
  margin-left: 10px;
}

.timeline__email .wpforms-container {
  margin-bottom: 0 !important;
}

@media (min-width: 900px) {
  .timeline__email {
    position: absolute;
    top: 0;
    right: 0;
    width: 44%;
    max-width: 450px;
    margin-top: 0;
    text-align: center;
    padding: 1rem;
  }

  .timeilne__email form {
    justify-content: center;
  }
}


@media (min-width: 700px) {
  .article__email .lead {
    font-size: 1.35rem;
  }
}

@media (min-width: 700px) {

  .desc {
    font-size: 14px;
  }
}



.entry__content figure {
  width: 100%;
}

.entry__content figcaption {
  color: var(--light-color);
}

@media (min-width: 25rem) {
  .related-box {
    --auto-grid-min-size: 25rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--auto-grid-min-size), 1fr));
    grid-gap: 60px;
  }

}


.related-box .icon {
  position: relative;
  top: 5px;
  margin-left: 5px;
}

.related-image {
  max-height: 150px;
}

@media (min-width: 769px) {
  .related__more {
    padding-top: 120px;
  }

}

/* Milestones & Sources */
.milestones__item {
  width: 33%;
  padding: 1rem;
}

.sources__list li {
  margin-bottom: 1rem;
  padding-left: 1rem;
  word-wrap: break-word;
}

.sources__list li:before {
  content: "⚆ ";
  margin-left: -1rem;
  margin-right: 5px;
  color: var(--lightest-color);
}

.sources__list a {
  -webkit-text-decoration: underline var(--primary-color) dashed;
          text-decoration: underline var(--primary-color) dashed;
}

/* Timeline */
.timeline {
  position: relative;
  padding-top: 4em;
  padding-left: 23px;
  margin: 0 auto;
  margin-top: 2em;
  max-width: var(--box-width);
}

.timeline--mini {
  padding-top: 0;
}

.timeline:before {
  content: '';
  width: 2px;
  height: 100%;
  background: var(--heading-color);
  left: 5px;
  top: 0;
  position: absolute;
}

.timeline:after {
  content: '●';
  position: absolute;
  top: -15px;
  left: 0;
  font-size: 20px;
  color: #222;
}

.timeline--mini:after {
  content: none;
}

.timeline__card {
  position: relative;
}

.timeline__content {
  background: white;
  padding: 22px;
  margin-bottom: 4rem;
  box-shadow: 1px 1px 3px 0 rgba(0, 0, 0, .12);
  font-size: 14px;
}

.timeline .card--link {
  margin-left: 3rem;
  margin-top: -4rem;
  margin-bottom: 3rem;
}

.timeline__card:after {
  content: "";
  background: var(--heading-color);
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: block;
  left: -20px;
  top: 9px;
}

.home .timeline__card:after {
  top: 6px;
}

.timeline__date,
.timeline__date-head {
  font-family: var(--sans-serif);
  color: var(--primary-color);
  line-height: 1.1;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  width: 50px;
  text-align: center;
  position: relative;
}

.timeline__date--desktop {
  display: none;
}

.timeline__year {
  letter-spacing: 1px;
  font-size: 1.05rem;
}

@media (min-width: 769px) {
  .timeline__date--mobile {
    display: none;
  }


  .timeline__date--desktop {
    display: block;
  }

  .timeline {
    padding-left: 7.5rem;
  }

  .timeline:before {
    left: 5.5rem;
  }

  .timeline:after {
    left: calc(5.5rem - 5px);
  }

  .timeline--mini:before {
    left: 4.5rem;
    top: 10px;
    height: calc(100% + 25px);
  }

  .timeline__card:after {
    left: -34px;
  }


  .timeline__date {
    position: absolute;
    top: 0;
    left: -7.5rem;
  }

  .timeline--mini .timeline__date {
    left: -6.5rem;
  }

  .timeline--mini.timeline {
    padding-left: 6.5rem;
  }

  .timeline__content {
    -webkit-transform: translateY(-26px);
            transform: translateY(-26px);
  }

  .timeline__card:before,
  .timeline__date:after {
    content: '';
    width: 5px;
    border-bottom: 1px solid var(--heading-color);
    position: absolute;
    display: block;
    top: 12px;
    left: -15px;
  }

  .timeline__date:after {
    left: auto;
    right: -20px;
  }

  .timeline--mini .timeline__date:after {
    content: none;
  }


  .timeline .card--link {
    margin-bottom: 6rem;
  }
}

.home--bottom {
  background: var(--bg-color);
  color: var(--text-color);
  padding: 0 0 2rem 0;
}

.home .home__latest {
  font-size: 1.5rem;
  font-style: italic;
  line-height: 0.75;
  text-transform: uppercase;
  margin-top: 6rem;
  margin-bottom: 0;
}


/* Timeline Navigation */
.sidebar {
  text-align: left;
  margin: 1em auto;
  font-size: 14px;
  text-transform: uppercase;
  font-family: var(--sans-serif);
}

.sidebar.sidebar--bottom {
  text-align: right;
  padding-bottom: 10px;
  margin: 0 auto;
}

.sidebar a {
  text-decoration: none;
}

.sidebar__nav {
  margin-bottom: 10px;
}

.sidebar__nav-header {
  margin-right: 5px;
  color: var(--light-color);
  display: block;
  padding-left: 10px;
}


@media (min-width: 769px) {
  .sidebar__nav-header {
    display: inline-block;
    padding-left: 0;
  }
}

.page-numbers {
  padding: 5px 5px;
  margin: auto 5px;
  display: inline-block;
  color: var(--light-color);
  font-weight: bold;
}

.page-numbers.current {
  color: var(--text-color);
}


@media screen and (min-width:500px) {
  .sidebar__nav-header {
    margin-right: 15px;
  }

  .sidebar {
    margin: 0 auto 0 45px;
    text-align: left;
  }
}


/* Footer */
.footer {
  margin: 2rem auto;
  text-align: center;
}

.footer a {
  text-decoration: underline;
}

/* Popup */
#popup {
  position: fixed;
  max-width: 350px;
  padding: 20px 15px;
  background: rgba(236, 240, 241, 1);
  border: 7px solid #fff;
  bottom: 0;
  right: 0;
  margin-left: 0;
  transition: all 0.5s ease-in;
  -webkit-transform: translateX(350px);
          transform: translateX(350px);
}

#popup.active {
  -webkit-transform: translateX(0);
          transform: translateX(0);
}

#popup .wpcf7-form {
  display: flex;
  align-items: end;
  position: relative;
}

#popup .wpcf7-email {
  width: 100%;
}

#popup .wpcf7-form-control-wrap.your-email {
  width: 200px;
  display: block;
  margin-right: 10px;
}

#popup .wpcf7-spinner {
  position: absolute;
}

#popup .close {
  -webkit-appearance: none;
  background: none;
  padding: 0;
  position: absolute;
  top: 10px;
  right: 5px;
}

#popup .close:hover svg {
  fill: rgb(123, 131, 145) !important;
}

#popup .wpcf7-response-output {
  width: 100%;
  position: absolute;
  background-color: white;

}