:root {
  --paper: #f4f0e8;
  --ink: #1f1f1c;
  --muted: #67675f;
  --line: #cbc6bc;
  --acid: #d8ff43;
  --white: #fffefb;
}

* { box-sizing: border-box; }

.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;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.site-header {
  width: min(1180px, calc(100% - 48px));
  height: 94px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.logo {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  text-decoration: none;
  font: 500 14px/1 "DM Mono", monospace;
  letter-spacing: .09em;
}

.logo-mark {
  width: 24px;
  height: 24px;
  display: block;
  background: var(--acid);
  border: 1.5px solid var(--ink);
  border-radius: 50% 44% 52% 39%;
  transform: rotate(-12deg);
  box-shadow: 4px 3px 0 var(--ink);
}

nav { display: flex; gap: 38px; }
nav a {
  position: relative;
  font-size: 14px;
  text-decoration: none;
}
nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -6px;
  border-bottom: 1px solid;
  transition: right .2s ease;
}
nav a:hover::after { right: 0; }

main, footer { width: min(1180px, calc(100% - 48px)); margin: auto; }

.hero {
  min-height: 360px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 24px;
  font: 500 11px/1 "DM Mono", monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
}

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

.intro { color: var(--muted); font-size: 16px; line-height: 1.65; margin-bottom: 33px; }

.primary-button {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 42px;
  padding: 15px 18px;
  color: var(--white);
  background: var(--ink);
  text-decoration: none;
  font-size: 13px;
  transition: transform .2s, box-shadow .2s;
}
.primary-button:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--acid); }
.primary-button span { font-size: 18px; }

.comics-section { padding: 96px 0 110px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 58px; }
.section-heading .eyebrow { margin-bottom: 15px; }
h2 { font-size: clamp(38px, 4.2vw, 58px); letter-spacing: -.045em; line-height: 1; }
.issue-count { font: 12px "DM Mono", monospace; color: var(--muted); }

.comic-list { display: grid; gap: 90px; }
.comic-card { width: 74%; }
.comic-card.featured { width: 100%; }
.comic-meta {
  display: flex;
  justify-content: space-between;
  padding: 0 1px 12px;
  border-bottom: 1px solid var(--ink);
  font: 11px "DM Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.comic-number { font-weight: 500; }
.comic-image-button {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--white);
  cursor: zoom-in;
}
.comic-image-button img { display: block; width: 100%; height: auto; filter: contrast(1.02); }
.zoom-hint {
  position: absolute;
  right: 28px;
  bottom: 28px;
  padding: 9px 12px;
  color: white;
  background: var(--ink);
  font: 10px "DM Mono", monospace;
  opacity: 0;
  transform: translateY(5px);
  transition: .2s;
}
.comic-image-button:hover .zoom-hint { opacity: 1; transform: none; }
.comic-caption { margin: 22px 0 14px; }
.comic-caption h3 { margin-bottom: 0; font-size: 25px; letter-spacing: -.03em; }
.comic-caption p { margin: 3px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

.about {
  display: grid;
  grid-template-columns: 1fr 1.7fr .8fr;
  gap: 40px;
  align-items: start;
  padding: 78px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-label { font: 11px "DM Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.about-label span { color: #8ba800; margin-right: 7px; }
.about h2 { margin-bottom: 18px; font-size: 40px; }
.about p { max-width: 480px; color: var(--muted); line-height: 1.65; }
.about > a { justify-self: end; text-underline-offset: 5px; font-size: 14px; }
.about > a span { margin-left: 12px; }

footer { height: 140px; display: flex; align-items: center; justify-content: space-between; }
footer p { margin: 0; color: var(--muted); font: 10px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.visit-counter { white-space: nowrap; }
.visit-counter span { color: var(--ink); font-weight: 500; }
.footer-logo .logo-mark { width: 18px; height: 18px; box-shadow: 3px 2px 0 var(--ink); }

.lightbox {
  width: min(95vw, 1400px);
  max-height: 94vh;
  padding: 48px 24px 24px;
  border: 0;
  background: var(--paper);
  box-shadow: 0 20px 80px #0006;
}
.lightbox::backdrop { background: #151512d9; backdrop-filter: blur(4px); }
.lightbox img { display: block; max-width: 100%; max-height: calc(94vh - 72px); margin: auto; }
.lightbox-close { position: absolute; top: 8px; right: 14px; border: 0; background: none; font-size: 30px; cursor: pointer; }

@media (max-width: 760px) {
  .site-header, main, footer { width: min(100% - 28px, 1180px); }
  .site-header { height: 74px; }
  nav { gap: 18px; }
  nav a:last-child { display: none; }
  .hero { min-height: 330px; padding: 60px 0; }
  .desktop-only { display: none; }
  .comics-section { padding: 70px 0 80px; }
  .section-heading { margin-bottom: 40px; }
  .comic-list { gap: 64px; }
  .comic-card, .comic-card.featured { width: 100%; }
  .about { grid-template-columns: 1fr; gap: 30px; padding: 60px 0; }
  .about > a { justify-self: start; }
  footer { min-height: 150px; height: auto; display: grid; gap: 12px; align-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
