/*
Theme Name: Meta narratives theme
Theme URI: https://example.com/
Author: Local Developer
Author URI: https://example.com/
Description: The absolute minimum WordPress theme.
Version: 1.0.0
Text Domain: meta-narratives-theme
*/
@font-face {
  font-family: "ABC Ginto Nord";
  src: url("fonts/ABCGintoNordWidthsVariableUnlicensedTrial-Regular.woff2") format("woff2"), url("fonts/ABCGintoNordWidthsVariableUnlicensedTrial-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: "ABC Ginto Nord", Helvetica, Arial, sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  border: 10px solid #ff0000;
  pointer-events: none;
  z-index: 9999;
  box-sizing: border-box;
}
body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body p,
body li,
body .wp-element-caption {
  color: #ff0000;
}
body h1 a,
body h2 a,
body h3 a,
body h4 a,
body h5 a,
body h6 a,
body p a,
body li a,
body .wp-element-caption a {
  color: #ff0000;
}
body h1 a:hover,
body h2 a:hover,
body h3 a:hover,
body h4 a:hover,
body h5 a:hover,
body h6 a:hover,
body p a:hover,
body li a:hover,
body .wp-element-caption a:hover {
  font-style: italic;
}
body .wp-element-caption {
  font-size: 11px;
}
body hr {
  display: block;
  width: 100%;
  height: 0;
  margin: 0;
  border: 0;
  border-top: 3px solid #ff0000;
  box-sizing: border-box;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 80px;
  height: 100vh;
  border-right: 3px solid #ff0000;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  background: #fff;
  overflow: hidden;
  transition: width 240ms ease-in-out;
  z-index: 1000;
  flex-direction: row;
}
.site-header.is-open {
  width: calc(80px + (100vw - 80px) * 0.618);
}
.site-header .site-header__toggle {
  position: absolute;
  left: 22px;
  bottom: 20px;
  width: 50px;
  height: 50px;
  border: 0;
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}
.site-header .site-header__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #ff0000;
  margin-top: 5px;
  margin-bottom: 5px;
}
.site-header.is-open .site-header__toggle {
  left: 20px;
}
.site-header.is-open .site-navigation {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.site-header .site-branding {
  height: 100%;
  width: 80px;
  flex: 0 0 80px;
  display: flex;
  align-items: baseline;
  margin-top: 20px;
  justify-content: center;
  border-right: 2px solid #ff0000;
  padding-left: 5px;
}
.site-header .site-branding a {
  text-decoration: none;
}
.site-header .site-title {
  margin: 0;
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 0.2em;
  font-size: 2rem;
  line-height: 1;
  text-transform: uppercase;
}
.site-header .site-title__letter--epsilon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.site-header .site-title__epsilon {
  display: block;
  width: 0.8em;
  height: auto;
  margin-bottom: 8px;
  margin-top: 5px;
}
.site-header .site-title__letter--space {
  letter-spacing: 0;
  width: 0.35em;
}
.site-header .site-description,
.site-header .site-navigation {
  display: block;
}
.site-header .site-navigation {
  align-self: center;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-10px);
  transition: opacity 180ms ease-in-out, transform 180ms ease-in-out;
  margin-left: 28px;
}
.site-header .site-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-header .site-navigation a {
  color: #ff0000;
  text-decoration: none;
  font-size: 1.25rem;
  line-height: 1.6;
}

.site-main,
.site-footer {
  margin-left: 80px;
}

.home-layout {
  display: grid;
  grid-template-columns: 1.618fr 1fr;
  height: 100vh;
  min-height: 0;
  overflow: visible;
}

.home-layout__primary .box,
.home-layout__secondary .box {
  padding: 20px;
  padding-top: 50px;
  padding-bottom: 30px;
}
.home-layout__primary .box.social-box,
.home-layout__secondary .box.social-box {
  padding: 0px;
  padding-right: 20px;
}
.home-layout__primary .box h2,
.home-layout__secondary .box h2 {
  margin: 0;
  font-size: 2rem;
}
.home-layout__primary .box h1,
.home-layout__secondary .box h1 {
  margin-top: 0;
  font-size: 3rem;
  text-transform: uppercase;
}
.home-layout__primary .box h1 p,
.home-layout__secondary .box h1 p {
  margin-top: -40px;
}
.home-layout__primary .box.article-box,
.home-layout__secondary .box.article-box {
  padding-left: 10%;
  padding-right: 25%;
}
.home-layout__primary .box.article-box p a,
.home-layout__secondary .box.article-box p a {
  color: #ff0000;
}

