/* ==========================================================================
   zine-pages.css — zine skin for the default templates + shared chrome.
   Presentation only: every word, href and Tally source param is frozen.
   Loaded AFTER zine.css. Hooks are scoped under .zine-page where possible.
   ========================================================================== */

/* ---- full-bleed band helper used by the footer -------------------------- */
.band-terracotta {
  background: var(--terracotta);
  color: var(--cream);
}

/* ---- page wrapper / main ------------------------------------------------ */
.zine-page {
  background: var(--cream);
  color: var(--ink);
}
.zine-main { display: block; }

/* ---- page titles as display headings ----------------------------------- */
/* zine.css .masthead is cream (for the dark hero); on a cream page we
   re-ink it so the display serif reads correctly. */
.zine-page .page-header h1.masthead,
.zine-page .page-header h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  line-height: 1.03;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.6rem;
  max-width: 760px;
}

/* ---- mono small meta / description lines ------------------------------- */
.zine-page .page-header .section-kicker {
  display: block;
  margin: 0 0 0.5rem;
}
.zine-page .page-header .zine-meta,
.zine-page .page-header > .container > p {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 42rem;
  margin: 0 0 0.75rem;
}

/* ---- page header rhythm ------------------------------------------------ */
.zine-page .page-header {
  padding: clamp(2.5rem, 6vw, 4rem) 0 0;
}

/* ---- listing rows: sand hairlines -------------------------------------- */
.zine-page .business-grid .business-card,
.zine-page .category-grid .category-card {
  display: block;
  border: 0;
  border-bottom: 1px solid var(--sand);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  margin: 0;
  padding: 1.25rem 0;
  color: var(--ink);
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease;
}
.zine-page .business-grid .business-card:first-child,
.zine-page .category-grid .category-card:first-child {
  border-top: 1px solid var(--sand);
}
.zine-page .business-grid .business-card:hover,
.zine-page .category-grid .category-card:hover {
  background: var(--cream);
  border-bottom-color: var(--terracotta);
  box-shadow: none;
  transform: none;
  color: var(--ink);
}
.zine-page .business-grid .business-card h3,
.zine-page .category-grid .category-card h3 {
  margin: 0.3rem 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
}
.zine-page .business-grid .business-card .category,
.zine-page .business-grid .business-card .business-area,
.zine-page .category-grid .category-card .count {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.zine-page .business-grid .business-card p,
.zine-page .category-grid .category-card p {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0;
}

/* ---- single page body -------------------------------------------------- */
/* main.css stacks .content{padding:58px 0} on top of
   .page-content{padding:58px 0}, so the gap from the page-header rule to the
   first body text was 116px, or 146px when the body opens with an h2 (its
   30px top margin). Own that rhythm here: 16px below the header, with the
   breathing room ABOVE the header left untouched. */
.zine-page .content {
  padding-top: 0;
}
.zine-page .page-content {
  max-width: var(--zine-measure);
  margin-inline: auto;
  padding-top: 16px;
  padding-bottom: 1rem;
}
/* A body-leading h2 must not re-add main.css's 30px top margin to the gap. */
.zine-page .page-content > h2:first-child {
  margin-top: 0;
}

/* ---- full-bleed footer band -------------------------------------------- */
.zine-page .zine-footer,
footer.zine-footer {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(3rem, 7vw, 4.5rem) 1.5rem;
  background: var(--terracotta);
  color: var(--cream);
  text-align: center;
}
.zine-footer .zine-footer__inner {
  max-width: var(--zine-measure);
  margin-inline: auto;
}
.zine-footer p {
  margin: 0.5rem 0;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
}
.zine-footer a {
  color: var(--cream);
  opacity: 0.9;
  text-decoration: none;
}
.zine-footer a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ---- newsletter CTA as a tactile cream card ---------------------------- */
/* Two-class selector beats zine.css's dark full-bleed .newsletter-cta band. */
.newsletter-cta.zine-cta-card {
  background: var(--cream);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--zine-shadow);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  margin: clamp(3rem, 6vw, 4rem) auto;
  max-width: var(--zine-measure);
}
.newsletter-cta.zine-cta-card .zine-cta-card__inner { max-width: 44rem; }
.newsletter-cta.zine-cta-card h2 {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.15;
  margin: 0.25rem 0 0.75rem;
}
.newsletter-cta.zine-cta-card p { color: var(--ink); }
.newsletter-cta.zine-cta-card .newsletter-cta__note {
  color: var(--muted);
  font-size: 0.8125rem;
  margin-top: 1rem;
}

/* ---- fused email capture inside the newsletter card -------------------- */
/* Same construction as the hero signup: cream field with an ink border on
   the left, mustard button fused on the right, both controls 48px tall.
   Scoped under the card so no other .signup-row is affected. */
.newsletter-cta.zine-cta-card .signup-row {
  display: flex; flex-wrap: nowrap; align-items: stretch;
  width: 100%; max-width: 640px; margin: 0;
}
.newsletter-cta.zine-cta-card .signup-row input {
  flex: 1 1 auto; width: 0; min-width: 0; height: 48px; margin: 0;
  padding: 0 14px; border: 2px solid var(--ink); border-right: 0;
  border-radius: 6px 0 0 6px; background: var(--cream);
  color: var(--ink); font: 500 0.85rem/44px var(--font-body);
}
.newsletter-cta.zine-cta-card .signup-row .btn-zine {
  flex: 0 0 auto; height: 48px; margin: 0; padding: 0 18px;
  border: 2px solid var(--ink); border-radius: 0 6px 6px 0;
  background: var(--mustard); color: var(--ink);
  font: 600 0.78rem/1.2 var(--font-body); letter-spacing: 0.06em;
  text-transform: uppercase; white-space: nowrap; box-shadow: var(--zine-shadow);
}
@media (min-width: 640px) {
  .newsletter-cta.zine-cta-card .signup-row { flex-wrap: nowrap; }
}
@media (max-width: 479px) {
  .newsletter-cta.zine-cta-card .signup-row { flex-wrap: wrap; gap: 10px 0; max-width: 100%; }
  .newsletter-cta.zine-cta-card .signup-row input {
    flex: 1 1 100%; width: 100%; height: 48px;
    border-right: 2px solid var(--ink); border-radius: 6px;
    font-size: 0.8rem; line-height: 44px;
  }
  .newsletter-cta.zine-cta-card .signup-row .btn-zine {
    flex: 1 1 100%; width: 100%; height: 48px; border-radius: 6px;
  }
}

/* ---- tactile button hook (.btn-zine) ----------------------------------- */
.btn-zine {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 11px 18px;
  border: 2px solid var(--ink);
  border-radius: 5px;
  background: var(--mustard);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: var(--zine-shadow);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease,
              box-shadow .2s ease, transform .2s ease;
}
.btn-zine:hover { background: var(--mustard-hover); color: var(--ink); }
.btn-zine:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
