/* Download: page-scoped styles

   The deck has no dark comp for this page. 2026-08: rebuilt to mirror the
   light skin's centred single-card layout - title, description, direct
   Download .pdf button, the 3D book render, the hardcover aside, and the
   usage note, all inside one panel-styled card laid over the darkened
   gallery-hero banner strip. */

.dl-hero {
  position: relative;
  /* pulled up 88px behind the transparent nav (owner request, 2026-08) so the
     photograph floats through the bar here like every other page; the padding
     grows by the same 88px so the card stays where it was */
  margin-top: -88px;
  padding: 144px 24px 72px;
  /* hero-download-full.jpg (owner request, 2026-08): the owner's full
     "Free Download Page.png" - Dead Sea valley at left, cliff and cave at
     right - covering the ENTIRE section rather than a top band fading into
     page colour. The section runs taller than the 1672x941 photo, so cover
     upscales ~1.4x (soft but acceptable; there are no larger pixels - the
     source is comp-resolution). */
  background:
    url("../../assets/img/hero-download-marl.jpg") top center / cover no-repeat,
    var(--page);
}

/* the scrim stops where the photograph does: past that the band is already
   flat page colour and a wash over it would only add a visible edge */
.dl-hero::before {
  content: "";
  position: absolute;
  /* two edge-anchored washes (owner direction, 2026-08, after a floating
     radial pool was tried and rejected - anchored gradients only): the deep
     left wash carries the copy column and dissolves before the book; the
     bottom wash rises under the book's foot so the credit lines read, gone
     by a third of the way up. The photo's right and sky stay bright. */
  inset: 0;
  background:
    linear-gradient(0deg,
      rgba(25, 22, 19, .78) 0,
      rgba(25, 22, 19, .5) 110px,
      rgba(25, 22, 19, 0) 280px),
    linear-gradient(90deg,
      rgba(25, 22, 19, .88) 0%,
      rgba(25, 22, 19, .80) 30%,
      rgba(25, 22, 19, .55) 52%,
      rgba(25, 22, 19, .15) 72%,
      rgba(25, 22, 19, 0) 85%);
}

/* --- the layout ---------------------------------------------------------- */
/* boxless two-column arrangement (owner request, 2026-08): the panel-hi card
   came off entirely - copy left, book right, on the photo itself */
.dl-text {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 430px;
  column-gap: 90px;
  align-items: center;
  text-align: center;
}

/* the copy sits on photography now, so it carries the nav's layered halo
   treatment (owner request, 2026-08): a tight blurred wrap at the letter for
   separation, wider layers fading out - soft atmosphere, never an outline */
.dl-copy,
.dl-credits {
  text-shadow:
    0 0 3px rgba(25, 22, 19, .9),
    0 1px 3px rgba(25, 22, 19, .85),
    0 2px 10px rgba(25, 22, 19, .6),
    0 4px 20px rgba(25, 22, 19, .4);
}

/* the two voices that carry the page get a wider throw so they lift off the
   photograph: the 46px title and the gold hook question */
.dl-title {
  text-shadow:
    0 0 4px rgba(25, 22, 19, .9),
    0 2px 6px rgba(25, 22, 19, .8),
    0 6px 26px rgba(25, 22, 19, .55);
}

.dl-hook {
  text-shadow:
    0 0 3px rgba(25, 22, 19, .9),
    0 2px 5px rgba(25, 22, 19, .8),
    0 5px 22px rgba(25, 22, 19, .5);
}

.dl-title {
  font-family: var(--f-smallcaps);
  font-size: 46px;
  font-weight: 500;
  letter-spacing: .03em;
  line-height: 1.02;
  color: var(--head);
}

/* pinned to the 548px "Download the Free Book" title; auto margins centre it
   under the centred heading */
.dl-text .ornament-center { width: 548px; margin: 14px auto 0; }

/* the hook question above the description (owner copy, 2026-08): the card's
   one emotive line, set in the display italic so it reads as a voice apart
   from the factual description under it */
.dl-hook {
  /* 14 matches the title-to-ornament and hook-to-description gaps, so the
     head of the card reads as one evenly-spaced stack (owner request,
     2026-08) */
  margin: 14px auto 0;
  max-width: 660px;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.3;
  color: var(--gold-bright);
}

.dl-desc {
  margin: 14px auto 0;
  /* the card is wide; cap the measure so the line stays readable */
  max-width: 660px;
  /* raised from 17px (owner request, 2026-08: readability pass) */
  font-size: 18px;
  line-height: 1.46;
  color: var(--text);
}

