/* Static replica of the moi-krai.by "WildBook" design.
   Typography and spacing values follow the original theme stylesheet. */

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

html { font-size: 14px; }

body {
  margin: 0;
  color: #292929;
  background: #fff;
  font-family: 'Lora', 'Georgia', serif;
  font-size: 1rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { height: auto; max-width: 100%; vertical-align: middle; border-style: none; }
a { color: #333; text-decoration: none; transition: color .2s ease-out; }
a:hover { color: rgba(0, 0, 0, .5); }

/* ------------------------------------------------------------------ sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 30%;
  background-color: #4a4842;
  /* Drop the original files in as assets/background.jpg and assets/logo.png.
     Until then the gradient below is used as a fallback. */
  background-image: url("background.jpg"),
    radial-gradient(ellipse at 30% 15%, #8a877b 0%, #57554c 45%, #2f2e2a 100%);
  background-position: center center;
  background-size: cover, cover;
  background-repeat: no-repeat;
  color: #ccc;
}

.sidebar::before {
  content: '';
  display: block;
  position: absolute;
  inset: 0;
  background: #000;
  opacity: .5;
  z-index: 1;
}

.sidebar a { color: #fff; }
.sidebar a:hover { color: #dbca9e; }

.sidebar-inner {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 7% 8%;
}

/* logo on top */
.site-header {
  flex: 0 0 auto;
  text-align: center;
}

.sidebar-custom-logo-wrapper { margin: 0; }
.sidebar-custom-logo { max-width: 100px; }

/* menu in the middle */
.sidebar-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 0;
}

.sidebar-nav .nav-container { width: 100%; }

.sidebar-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-nav .nav-menu > li {
  font-size: 1.7em;
  line-height: 1.3;
  margin: 0 0 .38em;
}

.sidebar-nav .nav-menu > li:last-child { margin: 0; }
.sidebar-nav .nav-menu > li > a { color: #fff; }
.sidebar-nav .nav-menu > li > a:hover,
.sidebar-nav .nav-menu > .current-menu-item > a { color: #dbca9e; }

/* mobile menu button — hidden on desktop */
.mobile-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 0 1.2em;
  padding: 0;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
}
.mobile-nav-toggle:hover { color: #dbca9e; }
.mobile-nav-toggle .svg-icon { width: 24px; height: 24px; fill: currentColor; }

/* off-canvas menu — mobile only */
.off-canvas-nav { display: none; }

.close-canvas-nav {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 20px;
  line-height: 1;
  color: #fff;
  z-index: 20;
}
.close-canvas-nav:hover { color: #ccc; }
.close-canvas-nav .svg-icon { width: 20px; height: 20px; fill: currentColor; }

/* copyright at the bottom */
.site-info {
  flex: 0 0 auto;
  text-align: center;
}

/* page footer — mobile only (on desktop the copyright lives in the sidebar) */
.site-footer { display: none; }

.site-copyright { font-size: 1rem; }

/* ------------------------------------------------------------------ content */
.site-content {
  background: #fff;
  margin-left: 30%;
  overflow: hidden;
  word-wrap: break-word;
}

.inner-box {
  padding: 4.642857rem 5.357142rem;
  border-bottom: 1px solid #e5e5e5;
}

.content-container {
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
}
.content-container.large-container { max-width: 900px; }

/* -------------------------------------------------------------- entry styles */
.entry-header { text-align: center; margin-bottom: 2.142857em; }

.cat-links {
  position: relative;
  display: block;
  padding-bottom: 1.2rem;
  margin-bottom: 1.2rem;
  font-family: 'Raleway', 'Open Sans', sans-serif;
  font-size: .875em;
  text-transform: uppercase;
  letter-spacing: .227272em;
}
.cat-links::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 2em;
  height: 2px;
  margin-left: -1.090909em;
  background: #e5e5e5;
}
.cat-links a { color: #bfa370; }
.cat-links a:hover { color: #a9874a; }

.entry-title {
  margin: 0;
  font-size: 2.875em;
  font-weight: normal;
  line-height: 1.2;
  letter-spacing: -.0263157em;
}

.entry-content {
  font-size: 1.1875em;
  line-height: 1.5;
}

/* prose paragraphs keep normal spacing */
.entry-content p { margin: 0 0 1.2em; }

/* verse lines: one centred line per paragraph, tight rhythm */
.entry-content p[style*="text-align: center"] {
  margin: 0 0 .06em;
  line-height: 1.42;
}

.entry-content > :last-child { margin-bottom: 0; }

/* divider between the work and prev/next navigation */
.entry-divider {
  border: 0;
  border-top: 1px solid #e5e5e5;
  margin: 2.6em 0 1.8em;
}

.entry-footer { margin: 0; }

/* ------------------------------------------- previous / list / next navigation */
.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.6em;
  align-items: center;
}

.post-navigation .nav-next { text-align: right; }

.post-navigation .nav-meta {
  display: block;
  margin-bottom: .272727em;
  font-family: 'Raleway', 'Open Sans', sans-serif;
  font-size: .785714em;
  text-transform: uppercase;
  letter-spacing: .227272em;
  color: #676767;
}

.post-navigation .post-title { font-size: 1.142857em; color: #333; }
.post-navigation a:hover .post-title { color: #a9874a; }

.post-navigation .nav-list { text-align: center; }

.post-navigation .nav-list a {
  display: inline-block;
  padding: .8em 1.3em .75em;
  border: 1px solid #e5e5e5;
  color: #676767;
  font-family: 'Raleway', 'Open Sans', sans-serif;
  font-size: .785714em;
  line-height: 1;
  letter-spacing: .227272em;
  text-transform: uppercase;
  white-space: nowrap;
}
.post-navigation .nav-list a:hover {
  color: #a9874a;
  border-color: #d8c9a3;
}

/* ------------------------------------------------------------------ list page */
.cat-count {
  margin: 0 0 2.2em;
  text-align: center;
  font-family: 'Raleway', sans-serif;
  font-size: .8em;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #bfa370;
}

.works-cols {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 900px;
  columns: 2;
  column-gap: 3.2em;
}
.works-cols li {
  display: flex;
  align-items: baseline;
  gap: .7em;
  break-inside: avoid;
  margin: 0 0 .55em;
}
.works-cols .num {
  min-width: 2.1em;
  font-family: 'Raleway', sans-serif;
  font-size: .72em;
  letter-spacing: .12em;
  color: #bfa370;
}
.works-cols a {
  font-size: 1.05em;
  line-height: 1.4;
  color: #333;
}
.works-cols a:hover { color: #a9874a; }

/* ------------------------------------------------------------------- home */
.home-lead {
  margin: 0 0 2.6em;
  text-align: center;
  font-size: 1.1875em;
  color: #676767;
}
.home-lead p { margin: 0 0 .45em; }
.home-count {
  font-family: 'Raleway', sans-serif;
  font-size: .8em;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #bfa370;
}

.sections { max-width: 560px; margin: 0 auto; }
.sections a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1em;
  padding: 1em 0;
  border-bottom: 1px solid #ececec;
  font-size: 1.25em;
  color: #333;
}
.sections a:last-child { border-bottom: 0; }
.sections a:hover { color: #a9874a; }
.sections .count {
  font-family: 'Raleway', sans-serif;
  font-size: .7em;
  letter-spacing: .1em;
  color: #bfa370;
}

/* ------------------------------------------------------------------ books */
.book { margin: 0 0 2.6em; }
.book:last-child { margin-bottom: 0; }
.book h2 {
  margin: 0 0 .35em;
  font-size: 1.7em;
  line-height: 1.25;
}
.book h2 span {
  font-family: 'Raleway', sans-serif;
  font-size: .55em;
  font-weight: normal;
  letter-spacing: .12em;
  color: #bfa370;
  vertical-align: .35em;
  margin-left: .4em;
}
.book p { margin: 0 0 .8em; }
.book-links a { color: #bfa370; }
.book-links a:hover { color: #a9874a; }

.pagination { margin-top: 2.6em; }
.pagination .nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.142857em;
  height: 3.142857em;
  margin: 0 2px;
  background: #f2f2f2;
  border-radius: 100%;
  color: #333;
}
.page-numbers:hover,
.page-numbers.current { color: #fff; background: #d3c4a6; }
.page-numbers.current { font-weight: bold; }
.page-numbers.dots { background: none; }
.page-numbers.dots:hover { color: inherit; background: none; }

/* ---------------------------------------------------------------- desktop */
@media (min-width: 992px) {
  .sidebar { width: 30%; }
  .site-content { margin-left: 30%; }
}

/* ---------------------------------------------------------- theme breakpoints */
@media (min-width: 1600px) {
  html { font-size: 16px; }
  .inner-box { padding-top: 5.5rem; padding-bottom: 5.5rem; }
}

@media (min-width: 1920px) {
  html { font-size: 17px; }
  .content-container { max-width: 800px; }
}

@media (min-width: 2500px) {
  html { font-size: 22px; }
  .content-container { max-width: 1050px; }
}

@media (min-width: 1200px) and (max-width: 1599px) {
  .content-container { max-width: 670px; }
}

@media (min-width: 992px) and (max-width: 1199px) {
  html { font-size: 14px; }
  .content-container { max-width: 570px; }
}

@media (max-width: 1199px) {
  .works-cols { columns: 1; max-width: 560px; }
}

@media (max-width: 991px) {
  body { overflow-x: hidden; }

  .sidebar {
    position: relative;
    top: 0;
    width: 100%;
  }

  .sidebar-inner {
    display: block;
    height: auto;
    padding: 5% 6%;
  }

  .mobile-nav-toggle { display: inline-flex; }

  .sidebar .desktop-nav { display: none; }

  .sidebar .site-info { display: none; }

  .site-header { margin: 0 0 1.2em; }

  .site-content { margin-left: 0; flex: 1 0 auto; }

  .inner-box { padding-top: 2.8rem; }
  .entry-header { margin-bottom: 1.5em; }
  .cat-count { margin-bottom: 1.6em; }

  .wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: transform .3s ease-out;
  }

  .site-footer {
    display: block;
    flex: 0 0 auto;
    padding: 1.8em 1.5em 1.6em;
    text-align: center;
    background: #fff;
  }

  .site-footer .site-copyright {
    font-size: .875em;
    color: #676767;
  }

  .nav-open .wrapper { transform: translateX(400px); }

  .off-canvas-nav {
    display: flex;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 400px;
    background: #222;
    z-index: 0;
    overflow-y: auto;
    visibility: hidden;
    transition: visibility 0s linear .3s;
  }

  .nav-open .off-canvas-nav { visibility: visible; transition-delay: 0s; }

  .off-canvas-nav .nav-menu { padding: 60px; }

  .off-canvas-nav .nav-menu > li {
    font-size: 1.5em;
    line-height: 1.3;
    margin: 0 0 .5em;
  }
}

@media (max-width: 767px) {
  html { font-size: 14px; }

  .entry-title { font-size: 2.1em; }

  .post-navigation .nav-links {
    grid-template-columns: 1fr;
    gap: 1.2em;
    text-align: center;
  }

  .post-navigation .nav-next { text-align: center; }
  .post-navigation .nav-list { order: -1; }
}

@media (max-width: 480px) {
  .nav-open .wrapper { transform: translateX(100%); }
  .off-canvas-nav { width: 100%; }
  .inner-box { padding-left: 1.6rem; padding-right: 1.6rem; }
  .entry-content { font-size: 1.05em; }
}
