/* ProcreatePacks theme: "sketchbook". Loaded after each page's inline styles, so it wins on equal specificity. */
:root {
  --paper: #FAF6EE;
  --card: #FFFDF8;
  --ink: #1D1B16;
  --muted: #6E675B;
  --line: #E6DFD0;
  --accent: #E4472F;
  --accent-dark: #B8321D;
  --accent-soft: rgba(228, 71, 47, 0.18);
  --free: #1E9E5A;
  --star: #E39B12;
  --display: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 14px;
  --shadow: 3px 3px 0 var(--ink);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
}

h1, h2, h3, .brush-title, .stat-number, .nav-brand, .sticky-price, .brush-price {
  font-family: var(--display);
  letter-spacing: -0.01em;
}

/* ---------- Nav ---------- */
body > nav, nav.main-nav {
  background: var(--paper);
  border-bottom: 1.5px solid var(--ink);
}
nav.breadcrumb { background: transparent; border: 0; }
.nav-brand {
  color: var(--ink);
  font-weight: 800;
  font-size: 1.35rem;
  position: relative;
  padding-left: 1.75rem;
}
.nav-brand::before {
  /* little brush-stroke mark */
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: -0.7rem;
  background: url(logo-mark.svg) no-repeat center / contain;
}
.nav-links a {
  color: var(--muted);
  font-weight: 500;
}
.nav-links a:hover, .nav-links a.active {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--accent);
  border-radius: 0;
}
.hamburger span { background: var(--ink); }

/* ---------- Hero / page headers ---------- */
body > header {
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 2rem 2rem;
}
body > header h1, .hub-header h1 {
  display: inline;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--ink);
  background: linear-gradient(transparent 64%, var(--accent-soft) 64%, var(--accent-soft) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
body > header p {
  color: var(--muted);
  max-width: 680px;
  margin: 1.25rem 0 0;
  font-size: 1.05rem;
  opacity: 1;
}
.stats {
  justify-content: flex-start;
  gap: 0.75rem;
}
.stat {
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  text-align: left;
}
.stat-number {
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 800;
}
.stat-label {
  color: var(--muted);
  font-size: 0.85rem;
  opacity: 1;
  text-transform: none;
}

/* Creator hub header sits in a card already */
.hub-header {
  background: transparent;
  padding: 1.5rem 0 1rem;
}
.hub-header p { color: var(--muted); margin-top: 1rem; }
.hub-header a { color: var(--accent-dark); }

/* ---------- Search / filters ---------- */
.controls {
  background: rgba(250, 246, 238, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1.5px solid var(--line);
  box-shadow: none;
}
.search-box, .sort-select {
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  color: var(--ink);
}
.search-box:focus, .sort-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
  border-color: var(--ink);
}
.free-toggle {
  background: var(--card);
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.free-toggle.active { background: var(--free); color: white; border-color: var(--free); }

/* ---------- Cards ---------- */
.product-card, .related-card, .creator-card {
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: none;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.product-card:hover, .related-card:hover, .creator-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow);
}
.card-media {
  position: relative;
  display: block;
  border-bottom: 1.5px solid var(--ink);
  overflow: hidden;
  border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0;
}
.card-media img, .product-card .product-image, .related-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  background: #EFE8DA;
}
.price-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: var(--card);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1.4;
}
.price-badge.free {
  background: var(--free);
  border-color: var(--free);
  color: white;
}
/* Whole card is clickable via the image link; the separate button goes. */
.product-card .card-media::after {
  content: "";
  position: absolute;
  inset: 0;
}
.product-card > a.card-media {
  position: static;
}
.product-card > a.card-media::after {
  inset: 0;
  z-index: 1;
}
.product-card .product-link { display: none; }
.product-card .card-actions { position: relative; z-index: 2; }
.product-card .product-title a { position: relative; z-index: 2; }

.product-info { padding: 0.9rem 1rem 1rem; }
.product-title {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
}
.product-meta .product-price { display: none; }  /* shown on the image badge instead */
.product-meta { justify-content: flex-start; min-height: 1.2rem; }
.product-rating, .brush-rating, .sticky-rating { color: var(--star); }
.product-rating small, .rating-count { color: var(--muted); }
.related-info { padding: 0.75rem; }
.related-title { color: var(--ink); }
.related-price { display: none; }

/* Creator hub card buttons */
.btn-details {
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.btn-gumroad, .btn-gumroad.free {
  background: var(--ink);
  color: var(--paper);
}
.btn-gumroad.free { background: var(--free); }

.creator-card img { border-radius: 10px; border: 1.5px solid var(--ink); }

/* ---------- Brush page ---------- */
.breadcrumb a { color: var(--accent-dark); }
.breadcrumb .current { color: var(--muted); }
.brush-image {
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
  background: #EFE8DA;
}
.brush-title { font-weight: 800; }
.brush-byline { color: var(--muted); }
.brush-byline a, .see-all a { color: var(--accent-dark); }
.brush-price { color: var(--ink); font-weight: 800; }
.brush-price.free, .sticky-price.free { color: var(--free); }

.cta-button, .cta-buy, .cta-free, .sticky-button {
  background: var(--accent);
  color: white;
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow);
  border-radius: 12px;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0;
}
.cta-free, .sticky-button.cta-free { background: var(--free); }
.cta-button:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}
.cta-button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.cta-note { color: var(--muted); }

.facts {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: var(--card);
  overflow: hidden;
}
.facts li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.9rem;
  font-size: 0.92rem;
}
.facts li + li { border-top: 1px dashed var(--line); }
.facts span { color: var(--muted); }
.facts strong { text-align: right; font-weight: 600; }
.facts a { color: var(--accent-dark); text-decoration: none; }

.description-section, .faq {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}
.description-section h2, .related-section h2, .faq h2 {
  font-weight: 800;
}
.description-section p, .faq p { color: #3F3A31; }

.sticky-cta { background: var(--paper); border-top: 1.5px solid var(--ink); box-shadow: none; }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: #BDB5A6; }
.footer-section h4 { color: var(--paper); font-family: var(--display); }
.footer-section a { color: #BDB5A6; }
.footer-section a:hover { color: var(--paper); }
.footer-bottom { border-top-color: #3A362E; }

.back-to-top {
  background: var(--ink);
  color: var(--paper);
  border: none;
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  body > header { padding: 2rem 1rem 1.25rem; }
  .stats { flex-wrap: wrap; gap: 0.5rem; }
  .stat { padding: 0.25rem 0.75rem; }
  .controls {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
  }
  .controls .search-box { grid-column: 1 / -1; width: 100%; padding: 0.6rem 0.8rem; }
  .controls .free-toggle, .controls .sort-select { margin: 0; padding: 0.45rem 0.7rem; font-size: 0.85rem; }
  .nav-links { background: var(--paper); }
  .nav-links a:hover, .nav-links a.active { box-shadow: none; color: var(--accent-dark); }
  .price-badge { font-size: 0.8rem; top: 0.45rem; left: 0.45rem; }
  .product-info { padding: 0.65rem 0.7rem 0.75rem; }
  .product-title { font-size: 0.85rem; }
  .brush-image { box-shadow: 4px 4px 0 var(--ink); }
}

/* Footer disclosure: readable, not shouty */
.footer-bottom p { max-width: 760px; margin: 0 auto; line-height: 1.6; }