/* --- download button ----------------------------------------------------- */
.dl-download {
  display: inline-block;
  margin-top: 24px;
  font-family: var(--f-smallcaps);
  /* raised from 17px (owner request, 2026-08: readability pass) */
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #23190A;
  padding: 13px 34px;
  border-radius: 3px;
  cursor: pointer;
  background: linear-gradient(180deg, var(--gold-btn-hi), var(--gold-btn));
  /* no shadow (owner request, 2026-08): the gold face carries itself. And
     text-shadow none too: the copy column's halo INHERITS, and on the
     button's dark ink it read as a smudged emboss (owner request, 2026-09) */
  box-shadow: none;
  text-shadow: none;
  transition: filter .2s ease, transform .2s ease;
}

.dl-download:hover { filter: brightness(1.07); transform: translateY(-1px); }

/* --- book render, between the button and the notes ----------------------- */
/* no border or box-shadow: the cover is a transparent-background 3D render -
   a CSS frame would box the empty canvas. drop-shadow instead (owner request,
   2026-08): it follows the render's silhouette, so the book casts a real
   shadow on the photograph and lifts off it. No hover lift: artwork, not a
   control. */
.dl-book {
  width: min(400px, 100%);
  margin: 0 auto;
  display: block;
}

.dl-book img {
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .4)) drop-shadow(0 22px 34px rgba(0, 0, 0, .45));
}

.dl-book img {
  width: 100%;
  height: auto;
}

/* matches .dl-desc in family and size (owner decision); italic carries the
   aside tone - raised alongside it in the 2026-08 readability pass. Moved
   above the book, under the button (owner request, 2026-08). */
.dl-hardcover {
  font-family: var(--f-body);
  font-style: italic;
  font-size: 18px;
  line-height: 1.46;
  color: var(--text);
  margin-top: 16px;
}

/* the two credit lines under the cover (owner copy, 2026-08), deliberately
   the smallest voice on the page */
.dl-credits {
  margin-top: 16px;
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(222, 220, 214, .84);
}

.dl-note {
  /* raised from 15px (owner request, 2026-08: readability pass) */
  font-size: 16px;
  line-height: 1.45;
  color: rgba(222, 220, 214, .84);
  margin-top: 14px;
}

/* ---------- Responsive fallback ---------- */
/* below 1200 the nav wraps taller than 88px, so the pull-up comes off and the
   band reverts to the original geometry */
@media (max-width: 1200px) {
  .dl-hero {
    margin-top: 0;
    padding: 56px 24px 72px;
    background:
      url("../../assets/img/hero-download-marl.jpg") top center / cover no-repeat,
      var(--page);
  }
  /* stacked: copy above, book below; the wash goes flat since the columns
     no longer split left/right */
  .dl-hero::before { background: linear-gradient(rgba(25, 22, 19, .78), rgba(25, 22, 19, .68)); }
  .dl-text { grid-template-columns: 1fr; row-gap: 34px; max-width: 720px; }
}

@media (max-width: 760px) {
  .dl-hero { padding: 40px 18px 52px; }
  .dl-title { font-size: 32px; }
}

@media (max-width: 560px) {
  .dl-download { display: block; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .dl-download { transition: none; }
  .dl-download:hover { transform: none; }
}

/* ---------- Motion (site-motion variant only) ---------- */
/* Editorial arrival: the copy column composes itself top to bottom while the
   book render settles onto the photograph at right. NO mSettle on this page —
   the photo is a background of .dl-hero itself, not a ::before, so it cannot
   be transformed; the entrance is carried entirely by the copy sequence.
   Every rule is gated on .motion: with motion off this block is inert and the
   page renders exactly like the static original. */

/* copy column, top to bottom: title → ornament draw → hook → description */
.motion .dl-title { animation: mRise var(--m-dur-hero) var(--m-ease-out) .15s both; }
.motion .dl-text .ornament-center { --orn-delay: 500ms; }
.motion .dl-hook  { animation: mRise var(--m-dur-hero) var(--m-ease-out) .6s both; }
.motion .dl-desc  { animation: mRise var(--m-dur-hero) var(--m-ease-out) .75s both; }

/* the button keeps its own hover transform, so its entrance is opacity only
   (mFade) — and per the standing lesson its text-shadow stays none */
.motion .dl-download  { animation: mFade var(--m-dur-hero) var(--m-ease-out) .95s both; }
/* the two small asides share one beat (creative-director trim): three fades
   50ms apart across two columns read as a blob, not a cadence */
.motion .dl-hardcover { animation: mFade var(--m-dur-hero) var(--m-ease-out) 1.05s both; }
.motion .dl-note      { animation: mFade var(--m-dur-hero) var(--m-ease-out) 1.05s both; }

/* the book rises 26px and lands — with its two drop-shadows this reads as the
   render settling onto the photograph. The page's one custom keyframe. */
@keyframes pq-book-rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
/* var(--m-dur-hero), not a literal: the phone override shortens that token,
   and the book must quicken with the rest of the sequence */
.motion .dl-book    { animation: pq-book-rise var(--m-dur-hero) var(--m-ease-out) .4s both; }
.motion .dl-credits { animation: mFade var(--m-dur-hero) var(--m-ease-out) 1.1s both; }
