* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #4469F1;
  color: white;
  font-family: Avenir, "Avenir Next", Helvetica, Arial, sans-serif;
}

h1 {
    font-family:Georgia, 'Times New Roman', Times, serif;
}

a {
  color:inherit;
}

.bio {
    text-align: center;
    background-color: #0022AA;
    padding:100px 15% 15px;
}

.about {
    text-align: center;
    background-color: #4469F1;
    padding:15px 15% 15px;
}

.hero {
    text-align: center;
    background-color: #0022AA;
    padding:100px 5% 15px;
}

.blurb {
  width: 300px;
  text-align: center;
  margin: 10px;
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
}

.blurbBubble {
  position: relative;
  background: #4469F1;
  color: white;
  border-radius: 28px;
  padding: 28px 38px 34px;
  margin-bottom: 34px;
  width: 100%;
}

.blurbBubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -28px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-top: 28px solid #4469F1;
}

p.quote {
  font-size: 24px;
  margin-top: 0;
  margin-bottom: 22px;
}

p.subquote {
  font-size: 16px;
  font-style: oblique;
  line-height: 1.5;
  margin: 0;
}

p.author {
  font-size: 24px;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 0;
}

p.authorcreds {
  font-size: 16px;
  font-weight: 300;
  margin-top: 0;
}

@media (max-width: 700px) {
  .blurb {
    width: 100%;
    max-width: 300px;
  }

  .blurbBubble {
    padding: 24px 28px 30px;
  }
}

.storyDetails {
    text-align: left;
}
.work {
    text-align: center;
    padding:30px;
}

.fullStory {
    background-color: white;
    padding: 30px 15% 50px;
    color: black;
}

.humanDisclosureStory p {
    margin-top: 0;
    margin-bottom: 0;
    text-indent: 25px;
    line-height: 1.8em;
}

.jd-author {
    text-align: right;
    font-style: oblique;
    font-weight:800;
}

.storyContainer {
    border: 2px #0022AA solid;
    padding: 20px 40px;
}

.wave-divider {
  background: #0022AA;
  line-height: 0;
  margin: 0;
}

.wave-divider.white-wave path {
  fill: white;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 80px;
}

.wave-divider path {
  fill: #4469F1;
}

section.contact {
    text-align:center;
    background:#0022AA;
    padding:30px 15% 15px;
}

.contact a {
    color: inherit;
}

.headshot {
    max-width: 200px;
    margin-top:10px;
}

.bookCover {
    max-width: 250px;
    margin-top:10px;
}

.stories {
    display: flex;
    flex-flow: wrap;
    justify-content: center;
    margin: 0 5%;
}

.story {
    width: 300px;
    text-align: center;
    margin: 10px;
}

.story img {
    width: 100%;
}

.story h3 {
    margin-top: 0;
    margin-bottom: 0;
    font-family: "Georgia", serif;
}

.story p {
    margin-top:0;
}

.story a {
    color: inherit;
    text-decoration: none;
}

.rank {
    padding: 5px 10px;
    border-radius: 60px;
    color: black;
    font-size: 12px;
}

.WB {
    padding: 5px 10px;
    border-radius: 60px;
    color: black;
    font-size: 12px;
    background: #e6ded3;
}

.WF {
    background: #8A7090;
    padding: 5px 10px;
    border-radius: 60px;
    color: #F6EAD6;
    font-size: 12px;
}

.second {
    background: silver; 
}

.sixteen {
    background: #ed70b0;
}

.pending {
    background: white;
}

.contest {
    font-size: 12px;
    font-style:oblique;
}

/* story hover feature */
@media (hover: hover) and (pointer: fine) {
  .story {
    transition: transform 0.25s ease, filter 0.25s ease;
  }

  .story:hover {
    transform: translateY(-10px);
    filter: brightness(1.05);
  }
}

/* Header */

.site-header {
  width: 100%;
  height: 72px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: fixed;
  z-index:2;
}

.site-title {
  font-family: Georgia, serif;
  font-size: 28px;
  color: #0022AA;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

/* Desktop navigation */

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.desktop-nav a {
  font-family: Avenir, "Avenir Next", Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #0022AA;
  text-decoration: none;
  letter-spacing: 0.2px;
}

.desktop-nav a:hover {
  text-decoration: underline;
}


.desktop-nav a.active-page,
.mobile-nav a.active-page,
.desktop-nav button.active-page,
.mobile-nav button.active-page {
  font-weight: 800;
  text-decoration: underline;
}

/* Desktop stories dropdown */

.desktop-dropdown {
  position: relative;
}

.desktop-dropdown-button {
  font-family: Avenir, "Avenir Next", Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #0022AA;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  letter-spacing: 0.2px;
}

.desktop-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  background: white;
  padding: 18px 0 0;
  z-index: 10;
}

.desktop-dropdown-menu a {
  display: block;
  padding: 12px 18px;
  white-space: nowrap;
}

.desktop-dropdown:hover .desktop-dropdown-menu {
  display: block;
}

/* Mobile menu icon */

.mobile-menu-button {
  display: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 34px;
  height: 3px;
  background: #0022AA;
  margin: 7px 0;
}

/* Mobile dropdown */

.mobile-nav {
  display: none;
}

.mobile-nav a {
  font-family: Avenir, "Avenir Next", Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: white;
  text-decoration: none;
  letter-spacing: 0.2px;
}

@media (max-width: 700px) {
  .mobile-nav {
    display: none;
    position: absolute;
    top: 92px;
    left: 0;
    width: 100%;
    background: #4469F1;
    border-top: 1px solid white;
    padding: 20px 30px;
    flex-direction: column;
    gap: 18px;
  }

  .mobile-nav.is-open {
    display: flex;
  }
}

/* Mobile nested story links */

.mobile-stories-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-stories-label {
  font-family: Avenir, "Avenir Next", Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: white;
  letter-spacing: 0.2px;
}

.mobile-story-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 20px;
}

.mobile-story-links a {
  font-size: 15px;
  text-transform: none;
}

/* Mobile styles */

@media (max-width: 700px) {
  .site-header {
    height: 92px;
    padding: 0 30px;
  }

  .site-title {
    font-size: 31px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-button {
    display: block;
  }
}
/* Maintenance improvements */
.desktop-dropdown:focus-within .desktop-dropdown-menu { display:block; }
.storyContainer { max-width: 800px; margin: 0 auto; }
@media(max-width:700px) { .fullStory { padding:20px 15px 40px; } .storyContainer { padding:20px; } }
