/* ============================================================
   IllComic — black & white, modern, sleek
   ============================================================ */

:root {
  --black: #000000;
  --white: #ffffff;
  --white-70: rgba(255, 255, 255, 0.70);
  --white-40: rgba(255, 255, 255, 0.40);
  --white-15: rgba(255, 255, 255, 0.15);
  --white-08: rgba(255, 255, 255, 0.08);
  --font-display: "Archivo Black", Impact, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --nav-height: 52px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

/* ============ NAV ============ */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--white-08);
  z-index: 100;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo { flex-shrink: 0; }

.nav-logo img { height: 40px; width: auto; max-width: none; display: block; }

/* nav bar logos outgrow the slim bar and hang over the page below */
.nav .nav-logo img,
.issue-overlay-bar .nav-logo img { height: 66px; margin-top: 26px; }

.footer .nav-logo img { height: 48px; }

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-links a {
  text-decoration: none;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
  padding: 10px 16px;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}

@media (hover: hover) {
  .nav-links a:hover {
    background: var(--white-08);
    border-color: var(--white-15);
  }
}

/* ============ SHARED ============ */

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--white-40);
  margin-bottom: 18px;
}

.btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--black);
  background: var(--white);
  padding: 16px 40px;
  border: 1px solid var(--white);
  transition: background 0.2s, color 0.2s;
}

.btn:hover { background: transparent; color: var(--white); }

.section {
  padding: clamp(90px, 12vh, 160px) clamp(20px, 6vw, 96px);
  max-width: 1400px;
  margin: 0 auto;
}

.section-alt {
  max-width: none;
  border-top: 1px solid var(--white-08);
}

.section-alt > * { max-width: 1400px; margin-left: auto; margin-right: auto; }

.section-head { margin-bottom: clamp(40px, 6vh, 72px); }

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* ============ HERO ============ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 40px) 20px 80px;
  position: relative;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.55) 30%, rgba(0,0,0,0.55) 65%, #000 100%),
    url("../images/hero-bg.jpg") center 30% / cover no-repeat;
  background-color: var(--black);
}

.hero-logo {
  margin: 0 0 44px;
}

.hero-logo img {
  width: min(88vw, 980px);
  height: auto;
  display: block;
}

.hero-sub {
  max-width: 560px;
  font-size: clamp(15px, 1.6vw, 19px);
  color: var(--white-70);
  margin-bottom: 44px;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  width: 1px;
  height: 56px;
  background: var(--white-40);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.3; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ============ COMICS GRID ============ */

.comics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(24px, 3vw, 48px);
}

.comic-card {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  color: var(--white);
  font-family: var(--font-body);
  cursor: pointer;
}

.comic-card .cover-wrap {
  position: relative;
  aspect-ratio: 2 / 3.05;
  overflow: hidden;
  border: 1px solid var(--white-15);
  background: var(--black);
}

.comic-card .cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.comic-card:hover .cover-wrap img,
.comic-card:focus-visible .cover-wrap img {
  transform: scale(1.04);
}

.comic-card .cover-cta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 20px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  color: var(--white);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}

.comic-card:hover .cover-cta,
.comic-card:focus-visible .cover-cta {
  opacity: 1;
  transform: translateY(0);
}

.comic-card .card-meta { padding-top: 18px; }

.comic-card .card-series {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--white-40);
  margin-bottom: 6px;
}

.comic-card .card-title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.1;
  text-transform: uppercase;
}

.comic-card .card-variants {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white-40);
}

.comic-card .card-blurb {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--white-40);
  text-transform: none;
  letter-spacing: 0;
}

.comic-card.coming-soon { cursor: default; }

.comic-card.coming-soon .cover-wrap {
  border-style: dashed;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comic-card.coming-soon .soon-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--white-40);
}

/* ============ ABOUT ============ */

.about-body p {
  max-width: 760px;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.65;
  color: var(--white-70);
}

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(36px, 6vw, 84px);
  margin-top: clamp(60px, 9vh, 110px);
  border-top: 1px solid var(--white-15);
  padding-top: clamp(40px, 6vh, 64px);
}

.partner-logos img { width: auto; }

/* per-logo heights tuned so all four read the same visual size */
.pl-illfonic { height: 54px; }
.pl-compass { height: 62px; }
.pl-furtherfront { height: 46px; }
.pl-panick { height: 84px; }

