:root {
  --paper: #f5f1e7;
  --ink: #111113;
  --muted: #65615a;
  --line: #cfc7ba;
  --red: #8e1016;
  --teal: #20a8ad;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
}

.hero {
  position: relative;
  height: 88svh;
  min-height: 480px;
  overflow: hidden;
  color: var(--white);
  background: #09090a;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::after {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 150px;
  content: '';
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent);
}

.topbar,
.section-inner,
.footer-inner,
.reader-shell {
  position: relative;
  z-index: 2;
  width: min(100% - 40px, 1240px);
  margin: 0 auto;
}

.topbar,
.series-page-top .section-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.series-page-top .section-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
}

.series-nav-title {
  overflow: hidden;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.topbar {
  padding: 22px 0;
}

.brand-link,
.back-link,
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #000;
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.42);
  font-size: 14px;
  font-weight: 900;
}

.nav {
  display: flex;
  gap: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 800;
}

.mini-title {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.mini-title {
  color: var(--teal);
}

h1,
h2,
h3,
p {
  margin: 0;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  background: var(--red);
  color: var(--white);
  font-size: 14px;
}

.series-card img,
.series-cover,
.issue-card img {
  aspect-ratio: 2 / 3;
  width: 100%;
  object-fit: cover;
}

.series-band,
.series-hero,
.read-band,
.shelf-band,
footer {
  padding: 56px 0;
}

.section-head {
  display: flex;
  gap: 24px;
  align-items: end;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.section-head h2,
.series-title {
  margin-top: 8px;
  font-size: 50px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.section-head p {
  max-width: 580px;
  color: rgba(0, 0, 0, 0.66);
  line-height: 1.6;
}

.series-grid,
.read-cards,
.read-grid,
.series-hero {
  display: grid;
  gap: 20px;
}

.series-grid {
  grid-template-columns: 1fr 1fr;
  margin-top: 32px;
}

.series-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 22px;
  padding: 16px;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.series-card h3 {
  margin-top: 8px;
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.series-card p,
.series-copy {
  color: var(--muted);
  line-height: 1.65;
}

.card-actions {
  gap: 9px;
  margin-top: 24px;
}

.card-actions .button {
  min-height: 40px;
  background: #000;
}

.read-band,
.shelf-band,
footer {
  color: var(--white);
  background: #050506;
}

.read-grid {
  grid-template-columns: 0.9fr 1.1fr;
}

.read-card,
.issue-card {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
}

.issue-card[href] {
  transition:
    border-color 160ms ease,
    background-color 160ms ease;
}

.issue-card[href]:hover,
.issue-card[href]:focus-visible,
.issue-card[aria-current='true'] {
  border-color: var(--teal);
  background: rgba(255, 255, 255, 0.11);
}

.issue-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
}

.new-badge {
  padding: 5px 8px;
  color: var(--white);
  background: var(--red);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.read-cards {
  grid-template-columns: 1fr 1fr;
}

.series-page-top {
  padding: 20px 0;
  color: var(--white);
  background: #101011;
}

.series-hero {
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.series-reader-frame {
  width: 100%;
  height: 520px;
  background: #ecebe8;
  border: 1px solid var(--line);
}

.series-title {
  font-size: 70px;
}

.shelf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.shelf-band {
  padding-top: 34px;
}

@media (max-width: 900px) {
  .series-grid,
  .read-grid,
  .series-hero,
  .read-cards {
    grid-template-columns: 1fr;
  }

  .series-title {
    font-size: 54px;
  }

  .series-card {
    grid-template-columns: 150px 1fr;
  }

  .shelf-grid {
    grid-template-columns: 1fr 1fr;
  }

  .series-cover {
    width: min(100%, 360px);
    margin: 0 auto;
  }

  .series-reader-frame {
    height: 620px;
  }
}

@media (max-width: 620px) {
  .hero {
    height: 72svh;
  }

  .topbar {
    padding: 16px 0;
  }

  .brand-name {
    display: none;
  }

  .series-nav-title {
    display: none;
  }

  .series-page-top .section-inner {
    grid-template-columns: 1fr auto;
  }

  .series-reader-frame {
    height: 560px;
  }

  .nav {
    gap: 14px;
    font-size: 12px;
  }

  .section-head h2,
  .series-title {
    font-size: 42px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .series-card,
  .shelf-grid {
    grid-template-columns: 1fr;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
