/* ============================================================
   Apocalypse Confidential — Ghost theme stylesheet
   Ported from the WordPress theme's css/*.css files.
============================================================ */

/* ---- base ---- */
html,
body {
  background: #000000;
  color: #ffffff;
  margin: 0;
  width: 100%;
  height: 100%;
}

a {
  color: #f63e32;
}

a:hover {
  color: #ffffff;
}

body {
  font-family: 'Archivo', sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 170px 170px;
}

@media screen and (max-width: 1024px) {
  .site-main {
    padding: 70px 20px 170px;
  }
}

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

/* ---- Koenig editor card widths ---- */
.kg-width-wide {
  position: relative;
  width: 85vw;
  max-width: 1200px;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.kg-width-full {
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.kg-width-wide img,
.kg-width-full img {
  display: block;
  width: 100%;
  height: auto;
}

.page-content {
  max-width: 80ch;
  margin-bottom: 140px;

  font-size: 21px;
  line-height: 23px;
  letter-spacing: 1px;
  color: #eaeaea;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: #f63e32;
  color: #fff;
  z-index: 1000;
}

/* ---- splash ---- */
.splash-container {
  display: flex;
  height: 100dvh;
  align-items: center;
  justify-content: center;
}

.splash-container img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 500px;
  max-height: 75%;
}

/* ---- header ---- */
.site-header {
  padding: 70px 20px;
  border-bottom: 6px solid #f63e32;
  position: relative;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-header__logo {
  display: block;
}

.site-header__logo-image {
  display: none;
  width: auto;
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
}

.site-header__logo-image.--stacked {
  display: block;
}
@media screen and (min-width: 1024px) {
  .site-header {
    padding: 70px 170px;
  }

  .site-header .container {
    gap: 6rem;
  }
  .site-header__logo-image {
    display: block;
  }
  .site-header__logo-image.--stacked {
    display: none;
  }
}

.site-header__title {
  font-size: 56px;
  line-height: 54px;
  letter-spacing: 2rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #f63e32;
  margin: 0;
}

/* ---- site menu (hamburger) ---- */
.site-menu {
  display: flex;
  align-items: center;
  position: relative;
}

.site-menu__trigger {
  display: flex;
  aspect-ratio: 1;
  width: 80px;
  height: 80px;
  fill: #ffffff;
  cursor: pointer;
}

@media screen and (min-width: 1024px) {
  .site-menu__trigger {
    width: 100px;
    height: 100px;
  }
}

.site-menu__trigger:hover {
  fill: #f63e32;
}

.site-menu__links {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  width: min-content;
  background-color: #000000;
  color: #ffffff;
  padding: 2rem;
  gap: 1rem;
  flex-direction: column;
  border: 6px solid #f63e32;
  letter-spacing: 0.2rem;
  font-size: 1.25rem;
}

.site-menu__links.open {
  display: flex;
}

.site-menu__links a {
  color: #f63e32;
  text-decoration: none;
  cursor: pointer;
}

.site-menu__links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ---- piece (single post/page header) ---- */
.piece-header {
  margin-bottom: 90px;
  text-transform: uppercase;
}

.piece-header__title {
  font-size: 56px;
  line-height: 54px;
  letter-spacing: 2px;
  margin: 0 0 30px;
  font-weight: 600;
}

.piece-header__categories,
.piece-header__name {
  font-size: 30px;
  line-height: 28px;
  letter-spacing: 2px;
  margin: 0;
}

.creator-bio {
  font-size: 18px;
  line-height: 21px;
  letter-spacing: 1px;
  color: #b2b2b2;
  max-width: 60ch;
  font-style: italic;
  margin-bottom: 4rem;
}

/* ---- footer ---- */
.site-footer {
  padding: 70px 0;
  border-top: 6px solid #f63e32;
}

.site-footer__links {
  display: flex;
  justify-content: center;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media screen and (max-width: 1024px) {
  .site-footer__links {
    align-items: center;
    flex-direction: column;
  }
}

.site-footer a {
  text-transform: uppercase;
  font-size: 23px;
  line-height: 21px;
  letter-spacing: 6px;
  text-decoration: none;
}

/* ---- home ---- */
.posts-container {
  display: flex;
  flex-direction: column;
  gap: 100px;
}

@media (min-width: 768px) {
  .posts-container {
    flex-direction: row;
  }
}

.home-latest {
  flex: 1;
}

@media (min-width: 768px) {
  .home-specials {
    max-width: 260px;

    display: flex;
    flex-direction: column;
    gap: 3rem;
  }
}

.home-special img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- entry / simple-entry list ---- */
.--simple-entry.piece-article {
  display: block;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .--simple-entry.piece-article {
    margin-bottom: 3rem;
  }
}

.--simple-entry.piece-article h2 {
  text-transform: uppercase;
  letter-spacing: 6px;
  margin: 0 0 1rem;
}

.--simple-entry.piece-article h2 a {
  color: #fff;
  text-decoration: none;
}

.--simple-entry.piece-article h2 a:hover {
  color: #f63e32;
  text-decoration: underline;
}

.--simple-entry.piece-article span {
  font-size: 18px;
  line-height: 21px;
  letter-spacing: 1px;
  color: #eaeaea;
}

/* ---- tag/category landing ---- */
.category-header {
  grid-area: header;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 6px;
  margin-bottom: 10rem;
}

.category-header span {
  color: #b2b2b2;
}

.grouped-categories {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media screen and (min-width: 768px) {
  .grouped-categories {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.category-grouped {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.category-grouped__title {
  text-transform: uppercase;
  letter-spacing: 6px;
  margin: 0 0 3rem;
  font-size: 1.875rem;
}

/* ---- specials grid (page-special-presentations) ---- */
.specials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .specials {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem 4rem;
  }
}

.special {
  padding: 1rem;
  text-decoration: none;
}

.special__image {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.special span {
  display: block;
  text-align: center;
  text-decoration: none;
}

.special__title {
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
  font-weight: 600;
}

.special__date {
  color: #b2b2b2;
}

/* ---- special presentation landing ---- */
.special-presentation .site-header {
  min-height: 10rem;
  background-size: cover;
  background-position: center;
}

.special-presentation .site-header .container {
  justify-content: flex-end;
}

@media screen and (min-width: 768px) {
  .special-presentation .site-header {
    min-height: 15rem;
  }
}

/* ---- pagination ---- */
.nav-links {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 3rem;
}

.nav-links .nav-previous {
  text-align: left;
  padding-right: 6rem;
}

.nav-links .nav-next {
  text-align: right;
  padding-left: 2rem;
}

.nav-links a {
  color: #f63e32;
  text-decoration: none;
}

.nav-links a:hover {
  color: #fff;
  text-decoration: underline;
}
