html, body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Nunito', Arial, sans-serif;
  background: #f5f5f5;
  color: #212121;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Bebas Neue', Arial, sans-serif;
}

/* HEADER */
.header {
  width: 100%;
  background: #c81d30;
  padding: 15px 20px;
}



.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  max-width: 200px;
  height: auto;
  display: block;
}

/* MAIN */
.main {
  flex: 1;
  width: 100%;
  padding: 28px 18px 28px;
}

.reader-wrap {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}

.issue-heading {
  text-align: center;
  margin-bottom: 14px;
}

.issue-heading .eyebrow {
  margin-bottom: 2px;
  color: #777;
  font-family: 'Bebas Neue', Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 1.4px;
}

.issue-heading h1 {
  margin: 0;
  color: #c81d30;
  font-size: clamp(2rem);
  line-height: .94;
  letter-spacing: .7px;
}

.issue-heading p {
  margin: 6px auto 0;
  max-width: 620px;
  color: #666;
  font-size: .9rem;
  line-height: 1.45;
}

/* READER */
.reader-stage {
  position: relative;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;

  overflow: clip;

  padding: 6px 0 10px;
  background: transparent;
}

/*
  Constant reader size.
  No cover/spread width switching, so the book stays the same size while flipping.
*/
#book {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}



/* Keep the original page artwork and let it scale down responsively. */
#book img,
#book canvas {
  max-width: 100%;
  image-rendering: auto;
}

.reader-loading {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  color: #999;
  font-family: 'Bebas Neue', Arial, sans-serif;
  font-size: 1.05rem;
  letter-spacing: 1px;
  pointer-events: none;
}

.reader-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.reader-controls button,
.reader-controls a {
  border: 1px solid #c81d30;
  background: #fff;
  color: #c81d30;
  border-radius: 8px;
  padding: 10px 16px;
  text-decoration: none;
  cursor: pointer;
  font-family: 'Bebas Neue', Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: .7px;
  transition: background .15s ease, color .15s ease;
}

.reader-controls button:hover:not(:disabled),
.reader-controls a:hover {
  background: #c81d30;
  color: #fff;
}

.reader-controls button:disabled {
  opacity: .35;
  cursor: default;
}

.page-count {
  min-width: 88px;
  text-align: center;
  color: #555;
  font-family: 'Bebas Neue', Arial, sans-serif;
  font-size: 1.05rem;
  letter-spacing: .8px;
}

.reader-help {
  text-align: center;
  color: #8a8a8a;
  font-size: .78rem;
  margin-top: 10px;
}

/* SOCIAL BAR */
.social-bar {
  width: 100%;
  background: #c81d30;
  border-top: 1px solid rgba(33, 33, 33, .1);
  padding: 20px;
}

.social-inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  padding: 12px 18px;
  border: 1px solid #c81d30;
  border-radius: 8px;
  background: #fff;
  color: #c81d30;
  text-decoration: none;
  font-family: 'Bebas Neue', Arial, sans-serif;
  font-size: 1.1rem;
  letter-spacing: .8px;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}

.social-button:hover {
  transform: translateY(-2px);
  background: #a91627;
  color: #fff;
}

.social-button.primary {
  background: #212121;
  color: #fff;
}

.social-button.primary:hover {
  background: #a91627;
}

/* CHECKER FOOTER */
.checker-full {
  background-image: url('../img/checker.png');
  background-repeat: repeat-x;
  background-position: top;
  background-size: auto 100%;
  background-color: #c81d30;
  width: 100%;
  height: 43px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  #book {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .header { padding: 12px 16px; }
  .logo { max-width: 170px; }

  .main {
    padding: 24px 6px 22px;
  }

  .reader-stage {
    padding: 4px 0 8px;
  }

  .reader-help {
    display: none;
  }

  .reader-controls button,
  .reader-controls a {
    padding: 9px 12px;
  }

  .social-inner {
    flex-direction: column;
  }

  .social-button {
    width: min(100%, 340px);
  }
}
