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

:root {
  --white: #ffffff;
  --off-white: #f8f8f8;
  --black: #111111;
  --gray: #444444;
  --light-gray: #999999;
  --faint: #dddddd;
  --accent: #e8d800;
  --display: 'Outfit', system-ui, sans-serif;
  --sans: 'Work Sans', system-ui, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- NAV ---- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

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

nav .wordmark img {
  height: 36px;
  width: auto;
}

nav .nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav .nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s;
}

nav .nav-links a:hover { color: var(--black); }
nav .nav-links a.active { color: var(--black); font-weight: 500; }

/* ---- COMMON ---- */
section {
  padding: 6rem 2rem;
  max-width: 640px;
  margin: 0 auto;
}

section h2 {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

section p {
  font-size: 0.95rem;
  color: var(--gray);
  margin-bottom: 1rem;
  line-height: 1.75;
}

section p:last-child { margin-bottom: 0; }

.divider {
  width: 40px;
  height: 1px;
  background: var(--faint);
  margin: 0 auto;
}

footer {
  padding: 3rem 2rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--light-gray);
  letter-spacing: 0.05em;
}

.page-body {
  padding-top: 5rem;
}

.link {
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.15);
  transition: border-color 0.2s;
}

.link:hover { border-color: var(--black); }

/* ---- HERO (landing) ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  gap: 3rem;
}

.cover-frame {
  max-width: 420px;
  width: 100%;
}

.cover-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-text {
  text-align: center;
  max-width: 520px;
}

.hero-text h1 {
  font-family: var(--display);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.hero-text .issue-title {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.hero-text .tagline {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light-gray);
}

.scroll-hint {
  margin-top: 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  animation: fade-pulse 3s ease-in-out infinite;
}

@keyframes fade-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ---- THE DEAL (landing) ---- */
.the-deal {
  background: var(--off-white);
  max-width: 100%;
  padding: 5rem 2rem;
}

.the-deal .inner {
  max-width: 640px;
  margin: 0 auto;
}

.the-deal blockquote {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--black);
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2rem 0;
}

/* ---- NOTIFY (landing) ---- */
.notify {
  text-align: center;
}

.notify p {
  color: var(--gray);
}

.email-form {
  display: flex;
  gap: 0;
  max-width: 420px;
  margin: 2rem auto 0;
  border: 1px solid rgba(0,0,0,0.12);
}

.email-form input[type="email"] {
  flex: 1;
  padding: 0.85rem 1rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 300;
  border: none;
  outline: none;
  background: transparent;
  color: var(--black);
}

.email-form input::placeholder { color: var(--faint); }

.email-form button {
  padding: 0.85rem 1.5rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--black);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.email-form button:hover { background: #333; }

/* ---- COMIC SHELF (issues) ---- */
.shelf {
  display: flex;
  min-height: calc(100vh - 5rem);
}

.shelf-nav {
  width: 280px;
  flex-shrink: 0;
  border-right: 1px solid rgba(0,0,0,0.06);
  padding: 3rem 0;
  position: sticky;
  top: 5rem;
  height: calc(100vh - 5rem);
  overflow-y: auto;
}

.shelf-nav-header {
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light-gray);
  padding: 0 1.5rem 1rem;
}

.shelf-item {
  display: block;
  padding: 1rem 1.5rem;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}

.shelf-item:hover {
  background: var(--off-white);
}

.shelf-item.active {
  border-left-color: var(--accent);
  background: var(--off-white);
}

.shelf-item .shelf-issue-num {
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--light-gray);
  margin-bottom: 0.2rem;
}

.shelf-item .shelf-issue-title {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--black);
  line-height: 1.3;
}

.shelf-item .shelf-issue-status {
  font-size: 0.72rem;
  color: var(--light-gray);
  margin-top: 0.3rem;
}

.shelf-item .shelf-issue-status.coming { color: var(--light-gray); }
.shelf-item .shelf-issue-status.live { color: #2a7d2a; }

.shelf-detail {
  flex: 1;
  padding: 3rem 3rem 4rem;
  max-width: 720px;
}

.shelf-panel {
  display: none;
}

.shelf-panel.active {
  display: block;
}

.shelf-panel h2 {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  line-height: 1.2;
}

.shelf-panel .issue-num-label {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--light-gray);
  margin-bottom: 1.5rem;
}

.shelf-panel .synopsis {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.shelf-panel .cover-thumb {
  max-width: 240px;
  margin-bottom: 2rem;
}

.shelf-panel .cover-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.shelf-panel .detail-section-title {
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 0.75rem;
  margin-top: 2rem;
}

.shelf-panel .detail-section-title:first-of-type {
  margin-top: 0;
}

.specs-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.specs-list li {
  font-size: 0.85rem;
  color: var(--gray);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  display: flex;
  justify-content: space-between;
}

.specs-list li span:first-child {
  font-weight: 400;
  color: var(--black);
}

.edition-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1rem 0 2rem;
}

.edition-card {
  border: 1px solid rgba(0,0,0,0.08);
  padding: 1rem;
  text-align: center;
}

.edition-card .edition-label {
  font-family: var(--display);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.edition-card .edition-detail {
  font-size: 0.75rem;
  color: var(--gray);
  line-height: 1.4;
}

.coming-soon-note {
  font-size: 0.95rem;
  color: var(--light-gray);
  font-style: italic;
  margin-top: 1rem;
}

.open-arc-text {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.75;
}

/* ---- ARTIST PAGE ---- */
.artist-body {
  max-width: 640px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.artist-body h1 {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.artist-body p {
  font-size: 0.95rem;
  color: var(--gray);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.artist-quotes {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.artist-quote {
  font-size: 0.85rem;
  color: var(--light-gray);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.artist-quote:last-child { margin-bottom: 0; }

.artist-quote .attribution {
  display: block;
  margin-top: 0.2rem;
  font-weight: 400;
}

/* ---- ENTRANCE ANIMATIONS ---- */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  animation: fade-up 0.8s ease forwards;
}

.fade-in.d1 { animation-delay: 0.1s; }
.fade-in.d2 { animation-delay: 0.3s; }
.fade-in.d3 { animation-delay: 0.5s; }
.fade-in.d4 { animation-delay: 0.7s; }

@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero { padding: 7rem 1.5rem 3rem; }
  .cover-frame { max-width: 300px; }
  .hero-text h1 { font-size: 2.2rem; }
  .the-deal { padding: 4rem 1.5rem; }
  .the-deal blockquote { font-size: 1.1rem; }
  .email-form { flex-direction: column; }
  .email-form button { padding: 0.85rem; }
  nav .nav-links { gap: 1.25rem; }
  nav .nav-links a { font-size: 0.72rem; }

  .shelf { flex-direction: column; }

  .shelf-nav {
    width: 100%;
    position: relative;
    top: 0;
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 2rem 0 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
  }

  .shelf-nav-header {
    width: 100%;
    padding: 0 1.5rem 0.75rem;
  }

  .shelf-item {
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 0.75rem 1rem;
  }

  .shelf-item.active {
    border-left-color: transparent;
    border-bottom-color: var(--accent);
  }

  .shelf-detail {
    padding: 2rem 1.5rem 3rem;
  }

  .edition-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .artist-body { padding: 4rem 1.5rem; }
}
