/* ==========================================================================
   ParPack — Push Cart Backpack landing page
   Palette and type derived from the live Shopify theme (golfwithparpack.com):
   Inter (body + headings), black #000 / white #fff, scheme greys #F5F5F5 and
   the theme's soft sage #EEF1EA. No new identity invented.
   ========================================================================== */

@font-face {
  font-family: Inter;
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/inter_n4.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/inter_n5.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/inter_n7.woff2") format("woff2");
}

:root {
  --ink: #0b0b0b;
  --ink-soft: #1a1a1a;
  --paper: #ffffff;
  --mist: #f5f5f5;
  --sage: #eef1ea;
  --line: #e4e4e1;
  --line-dark: #2e2e2e;
  --muted: #5d5d5a;
  --muted-light: #b4b4b0;

  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 2.2vw, 1.875rem);
  --step-3: clamp(1.9rem, 3.4vw, 3rem);
  --step-4: clamp(2.6rem, 5.6vw, 4.75rem);

  --gutter: clamp(1.25rem, 4.5vw, 3rem);
  --section: clamp(4rem, 8vw, 7.5rem);
  --max: 1240px;
}

/* ── Reset ─────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.025em; line-height: 1.06; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 1px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ── Type helpers ──────────────────────────────────────── */
.eyebrow {
  display: flex;
  align-items: baseline;
  gap: 0.7em;
  margin: 0 0 1.1rem;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.num {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--ink);
}
.eyebrow .num::after {
  content: "—";
  margin-left: 0.55em;
  color: var(--muted-light);
}

.h2 {
  font-size: var(--step-3);
  max-width: 22ch;
}
.h2--tight { max-width: 16ch; }

.lede {
  font-size: clamp(1.075rem, 1.35vw, 1.25rem);
  line-height: 1.55;
  color: #333;
  max-width: 44ch;
}

.fineprint {
  font-size: var(--step--1);
  line-height: 1.5;
  color: var(--muted);
}

.link-quiet {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(11, 11, 11, 0.25);
  padding-bottom: 1px;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}
.link-quiet:hover { border-color: var(--ink); }
.link-quiet--light {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.35);
}
.link-quiet--light:hover { border-color: #fff; }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.15em;
  background: var(--ink);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  padding: 0.9rem 1.6rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.btn:hover { background: #333; border-color: #333; }
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 0.55rem 1.05rem; font-size: 0.9rem; }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn__price:not(:empty)::before { content: " — "; }
.btn[aria-disabled="true"] {
  background: var(--mist);
  border-color: var(--line);
  color: var(--muted);
  pointer-events: none;
}

/* ── Header ────────────────────────────────────────────── */
.site-head {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}
.wordmark {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark__dot { color: #9a9a95; }
.site-nav {
  display: flex;
  gap: 1.75rem;
  font-size: 0.9rem;
}
.site-nav a {
  text-decoration: none;
  color: #3a3a37;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ── Hero ──────────────────────────────────────────────── */
.hero { padding-top: clamp(2.25rem, 5vw, 4.5rem); }

.hero__grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.hero__copy h1 {
  font-size: var(--step-4);
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin-bottom: 1.4rem;
}
.hero__copy .lede { margin-bottom: 2rem; }

.buyline { max-width: 32rem; }

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem 0.75rem;
  margin: 0 0 1.35rem;
  font-variant-numeric: tabular-nums;
}
.price__now {
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.price__compare {
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: line-through;
}
.price__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--step--1);
  color: var(--muted);
}
.price__meta::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3ed660;
  flex: none;
}
.price__meta[data-state="out"]::before { background: #c8c8c8; }

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.hero__media { margin: 0; }
.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 38%;
  border-radius: 2px;
  background: var(--mist);
}

/* Positioning strip — three lines pulled from the store */
.pillars {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--sage);
}
.pillars__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.pillar {
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1rem, 2.5vw, 2.5rem);
  border-left: 1px solid rgba(11, 11, 11, 0.12);
}
.pillar:first-child { border-left: 0; padding-left: 0; }
.pillar:last-child { padding-right: 0; }
.pillar h2 {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
}
.pillar p {
  font-size: 0.9rem;
  color: #4a4a46;
  margin: 0;
}

/* ── Sections ──────────────────────────────────────────── */
.section { padding-block: var(--section); }
.section--mist { background: var(--mist); }
.section--ink {
  background: var(--ink);
  color: #fff;
}

.section-head { margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.section-head--split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}
.section-head__aside {
  font-size: 0.975rem;
  color: var(--muted);
  max-width: 34ch;
  margin: 0 0 0.35rem;
}
.section--mist .section-head__aside { color: #55554f; }

/* Problem / solution */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.75rem, 4vw, 4rem);
}
.duo__col { border-top: 1px solid var(--ink); padding-top: 1.35rem; }
.duo__col p { font-size: 1.05rem; max-width: 46ch; }
.duo__label {
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 1.05rem;
}

.wide-media { margin: clamp(2.5rem, 5vw, 4.5rem) 0 0; }
.wide-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 45%;
  border-radius: 2px;
  background: var(--mist);
}
.wide-media figcaption {
  margin-top: 0.85rem;
  font-size: var(--step--1);
  color: var(--muted);
}

