:root {
  --bg: oklch(0.965 0.012 75);
  --ink: oklch(0.24 0.035 255);
  --ink-line: oklch(0.24 0.035 255 / 0.12);
  --ink-line-strong: oklch(0.24 0.035 255 / 0.25);
  --rust: oklch(0.5 0.14 35);
  --muted: oklch(0.55 0.01 260);
  --black: oklch(0 0 0);
  --overlay: oklch(0.15 0.02 260 / 0.92);
  --cream: oklch(0.965 0.012 75);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
}

body {
  min-height: 100vh;
  font-family: 'Archivo Narrow', sans-serif;
  color: var(--ink);
}

a {
  color: var(--ink);
  text-decoration: none;
}
a:hover { color: var(--rust); }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes lightboxIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes lightboxSlide {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* HEADER */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
  border-bottom: 1px solid var(--ink-line);
  position: sticky;
  top: 0;
  background: oklch(0.965 0.012 75 / 0.92);
  backdrop-filter: blur(6px);
  z-index: 10;
  transition: padding 0.25s ease;
}
.header.scrolled { padding: 16px 48px; }

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.logo-img {
  height: 53px;
  width: 53px;
  display: block;
  transition: height 0.25s ease, width 0.25s ease;
}
.header.scrolled .logo-img { height: 40px; width: 40px; }

.logo-tagline {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 14px;
  white-space: nowrap;
  color: var(--muted);
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  opacity: 0;
  transition: clip-path 0.35s ease, opacity 0.2s ease;
}
.logo-wrap:hover .logo-tagline {
  clip-path: inset(0 0 0 0);
  opacity: 1;
}

.nav { display: flex; align-items: center; gap: 36px; }
.nav-item {
  position: relative;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  padding-bottom: 4px;
  color: var(--ink);
  transition: color 0.2s ease;
}
.nav-item:hover { color: var(--rust); }
.nav-item .underline {
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  background: var(--rust);
  width: 0%;
  transition: width 0.25s ease;
}
.nav-item:hover .underline,
.nav-item.active .underline { width: 100%; }

/* HOME */
.home-main {
  flex: 1;
  padding: 0 48px 80px;
  animation: pageIn 0.32s ease-out both;
}
.home-intro-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  padding: 40px 0 56px;
  border-bottom: 1px solid var(--ink-line);
  margin-bottom: 40px;
  align-items: end;
}
.section-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rust);
}
.intro-line {
  font-family: 'Lora', serif;
  font-size: 20px;
  line-height: 1.5;
  margin: 16px 0 0;
  max-width: 32ch;
}
.count-suffix {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

.zine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 48px 32px;
}
.zine-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  animation: cardIn 0.45s ease-out both;
  transition: transform 0.25s ease;
}
.zine-card:hover { transform: translateY(-4px); }
.zine-card.unavailable { opacity: 0.55; }

.zine-cover {
  position: relative;
  aspect-ratio: 1/1;
  width: 100%;
  background: var(--black);
  overflow: hidden;
}
.zine-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: var(--bg);
  color: var(--ink);
  padding: 5px 10px;
  border: 1px solid var(--ink-line-strong);
}

.zine-meta { display: flex; flex-direction: column; gap: 4px; }
.zine-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
}
.zine-title {
  position: relative;
  display: inline-block;
  font-family: 'Lora', serif;
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
}
.zine-title .underline {
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  width: 0%;
  transition: width 0.3s ease;
}
.zine-card:hover .zine-title .underline { width: 100%; }
.zine-edition {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--muted);
}
.zine-price { font-size: 13px; letter-spacing: 0.5px; margin-top: 4px; }

/* DETAIL */
.detail-main {
  flex: 1;
  padding: 48px 48px 96px;
  animation: pageIn 0.32s ease-out both;
}
.back-link {
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  display: inline-block;
  margin-bottom: 40px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.detail-cover {
  position: relative;
  aspect-ratio: 1/1;
  width: 100%;
  cursor: pointer;
  background: var(--black);
  overflow: hidden;
}
.detail-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.detail-info { display: flex; flex-direction: column; gap: 20px; max-width: 56ch; }
.detail-kicker {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rust);
}
.detail-title {
  font-family: 'Lora', serif;
  font-size: 38px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}
