/* Comics Authority layout repair + polish */

:root{
  --ink:#101010;
  --cream:#fff7e8;
  --gold:#ffc400;
  --red:#e12929;
  --muted:#5f5f5f;
  --paper:#ffffff;
}

*{box-sizing:border-box}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-weight:700;
  overflow-x:hidden;
}

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

a{
  color:inherit;
}

/* HEADER */
.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(255,247,232,.98);
  border-bottom:5px solid var(--ink);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  padding:18px clamp(20px,4vw,60px);
  min-height:132px;
}

.brand{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  text-decoration:none;
  gap:4px;
  min-width:180px;
}

.brand img{
  width:116px;
  display:block;
}

.brand-kicker{
  font-size:10px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--muted);
  white-space:nowrap;
}

.main-nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:clamp(12px,1.5vw,24px);
  flex-wrap:wrap;
}

.main-nav a{
  text-decoration:none;
  text-transform:uppercase;
  font-weight:900;
  font-size:14px;
  letter-spacing:.02em;
  color:#32136e;
}

.main-nav a:hover{
  color:var(--red);
}

.main-nav .cart-link{
  background:var(--red);
  color:white;
  border:4px solid var(--ink);
  box-shadow:6px 6px 0 var(--ink);
  padding:14px 18px;
}

.mobile-menu-toggle{
  display:none;
  border:4px solid var(--ink);
  background:var(--gold);
  box-shadow:5px 5px 0 var(--ink);
  font-size:26px;
  font-weight:900;
  padding:8px 14px;
}

/* HOME HERO ROTATOR */
.hero-slider{
  position:relative !important;
  width:100% !important;
  height:clamp(620px,74vh,820px) !important;
  min-height:620px !important;
  overflow:hidden !important;
  border-bottom:5px solid var(--ink);
  background:#101010;
}

.hero-slide{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  display:flex !important;
  align-items:center !important;
  padding:clamp(42px,7vw,110px) !important;
  opacity:0 !important;
  visibility:hidden !important;
  pointer-events:none !important;
  transition:opacity .55s ease, visibility .55s ease !important;
  background-image:
    linear-gradient(90deg,rgba(0,0,0,.92) 0%,rgba(0,0,0,.68) 42%,rgba(0,0,0,.22) 100%),
    var(--bg) !important;
  background-size:cover !important;
  background-position:center !important;
  background-repeat:no-repeat !important;
}

.hero-slide.active{
  opacity:1 !important;
  visibility:visible !important;
  pointer-events:auto !important;
  z-index:2 !important;
}

.hero-copy{
  width:min(690px,100%) !important;
  color:white !important;
  position:relative !important;
  z-index:3 !important;
}

.hero-copy .eyebrow{
  color:var(--gold) !important;
  text-shadow:3px 3px 0 #000 !important;
  margin:0 0 16px !important;
}

.hero-copy h1{
  font-family:Bangers,cursive !important;
  font-size:clamp(62px,9vw,126px) !important;
  line-height:.84 !important;
  margin:0 0 20px !important;
  color:white !important;
  text-shadow:7px 7px 0 #000 !important;
}

.hero-copy p{
  color:white !important;
  font-size:clamp(18px,2vw,24px) !important;
  line-height:1.45 !important;
  margin:0 !important;
  text-shadow:3px 3px 0 #000 !important;
}

.hero-actions{
  display:flex !important;
  gap:14px !important;
  flex-wrap:wrap !important;
  margin-top:30px !important;
}

.slider-controls{
  position:absolute !important;
  z-index:5 !important;
  left:clamp(42px,7vw,110px) !important;
  bottom:34px !important;
  display:flex !important;
  gap:12px !important;
}

.slider-controls .dot{
  width:18px !important;
  height:18px !important;
  border-radius:50% !important;
  border:3px solid var(--ink) !important;
  background:white !important;
  padding:0 !important;
  cursor:pointer !important;
}

.slider-controls .dot.active{
  background:var(--gold) !important;
}

/* BUTTONS */
.button,
button.button,
input[type="submit"]{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:4px solid var(--ink);
  box-shadow:6px 6px 0 var(--ink);
  padding:14px 20px;
  text-decoration:none;
  text-transform:uppercase;
  font-weight:900;
  line-height:1;
  cursor:pointer;
  min-height:52px;
}

.button.primary,
button.button.primary{
  background:var(--gold);
  color:var(--ink);
}

.button.secondary,
button.button.secondary{
  background:var(--red);
  color:white;
}

.button.ghost,
.button.ghost.dark{
  background:white;
  color:var(--ink);
}

/* HOME SECTIONS */
.section,
.home-feature,
.home-preview,
.releases-wrap,
.comic-wrap,
.account-wrap,
.submissions-wrap,
.admin-wrap,
.downloads-wrap{
  width:min(1180px,calc(100% - 48px));
  margin-left:auto;
  margin-right:auto;
}