/* ── Features ──────────────────────────────────────────── */
.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #e0e0dc;
  border: 1px solid #e0e0dc;
  border-radius: 2px;
  overflow: hidden;
}
.feature {
  background: var(--paper);
  padding: clamp(1.5rem, 2.6vw, 2.15rem);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.feature__num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #a3a39d;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.55rem;
}
.feature h3 {
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.feature p {
  font-size: 0.94rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}
.feature--lead {
  background: var(--ink);
  color: #fff;
}
.feature--lead .feature__num { color: #7e7e78; }
.feature--lead p { color: #c9c9c4; }

/* ── Materials ─────────────────────────────────────────── */
.duo--materials {
  grid-template-columns: 1fr 1.05fr;
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
}
.materials__note {
  margin-top: 1.75rem;
  padding: 1.15rem 1.25rem;
  background: var(--sage);
  border-left: 2px solid var(--ink);
  font-size: 0.95rem;
  color: #3d3d39;
  max-width: 40ch;
}
.materials__note strong { display: block; margin-bottom: 0.2rem; color: var(--ink); }

.specs { margin: 0; }
.spec {
  display: grid;
  grid-template-columns: 13rem 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}
.spec:last-child { border-bottom: 1px solid var(--line); }
.spec dt {
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  padding-top: 0.15rem;
}
.spec dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ── Gallery ───────────────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.shot {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background: #e8e8e4;
  border-radius: 2px;
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 2 / 3;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.6, 0.2, 1), opacity 0.3s ease;
}
.shot:hover img { transform: scale(1.025); }

/* Lightbox */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(8, 8, 8, 0.94); }
.lightbox img {
  position: absolute;
  inset: 4vh 4vw;
  width: 92vw;
  height: 92vh;
  object-fit: contain;
}
.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-family: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 1rem;
  border-radius: 2px;
  cursor: pointer;
}
.lightbox__close:hover { border-color: #fff; }

/* ── Story ─────────────────────────────────────────────── */
.story { max-width: 1000px; }
.section--ink .eyebrow { color: #8d8d87; }
.section--ink .eyebrow .num { color: #fff; }
.section--ink .eyebrow .num::after { color: #55554f; }

.story__quote { margin: 0; }
.story__quote p {
  font-size: clamp(1.45rem, 2.9vw, 2.3rem);
  line-height: 1.32;
  letter-spacing: -0.025em;
  font-weight: 500;
  max-width: 34ch;
  margin-bottom: 2rem;
}
.story__quote footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.9rem;
}
.story__quote cite {
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.story__quote footer span { color: #8d8d87; }
.story__quote footer span::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  background: #55554f;
  vertical-align: middle;
  margin-right: 0.6rem;
}
.story__more { margin-top: 2.5rem; }

/* ── Close / final CTA ─────────────────────────────────── */
.close__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.close__buy {
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--paper);
}
.price--lg { margin-bottom: 1.25rem; }
.price--lg .price__now { font-size: clamp(1.6rem, 2.4vw, 2rem); }
.close__buy .fineprint { margin-top: 1rem; }

/* ── Footer ────────────────────────────────────────────── */
.site-foot {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.25rem, 4vw, 3rem) clamp(2.5rem, 4vw, 3.5rem);
}
.site-foot__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem 3rem;
  align-items: start;
}
.wordmark--foot { font-size: 1.05rem; margin: 0 0 0.35rem; }
.site-foot__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  font-size: 0.9rem;
}
.site-foot__links a {
  text-decoration: none;
  color: #45453f;
  border-bottom: 1px solid transparent;
}
.site-foot__links a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.site-foot__legal {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: #8a8a84;
}

/* ── Sticky mobile buy bar ─────────────────────────────── */
.stickybuy {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.stickybuy__price {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}
.stickybuy .btn { padding: 0.7rem 1.35rem; font-size: 0.95rem; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1040px) {
  .site-nav { display: none; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__media img { aspect-ratio: 4 / 5; }
  .hero__copy h1 { font-size: clamp(2.4rem, 9vw, 3.4rem); }

  .pillars__inner { grid-template-columns: 1fr; }
  .pillar {
    border-left: 0;
    border-top: 1px solid rgba(11, 11, 11, 0.12);
    padding: 1.1rem 0;
  }
  .pillar:first-child { border-top: 0; padding-top: 1.35rem; }
  .pillar:last-child { padding-bottom: 1.35rem; }

  .duo,
  .duo--materials,
  .section-head--split,
  .close__inner { grid-template-columns: 1fr; }

  .spec { grid-template-columns: 1fr; gap: 0.25rem; }
  .spec dt { padding-top: 0; }

  .story__quote p { max-width: 34ch; }

  .site-foot__inner { grid-template-columns: 1fr; }
  .site-foot__legal { padding-top: 1.25rem; }

  .stickybuy { display: flex; }
  /* clear the fixed buy bar so the last footer line is never trapped under it */
  body { padding-bottom: calc(5.75rem + env(safe-area-inset-bottom)); }
  .site-foot__links { gap: 0.15rem 1.25rem; }
  .site-foot__links a { display: inline-block; padding: 0.42rem 0; }
}

@media (max-width: 700px) {
  .features { grid-template-columns: 1fr; }
  .gallery { gap: 8px; }
  .hero__actions { gap: 1rem 1.25rem; }
  .hero__actions .btn--lg { width: 100%; }
  .wide-media img { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .shot:hover img { transform: none; }
}
