/*!
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*/

/*! 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;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 100%;
  font-weight: normal;
}

ul {
  list-style: none;
}

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;
}

.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;
}

/* Baseline */
:root {
  --bg-color: #fdfdfd;
  --text-color: #414141;
  --heading-color: #505050;
  --light-color: #757575;
  --dark-color: #252525;
  --primary-color: rgb(5, 230, 242);
  --primary-color-opaque: rgba(5, 230, 242, 0.4);
  --secondary-color: rgba(76, 250, 175, 1);
  --heading-font: Futura, Ubuntu, Bahnschrift, Segoe UI, Roboto, sans-serif;
  --monospace: monospace;
  --box-width: 40rem;
}

/* Base typography */
body {
  font-family: "Georgia", serif;
  font-family: -system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol";
  font-family: "Verdana", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--bg-color);
}

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

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.75rem;
}

a {
  color: var(--light-color);
  -webkit-text-decoration-color: var(--primary-color-opaque);
          text-decoration-color: var(--primary-color-opaque);
  -webkit-text-decoration-style: wavy;
          text-decoration-style: wavy;
  transition: all 0.15s ease-in-out;
}

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

.home a {
  color: var(--secondary-color);
}

input,
button {
  padding: 10px 0;
  font-family: var(--heading-font);
  font-size: 1rem;
  -webkit-appearance: none;
  border: 1px solid rgb(218, 218, 218);
}

button {
  font-weight: bold;
}

/* Links and Headings */

.button {
  display: inline-block;
  font-size: 1rem;
  margin: 0.5em;
  padding: 0.5em;
  border-radius: 5px;
  -webkit-filter: hue-rotate(0deg);
          filter: hue-rotate(0deg);
  cursor: pointer;
  text-decoration: none;
  border: none;
  text-transform: uppercase;
}