.issue-legal {
  margin-top: clamp(28px, 4vh, 44px);
  text-align: center;
  font-size: 12px;
  line-height: 1.7;
  color: var(--white-40);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ============ FOOTER ============ */

.footer {
  border-top: 1px solid var(--white-08);
  padding: 48px clamp(20px, 6vw, 96px);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.footer p {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--white-40);
  max-width: 640px;
}

.footer-logos { display: flex; align-items: center; gap: 28px; }

.footer-illfonic { display: block; }

.footer-illfonic img { height: 58px; width: auto; display: block; }

/* ============ ISSUE OVERLAY ============ */

.issue-overlay {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 200;
  overflow-y: auto;
  animation: overlayIn 0.35s ease;
}

@keyframes overlayIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.issue-overlay-bar {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding: 0 clamp(20px, 4vw, 56px);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--white-08);
  z-index: 10;
}

.issue-close {
  background: none;
  border: 1px solid var(--white-15);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 10px 22px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.issue-close:hover { background: var(--white); color: var(--black); }

.issue-detail {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(40px, 7vh, 90px) clamp(20px, 6vw, 96px) clamp(80px, 10vh, 140px);
}

.issue-hero {
  display: grid;
  grid-template-columns: minmax(280px, 460px) 1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}

.issue-cover {
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  border: 1px solid var(--white-15);
  aspect-ratio: 2 / 3.05;
  cursor: zoom-in;
}

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

.cover-variants {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.variant-thumb {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: none;
  border: 1px solid var(--white-15);
  cursor: pointer;
  font-family: var(--font-body);
}

.variant-thumb img {
  width: 100%;
  aspect-ratio: 2 / 3.05;
  height: auto;
  object-fit: cover;
  flex: none;
  opacity: 0.55;
  transition: opacity 0.25s;
}

.variant-thumb:hover img { opacity: 0.85; }

.variant-thumb.active { border-color: var(--white); }

.variant-thumb.active img { opacity: 1; }

.variant-label {
  display: block;
  padding: 8px 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white-70);
}

.variant-thumb.active .variant-label { color: var(--white); }

.variant-label { padding-bottom: 2px; }

.variant-artist {
  display: block;
  flex: 1;
  min-height: 37px;
  padding: 0 6px 9px;
  font-size: 10px;
  line-height: 1.4;
  color: var(--white-40);
}

.variant-thumb.active .variant-artist { color: var(--white-70); }

.issue-info .eyebrow { margin-bottom: 12px; }

.issue-info h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.issue-desc p {
  color: var(--white-70);
  font-size: clamp(15px, 1.4vw, 17px);
  margin-bottom: 18px;
}

/* two columns, blocks paired by row so labels always align:
   Written By | Price / Art By | Rating / Published By | Release Date */
.issue-credits {
  margin-top: 40px;
  border-top: 1px solid var(--white-15);
  padding-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 28px;
  row-gap: 36px;
}

.credit-block .credit-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--white-40);
  margin-bottom: 10px;
}

.credit-block ul { list-style: none; }

.credit-block li {
  font-family: var(--font-display);
  font-size: 15px;
  text-transform: uppercase;
  line-height: 1.7;
}

.issue-details { display: flex; flex-direction: column; gap: 20px; }

.detail-value {
  font-family: var(--font-display);
  font-size: 15px;
  text-transform: uppercase;
  line-height: 1.4;
}

.series-info {
  margin-top: 40px;
  border-top: 1px solid var(--white-15);
  padding-top: 32px;
}

.series-info .credit-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--white-40);
  margin-bottom: 12px;
}

.series-info p:not(.credit-label) {
  color: var(--white-70);
  font-size: 15px;
  line-height: 1.7;
}

/* ---- preview pages ---- */

.issue-pages { margin-top: clamp(60px, 9vh, 110px); }

.issue-pages .eyebrow { margin-bottom: 28px; }

.pages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 36px);
}

.page-thumb {
  background: none;
  border: 1px solid var(--white-15);
  padding: 0;
  cursor: pointer;
  aspect-ratio: 2 / 3.05;
  overflow: hidden;
}

.page-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.page-thumb:hover img { transform: scale(1.03); opacity: 0.85; }

/* ============ LIGHTBOX ============ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 5vw;
}

.lightbox img {
  max-height: 90vh;
  max-width: 90vw;
  object-fit: contain;
  border: 1px solid var(--white-15);
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 26px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
}

/* ============ MOBILE ============ */

@media (max-width: 760px) {
  .issue-hero { grid-template-columns: 1fr; }
  .issue-cover-col { max-width: 420px; }
  .pages-grid { grid-template-columns: 1fr; max-width: 420px; }
  .nav { padding: 0 14px; }
  .nav .nav-logo img { height: 48px; margin-top: 18px; }
  .nav-links { gap: 0; margin-left: auto; justify-content: flex-end; }
  .nav-links a { font-size: 11px; letter-spacing: 0.1em; padding: 8px 9px; }
}

body.no-scroll { overflow: hidden; }

[hidden] { display: none !important; }
