/*
Theme Name: Grisha Krivchenia Eleventy Theme
Description: Based on WordPress Twenty Seventeen Theme
Version: 1.0
*/

/* This is a custom implementation of the WordPress Twenty Seventeen theme for Eleventy */

/* Import the new modular CSS structure */
@import url('main.css');
/* Font definitions and styles to match WordPress site */
@import url('font-libre-franklin.css');
@import url('colors-dark.css');
@import url('exact-arrow.css');
@import url('header-layout-fix.css');
@import url('header-subpage-fix.css');
@import url('home-float-fix.css');
@import url('home-scroll-arrow-fix.css');
@import url('audio-controls-fix.css');

/* Eleventy-specific overrides */
.entry-content img {
  max-width: 100%;
  height: auto;
}

/* Ensure the header image displays properly */
.custom-header-media img {
  position: fixed;
  height: auto;
  left: 50%;
  max-width: 1000%;
  min-height: 100%;
  min-width: 100%;
  min-width: 100vw;
  width: auto;
  top: 50%;
  padding-bottom: 1px;
  -ms-transform: translateX(-50%) translateY(-50%);
  -moz-transform: translateX(-50%) translateY(-50%);
  -webkit-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
}

/* Fix for modern browsers */
@supports (object-fit: cover) {
  .has-header-image .custom-header-media img {
    height: 100%;
    left: 0;
    -o-object-fit: cover;
    object-fit: cover;
    top: 0;
    -ms-transform: none;
    -moz-transform: none;
    -webkit-transform: none;
    transform: none;
    width: 100%;
  }
}

/* Navigation styles moved to exact-navigation.css */

/* Ensure content displays over the fixed header image */
.site-content-contain {
  position: relative;
  z-index: 2;
  background-color: rgba(34, 34, 34, 0.9);
}

/* Content wrap styles */
.site-content .wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2em;
}

.content-area {
  width: 100%;
}

/* Homepage content spacing */
.home .site-content {
  padding-top: 6em;
}

.home .entry-header {
  margin-bottom: 1em;
}

.home #content {
  padding-top: 2em;
}

.home .site-main {
  margin-bottom: 3em;
}