.home-layout__primary {
  position: relative;
  z-index: 1;
  isolation: isolate;
  height: 100vh;
  max-height: 100vh;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.home-layout__secondary {
  position: relative;
  z-index: 10;
  height: 100vh;
  max-height: 100vh;
  min-height: 0;
  border-left: 3px solid #ff0000;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.home-layout__secondary-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.home-layout__secondary-content > .box:first-of-type,
.home-layout__secondary-content > hr {
  flex-shrink: 0;
}
.home-layout__secondary-content > .box:first-of-type .social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: end;
  margin-top: 10px;
}
.home-layout__secondary-content > .box:first-of-type .social-links__item {
  display: block;
  line-height: 0;
  text-decoration: none;
}
.home-layout__secondary-content > .box:first-of-type .social-links__icon {
  display: block;
  width: 40px;
  height: 40px;
  border-left: 2px solid #ff0000;
  padding-left: 10px;
  padding-top: 5px;
  padding-bottom: 5px;
}
.home-layout__secondary-content .box--meta-bg {
  flex: 1 1 auto;
  min-height: 0;
  padding-bottom: 0;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

.home-start-reading {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  height: 150px;
  overflow: visible;
}

.home-start-reading__stack {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-start-reading__layer {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  background: #fff;
  border: 3px solid #ff0000;
  border-left: 0;
  border-right: 0;
  transform: translate(0, 0);
  transform-origin: right bottom;
  transition: transform 280ms ease, border-color 280ms ease, border-width 280ms ease;
}
.home-start-reading__layer:nth-child(1) {
  z-index: 1;
}
.home-start-reading__layer:nth-child(2) {
  z-index: 2;
}
.home-start-reading__layer:nth-child(3) {
  z-index: 3;
}
.home-start-reading__layer:nth-child(4) {
  z-index: 4;
}
.home-start-reading__layer:nth-child(5) {
  z-index: 5;
}
.home-start-reading__layer:nth-child(6) {
  z-index: 6;
}

.start-reading {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 30px;
  background: #fff;
  border: 3px solid #ff0000;
  border-left: 0;
  border-right: 0;
  color: #ff0000;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transform: translate(0, 0);
  transform-origin: right bottom;
  transition: transform 280ms ease, border-color 280ms ease, border-width 280ms ease;
}

.home-start-reading:hover .home-start-reading__layer,
.home-start-reading:focus-within .home-start-reading__layer {
  border-left: 3px solid #ff0000;
  border-right: 3px solid #ff0000;
}
.home-start-reading:hover .home-start-reading__layer:nth-child(1),
.home-start-reading:focus-within .home-start-reading__layer:nth-child(1) {
  transform: translate(-15px, -15px);
}
.home-start-reading:hover .home-start-reading__layer:nth-child(2),
.home-start-reading:focus-within .home-start-reading__layer:nth-child(2) {
  transform: translate(-30px, -30px);
}
.home-start-reading:hover .home-start-reading__layer:nth-child(3),
.home-start-reading:focus-within .home-start-reading__layer:nth-child(3) {
  transform: translate(-45px, -45px);
}
.home-start-reading:hover .home-start-reading__layer:nth-child(4),
.home-start-reading:focus-within .home-start-reading__layer:nth-child(4) {
  transform: translate(-60px, -60px);
}
.home-start-reading:hover .home-start-reading__layer:nth-child(5),
.home-start-reading:focus-within .home-start-reading__layer:nth-child(5) {
  transform: translate(-75px, -75px);
}
.home-start-reading:hover .home-start-reading__layer:nth-child(6),
.home-start-reading:focus-within .home-start-reading__layer:nth-child(6) {
  transform: translate(-90px, -90px);
}
.home-start-reading:hover .start-reading,
.home-start-reading:focus-within .start-reading {
  border-left: 3px solid #ff0000;
  border-right: 3px solid #ff0000;
  transform: translate(-105px, -105px);
}

.start-reading__label {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  font-size: 2rem;
  line-height: 1.1;
}

.start-reading__chevron {
  flex-shrink: 0;
  font-size: 1.5rem;
  line-height: 1;
}

@media (max-width: 900px) {
  .site-main,
  .site-footer {
    margin-left: 0;
    padding-top: 80px;
  }
  .site-header {
    left: auto;
    right: 0;
    top: 0;
    width: auto;
    height: auto;
    border-right: none;
    background: transparent;
    overflow: visible;
    pointer-events: none;
  }
  .site-header .site-header__toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    left: auto;
    bottom: auto;
    z-index: 1002;
    pointer-events: auto;
  }
  .site-header .site-branding {
    display: none;
  }
  .site-header .site-navigation {
    display: none;
  }
  .site-header.is-open {
    position: fixed;
    top: 0;
    right: 0;
    width: 75vw;
    height: 100vh;
    background: #fff;
    border-left: 3px solid #ff0000;
    flex-direction: column;
    align-items: stretch;
    pointer-events: auto;
  }
  .site-header.is-open .site-header__toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    left: auto;
  }
  .site-header.is-open .site-branding {
    display: flex;
    width: 100%;
    flex: 0 0 auto;
    height: auto;
    margin-top: 0;
    padding: 80px 24px 24px;
    border-right: none;
    justify-content: flex-start;
  }
  .site-header.is-open .site-branding .site-title {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    letter-spacing: 0.08em;
  }
  .site-header.is-open .site-navigation {
    display: block;
    flex: 1 1 auto;
    align-self: stretch;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    margin: 0;
    padding: 0 24px 40px;
    overflow-y: auto;
  }
  .home-layout {
    grid-template-columns: 1fr;
    height: auto;
    min-height: calc(100vh - 80px);
  }
  .home-layout__primary {
    height: auto;
    max-height: none;
    min-height: 40vh;
  }
  .home-layout__secondary {
    height: auto;
    max-height: none;
    border-left: none;
    border-top: 3px solid #ff0000;
  }
  .home-layout__primary .box.article-box,
  .home-layout__secondary .box.article-box {
    padding-left: 20px;
    padding-right: 20px;
  }
  .home-layout__primary .box h1,
  .home-layout__secondary .box h1 {
    font-size: 2.25rem;
  }
  .home-layout__primary .box h2,
  .home-layout__secondary .box h2 {
    font-size: 1.5rem;
  }
  .start-reading__label {
    font-size: 1.5rem;
  }
}