.b-gradient,
.b-gradient:before {
  background: linear-gradient(
    45deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
}

.rot-135 {
  transition: all 0.5s;
}

.rot-135:hover {
  -webkit-filter: hue-rotate(-25deg);
          filter: hue-rotate(-25deg);
}

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

.lead {
  font-size: 1.75rem;
  text-align: center;
  line-height: 1.25;
}

.small-lead {
  font-size: 0.875rem;
  max-width: 500px;
  margin: 0 auto;
}

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

/* Header */
.logo-wrap {
  text-align: center;
  background: var(--dark-color);
  margin-bottom: 2rem;
  padding: 1rem;
  border-bottom: 2px solid var(--primary-color);
}

.logo {
  display: inline-block;
  margin: 0 auto 1rem auto;
  padding-bottom: 0;
  padding-left: 30px;
  max-width: 225px;
  position: relative;
}

.logo:before {
  content: "";
  right: 0;
  bottom: 3px;
  width: 98%;
  position: absolute;
}

.logo:after {
  content: "";
  right: 0;
  bottom: 7px;
  width: 40%;
  position: absolute;
}

.logo:before,
.logo:after,
.logo {
  border-bottom: 0.75px solid white;
}

.home .logo:before {
  bottom: 8px;
}

.home .logo {
  padding-left: 50px;
  padding-bottom: 12px;
}

.home .logo:after {
  bottom: 17px;
}

.icon--pencil {
  width: 36px;
  position: absolute;
  bottom: -6px;
  left: -7px;
}

.icon--logo {
  width: 195px;
  height: auto;
}

.home .icon--logo {
  width: 300px;
}

.home .icon--pencil {
  width: 60px;
  bottom: -11px;
  left: -12px;
}

@media (min-width: 500px) {
  .logo-wrap {
    padding: 1rem 0;
  }
}

/* Navigation */

.nav {
  display: flex;
  justify-content: space-evenly;
  margin: 0 auto;
  max-width: var(--box-width);
}

.nav a {
  text-transform: uppercase;
  text-decoration: none;
  font-size: 0.875rem;
  font-family: var(--heading-font);
  background: linear-gradient(
    to left,
    var(--primary-color),
    rgba(230, 242, 100, 0.4)
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav a:before,
.nav a:after {
  font-family: var(--monospace);
  position: relative;
}

.nav a:before {
  content: "<";
  margin-right: 2px;
}

.nav a:after {
  content: ">";
  margin-left: 2px;
}

.nav a:hover {
  opacity: 0.8;
}

/* Layout */

.main {
  padding: 0 1rem;
  max-width: 1500px;
  margin: 0 auto;
}

.main--timeline {
  max-width: 1220px;
}

@media (min-width: 900px) {
  .main {
    padding: 0 2rem;
  }
}

/* Home Page */
.home {
  --bg-color: #252525;
  --text-color: #fdfdfd;
}

.home .logo {
  max-width: 500px;
  margin-top: 2rem;
}

.home .logo-wrap {
  border-bottom-color: transparent;
}

.home-nav {
  font-family: var(--heading-font);
  text-align: center;
}

.home-nav__item {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  margin: 2.5rem auto;
  flex-wrap: wrap;
}

.home-nav__link {
  flex-shrink: 0;
  text-transform: uppercase;
  font-size: 1.25rem;
  text-decoration: none;
}

.home-nav__caption {
  font-size: 13px;
  line-height: 1.2;
  padding-left: 12px;
  padding-right: 12px;
  text-align: left;
}

@media (min-width: 500px) {
  .home-nav__item {
    width: 375px;
    flex-wrap: nowrap;
  }

  .nav__stories .home-nav__link {
    order: 2;
  }
}

.nav__stories .home-nav__caption {
  text-align: right;
}

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

.nav__timeline {
  flex-wrap: wrap;
  color: --var(--text-color);
}

.nav__timeline .home-nav__link,
.nav__timeline .home-nav__caption {
  display: block;
  margin: 0 auto;
}

.nav__timeline .home-nav__link {
  color: var(--text-color);
  line-height: 1;
  border: 1px solid var(--text-color);
  padding: 3px;
  margin-bottom: 5px;
}

/* Email Forms */
.email-container {
  text-align: center;
  padding: 1rem 2rem;
  margin: 2rem auto 0 auto;
  max-width: 700px;
}

.email-container p {
  font-size: 0.875rem;
  margin-bottom: 5px;
}

.email-container__head {
  font-style: italic;
}

.email-octopus-success-message,
.email-octopus-error-message {
  display: none;
}

.email-octopus-form-row-hp {
  visibility: hidden;
  height: 0;
}

.email-form__email {
  width: 100%;
  padding: 8px;
  margin-bottom: 0.5rem;
}

/* Explore Module */

.explore {
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 5px;
  position: relative;
  margin: 4rem auto;
  padding: 0.25rem;
  max-width: var(--box-width);
}

.explore__header {
  font-size: 1rem;
  background: var(--bg-color);
  position: absolute;
  top: -0.75rem;
  right: 0;
  padding: 0 10px;
}

/* Timeline */

.timeline {
  position: relative;
  padding-top: 1rem;
  padding-left: 3rem;
}

.timeline:before {
  content: "";
  width: 2px;
  height: 100%;
  background: var(--text-color);
  top: 0;
  position: absolute;
  left: 1rem;
}

.timeline:after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 100%;
  background: var(--text-color);
  top: 0;
  position: absolute;
  left: calc(1rem - 5px);
}

.sidebar__date {
  display: flex;
  justify-content: end;
  flex-wrap: wrap;
  max-width: 40rem;
  margin: 2rem auto;
  margin-bottom: 0;
  padding-bottom: 2rem;
}

.sidebar--bottom .sidebar__date {
  margin-top: 0;
  padding-top: 2rem;
  border-top: 2px solid var(--text-color);
}

.timeline svg {
  width: 1rem;
}

.timeline--milestone {
  padding-left: 1rem;
  margin-bottom: 5rem;
  position: relative;
}

.timeline--entry {
  width: calc(100% + 3rem);
  margin-left: -3rem;
  position: relative;
  margin-bottom: 3rem;
  background: linear-gradient(180deg, var(--bg-color) 20%, #eee 50%);
}

.timeline--milestone:after {
  content: "-";
  position: absolute;
  top: 1.5rem;
  left: -20px;
  font-size: 1.5rem;
  line-height: 1.5rem;
}

.timeline--milestone:before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 100%;
  background: var(--text-color);
  top: 32px;
  left: -37px;
  font-size: 1.5rem;
  line-height: 1.5rem;
}

.timeline__date {
  line-height: 1;
  justify-self: end;
  text-align: center;
  width: 60px;
}

.timeline__heading {
  font-stretch: condensed;
  font-weight: bold;
  margin-bottom: 5px;
}

.timeline--entry img {
  width: 100px;
  max-width: 100px;
  height: 100px;
  margin-top: -1rem;
}

.timeline--entry a {
  text-decoration: none;
}

.timeline__title {
  margin-left: -1.5rem;
  font-size: 1.25rem;
}

.timeline__content {
  padding: 1rem 0 0 3rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-color);
  transition: background 0.1s ease-in;
}

@media (min-width: 900px) {
  .timeline {
    display: grid;
    grid-template-columns: 3fr 4fr;
    grid-column-gap: 60px;
    grid-row-gap: 10px;
    padding-left: 0;
  }

  .timeline:before {
    left: calc(43% + 3px);
  }

  .timeline:after {
    left: calc(43% - 2px);
  }

  .timeline--milestone {
    grid-column: 2 / span 1;
  }

  .timeline--milestone:before {
    left: -35px;
  }

  .timeline--entry {
    grid-column: 1 / span 1;
    margin-left: auto;
    padding-right: 3em;
    width: 100%;
  }

  .timeline--entry:after {
    content: "-";
    position: absolute;
    top: 1.5rem;
    right: -20px;
    font-size: 1.5rem;
    line-height: 1.5rem;
  }

  .timeline .timeline--entry:first-child:after {
    top: 1.5rem;
  }

  .timeline--entry__wrapper {
    display: flex;
  }

  .sidebar__date {
    justify-content: space-around;
  }
}

/* Archives */
.archives .card {
  padding: 1rem;
  margin-bottom: 1rem;
}

.archives .card__content {
  border: 1px solid #eee;
}

.pagination {
  text-align: center;
  margin: 2rem auto;
}

@media (min-width: 500px) {
  .archives {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  }

  .post-type-archive-chapters .archives {
    display: block;
    max-width: 60rem;
    margin: 0 auto;
  }

  .archives .card {
    padding: 2rem;
  }
}

/* Article Page */

.article__image {
  grid-column: span 3;
  position: relative;
  padding: 30px;
  margin-top: 30px;
}

.article__image img {
  position: relative;
  z-index: 2;
  border: 1px solid #363636;
}

.article .title__details {
  margin-bottom: 2rem;
  grid-column: span 3;
}

.article__title {
  margin-bottom: 5px;
}

.article__title a {
  text-decoration: none;
  color: var(--heading-color);
}

.article__author {
  font-weight: normal;
  font-size: 1.25rem;
}

.article__meta {
  font-size: 0.75rem;
  font-weight: bold;
  color: #696969;
}

.article__meta p {
  margin-bottom: 0;
}

.entry__sidebar {
  grid-row: 1;
  font-size: 0.875rem;
}

.social-header {
  display: block;
  text-transform: uppercase;
  font-family: var(--monospace);
  font-weight: bold;
  padding-bottom: 0;
  border-bottom: 1px solid var(--text-color);
  margin-bottom: 8px;
  line-height: 1;
}

.entry__content {
  grid-column: 2;
  padding: 0 1rem;
}

.entry__content figure img {
  position: relative;
}

.entry__content figcaption {
  font-size: 0.875rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.sources {
  position: relative;
  padding-right: 20px;
  grid-column: 1 / 3;
  grid-column: 1 / -1;
  font-size: 0.875rem;
  grid-row: 3;
  margin: 3rem auto;
  line-height: 1.5;
}

.single-chapters .sources,
.single-postscript .sources {
  max-width: var(--box-width);
}

.sources__title {
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: bold;
  font-size: 1rem;
  color: var(--dark-color);
}

.sources__list li {
  margin-bottom: 1.5rem;
}

.sources__list a {
  word-wrap: break-word;
}

.milestones__list {
  padding: 20px;
  background: var(--text-color);
  color: var(--bg-color);
}

.milestones__list p {
  margin-bottom: 1rem;
}

p.milestones__heading {
  display: block;
  margin-bottom: 0.25rem;
}

a.milestones__button {
  border-top: 2px solid var(--primary-color);
  width: 100%;
  display: block;
  padding: 10px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
  font-family: var(--heading-font);
  background: none;
  color: var(--primary-color);
}

@media (min-width: 500px) {
  .article__image {
    margin-bottom: 2.5rem;
  }

  .article__image:before {
    content: url("images/bg_top.svg");
    position: absolute;
    left: 35px;
    top: -30px;
    z-index: 1;
  }

  .article__image:after {
    content: url("images/bg_bottom.svg");
    position: absolute;
    right: 35px;
    bottom: -30px;
    z-index: 1;
  }

  .article__title {
    margin-top: 50px;
  }

  .article .title__details {
    margin-bottom: auto;
  }

  .entry__content figcaption {
    margin-bottom: 5px;
  }
}

@media (min-width: 800px) {
  .article {
    display: grid;
    grid-template-columns: repeat(6, minmax(100px, 1fr));
    grid-gap: 40px;
  }

  .entry {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 2fr 4fr;
    grid-gap: 40px;
    position: relative;
  }

  .entry__content figure,
  .entry__content img {
    position: absolute;
    grid-column: 1 / span 1;
    -webkit-transform: translateX(-115%);
            transform: translateX(-115%);
  }

  .entry__content figure img {
    -webkit-transform: unset;
            transform: unset;
  }

  .milestones {
    float: right;
    max-width: 50%;
    margin-left: 2rem;
  }
}

/* Pills */
.pill,
.page-numbers {
  border-radius: 1rem;
  border: 1px solid var(--light-color);
  color: var(--light-color);
  display: inline-block;
  padding: 0 10px;
  text-decoration: none;
  font-size: 0.75rem;
  margin: 0.5rem;
}

.pill:hover,
.page-numbers:hover,
.pill.active,
.page-numbers.current {
  background: var(--text-color);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-numbers.dots {
  border: none;
}

.page-numbers.dots:hover {
  background: transparent;
  color: inherit;
}

/* Card */

.card__excerpt {
  margin-top: 10px;
}

.card:hover .card__content {
  background: #eee;
}

.card__image {
  background: white;
  position: relative;
  transition: opacity 0.25s ease-in-out;
}

.card .card__title {
  position: absolute;
  left: 1rem;
  bottom: -1.5rem;
}

.card.no-thumbnail .card__title {
  position: relative;
}

.card__title {
  padding: 10px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--primary-color);
  border-left: 3px solid var(--primary-color);
  color: var(--text-color);
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
  background: #fafafa;
  transition: color 0.25s ease-in-out;
  max-width: 90%;
}

.card__date {
  font-family: var(--heading-font);
  font-weight: light;
  font-size: 0.875rem;
  background-image: linear-gradient(
    120deg,
    var(--primary-color-opaque) 0%,
    var(--primary-color-opaque) 100%
  );
  background-repeat: no-repeat;
  background-size: 90% 0.25rem;
  background-position: 4px 75%;
  font-style: italic;
  padding: 2px 5px;
  margin: 0;
  display: inline;
}

.timeline--entry:hover .timeline__title,
.card:hover .card__title {
  background: var(--text-color);
  color: var(--primary-color);
  padding-bottom: 10px;
  border-bottom-width: 5px;
  border-left-width: 5px;
}

.card a {
  text-decoration: none;
}

.card img {
  width: 100%;
  border-bottom: 1px solid #eee;
  height: 200px;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

.card__content {
  padding: 2rem 2rem 1rem 2rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-color);
  transition: background 0.1s ease-in;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
}

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

.search-field {
  width: 50%;
}
