/* ── RESET & VARS ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #0d0d0d;
  --white: #FFF;
  --mid: #888;
  --orange: #e07a30;
  --font-display: 'Special Elite', cursive;
  --font-ui: 'DM Sans', sans-serif;
  --rule-thin: 1px solid var(--black);
  --rule-thick-dash: 3px dashed var(--black);
  --gap: clamp(1rem, 4vw, 2.5rem);
}

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
}

/* ── HIGHLIGHT LINK STYLE ── */
.hl-link {
  position: relative;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  display: inline-block;
}
.hl-link::before {
  content: '';
  position: absolute;
  left: -2px; right: -2px;
  top: 50%;
  transform: translateY(-50%);
  height: 0.55em;
  background: var(--orange);
  opacity: 0.45;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.15s, height 0.15s;
}
.hl-link:hover::before { opacity: 0.7; height: 0.65em; }
.hl-link span { position: relative; z-index: 1; }

/* ── DIVIDERS ── */
.rule-thin  { border: none; border-top: var(--rule-thin);  width: 100%; }
.rule-dash  { border: none; border-top: var(--rule-thick-dash); width: 100%; }

/* ── SECTION WRAPPER ── */
.section { padding: 0 var(--gap); }
.section-inner { max-width: 1200px; margin: 0 auto; }

/* ════════════════════════════
   HEADER
════════════════════════════ */
.site-header {
  padding: clamp(0.8rem,2vw,1.4rem) var(--gap);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.site-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  letter-spacing: 0.02em;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: baseline;
  gap: clamp(0.6rem, 2vw, 1.4rem);
  flex-wrap: wrap;
}

.site-nav a {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  letter-spacing: 0.04em;
}

/* ════════════════════════════
   TYPES BAR
════════════════════════════ */
.types-bar {
  padding: 0.65rem var(--gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.types-list {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2.5vw, 2rem);
  flex: 1;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px; /* prevent clipping descenders */
}
.types-list::-webkit-scrollbar { display: none; }

.type-btn {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: clamp(0.8rem, 1.8vw, 1.05rem);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--black);
  padding: 0.4rem 0; /* bigger tap target */
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.15s;
  opacity: 0.45;
}

.type-btn.active, .type-btn:hover { opacity: 1; }
.type-btn.active { font-weight: 500; }

.types-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--mid);
  flex-shrink: 0;
}

.types-label svg { opacity: 0.5; }

/* ════════════════════════════
   FEATURED
════════════════════════════ */
.featured-section {
  padding: clamp(1rem,2.5vw,1.8rem) var(--gap);
  max-width: 1200px;
  margin: 0 auto;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.6rem, 2vw, 1.2rem);
  margin-bottom: 0.8rem;
}

.feat-card {
  background: var(--black);
  display: flex;
  flex-direction: row;
  cursor: default;
  transition: transform 0.2s ease;
  min-height: 0;
}
.feat-card:hover { transform: translateY(-2px); }

.feat-cover {
  width: 42%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3/4;
  padding: 2%;
}
.feat-cover svg { opacity: 0.25; width: 55%; height: 55%; color: var(--white); }
.feat-cover img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* right side: stacked paper strips on black */
.feat-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2px;
  padding: 2px 2px 2px 3px;
  min-width: 0;
}

/* each strip is a white-on-black label piece */
.feat-strip {
  background: var(--white);
  color: var(--black);
  padding: 0.28rem 0.45rem;
  line-height: 1.2;
  position: relative;
}
.feat-strip::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(
    180deg,
    var(--black) 0 3px,
    transparent 3px 6px
  );
  opacity: 0.2;
}

.feat-title {
  font-family: var(--font-display);
  font-size: clamp(0.68rem, 1.1vw, 0.88rem);
  line-height: 1.2;
}

.feat-meta {
  font-family: var(--font-ui);
  font-size: clamp(0.55rem, 0.9vw, 0.7rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mid);
}

