/* pd-memorials.css — split from photo-drop.css on 2026-07-24 (Phase 4 Stage 2).
   Rules are verbatim, in original source order. Do not hand-merge sheets;
   the page -> stylesheet mapping lives in tools/build-site.js. */
.living-copy {
  position: relative;
  display: grid;
  gap: clamp(20px, 2.8vw, 32px);
}
.living-copy h1 {
  margin: 0;
  max-width: 820px;
  color: var(--night-paper);
  font-family: var(--display);
  font-size: clamp(64px, 8.3vw, 142px);
  font-weight: 760;
  line-height: 0.96;
}
.living-copy > p {
  max-width: 560px;
  margin: 0;
  color: rgba(247, 243, 234, 0.88);
  font-size: clamp(18px, 1.5vw, 23px);
  line-height: 1.5;
}

/* Mobile-first (2026-07-25, phase 4 stage 3): base is the phone value; the
   desktop value returns at min-width. The old ≤760 `.living-copy h1`
   font-size here was already dead — the later base rule below re-declares
   font-size unconditionally — so band flattening drops it. */
.living-drop-hero {
  min-height: 0;
}

@media (min-width: 761px) {
.living-drop-hero {
    min-height: calc(100vh - 132px);
  }
}
/* ==========================================================================
   2026-07-03 opus2 — Photo Drop desktop composition + cramped-text pass
   (EN site/photo-drop/ + ES site/es/photo-drop/, shared stylesheet)
   Appended last so it overrides the layered history via cascade order,
   without ripping up the 2026-06-22 / 2026-07-02 passes. Builds A/B/C
   lived in site/styles.css / root+guides markup and are untouched here.
   ========================================================================== */

/* --- Defect 1: hero H1 overlaps the live-drop panel at wide viewports ------
   Root cause: clamp max was 142px with line-height 0.96 and no hard cap on
   the copy column, so the Spanish worst case ("Todos los teléfonos.") blew
   past its grid track and collided with the panel (measured +42px overlap
   at 1710). Fix makes overlap structurally impossible at any width to 2560:
   the copy column gets min-width:0 + overflow-wrap so text is confined to
   its track, and the clamp is capped to a calm display size with breathing
   line-height. The panel becomes a fixed-ish counterweight so the gap is a
   real column gutter, never negotiable away. */
