/* Pale Spruce -- "Single-page app, no navigation" direction
   Deviation from the baseline: this variant is deliberately image-forward and
   uses full-bleed photo panels (rather than one contained ~600px photo) to
   read as a single continuous scroll instead of stacked "pages." Visual
   rhythm (not a nav bar) is what tells the visitor where they are:
   full-bleed photo -> tight text beat -> full-bleed photo -> ...
   A repeating inline spruce-icon divider marks each transition so the eye
   has a consistent landmark instead of a menu. */

:root {
  --charcoal: #1E2A23;
  --forest: #2E5E46;
  --sage: #7AA68A;
  --mist: #D6E8DD;
  --sand: #F0E8D8;
  --amber: #D9882C;
  --white: #FFFFFF;
  --max-width: 720px;
  --wide: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--white);
}

h1, h2, h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  margin: 0;
  color: var(--forest);
}

a { color: var(--sage); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-wide {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Divider: repeating landmark instead of a nav bar ---------- */
.divider {
  display: flex;
  justify-content: center;
  padding: 36px 0;
  background: var(--white);
}

.divider svg {
  width: 28px;
  height: 28px;
  color: var(--sage);
  opacity: 0.85;
}

/* ---------- Hero: full-bleed, no header/nav above it ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(30,42,35,0.35) 0%, rgba(30,42,35,0.55) 60%, rgba(30,42,35,0.8) 100%),
              url("img/hero-ctr-sunset.jpg") center 65% / cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: 40px 24px;
}

.hero-mark {
  width: 46px;
  height: 46px;
  color: var(--sand);
  margin-bottom: 14px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: 0.01em;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}

.hero p.lede {
  margin-top: 16px;
  color: var(--mist);
  font-size: 1.05rem;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Book section: photo panel + overlapping card ---------- */
.book-panel {
  position: relative;
  background: url("img/thumb-bikepacking-101.jpg") center / cover no-repeat;
  padding: 110px 24px 140px;
}

.book-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30,42,35,0.55), rgba(214,232,221,0.15));
}

.book-card {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  background: var(--sand);
  border-radius: 4px;
  padding: 40px 36px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  box-shadow: 0 22px 50px rgba(0,0,0,0.28);
}

.book-card img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

.book-card h2 {
  font-size: 1.7rem;
  margin-bottom: 4px;
}

.book-card .kicker {
  color: var(--forest);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.book-card p {
  margin: 0 0 14px;
  font-size: 0.98rem;
}

.buy-link {
  display: inline-block;
  font-weight: 600;
  color: var(--forest);
  border-bottom: 2px solid var(--amber);
  padding-bottom: 2px;
}

.buy-link:hover { text-decoration: none; color: var(--charcoal); }

@media (max-width: 560px) {
  .book-card {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .book-card img { width: 120px; margin: 0 auto; }
}

/* ---------- Resources intro beat (text-only, breathing room) ---------- */
.res-intro {
  background: var(--white);
  padding: 20px 24px 20px;
  text-align: center;
}

.res-intro .kicker {
  font-size: 2rem;
  letter-spacing: 0.01em;
}

/* ---------- Resource item: alternating full-bleed image + text ---------- */
.resource {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  background: var(--mist);
}

.resource.alt { background: var(--sand); }

.resource:nth-of-type(odd) .resource-photo { order: 1; }

.resource-photo {
  background-size: cover;
  background-position: center;
  min-height: 320px;
}

.resource-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 48px;
  gap: 14px;
}

.resource-body h3 {
  font-size: 1.65rem;
}

.resource-preview {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin: 6px 0;
}

.resource-preview p {
  margin: 0;
  flex: 1;
}

.resource-preview img {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid var(--white);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}


.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: 8px;
  background: var(--amber);
  color: var(--charcoal);
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 3px;
  font-size: 0.95rem;
}

.download-btn:hover {
  text-decoration: none;
  background: #c27722;
}

@media (max-width: 760px) {
  .resource {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .resource:nth-of-type(odd) .resource-photo { order: 0; }
  .resource-photo { height: 260px; }
  .resource-body { padding: 40px 28px; }
}

/* ---------- Closing beat / footer ---------- */
.closing {
  background: var(--forest);
  color: var(--mist);
  text-align: center;
  padding: 70px 24px 40px;
}

.closing .mark {
  width: 36px;
  height: 36px;
  color: var(--sand);
  margin-bottom: 14px;
}

.closing .wordmark {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  color: var(--white);
  font-size: 1.3rem;
  display: block;
  margin-bottom: 6px;
}

.closing .top-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--sage);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.closing .copyright {
  margin-top: 18px;
  font-size: 0.8rem;
  opacity: 0.65;
}