.detail-byline {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
}
.price-row { display: flex; align-items: center; gap: 14px; }
.detail-price { font-size: 16px; letter-spacing: 0.5px; }
.detail-description {
  font-family: 'Lora', serif;
  font-size: 16px;
  line-height: 1.7;
  margin: 8px 0 0;
  color: var(--ink);
}
.detail-specs {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
}

.shop-btn, .disabled-btn {
  margin-top: 12px;
  align-self: flex-start;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 100px;
  display: inline-block;
}
.shop-btn {
  color: var(--cream);
  background: var(--ink);
  transition: background 0.2s ease;
}
.shop-btn:hover { background: var(--rust); color: var(--cream); }
.disabled-btn {
  color: oklch(0.5 0.01 260);
  background: transparent;
  border: 1px solid var(--ink-line-strong);
  cursor: default;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--ink-line);
}
.gallery-item {
  aspect-ratio: 1/1;
  width: 100%;
  cursor: pointer;
  background: var(--black);
  overflow: hidden;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  cursor: pointer;
  animation: lightboxIn 0.2s ease-out both;
}
.lightbox.open { display: flex; }
.lightbox-close {
  position: absolute;
  top: 32px;
  right: 48px;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cream);
}
.lightbox-arrow {
  position: absolute;
  font-size: 28px;
  color: var(--cream);
  padding: 12px;
}
.lightbox-arrow.prev { left: 40px; }
.lightbox-arrow.next { right: 40px; }
.lightbox-img-wrap {
  width: min(82vw, 760px);
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lightboxSlide 0.2s ease-out both;
}
.lightbox-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.lightbox-img-wrap img.lb-no-transition { transition: none; }
.lightbox-img-wrap img.lb-exit-left { opacity: 0; transform: translateX(-28px); }
.lightbox-img-wrap img.lb-exit-right { opacity: 0; transform: translateX(28px); }
.lightbox-img-wrap img.lb-enter-left { opacity: 0; transform: translateX(-28px); }
.lightbox-img-wrap img.lb-enter-right { opacity: 0; transform: translateX(28px); }
.lightbox-label {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: oklch(0.965 0.012 75 / 0.7);
  text-transform: uppercase;
  transition: opacity 0.18s ease;
}
.lightbox-label.lb-fade { opacity: 0; }

/* ABOUT */
.about-main {
  flex: 1;
  padding: 64px 48px 96px;
  max-width: 900px;
  animation: pageIn 0.32s ease-out both;
}
.about-kicker {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rust);
}
.about-headline {
  font-family: 'Lora', serif;
  font-size: 44px;
  font-weight: 500;
  margin: 16px 0 56px;
}
.about-section {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 40px;
  padding: 32px 0;
  border-top: 1px solid var(--ink-line);
}
.about-section--bordered { border-bottom: 1px solid var(--ink-line); }
.about-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}
.about-heading {
  font-family: 'Lora', serif;
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 16px;
}
.about-body {
  font-family: 'Lora', serif;
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  max-width: 60ch;
}

/* FOOTER */
.footer {
  padding: 28px 48px;
  border-top: 1px solid var(--ink-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy { font-size: 12px; color: var(--muted); }
.footer-link { font-size: 12px; letter-spacing: 0.5px; }

/* RESPONSIVE */
@media (max-width: 780px) {
  .header { padding: 20px 24px; }
  .home-main, .detail-main, .about-main { padding-left: 24px; padding-right: 24px; }
  .home-intro-row { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .count-suffix { text-align: left; }
  .detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-section { grid-template-columns: 1fr; gap: 12px; }
  .lightbox-arrow.prev { left: 12px; }
  .lightbox-arrow.next { right: 12px; }
  .lightbox-close { right: 24px; }
}
