/* =========================================================
   shoperks.com hub — design tokens
   Concept: each product is a physical label/tag with its own voice.
   The hub is a wall of those labels — not a grid of identical SaaS
   cards. Warm paper ground, one deliberate red used sparingly (the
   same "stamp" accent the 5 product pages already use), a different
   quiet accent wash behind each product section, pulled from that
   product's own poster.
   ========================================================= */

:root {
  --ink: #1B1F2A;
  --paper: #FDFCFA;
  --paper-dim: #F3F1EC;
  --line: #E3DFD4;
  --muted: #6B6558;
  --stamp: #C1442D;
  --record: #2F6F62;
  --radius: 3px;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 .4em;
}
h1 { font-size: 3rem; letter-spacing: -.01em; }
h2 { font-size: 2rem; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }

:focus-visible { outline: 2px solid var(--record); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* ---- nav ---- */
.site-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; text-decoration: none; }
.brand .accent { color: var(--stamp); }
.nav-links { display: flex; gap: 28px; align-items: center; font-size: .92rem; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--stamp); }
.nav-links .btn { text-decoration: none; }

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn.primary { background: var(--stamp); color: #fff; box-shadow: 0 10px 22px -12px rgba(193,68,45,.55); }
.btn.primary:hover { background: #a9381f; transform: translateY(-1px); box-shadow: 0 14px 26px -12px rgba(193,68,45,.6); }
.btn.outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn.outline:hover { background: var(--ink); color: #fff; }
.nav-links .btn { padding: 9px 18px; }

/* ---- hero: asymmetric, photo-led, grounded on a tinted panel so it
   doesn't float in bare white space ---- */
.hero {
  padding: 60px 0 0;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-dim) 100%);
  border-bottom: 1px solid var(--line);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
  padding-bottom: 60px;
}
.hero h1 { max-width: 11ch; font-size: 3.2rem; }
.hero .lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 28px;
}
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-photo {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3.3;
  box-shadow: 0 30px 60px -28px rgba(27,31,42,.35);
  transform: rotate(1.2deg);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 860px) {
  .hero { padding-top: 40px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; padding-bottom: 40px; }
  .hero h1 { font-size: 2.3rem; max-width: none; }
  .hero-photo { order: -1; transform: none; aspect-ratio: 16/11; }
}

/* ---- intro strip: one connecting sentence, no card chrome ---- */
.intro-strip {
  border-bottom: 1px solid var(--line);
  padding: 36px 0;
}
.intro-strip p {
  font-family: var(--font-display);
  font-size: 1.4rem;
  max-width: 34ch;
  margin: 0;
}

/* ---- product rows: editorial chapters, not a repeated card shape ---- */
.product-row {
  padding: 68px 0;
}
.product-row .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.product-row.flip .wrap { direction: rtl; }
.product-row.flip .wrap > * { direction: ltr; }
.product-row .photo {
  border-radius: 6px;
  overflow: hidden;
}
.product-row .name {
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.product-row .tagline { max-width: 16ch; }
.product-row .pitch { font-size: 1.02rem; color: var(--muted); max-width: 48ch; }
.product-row .explore { text-decoration: none; font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

@media (max-width: 860px) {
  .product-row .wrap { grid-template-columns: 1fr; gap: 24px; }
  .product-row.flip .wrap { direction: ltr; }
  .product-row .photo { order: -1; }
}

/* ---- blog teaser: plain text list, title does the work ---- */
.blog-strip { padding: 68px 0; border-top: 1px solid var(--line); }
.blog-strip .section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 30px; flex-wrap: wrap; gap: 10px; }
.post-list { display: grid; gap: 28px; }
.post-list .post-row { display: grid; grid-template-columns: 140px 1fr; gap: 24px; align-items: baseline; }
.post-list .post-row time { font-size: .82rem; color: var(--muted); }
.post-list .post-row h3 { margin: 0 0 6px; font-size: 1.25rem; }
.post-list .post-row a { text-decoration: none; }
.post-list .post-row a:hover h3 { color: var(--stamp); }
.post-list .post-row p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 640px) {
  .post-list .post-row { grid-template-columns: 1fr; gap: 4px; }
}

/* ---- final CTA band ---- */
.final-band {
  background: var(--ink);
  color: #fff;
  padding: 60px 0;
  text-align: left;
}
.final-band h2 { color: #fff; max-width: 18ch; }
.final-band p { color: #cfd0d4; max-width: 40ch; }
.final-band .btn.primary { background: var(--stamp); }

/* ---- footer ---- */
.site-footer { padding: 44px 0 60px; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; font-size: .85rem; color: var(--muted); }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--stamp); }

/* ---- blog pages ---- */
.blog-header { padding: 50px 0 10px; }
.blog-header h1 { max-width: 20ch; }
.post-article { padding: 20px 0 70px; }
.post-article .meta { color: var(--muted); font-size: .9rem; margin-bottom: 20px; }
.post-article .hero-img { border-radius: 6px; overflow: hidden; margin-bottom: 36px; border: 1px solid var(--line); }
.post-body { max-width: 68ch; font-size: 1.08rem; }
.post-body h2 { font-size: 1.5rem; margin-top: 1.3em; }
.post-body h3 { font-size: 1.15rem; margin-top: 1.1em; }
.post-body p { margin-bottom: 1.1em; }
.post-body ul, .post-body ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.post-body li { margin-bottom: .4em; }
.post-body a { color: var(--stamp); }
.post-cta { margin-top: 48px; padding: 26px; border: 1px solid var(--line); border-radius: 6px; }
.post-cta h3 { margin-bottom: 6px; }

.empty-note { padding: 40px 0; color: var(--muted); }
