:root {
  --page: #111318;
  --muted: #889999;
  --muted-2: #999999;
  --link: #99dddd;
  --paper: #f7f7f1;
  --text: #111318;
  --accent: #ca2017;
  --line: rgba(255, 255, 255, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--muted);
  font: 18px/1.55 Arial, Helvetica, sans-serif;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

a:hover {
  color: #fff;
}

.section-inner {
  width: 1280px;
  max-width: 90%;
  margin: 0 auto;
  position: relative;
}

.navigation {
  position: relative;
  z-index: 30;
  background: var(--page);
  border-bottom: 1px solid rgba(255,255,255,.04);
}

.navigation .section-inner {
  min-height: 42px;
}

.main-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-menu > li {
  position: relative;
}

.main-menu > li + li::before {
  content: "/";
  color: var(--muted);
  font-size: 16px;
  opacity: .9;
}

.main-menu > li > a {
  display: inline-block;
  padding: 9px 12px;
  color: var(--muted-2);
  font-size: 16px;
}

.main-menu > li.has-children > a::after {
  content: "";
  display: inline-block;
  margin-left: 12px;
  border: 5px solid transparent;
  border-top-color: currentColor;
  vertical-align: -3px;
}

.main-menu > li:hover > a {
  color: #fff;
}

.main-menu ul {
  position: absolute;
  top: 48px;
  left: 50%;
  width: 250px;
  margin: 0 0 0 -125px;
  padding: 18px 0 0;
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease;
}

.main-menu li:hover > ul,
.main-menu li:focus-within > ul {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.main-menu ul::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  margin-left: -10px;
  border: 10px solid transparent;
  border-bottom-color: #2d2d2d;
}

.main-menu ul a {
  display: block;
  background: var(--page);
  padding: 6px 12px;
  color: var(--muted-2);
  text-align: center;
  font-size: 15px;
  line-height: 1.25;
}

.main-menu ul a:hover {
  color: #fff;
  background: #191c22;
}

.top-abc {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 2px 0 10px;
}

.top-abc a {
  display: block;
  min-width: 26px;
  padding: 3px 6px;
  color: #9dd;
  text-align: center;
  font-size: 15px;
}

.top-abc a:hover {
  background: rgba(255,255,255,.06);
  color: #fff;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted-2);
  font: inherit;
}

.menu-bars {
  display: grid;
  gap: 4px;
}

.menu-bars i {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--muted-2);
}

.menu-toggle b {
  font-weight: 400;
}

.title-section {
  min-height: 210px;
  position: relative;
  overflow: hidden;
}

.bg-image,
.bg-shader {
  position: absolute;
  inset: 0;
}

.bg-image {
  background: url("bg.jpg") center top / cover no-repeat;
}

.bg-shader {
  background: rgba(0,0,0,.2);
}

.title-section .section-inner {
  z-index: 2;
  padding: 6px 0 55px;
}

.blog-title {
  margin: 0;
  text-align: center;
  line-height: 1.1;
}

.blog-title a {
  display: inline-block;
  color: #557777;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 72px;
  font-weight: 900;
  text-shadow: 1px 1px 3px rgba(0,0,0,.25);
}

.blog-title a:hover {
  color: #fff;
  text-decoration: underline;
}

.blog-subtitle {
  margin: 28px 0 0;
  color: rgba(255,255,255,.32);
  text-align: center;
  font-size: 23px;
  font-style: italic;
  line-height: 1.35;
}

.wrapper {
  position: relative;
  z-index: 4;
}

.wrapper::before {
  content: "";
  position: absolute;
  z-index: -2;
  top: -118px;
  right: 0;
  left: 0;
  height: 300px;
  background: linear-gradient(to bottom, rgba(17,19,24,0), var(--page));
}

.wrapper::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 178px;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--page);
}

.wrapper-inner {
  width: 1140px;
  max-width: 90%;
  padding-bottom: 56px;
}

.search-panel {
  width: 700px;
  max-width: 100%;
  margin: 0 auto 38px;
}

.search-panel form {
  display: flex;
  gap: 0;
  background: rgba(221,221,204,.96);
  border: 1px solid #7f9db9;
}

.search-panel input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: #ddddcc;
  color: #111318;
  padding: 12px 14px;
  font: 700 18px Arial, Helvetica, sans-serif;
}