.feat-type-strip {
  font-family: var(--font-ui);
  font-size: clamp(0.55rem, 0.9vw, 0.68rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.feat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 0.3rem 0.45rem;
}
.feat-tag {
  font-family: var(--font-ui);
  font-size: clamp(0.52rem, 0.85vw, 0.65rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--white);
  background: var(--orange);
  cursor: default;
  padding: 0.1rem 0.3rem;
  opacity: 0.9;
}
.feat-tag::before { content: '#'; }

/* featured footer */
.featured-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.5rem;
}

.gallery-ref {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  cursor: pointer;
}

.gallery-ref svg { flex-shrink: 0; }

/* ════════════════════════════
   TAGS STRIP
════════════════════════════ */
.tags-section {
  padding: clamp(0.8rem,2vw,1.4rem) var(--gap);
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem clamp(0.6rem, 2vw, 1.2rem);
  flex: 1;
}

.tag-pill {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  cursor: pointer;
  padding: 0;
  background: none;
  border: none;
  color: var(--black);
  opacity: 0.5;
  transition: opacity 0.12s;
}
.tag-pill::before { content: '#'; }
.tag-pill:hover { opacity: 0.85; }
.tag-pill.active { opacity: 1; font-style: italic; }

.tags-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--mid);
  flex-shrink: 0;
  padding-top: 0.2rem;
}

/* ════════════════════════════
   ZINE LIST
════════════════════════════ */
.zines-section {
  padding: 0 var(--gap);
  max-width: 1200px;
  margin: 0 auto;
}

/* active tag filters row */
.active-filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.7rem 0;
  min-height: 2.5rem;
}

.af-label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mid);
}

.af-tag {
  font-family: var(--font-display);
  font-size: 0.8rem;
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.af-tag::after { content: '×'; opacity: 0.7; font-size: 0.85rem; }
.af-tag:hover::after { opacity: 1; }

.clear-all {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mid);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
  margin-left: 0.4rem;
}
.clear-all:hover { color: var(--black); }

/* zine row */
.zine-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem 1.2rem;
  padding: 1rem 0;
  border-bottom: var(--rule-thin);
  cursor: default;
  transition: background 0.12s;
}
.zine-row:hover { background: rgba(0,0,0,0.03); }
.zine-row:first-child { border-top: var(--rule-thin); }

.zine-thumb {
  width: 100%;
  aspect-ratio: 3/4;
  background: #ddd;
  border: 1px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.zine-thumb svg { opacity: 0.15; width: 45%; height: 45%; }
.zine-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.zine-body { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }

.zine-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.2;
  word-break: break-word;
}

.zine-meta-line {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mid);
}

.zine-faux { display: flex; flex-direction: column; gap: 0.3rem; margin-top: 0.2rem; }
.faux-line {
  height: 0.65em;
  background: var(--black);
  opacity: 0.08;
  border-radius: 1px;
}

.zine-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.2rem; }
.z-tag {
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--black);
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.12s;
  background: none;
  border: none;
  padding: 0;
}
.z-tag::before { content: '#'; }
.z-tag:hover, .z-tag.active { opacity: 1; }

.no-results {
  padding: 2rem 0;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--mid);
  font-style: italic;
}

.zine-download {
  margin-top: 0.3rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
}

/* ════════════════════════════
   FOOTER
════════════════════════════ */
.site-footer {
  padding: 1.2rem var(--gap);
  text-align: right;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--mid);
  max-width: 1200px;
  margin: 0 auto;
}

/* ════════════════════════════
   CONTENT PAGES (About, Reviews, Trades, Gallery)
════════════════════════════ */
.page-section { display: none; }
.page-section.active { display: block; }

#page-index.active { display: block; }

.inner-page {
  padding: clamp(1rem,2.5vw,2rem) var(--gap);
  max-width: 1200px;
  margin: 0 auto;
}

.page-back {
  font-family: var(--font-display);
  font-size: 0.85rem;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--mid);
  padding: 0;
  margin-bottom: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.page-back:hover { color: var(--black); }

.inner-page h2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem,2.5vw,1.7rem);
  margin-bottom: 1.2rem;
  padding-bottom: 0.4rem;
  border-bottom: var(--rule-thin);
}