.living-drop-hero {
  grid-template-columns: 1fr;
  gap: clamp(24px, 3vw, 44px);
  column-gap: clamp(24px, 3vw, 44px);
}
.living-copy {
  min-width: 0;
}
.living-copy h1 {
  max-width: 18ch;
  /* Base = phone. At >=1080 the cap tightens to 15ch and 6vw reaches the
     78px cap at ~1300px, so 1440/1710/1920/2560 all render at a steady
     78px rather than ballooning to 142. */
  font-size: clamp(46px, 12vw, 74px);
  line-height: 1.06;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.living-copy > p {
  min-width: 0;
}

/* Stacked hero (single column, fluid H1 low end) is now the base; the two
   tiers above it are added by min-width. 761-1079 keeps the 18ch cap and the
   mid clamp; >=1080 is the wide two-column composition. */
@media (min-width: 761px) {
.living-copy h1 {
    font-size: clamp(54px, 8vw, 78px);
    line-height: 1.05;
  }
}

@media (min-width: 1080px) {
.living-copy h1 {
    max-width: 15ch;
    font-size: clamp(58px, 6vw, 78px);
  }
.living-drop-hero {
    grid-template-columns: minmax(0, 1fr) minmax(480px, 620px);
  }
}
/* ============================================================
   2026-07-11 memorial landing pages (/memorials/, /es/memoriales/).
   Same night surface, quieter: single-column hero (no live wall,
   no countdown), serif prompt samples, ownership-first privacy
   note. Register: decisions/2026-07-11-memorial-positioning-plan.md.
   ============================================================ */

.memorial-shell .memorial-hero {
  display: block;
  max-width: 720px;
  min-height: 0;
  margin-left: auto;
  margin-right: auto;
  padding: clamp(24px, 5vw, 64px) 0;
  text-align: left;
}
.memorial-shell .memorial-hero h1 {
  font-size: clamp(30px, 5.4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.memorial-shell .memorial-hero .drop-label {
  color: rgba(233, 186, 82, 0.85);
  margin-bottom: 12px;
}
.memorial-prompts article {
  display: grid;
  place-items: center;
  padding: 26px 20px;
}
.memorial-prompt {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 19px;
  line-height: 1.45;
  color: rgba(247, 243, 234, 0.88);
  text-align: center;
  text-wrap: balance;
}
.memorial-offer .night-section-head p {
  max-width: 62ch;
}
.memorial-offer-actions {
  margin-top: 18px;
}
.memorial-privacy-note {
  margin-top: 22px;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(247, 243, 234, 0.62);
  max-width: 58ch;
}
.memorial-footer {
  display: flex;
  gap: 22px;
  justify-content: center;
  padding: 30px 20px 44px;
  background: #0a1812;
}
.memorial-footer a {
  color: rgba(247, 243, 234, 0.6);
  font-size: 14px;
  text-decoration: none;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}
.memorial-footer a:hover,
.memorial-footer a:focus-visible {
  color: #f7f3ea;
  text-decoration: underline;
}
/* Memorial hero prints: the three sample prompts, shown as warm
   physical prints fanned like photos on a table. Decorative
   (aria-hidden); the copy carries the meaning. */
.memorial-shell .memorial-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
  max-width: 1080px;
  align-items: center;
}
.memorial-hero-prints {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: start;
  max-width: 460px;
}
.memorial-hero-prints figure {
  margin: 0;
  padding: 6px 6px 16px;
  background: #fffdf8;
  border-radius: 4px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
  transform: rotate(-2.2deg);
}
.memorial-hero-prints figure:nth-child(2) {
  transform: rotate(1.6deg) translateY(10px);
}
.memorial-hero-prints figure:nth-child(3) {
  transform: rotate(-1deg) translateY(3px);
}
.memorial-hero-prints img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
  /* Blank-print tone while the lazy photos arrive — matches the root
     memorial band's placeholder (2026-07-30 audit #4). */
  background: #e6ddcd;
}

@media (min-width: 980px) {
.memorial-shell .memorial-hero {
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: clamp(36px, 5vw, 72px);
  }
.memorial-hero-prints {
    grid-template-columns: repeat(2, 1fr);
    max-width: none;
  }
.memorial-hero-prints figure {
    padding: 8px 8px 22px;
  }
.memorial-hero-prints figure:first-child {
    grid-column: 1 / -1;
    width: 78%;
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: no-preference) {
.memorial-hero-prints figure {
    transition: transform 0.3s ease;
  }
.memorial-hero-prints figure:hover {
    transform: rotate(0deg) translateY(0);
  }
}

@supports (min-height: 100svh) {
.living-drop-hero {
    min-height: calc(100svh - 132px);
  }
}
/* 2026-08-03 Mario-flagged phone cramp (both languages): the memorial
   page inherits the homepage band's flat-row steps rhythm from core
   (title 6px from body, 24px rows) — tuned for one-line bodies, tight
   under the memorial's longer copy. And the offer's four paragraphs
   stacked at the section-head's 12px gap, a wall before the CTA.
   Memorial-scoped air; the homepage band keeps its own rhythm. */
.memorial-shell .night-step-grid h3 {
  margin: 18px 0 10px;
}
.memorial-shell .night-steps .night-step-grid article {
  padding-block: 28px;
}
.memorial-offer .night-section-head {
  gap: 18px;
}
.memorial-offer-actions {
  margin-top: 26px;
}
.memorial-privacy-note {
  margin-top: 26px;
}
/* 2026-08-03 (Mario's phone, pre-create pass): the memorial page's
   three .night-steps sections still painted the homepage band's
   var(--night) rectangle inside the already-dark shell — the same
   accidental-card class fixed on the create page 2026-07-20. Rule of
   record (2026-07-13): decoration on night surfaces is background
   transparent, never a re-declared green. */
.memorial-shell .night-steps {
  background: transparent;
}
