/* ============================================================
   Merry & Bright 2026 catalog — v2 editorial system
   Loaded after catalog.css and catalog-fixes.css.
   Patterns:
     A  .section-opener / .page-cover / .page-final  (existing dark full-bleed openers)
     B  .ed-photo-top | .ed-photo-bottom | .ed-photo-right  (photo bleeds to three page edges)
     C  .ed-plates   (header + gutterless bleed mosaic)
     D  .ed-process  (dark typographic page with numerals + photo strip)
   ============================================================ */

@font-face{font-family:"Lora";src:url("fonts/Lora-400-latin.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Lora";src:url("fonts/Lora-400i-latin.woff2") format("woff2");font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:"Lora";src:url("fonts/Lora-500-latin.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}

:root{
  --body:"Lora",Georgia,"Times New Roman",serif;
  --gold-rule:#c9a04a;
}

/* ---- global refinements (apply to every page) ---- */
.catalog-page{font-family:var(--body);font-feature-settings:"kern","liga","onum";}
.catalog-page.dark{color:#fff}
.catalog-page p{line-height:1.5}
.catalog-page h1,.catalog-page h2{letter-spacing:-.028em;text-wrap:balance;font-weight:600}
.catalog-page figcaption,.catalog-page figcaption b,.catalog-page figcaption span{font-size:1.85cqw}
.catalog-page figcaption b{font-family:var(--sans)}
.kicker{font-family:var(--sans);letter-spacing:.18em}
.page-header{font-family:var(--sans);font-size:1.7cqw;letter-spacing:.17em}

/* v2 pages: tighter header rhythm */
.v2 .page-header{margin-bottom:5.5%}
.v2 .kicker{margin-bottom:2%!important}
.v2 h2{margin-bottom:.45em;font-size:6.1cqw;line-height:1.04}
.v2 .lead{max-width:92%}
.v2 .photo-note{margin:0;color:var(--muted);font-family:var(--sans);font-size:1.55cqw;text-transform:uppercase;letter-spacing:.14em}

/* signature gold mark above kickers on light editorial pages */
.v2:not(.dark) .kicker::before{content:"";display:block;width:6cqw;height:2px;margin-bottom:2.2cqw;background:var(--gold-rule)}

/* ---- Pattern B: photo bleeds to three page edges ---- */
.ed-photo{position:absolute;z-index:1;margin:0;overflow:hidden}
.ed-photo img{width:100%;height:100%!important;object-fit:cover;display:block}
.ed-copy{position:relative;z-index:2}

/* photo across the top, copy below */
.ed-photo-top{padding-top:0}
.ed-photo-top .ed-photo{top:0;left:0;right:0;height:60%}
.ed-photo-top .page-header{position:absolute;z-index:3;top:var(--page-padding-y);left:var(--page-padding-x);right:var(--page-padding-x);color:#fff;border-color:rgba(255,255,255,.4);margin:0}
.ed-photo-top .ed-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(5,22,17,.55),rgba(5,22,17,0) 32%)}
.ed-photo-top .ed-copy{position:absolute;left:var(--page-padding-x);right:var(--page-padding-x);top:calc(60% + 6.5cqw)}

/* copy on top, photo across the bottom */
.ed-photo-bottom .ed-photo{left:0;right:0;bottom:0;height:53%}
.ed-photo-bottom .ed-copy{position:relative}

/* copy left, photo bleeding off the right edge */
.ed-photo-right .ed-photo{top:0;right:0;bottom:0;width:50%}
.ed-photo-right .page-header,.ed-photo-right .ed-copy{width:calc(50cqw - var(--page-padding-x) - 3.5cqw)}
.ed-photo-right .ed-copy{margin-top:20%}
.ed-photo-right .ed-copy p{margin-bottom:1.1em}
.ed-photo-right .photo-note{position:absolute;left:var(--page-padding-x);bottom:var(--page-padding-y);width:calc(50cqw - var(--page-padding-x) - 3.5cqw)}

/* two-column editorial row (paragraph + list) */
.ed-columns{display:grid;grid-template-columns:1.25fr .75fr;gap:6cqw;margin-top:1cqw}
.ed-columns>p{margin:0}
.area-list{margin:0;padding-top:1.6cqw;border-top:1px solid var(--line)}
.area-list dt{margin-bottom:1.4cqw;color:var(--red);font-family:var(--sans);font-size:1.55cqw;text-transform:uppercase;letter-spacing:.16em}
.area-list dd{margin:0;padding:.4cqw 0;font-family:var(--display);font-size:2.2cqw;font-weight:500;line-height:1.25;color:var(--ink)}

/* two-column facts under a headline (page 14) */
.ed-pair{display:grid;grid-template-columns:1fr 1fr;gap:6cqw;margin-top:4cqw}
.ed-pair>div{padding-top:2.2cqw;border-top:1px solid var(--line)}
.ed-pair b{display:block;margin-bottom:.8cqw;font-family:var(--sans);font-size:2.1cqw;letter-spacing:.01em}
.ed-pair p{margin:0;color:var(--muted);font-size:1.8cqw}

/* ---- Pattern C: header + bleed mosaic ---- */
.plates{position:absolute;z-index:1;left:0;right:0;bottom:0;top:29.5%;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:3px;background:var(--paper)}
.plates figure{position:relative;margin:0;overflow:hidden;background:var(--forest)}
.plates img{position:absolute;inset:0;width:100%;height:100%!important;object-fit:cover}
.plates figcaption{position:absolute;z-index:2;left:0;right:0;bottom:0;padding:9cqw 3.4cqw 3cqw;color:#fff;background:linear-gradient(180deg,rgba(5,22,17,0),rgba(5,22,17,.72) 55%,rgba(5,22,17,.86))}
.plates figcaption b{display:block;font-family:var(--sans);font-size:2.25cqw;letter-spacing:.02em;color:#fff}
.plates figcaption span{display:block;margin-top:.5cqw;font-size:1.7cqw;line-height:1.35;color:rgba(255,255,255,.82)}

/* ---- Pattern D: dark typographic page with numerals ---- */
.ed-process{color:#fff;background:var(--forest)}
.ed-process .page-header{color:rgba(255,255,255,.72);border-color:rgba(255,255,255,.22)}
.ed-process h2{color:#fff}
.ed-process .lead{color:rgba(255,255,255,.78)}
.steps{display:grid;grid-template-columns:1fr 1fr;column-gap:6cqw;row-gap:2.6cqw;margin:3.2cqw 0 0;padding:0;list-style:none;position:relative;z-index:2}
.steps li{padding-top:2.2cqw;border-top:1px solid rgba(255,255,255,.18)}
.steps .n{display:block;margin-bottom:1cqw;color:#e9c76f;font-family:var(--display);font-size:5.4cqw;font-weight:500;line-height:1;letter-spacing:-.02em}
.steps b{display:block;margin-bottom:.7cqw;font-family:var(--sans);font-size:2.15cqw;letter-spacing:.01em}
.steps p{margin:0;color:rgba(255,255,255,.72);font-size:1.75cqw;line-height:1.45}
.strip{position:absolute;z-index:1;left:0;right:0;bottom:0;height:26%;margin:0;overflow:hidden}
.strip img{width:100%;height:100%!important;object-fit:cover;object-position:50% 58%}
.strip::before{content:"";position:absolute;z-index:1;inset:0;background:linear-gradient(180deg,var(--forest),rgba(9,39,30,.35) 45%,rgba(9,39,30,.05))}
.strip figcaption{position:absolute;z-index:2;left:var(--page-padding-x);bottom:var(--page-padding-y);margin:0;color:rgba(255,255,255,.8);font-family:var(--sans);font-size:1.55cqw;text-transform:uppercase;letter-spacing:.14em}

/* ---- mobile: container units still scale; keep bleed math intact ---- */
@media (max-width:780px){
  /* v2 pages keep container-relative type so the bleed compositions hold on a phone-width page */
  .v2 h2{font-size:6.4cqw}
  .v2 .kicker{font-size:1.9cqw!important}
  .v2 .page-header{font-size:1.85cqw}
  .v2 p,.v2 li,.v2 dd{font-size:2.25cqw}
  .steps .n{font-size:5.4cqw}
  .steps b{font-size:2.3cqw}
  .steps p{font-size:2cqw}
  .area-list dd{font-size:2.4cqw}
  .ed-pair b{font-size:2.3cqw}
  .ed-pair p{font-size:2.05cqw}
  .plates figcaption b{font-size:2.5cqw}
  .plates figcaption span{font-size:2cqw}
  .ed-photo-bottom .ed-photo{height:48%}
  .ed-photo-top .ed-photo{height:56%}
  .ed-photo-top .ed-copy{top:calc(56% + 6cqw)}
  .ed-photo-right .ed-copy{margin-top:16%}
}

@media print{
  .ed-photo,.plates,.strip{print-color-adjust:exact;-webkit-print-color-adjust:exact}
}

/* ============================================================
   Propagation pass (approved 2026-08-28 checkpoint)
   ============================================================ */

/* Pattern B: copy right, photo bleeding off the left edge */
.ed-photo-left .ed-photo{top:0;left:0;bottom:0;width:50%}
.ed-photo-left .page-header,.ed-photo-left .ed-copy,.ed-photo-left .photo-note{margin-left:calc(53.5cqw - var(--page-padding-x));width:calc(50cqw - var(--page-padding-x) - 3.5cqw)}
.ed-photo-left .ed-copy{margin-top:20%}
.ed-photo-left .ed-copy p{margin-bottom:1.1em}
.ed-photo-left .photo-note{position:absolute;left:var(--page-padding-x);bottom:var(--page-padding-y)}
.ed-photo-left .clean-list,.ed-photo-right .clean-list{margin-top:3cqw}
.ed-photo-left .clean-list li,.ed-photo-right .clean-list li{padding:1.4cqw 0 1.4cqw 3.6cqw;font-size:1.85cqw}

/* Pattern B photo-top: optional single note under the pair */
.ed-photo-top .photo-note{position:absolute;left:var(--page-padding-x);bottom:var(--page-padding-y)}

/* Pattern C modifiers */
.plates.cols-1{grid-template-columns:1fr}
.plates.rows-1{grid-template-rows:1fr}
.plates.lower{top:36%}
.plates figcaption small{display:block;margin-top:.6cqw;font-family:var(--sans);font-size:1.45cqw;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.68)}

/* Pattern D generalized: any dark typographic page */
.ed-dark{color:#fff;background:var(--forest)}
.ed-dark .page-header{color:rgba(255,255,255,.72);border-color:rgba(255,255,255,.22)}
.ed-dark h2{color:#fff}
.ed-dark p{color:rgba(255,255,255,.78)}
.ed-dark .lead{max-width:88%}
.dark-cols{display:grid;grid-template-columns:1fr 1fr;column-gap:6cqw;margin-top:4cqw;position:relative;z-index:2}
.dark-cols>div{padding-top:2.4cqw;border-top:1px solid rgba(255,255,255,.18)}
.dark-cols .k,.dark-rows .k,.dark-note .k{display:block;margin-bottom:1.2cqw;color:#e9c76f;font-family:var(--sans);font-size:1.55cqw;letter-spacing:.16em;text-transform:uppercase}
.dark-cols b{display:block;margin-bottom:1cqw;font-family:var(--display);font-size:3cqw;font-weight:500;line-height:1.15;color:#fff;letter-spacing:-.01em}
.dark-cols p{margin:0;font-size:1.8cqw;color:rgba(255,255,255,.72)}
.dark-rows{margin:3.5cqw 0 0;padding:0;list-style:none;position:relative;z-index:2}
.dark-rows li{display:grid;grid-template-columns:38% 1fr;gap:4cqw;padding:1.9cqw 0;border-top:1px solid rgba(255,255,255,.18)}
.dark-rows b{font-family:var(--sans);font-size:2cqw;color:#fff}
.dark-rows span{font-size:1.75cqw;line-height:1.45;color:rgba(255,255,255,.72)}
.dark-note{position:relative;z-index:2;margin-top:4cqw;padding-top:2.2cqw;border-top:1px solid rgba(255,255,255,.18);max-width:78%}
.dark-note p{margin:0;font-size:1.8cqw;color:rgba(255,255,255,.78)}
.portal-url{display:inline-block;margin:3cqw 0 1cqw;padding-bottom:.6cqw;border-bottom:2px solid #e9c76f;color:#fff;font-family:var(--display);font-size:2.6cqw;font-weight:500;text-decoration:none;overflow-wrap:anywhere}
.ed-dark .strip{height:26%}

/* light typographic page (21) */
.ed-quiet .ed-copy{margin-top:14%}
.ed-quiet .lead{max-width:80%;font-size:2.2cqw}
.quiet-note{margin-top:6cqw;padding-top:2.4cqw;border-top:1px solid var(--line);max-width:70%}
.quiet-note .k{display:block;margin-bottom:1cqw;color:var(--red);font-family:var(--sans);font-size:1.55cqw;letter-spacing:.16em;text-transform:uppercase}
.quiet-note p{margin:0;color:var(--muted);font-size:1.85cqw}

/* small restyles on carried-over elements */
.v2 .density-note{margin-top:3.5cqw!important;padding-top:2cqw;border-top:1px solid var(--line);color:var(--muted);font-family:var(--sans);font-size:1.7cqw;font-weight:700;letter-spacing:.02em}
.v2 .ed-copy>p.body{max-width:100%}

/* page 15: lift the left-side shading so both handrails and the symmetry read; keep the headline legible at the bottom */
.catalog-page[data-page="15"] .page-overlay{background:linear-gradient(180deg,rgba(5,22,17,.34) 0%,rgba(5,22,17,.08) 40%,rgba(5,22,17,.22) 62%,rgba(5,22,17,.86) 100%)}

@media (max-width:780px){
  .ed-photo-left .ed-copy{margin-top:16%}
  .dark-cols b{font-size:3.1cqw}
  .dark-cols p,.dark-rows span,.dark-note p{font-size:2cqw}
  .dark-rows b{font-size:2.2cqw}
  .portal-url{font-size:2.8cqw}
  .ed-quiet .lead{font-size:2.5cqw}
}

/* ---- corrections after the first propagation render ----
   cqw resolves against the page's content box, so side-column geometry now uses
   page-relative percentages on absolutely positioned blocks instead. */
.ed-photo-right .page-header,.ed-photo-left .page-header{position:absolute;z-index:3;top:var(--page-padding-y);margin:0}
.ed-photo-right .page-header,.ed-photo-right .ed-copy,.ed-photo-right .photo-note{left:var(--page-padding-x);right:calc(50% + 3.5%);width:auto;margin-left:0}
.ed-photo-left .page-header,.ed-photo-left .ed-copy,.ed-photo-left .photo-note{left:calc(50% + 3.5%);right:var(--page-padding-x);width:auto;margin-left:0}
.ed-photo-right .ed-copy,.ed-photo-left .ed-copy{position:absolute;top:27%;margin-top:0}
.ed-photo-left .photo-note,.ed-photo-right .photo-note{position:absolute;bottom:var(--page-padding-y)}

/* crop helpers: enlarge the image inside its bleed frame and anchor one edge */
.ed-photo.zoom-bottom img{position:absolute;left:0;right:0;bottom:0;height:135%!important;width:100%}
.plates figure.zoom-top img{inset:0 0 auto 0;height:130%!important}

/* dark chapter: deeper photo strips so the lower page never reads as empty */
.ed-dark .strip{height:34%}

@media (max-width:780px){
  .ed-photo-right .ed-copy,.ed-photo-left .ed-copy{top:24%}
}

/* ---- Tyler's full-pass notes (2026-08-28) ----
   16: wreath references side by side so a third (60-inch) plate can drop in; 25: distinct house in the strip. */
.plates.auto{grid-template-columns:repeat(auto-fit,minmax(0,1fr))}
.plates figure.zoom-top-lg img{inset:0 0 auto 0;height:150%!important}

/* ============================================================
   Print pass (2026-08-28) — make the PDF match the approved screen design
   ------------------------------------------------------------
   catalog-fixes.css now applies to print as well (`@media screen, print`),
   which restores `container-type:inline-size` on the page so every cqw value
   resolves against the page content box exactly as it does on screen.
   The two things that still need print-specific values:
     1. --page-padding-x/y: the screen values are vw-capped pixels sized for a
        390px page. On an 8.5in page the same design ratio is 7.8% / 7.4% of
        the page width (0.663in / 0.629in), matching catalog.css's base padding.
     2. h1 and .kicker: catalog.css's print block hard-codes pt sizes that win
        over the cqw scale, so both are restated here.
   ============================================================ */
@media print{
  .book-stage{--page-padding-x:0.663in;--page-padding-y:0.629in}
  .catalog-page,.catalog-page[hidden]{
    --page-padding-x:0.663in;
    --page-padding-y:0.629in;
    width:8.5in!important;
    height:11in!important;
    container-type:inline-size;
    transition:none!important;
  }
  .catalog-page h1{font-size:10.513cqw}
  .catalog-page .kicker{font-size:1.744cqw!important}
  .catalog-page,.ed-photo,.plates,.strip,.page-bg,.page-overlay,.ed-dark,.dark,
  .plates figure,.plates figcaption{
    -webkit-print-color-adjust:exact;print-color-adjust:exact
  }
}

/* ---- horizontal white wordmark on the cover and back cover (2026-08-29) ----
   The supplied SVG is the full lockup (wordmark, hat, tagline, light string),
   so the adjacent text span is gone and the image carries the whole mark. */
.cover-brand,.final-brand{display:block;font-size:0}
/* container units, not %: .final-brand is absolutely positioned and shrink-wraps,
   so a percentage width there has no stable containing block and the back-cover
   mark rendered at half the cover's size. */
.cover-brand img,.final-brand img{width:30cqw;height:auto}

/* crop helper for a side bleed: scale up and anchor the top, so an
   uninteresting foreground (driveway, lawn) falls out of the frame. */
.ed-photo.zoom-top img{position:absolute;left:0;right:0;top:0;height:130%!important;width:100%}

/* Tyler wants the contents footnote in the PDF only; it stays hidden on screen. */
@media print{ .page-contents .small-note{display:block} }

/* ============================================================
   Pattern E: the process sequence (page 6) — three horizontal steps
   running down the page, with step 2 holding the three design options
   as one row, because they are variations of a single photograph.
   ============================================================ */
.ed-sequence h2{margin-bottom:.2em}
.ed-sequence .seq-lead{max-width:92%;margin-bottom:0;font-size:1.75cqw}
.ed-sequence .seq{list-style:none;margin:2.4cqw 0 0;padding:0}
.ed-sequence .seq>li{margin-bottom:2.2cqw}
.ed-sequence .seq>li:last-child{margin-bottom:0}
.seq-label{display:flex;align-items:baseline;gap:1.4cqw;margin:0 0 .9cqw!important;
    padding-bottom:.55cqw;border-bottom:1px solid var(--line)}
.seq-label .seq-n{font-family:var(--sans);font-size:1.45cqw;font-weight:700;letter-spacing:.14em;color:var(--red)}
.seq-label b{font-family:var(--sans);font-size:1.7cqw;color:var(--ink)}
.seq-label>span:last-child{flex:1;text-align:right;color:var(--muted);font-size:1.45cqw}
.seq-photo{position:relative;margin:0;height:29cqw;overflow:hidden}
.seq-photo img{width:100%;height:100%!important;object-fit:cover;display:block}
.seq-opts{display:grid;grid-template-columns:repeat(3,1fr);gap:1.2cqw}
.seq-opts figure{margin:0}
.seq-opts img{width:100%;height:23cqw!important;object-fit:cover;display:block}
.seq-opts figcaption{margin-top:.6cqw;font-family:var(--sans);font-size:1.3cqw;color:var(--muted)}