.inner-page h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-top: 1.4rem;
  margin-bottom: 0.5rem;
}

.inner-page p {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 65ch;
  margin-bottom: 0.7rem;
}

/* REVIEW PAGE */
.rv-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: clamp(0.8rem,2vw,1.4rem) var(--gap) 0;
  max-width: 1200px;
  margin: 0 auto;
}
.rv-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem,2.5vw,1.7rem);
}

.rv-list {
  padding: 0 var(--gap);
  max-width: 1200px;
  margin: 0 auto;
}

.rv-block {
  padding: 1.4rem 0 1.6rem;
  border-bottom: var(--rule-thin);
}

.rv-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  line-height: 1.2;
  margin-bottom: 0.9rem;
}

.rv-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0.8rem 1.8rem;
  align-items: start;
}

/* LEFT: metadata */
.rv-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rv-meta-item {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px dashed rgba(0,0,0,0.15);
  padding-bottom: 0.3rem;
}
.rv-meta-label {
  font-family: var(--font-ui);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  color: var(--mid);
  flex-shrink: 0;
  width: 72px;
  padding-top: 0.05rem;
}
.rv-meta-value {
  font-family: var(--font-display);
  font-size: 0.82rem;
  line-height: 1.35;
}
.rv-meta-value a {
  text-decoration: underline;
  text-underline-offset: 2px;
  color: inherit;
}
.rv-meta-value a:hover { opacity: 0.6; }

.rv-tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.63rem;
  padding: 0.1rem 0.32rem;
  background: var(--orange);
  color: var(--white);
  margin: 0.1rem 0.15rem 0 0;
}
.rv-tag::before { content: '#'; }

/* RIGHT: review body */
.rv-body {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.8;
}
.rv-body p { margin-bottom: 0.8rem; }
.rv-body p:last-child { margin-bottom: 0; }

/* inline images inside review */
.rv-body img {
  max-width: 100%;
  border: 1px solid var(--black);
  margin: 0.6rem 0;
  display: block;
}

/* rv-grid responsive: stacks at ≤600px, handled in consolidated breakpoints below */

/* TRADES */
.trades-intro { max-width: 60ch; margin-bottom: 2rem; }
.trades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}
.trade-card {
  border: 1px solid var(--black);
  padding: 0.6rem;
  cursor: pointer;
  transition: background 0.12s;
}
.trade-card:hover { background: rgba(0,0,0,0.04); }
.trade-cover {
  width: 100%;
  aspect-ratio: 3/4;
  background: #ddd;
  border: 1px solid var(--black);
  margin-bottom: 0.5rem;
  display: flex; align-items: center; justify-content: center;
}
.trade-cover svg { opacity: 0.15; width: 40%; }
.trade-title { font-family: var(--font-display); font-size: 0.9rem; line-height: 1.2; margin-bottom: 0.2rem; }
.trade-sub { font-family: var(--font-ui); font-size: 0.68rem; font-weight: 300; color: var(--mid); }

/* FEATURED DETAIL PAGE */
.fp-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: clamp(0.8rem,2vw,1.4rem) var(--gap) 0;
  max-width: 1200px;
  margin: 0 auto;
}
.fp-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem,2.5vw,1.7rem);
}
.fp-heading svg { flex-shrink: 0; }

.fp-list {
  padding: 0 var(--gap);
  max-width: 1200px;
  margin: 0 auto;
}

/* each featured zine block */
.fp-block {
  padding: 1.4rem 0 1.8rem;
  border-bottom: var(--rule-thin);
}
.fp-block:first-child { border-top: none; }

/* full-width title row above the grid */
.fp-zine-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

/* 3-column grid: left | cover | right — all capped to cover height */
.fp-grid {
  display: grid;
  grid-template-columns: 1fr 220px 1fr;
  gap: 0.8rem 1.2rem;
  align-items: start;
}

/* LEFT: meta + extra imgs stacked in one column */
.fp-left {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 700px;
  overflow-y: auto;
}
.fp-left::-webkit-scrollbar { width: 3px; }
.fp-left::-webkit-scrollbar-track { background: transparent; }
.fp-left::-webkit-scrollbar-thumb { background: var(--mid); }