.home .entry-content h1 {
  color: #fff;
  font-size: 14px;
  font-size: 0.875rem;
  font-weight: 800;
  margin-bottom: 1.5em;
  font-family: "Libre Franklin", "Helvetica Neue", helvetica, arial, sans-serif;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home .entry-content p {
  margin-bottom: 1.2em;
  line-height: 1.8;
  font-size: 18px;
  font-size: 1.125rem;
  color: #eee;
  font-weight: 400;
}

.home .entry-content a {
  color: #2fbcef;
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 400;
  box-shadow: inset 0 -1px 0 rgba(47, 188, 239, 0.3);
}

.home .entry-content a:hover,
.home .entry-content a:focus {
  color: #68cdf2;
  box-shadow: inset 0 0 0 rgba(47, 188, 239, 0), 0 3px 0 rgba(47, 188, 239, 0.2);
}

.home .entry-content img {
  margin-top: 3em;
  margin-bottom: 0.5em;
  display: block;
  max-width: 100%;
  height: auto;
}

.home .entry-content em {
  color: #aaa;
  font-size: 15px;
  font-size: 0.9375rem;
  font-style: italic;
  display: block;
  margin-top: 0.5em;
}

/* Site branding styles */
.site-branding {
  padding: 1em 0;
  position: relative;
  transition: margin-bottom 0.2s;
  z-index: 3;
}

.site-branding .wrap {
  padding: 1em 2em;
  max-width: 1000px;
}

.has-header-image .site-branding {
  margin-bottom: 72px;
}

.site-branding-text {
  padding: 0;
  margin: 0;
}

body {
  font-family: "Libre Franklin", "Helvetica Neue", helvetica, arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.66;
}

h1 {
  font-size: 26px;
  font-size: 1.625rem;
  font-weight: 600;
  color: #fff;
}

/* Entry title specific styling */
.entry-title {
  font-size: 14px;
  font-size: 0.875rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1em;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h2 {
  color: #eee;
  font-size: 14px;
  font-size: 0.875rem;
  font-weight: 300;
  margin-top: 1.5em;
}

h3 {
  color: #ddd;
  font-size: 20px;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.25em;
}

h4 {
  color: #ccc;
  font-size: 18px;
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1em;
}

h5 {
  color: #767676;
  font-size: 13px;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.site-title {
  clear: none;
  font-size: 28px;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.05em;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
}

/* Page title for non-home pages */
body:not(.home) .entry-title {
  font-size: 14px;
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.site-title a {
  color: #fff;
  text-decoration: none;
}

.site-title a:hover,
.site-title a:focus {
  color: #eee;
}

.site-description {
  color: #aaa;
  font-size: 14px;
  font-size: 0.875rem;
  font-weight: 400;
  margin: 3px 0 0;
  letter-spacing: 0.01em;
}

/* Navigation styles moved to exact-navigation.css */

/* Navigation styles moved to exact-navigation.css */
  border: 0;
  -webkit-box-shadow: none;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.8);
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  margin: 0 0 0 0.25em;
  padding: 0;
  position: relative;
  text-shadow: none;
  vertical-align: middle;
  width: 24px;
  height: 16px;
}

.dropdown-toggle:hover,
.dropdown-toggle:focus {
  background: transparent;
  color: #fff;
}

.dropdown-toggle:focus {
  outline: thin dotted;
}

.dropdown-toggle .icon {
  height: 16px;
  width: 16px;
  fill: currentColor;
  position: relative;
  top: -2px;
}

.dropdown-toggle.toggled-on .icon {
  -ms-transform: rotate(-180deg); /* IE 9 */
  -webkit-transform: rotate(-180deg); /* Chrome, Safari, Opera */
  transform: rotate(-180deg);
}

/* Hide dropdown toggle for desktop */
@media screen and (min-width: 48em) {
  .js .menu-item-has-children > a > .dropdown-toggle,
  .js .dropdown-toggle {
    display: none;
  }
}

/* Navigation styles moved to exact-navigation.css */

/* Menu container styles */
.menu-top-menu-container {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: flex-start;
}

/* Ensure left alignment for mobile menu */
.toggled-on .menu-top-menu-container {
  text-align: left;
}

/* Navigation styles moved to exact-navigation.css */

/* Responsive styles for site title */
@media screen and (min-width: 48em) {
  .site-title {
    font-size: 36px;
    font-size: 2.25rem;
  }

  .site-description {
    font-size: 16px;
    font-size: 1rem;
  }

  .site-branding {
    padding: 3em 0;
  }

  .has-header-image .site-branding {
    margin-bottom: 70px;
  }
}

@media screen and (max-width: 47.99em) {
  .site-title {
    font-size: 22px;
    font-size: 1.375rem;
  }

  .site-branding {
    padding: 1.5em 0;
  }

  /* Navigation styles moved to exact-navigation.css */

  .js .dropdown-toggle {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 40px;
    padding: 0;
  }

  .js .dropdown-toggle .icon {
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
    right: 12px;
  }
}

/* Menu scroll down arrow */
.menu-scroll-down {
  position: absolute;
  right: 0;
  bottom: 0;
  display: none;
}

.menu-scroll-down .icon {
  fill: #767676;
  height: 18px;
  width: 18px;
  transform: rotate(90deg);
}

@media screen and (min-width: 48em) {
  .menu-scroll-down {
    display: block;
    padding: 1em;
  }
}

/* Screen reader only text */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* Icon styles */
.icon {
  display: inline-block;
  fill: currentColor;
  height: 1em;
  position: relative;
  top: -0.0625em;
  vertical-align: middle;
  width: 1em;
}

.icon-arrow-right {
  height: 18px;
  width: 18px;
}

/* Homepage Welcome heading spacing */
.home .entry-content h1:first-child {
  margin-top: 2em;
  margin-bottom: 4em;
}

/* Align navigation with site branding text */
.main-navigation .menu-main-menu-container {
  margin-left: -1em !important;
}

/* Site content wrap margin to match archived site */
/* .site-content-contain .wrap {
  margin-top: 2em;
} */

/* Site content padding-top for all pages */
.site-content {
  padding-top: 88px !important;
}

/* Entry header spacing */
.entry-header {
  padding-bottom: 16px;
  margin-bottom: 64px;
}

/* Article margin for page entries */
article.page.type-page.entry {
  margin-left: 82px;
}
