@font-face {
  font-family: 'Hind';
  src: url('../fonts/hind-light-webfont.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Hind';
  src: url('../fonts/hind-regular-webfont.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Hind';
  src: url('../fonts/hind-bold-webfont.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

:root {
  --color-spring: #f9f871;
  --color-summer: #6a89cc;
  --color-autumn: #c0392b;
  --color-winter: #27ae60;
}

body, html {
  margin: 0;
  padding: 0;
  background-color: #000;
  color: #fff;
  font-family: 'Hind', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 300;
}

/* Layout */

.issue-page-wrapper {
  display: flex;
  min-height: 100vh;
}

.issue-sidebar {
  flex: 0 0 220px;
  padding: 2em;
  border-right: 1px solid #444;
  box-sizing: border-box;
}

.content-pane {
  flex-grow: 1;
  max-width: 80ch;
  padding: 3em 4em;
}

.logo-link {
  color: inherit;
  text-decoration: none;
}

.habeez-logo {
  margin: 0;
  font-size: 2.5em;
  font-weight: 700;
  line-height: 1;
  user-select: none;
}

.color-shift span {
  display: inline-block;
  transition: color .5s ease;
}

.issue-details {
  margin-top: .5em;
  font-size: 1.1em;
  font-weight: 700;
}

.contributor-list {
  margin-top: 4.7em;
  padding: 0;
  list-style: none;
}

.contributor-list li {
  margin-bottom: .5em;
}

.contributor-list a {
  color: #fff;
  font-size: 1.7em;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s ease-in-out;
}

body.spring .contributor-list a:hover { color: var(--color-spring); }
body.summer .contributor-list a:hover { color: var(--color-summer); }
body.autumn .contributor-list a:hover { color: var(--color-autumn); }
body.winter .contributor-list a:hover { color: var(--color-winter); }

.contributor-list a[aria-current="page"] {
  color: var(--season-color, #FFD700);
  pointer-events: none;
}

.content-pane h1 {
  margin-top: 0;
  font-size: 3em;
  font-weight: 700;
}

.content-pane p {
  font-size: 1.1em;
  line-height: 1.8;
  text-align: justify;
  hyphens: auto;
}

.content-pane a {
  border-bottom: 1px solid transparent;
  color: #FFD700;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .2s ease-in-out;
}

.content-pane a:hover {
  border-bottom: 1px solid #FFD700;
}

/* Slideshow (add .zoomable for click-to-enlarge images) */

.slideshow-container {
  position: relative;
  width: 100%;
  max-width: 90vh;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  overflow: hidden;
  background-color: #111;
}

.slideshow-container.slideshow-inactive {
  cursor: none;
}

.slides-wrapper {
  display: flex;
  height: 100%;
  transition: transform .4s ease-in-out;
}

.slide {
  flex: 0 0 100%;
}

.image-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.text-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2em;
  box-sizing: border-box;
  text-align: center;
}

.text-slide .exploded-text {
  color: var(--season-color, #FFD700);
  font-size: clamp(2rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.slide-nav {
  position: absolute;
  top: 50%;
  z-index: 10;
  padding: .4em .6em;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  font-family: monospace;
  font-size: 1rem;
  cursor: pointer;
  user-select: none;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity .3s ease, background-color .2s, color .2s;
}

.slideshow-container:not(.slideshow-inactive) .slide-nav {
  opacity: 1;
}

.slide-nav:hover {
  border-color: var(--season-color, #FFD700);
  background: var(--season-color, #FFD700);
  color: #000;
}

.slide-nav.prev { left: 1em; }
.slide-nav.next { right: 1em; }

.slide-nav.hidden {
  opacity: 0 !important;
  pointer-events: none;
}

.slide-counter {
  position: absolute;
  right: 1em;
  bottom: 1em;
  padding: .2em .6em;
  border-radius: 4px;
  background: rgba(0, 0, 0, .5);
  font-size: .9rem;
  font-weight: 700;
  opacity: 1;
  transition: opacity .3s ease;
}

.slideshow-container.slideshow-inactive .slide-counter {
  opacity: 0;
}

.zoomable .image-slide {
  cursor: pointer;
}

.zoomable .image-slide img {
  object-fit: contain;
}

.zoomable .slide-counter {
  display: none;
}

.disclaimer-text {
  margin-top: 1em;
  margin-bottom: 2em;
  color: rgba(255, 255, 255, .7);
  font-family: 'Hind', sans-serif;
  font-size: 1em;
  text-align: center;
  text-transform: none;
}

.fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .85);
}

.fullscreen-overlay img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
}

body.fullscreen-active {
  overflow: hidden;
}

/* Video issues */

.video-frame {
  position: relative;
  width: 100%;
  max-width: 90vh;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  background-color: #000;
}

.video-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-controls {
  display: flex;
  justify-content: center;
  gap: .8em;
  margin: 1.5em auto 0;
}

.control-button {
  min-width: 60px;
  padding: .4em .8em;
  border: 1px solid #FFD700;
  background-color: transparent;
  color: #FFD700;
  font-family: 'Hind', sans-serif;
  font-size: .8em;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all .2s ease-in-out;
}

.control-button:hover {
  background-color: #FFD700;
  color: #000;
}

@media (max-width: 768px) {
  .issue-page-wrapper {
    flex-direction: column;
  }

  .issue-sidebar {
    flex-basis: auto;
    border-right: none;
    border-bottom: 1px solid #444;
  }

  .content-pane {
    max-width: 100%;
    padding: 2em 1.5em;
  }

  .content-pane h1 {
    font-size: 2.5em;
  }
}
