/* Khandroma theme — modeled on the site's original WordPress Twenty Seventeen design
   (light color scheme, one column, Libre Franklin). */

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: #333;
  font-family: "Libre Franklin", "Helvetica Neue", helvetica, arial, sans-serif;
  font-size: 15px;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.66;
  word-wrap: break-word;
}

.wrap {
  margin-left: auto;
  margin-right: auto;
  max-width: 1000px;
  padding-left: 2em;
  padding-right: 2em;
}

h1, h2, h3, h4, h5, h6 {
  clear: both;
  line-height: 1.4;
  margin: 0 0 0.75em;
}

h1 { font-size: 24px; font-size: 1.5rem; font-weight: 300; }
h2 { font-size: 20px; font-size: 1.25rem; font-weight: 300; }
h3 { font-size: 18px; font-size: 1.125rem; font-weight: 300; }
h4 {
  color: #333;
  font-size: 16px;
  font-size: 1rem;
  font-weight: 800;
}
h5 {
  color: #767676;
  font-size: 13px;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
h6 {
  color: #333;
  font-size: 15px;
  font-size: 0.9375rem;
  font-weight: 800;
}

p { margin: 0 0 1.5em; padding: 0; }

a {
  color: #222;
  text-decoration: none;
  box-shadow: inset 0 -1px 0 rgba(15, 15, 15, 1);
  transition: color 80ms ease-in, box-shadow 130ms ease-in-out;
}

a:hover, a:focus {
  color: #000;
  box-shadow: inset 0 0 0 rgba(0, 0, 0, 0), 0 3px 0 rgba(0, 0, 0, 1);
}

/* Header: branding + top navigation, like Twenty Seventeen's masthead */

.custom-header {
  display: block;
}

.site-branding {
  padding: 1em 0;
  position: relative;
  transition: margin-bottom 0.2s;
}

.site-branding .wrap {
  display: flex;
  align-items: center;
}

.custom-logo-link {
  display: inline-block;
  padding-right: 1em;
  box-shadow: none;
}

.custom-logo-link img {
  display: inline-block;
  max-height: 80px;
  width: auto;
}

.site-title {
  font-size: 24px;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.08em;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
}

.site-title a {
  color: #334568;
  opacity: 1;
  box-shadow: none;
}

.site-title a:hover, .site-title a:focus {
  color: #334568;
  opacity: 0.8;
  box-shadow: none;
}

.site-description {
  color: #334568;
  font-size: 13px;
  font-size: 0.8125rem;
  margin-bottom: 0;
}

.navigation-top {
  background: #fff;
  border-bottom: 1px solid #eee;
  border-top: 1px solid #eee;
  font-size: 16px;
  font-size: 1rem;
  position: relative;
}

.navigation-top .wrap {
  max-width: 1000px;
  padding: 0;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  display: block;
  padding: 0.5em;
  text-decoration: none;
  box-shadow: none;
  color: #222;
}

.main-navigation a:hover, .main-navigation a:focus {
  color: #767676;
  box-shadow: none;
}

.main-navigation .current-menu-item > a,
.main-navigation .current > a {
  color: #767676;
}

.main-navigation li li {
  border-top: 1px solid #eee;
}

.menu-toggle {
  display: none;
  background-color: transparent;
  border: 0;
  box-shadow: none;
  color: #222;
  font-family: inherit;
  font-size: 16px;
  padding: 1em;
  cursor: pointer;
}

.menu-toggle .icon {
  display: inline-block;
  fill: currentColor;
  height: 16px;
  width: 16px;
  margin-right: 0.5em;
  vertical-align: middle;
}

/* Sub-menus */
.main-navigation .sub-menu {
  background: #fff;
  border: 1px solid #bbb;
  padding: 0;
}

/* Main content */

.site-content {
  padding: 2.5em 0 0;
}

.page .entry-title,
.single .entry-title {
  color: #333;
  font-size: 26px;
  font-size: 1.625rem;
  font-weight: 300;
  margin-bottom: 0.75em;
}

.entry-content h1, .entry-content h2, .entry-content h3 {
  font-weight: 300;
}

.entry-content img {
  max-width: 100%;
  height: auto;
}

.alignright { float: right; margin: 0 0 1em 1.5em; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.aligncenter { clear: both; display: block; margin: 0 auto 1.5em; }

.wp-caption {
  color: #555d66;
  font-size: 13px;
  font-size: 0.8125rem;
  margin-bottom: 1.5em;
  max-width: 100%;
}

.wp-caption img { display: block; margin: 0 auto; }

.wp-caption figcaption,
.wp-caption .wp-caption-text {
  font-style: italic;
  line-height: 1.6154;
  padding-top: 0.5em;
  text-align: center;
}

.wp-caption.alignright { float: right; margin-left: 1.5em; }
.wp-caption.alignleft { float: left; margin-right: 1.5em; }

/* Gallery (converted from WP [gallery]) */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em;
  margin: 1.5em 0;
}

.gallery a {
  display: block;
  box-shadow: none;
}

.gallery img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #eee;
}