/* metadata */
.fp-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.fp-meta-item {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8rem;
  border-bottom: 1px dashed rgba(0,0,0,0.15);
  padding-bottom: 0.3rem;
}
.fp-meta-label {
  font-family: var(--font-ui);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  color: var(--mid);
  flex-shrink: 0;
  width: 70px;
  padding-top: 0.05rem;
}
.fp-meta-value {
  font-family: var(--font-display);
  font-size: 0.82rem;
  line-height: 1.3;
}
.fp-meta-tags { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.fp-tag {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
  background: var(--orange);
  color: var(--white);
  border: none;
  cursor: default;
}
.fp-tag::before { content: '#'; }

/* 2 extra images stacked */
.fp-extra-imgs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fp-extra-img {
  background: #ddd;
  border: 1px solid var(--black);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.fp-extra-img svg { opacity: 0.12; width: 35%; }
.fp-extra-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* COVER: middle column, 700px max */
.fp-cover-wrap {
  grid-column: 2;
  grid-row: 1;
}

.fp-cover {
  width: 100%;
  max-height: 700px;
  background: #ccc;
  border: 1px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 3/4;
}
.fp-cover svg { opacity: 0.15; width: 45%; }
.fp-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* RIGHT: reflection, capped to same 700px, scrollable */
.fp-reflection {
  font-family: var(--font-ui);
  grid-column: 3;
  grid-row: 1;
  overflow-y: auto;
  max-height: 700px;
  padding-right: 0.3rem;
}
.fp-reflection::-webkit-scrollbar { width: 3px; }
.fp-reflection::-webkit-scrollbar-track { background: transparent; }
.fp-reflection::-webkit-scrollbar-thumb { background: var(--mid); }

.fp-reflection p {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 0.8rem;
  max-width: none;
}

/* fp-grid responsive breakpoints are at the bottom of this file */

/* ── RESPONSIVE ── */

/* Tablets and large phones (≤768px) */
@media (max-width: 768px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Small phones (≤600px) */
@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .site-nav { gap: 1rem; }

  .types-bar { gap: 0.4rem; }
  .types-label { display: none; } /* declutter on mobile */

  .tags-section { flex-direction: column; gap: 0.5rem; }
  .tags-label { align-self: flex-end; }

  .zine-row { grid-template-columns: 80px 1fr; gap: 0.8rem; }

  .featured-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .feat-cover { padding: 5%; }
  .feat-strip { padding: 0.25rem 0.35rem; }
  .feat-title { font-size: 0.7rem; }
  .feat-meta { display: none; }
  .feat-tags { display: none; }

  /* Reviews / About meta sidebar stacks */
  .rv-grid { grid-template-columns: 1fr; }
  .rv-meta { margin-bottom: 0.5rem; }
}

/* Very small phones (≤420px) */
@media (max-width: 420px) {
  .featured-grid { grid-template-columns: 1fr; gap: 0.6rem; }
  .feat-card { flex-direction: row; max-width: 100%; }
  .feat-cover { width: 38%; padding: 5%; }

  .zine-row { grid-template-columns: 70px 1fr; gap: 0.7rem; }

  /* Featured detail page: full single column */
  .fp-grid { grid-template-columns: 1fr; }
  .fp-cover-wrap { grid-column: 1; grid-row: 1; max-width: 180px; }
  .fp-left { grid-column: 1; grid-row: 2; max-height: none; overflow-y: visible; }
  .fp-reflection { grid-column: 1; grid-row: 3; max-height: none; overflow-y: visible; }
}

/* Featured detail page mid breakpoint */
@media (max-width: 800px) {
  .fp-grid { grid-template-columns: 160px 1fr; }
  .fp-cover-wrap { grid-column: 1; grid-row: 1; }
  .fp-left { grid-column: 2; grid-row: 1; max-height: none; overflow-y: visible; }
  .fp-reflection { grid-column: 1 / 3; grid-row: 2; max-height: none; overflow-y: visible; }
}