.intro-strip{
  margin-top:50px;
  margin-bottom:40px;
  background:white;
  border:5px solid var(--ink);
  box-shadow:10px 10px 0 var(--ink);
  padding:24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}

.tag{
  display:inline-block;
  background:var(--gold);
  border:3px solid var(--ink);
  padding:8px 12px;
  margin:4px;
  font-weight:900;
  text-transform:uppercase;
}

.section-heading{
  margin-bottom:28px;
}

.section-heading h2,
.home-preview h2,
.about h2{
  font-family:Bangers,cursive;
  font-size:clamp(46px,6vw,86px);
  line-height:.9;
  margin:0;
}

.eyebrow{
  font-weight:900;
  text-transform:uppercase;
  color:var(--red);
  letter-spacing:.05em;
}

p{
  line-height:1.6;
}

/* Preview / about repair */
.home-preview{
  margin-top:70px;
  margin-bottom:70px;
}

.home-preview-grid,
.preview-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:26px;
}

.home-preview-card,
.preview-card{
  background:white;
  border:5px solid var(--ink);
  box-shadow:9px 9px 0 var(--ink);
  overflow:hidden;
}

.home-preview-card img,
.preview-card img{
  width:100%;
  aspect-ratio:2/3;
  object-fit:cover;
  display:block;
}

.home-preview-note{
  background:var(--gold);
  border:4px solid var(--ink);
  box-shadow:7px 7px 0 var(--ink);
  padding:20px;
  margin-top:30px;
  font-weight:900;
}

.about{
  background:white;
  border:5px solid var(--ink);
  box-shadow:10px 10px 0 var(--ink);
  padding:34px;
  margin-top:70px;
  margin-bottom:70px;
}

.about h2{
  margin-bottom:18px;
}

/* Mobile */
@media(max-width:980px){
  .site-header{
    min-height:auto;
    flex-wrap:wrap;
  }

  .mobile-menu-toggle{
    display:block;
  }

  .main-nav{
    display:none;
    width:100%;
    flex-direction:column;
    align-items:stretch;
    gap:10px;
    padding-top:16px;
  }

  .main-nav.open{
    display:flex;
  }

  .main-nav a{
    border:3px solid var(--ink);
    background:white;
    padding:14px;
  }

  .main-nav .cart-link{
    text-align:center;
  }

  .hero-slider{
    height:620px !important;
    min-height:620px !important;
  }

  .hero-slide{
    padding:34px 24px 80px !important;
    background-image:
      linear-gradient(90deg,rgba(0,0,0,.9),rgba(0,0,0,.56)),
      var(--bg) !important;
  }

  .slider-controls{
    left:24px !important;
  }

  .home-preview-grid,
  .preview-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:640px){
  .brand img{
    width:100px;
  }

  .brand-kicker{
    display:none;
  }

  .section,
  .home-feature,
  .home-preview,
  .releases-wrap,
  .comic-wrap,
  .account-wrap,
  .submissions-wrap,
  .admin-wrap,
  .downloads-wrap{
    width:min(100% - 28px,1180px);
  }

  .button,
  button.button{
    width:100%;
  }

  .hero-copy h1{
    font-size:clamp(52px,16vw,82px) !important;
  }

}


/* Header/home update */
.brand-kicker{
  display:none !important;
}

.brand img{
  width:100px !important;
}

.hero-copy{
  width:min(620px,100%) !important;
  margin-left:20px !important;
}

.hero-copy .eyebrow{
  font-size:clamp(14px,1vw,16px) !important;
}

.hero-copy h1{
  font-size:clamp(52px,7vw,96px) !important;
  line-height:.9 !important;
}

.hero-copy p{
  font-size:clamp(16px,1.5vw,20px) !important;
  line-height:1.55 !important;
  max-width:620px !important;
}

.top-releases{
  margin-top:70px;
  margin-bottom:70px;
}

.top-release-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px;
}

.top-release-card{
  display:block;
  background:white;
  border:5px solid var(--ink);
  box-shadow:10px 10px 0 var(--ink);
  overflow:hidden;
  text-decoration:none;
  color:var(--ink);
  transition:transform .15s ease, box-shadow .15s ease;
}

.top-release-card:hover{
  transform:translate(-2px,-2px);
  box-shadow:13px 13px 0 var(--ink);
}

.top-release-card img{
  width:100%;
  aspect-ratio:2/3;
  object-fit:cover;
  display:block;
  border-bottom:5px solid var(--ink);
  background:#ddd;
}

.top-release-info{
  padding:18px;
}

.top-release-info h3{
  font-family:Bangers,cursive;
  font-size:clamp(30px,3vw,44px);
  line-height:.95;
  margin:0 0 10px;
}

.top-release-info p{
  margin:0;
  color:var(--red);
  font-weight:900;
  text-transform:uppercase;
  font-size:13px;
}

@media(max-width:900px){
  .top-release-grid{
    grid-template-columns:1fr;
  }

  .hero-copy{
    margin-left:0 !important;
  }
}