/* Videos (converted from WP [playlist]) */
.videos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5em;
  margin: 1.5em 0;
}

.video { margin: 0; }
.video video { width: 100%; background: #000; }

.video figcaption {
  color: #555d66;
  font-size: 13px;
  font-size: 0.8125rem;
  font-style: italic;
  padding-top: 0.35em;
}

.youtube-playlist iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  margin: 0 0 1.5em;
}

/* News / post list */
.post-list {
  list-style: none;
  margin: 0 0 1.5em;
  padding: 0;
}

.post-list li {
  padding: 0.5em 0;
  border-bottom: 1px solid #eee;
  display: flex;
  gap: 1.25em;
  align-items: baseline;
}

.post-list time {
  color: #767676;
  font-size: 13px;
  font-size: 0.8125rem;
  white-space: nowrap;
}

/* Footer */

.site-footer {
  border-top: 1px solid #eee;
  margin-top: 3em;
}

.site-footer .wrap {
  padding-bottom: 1.5em;
  padding-top: 2em;
}

.site-info {
  font-size: 14px;
  font-size: 0.875rem;
  line-height: 1.615;
  text-align: center;
}

.site-info a {
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 1);
}

.site-info .sep { margin: 0 0.5em; }

.footer-note {
  color: #767676;
  font-size: 13px;
  font-size: 0.8125rem;
  font-style: italic;
}

/* Desktop nav layout */
@media screen and (min-width: 48em) {
  .site-branding { padding: 3em 0; }

  .custom-logo-link { padding-right: 2em; }

  .main-navigation li {
    border: 0;
    display: inline-block;
  }

  .main-navigation li li { display: block; }

  .main-navigation a { padding: 1em 0.5em; }

  .main-navigation > div > ul > li:first-child > a { padding-left: 0; }

  .main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: -999em;
    z-index: 99999;
    min-width: 14em;
    text-align: left;
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
  }

  .main-navigation ul li {
    position: relative;
  }

  .main-navigation ul li:hover > ul,
  .main-navigation ul li.focus > ul {
    left: 0;
    right: auto;
  }

  .main-navigation ul ul a {
    padding: 0.75em 1em;
    width: 100%;
  }

  .site-content { padding: 3.5em 0 0; }

  .page .entry-title { font-size: 26px; }
}

/* Mobile */
@media screen and (max-width: 47.99em) {
  .wrap { padding-left: 1.5em; padding-right: 1.5em; }

  .menu-toggle { display: block; }

  .main-navigation .menu-main-container > ul { display: none; }

  body.nav-open .main-navigation .menu-main-container > ul { display: block; }

  .main-navigation ul li a { border-top: 1px solid #eee; }

  .main-navigation .sub-menu {
    border: 0;
    padding-left: 1.5em;
  }

  .alignright, .alignleft {
    float: none;
    display: block;
    margin: 0 auto 1em;
  }

  .gallery { grid-template-columns: repeat(2, 1fr); }
  .videos { grid-template-columns: 1fr; }

  .post-list li { flex-direction: column; gap: 0; }
}