.search-panel button {
  border: 0;
  background: #284e61;
  color: #fff;
  padding: 0 25px;
  font: 700 16px Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.search-panel button:hover {
  background: #ca2017;
}

.post {
  width: 760px;
  max-width: 100%;
  margin: 0 auto;
}

.post-header {
  margin: 0 0 30px;
  text-align: center;
}

.post-title {
  margin: 0;
  color: #ddd;
  text-align: center;
  font-size: 45px;
  font-weight: 400;
  line-height: 1.12;
}

.post-book {
  margin: 10px 0 0;
  text-align: center;
  font-size: 20px;
}

.post-content {
  color: #889999;
  font-size: 22px;
  text-align: justify;
}

.post-content p {
  margin: 0 0 24px;
  line-height: 1.62;
}

.post-content hr {
  height: 1px;
  margin: 28px 0;
  border: 0;
  background: rgba(255,255,255,.18);
}

.archive-note {
  margin: 0 0 28px;
  padding: 18px 22px;
  border-left: 6px solid var(--accent);
  background: rgba(255,255,255,.06);
  color: #ddd;
}

.archive-note strong,
.archive-note span {
  display: block;
  line-height: 1.45;
}

.archive-note span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 16px;
}

.related h3 {
  margin: 0 0 20px;
  color: #899;
  font-size: 26px;
  font-weight: 700;
}

.related ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.related li {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 12px;
  font-size: 16px;
  line-height: 1.45;
}

.related a {
  display: block;
  margin-bottom: 5px;
  font-size: 18px;
}

.related span {
  color: var(--muted);
}

.listing {
  width: 860px;
  max-width: 100%;
  margin: 0 auto;
  color: #889999;
  font-size: 19px;
}

.listing h2 {
  margin: 0 0 22px;
  color: #ddd;
  text-align: center;
  font-size: 42px;
  font-weight: 400;
  line-height: 1.15;
}

.listing p {
  margin: 0 0 26px;
  text-align: center;
}

.result-list,
.word-grid {
  margin: 0;
  padding: 0;
  list-style: none;
}

.result-list {
  display: grid;
  gap: 18px;
}

.result-list li {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 16px;
}

.result-list a {
  display: inline-block;
  margin-right: 10px;
  color: #9dd;
  font-size: 24px;
}

.result-list b {
  color: #ddd;
  font-size: 15px;
  font-weight: 400;
}

.result-list span {
  display: block;
  margin-top: 6px;
  line-height: 1.55;
}

.result-list.compact a {
  font-size: 21px;
}

.word-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 22px;
}

.word-grid li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 9px;
}

.word-grid span {
  color: rgba(255,255,255,.35);
  font-size: 15px;
}

.bottom-search {
  margin-top: 48px;
}

.to-top {
  display: block;
  width: max-content;
  margin: 14px auto 0;
  color: #9dd;
  font-size: 16px;
}

.credits {
  padding: 22px 16px 40px;
  color: #889999;
  text-align: center;
  font-size: 16px;
}

.credits a {
  color: #9dd;
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .menu-toggle {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
  }

  .main-menu {
    display: none;
    padding-bottom: 10px;
  }

  .navigation.is-open .main-menu {
    display: block;
  }

  .main-menu > li {
    display: block;
    border-top: 1px solid rgba(255,255,255,.08);
  }

  .main-menu > li + li::before {
    content: none;
  }

  .main-menu > li > a {
    display: block;
    padding: 10px 0;
  }

  .main-menu ul {
    position: static;
    width: auto;
    margin: 0;
    padding: 0 0 8px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .main-menu ul::before {
    display: none;
  }

  .main-menu ul a {
    text-align: left;
    padding: 6px 14px;
    background: rgba(255,255,255,.04);
  }

  .title-section {
    min-height: 180px;
  }

  .blog-title a {
    font-size: 40px;
  }

  .blog-subtitle {
    margin-top: 18px;
    font-size: 18px;
  }

  .search-panel form {
    display: block;
  }

  .search-panel input,
  .search-panel button {
    width: 100%;
    min-height: 44px;
  }

  .post-title {
    font-size: 36px;
  }

  .post-content {
    font-size: 19px;
  }

  .related ul {
    grid-template-columns: 1fr;
  }

  .listing h2 {
    font-size: 34px;
  }

  .word-grid {
    grid-template-columns: 1fr;
  }
}
