/* Digital Projections: the printing page (printing.html), after css/base.css and css/site.css. The opening on the
   About's cream paper (its words, Pelland Advertising's products, and a few rack cards fanned out beside them), then a
   short preview of the print work on the portfolio's warm stone paper, a shelf a product, each piece opening larger in
   a viewer, and last the way on to pelland.com for a quote, on the header's navy. */

/* ---------- the opening ---------- */
.site-main .print-hero { padding: 88px 0 76px; }
.print-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 48px clamp(48px, 6vw, 110px); align-items: center; max-width: 1520px; }
.print-hero .eyebrow { color: #b22234; font-size: 16px; font-weight: 400; }
/* "In partnership with", as wide as the logo under it (250px): 16px, spaced to fill it (about the 0.08em of the other
   labels), justified to take up what's left; the box is wider by one letter-space, the space after the last letter */
.print-intro .eyebrow { --ls: 1.35px; width: calc(250px + var(--ls)); font-size: 16px; letter-spacing: var(--ls); text-align: justify; text-align-last: justify; }
.print-hero h1 {
  margin: 0; font-family: 'Projections Serif', Georgia, serif; font-weight: 600; font-size: clamp(42px, 4.8vw, 78px); line-height: 1.08;
  letter-spacing: 0; color: #2b2577;
}
@media (max-width: 1099px) { .print-hero h1 { font-weight: 650; } }
.print-intro > p:not(.eyebrow) { max-width: 40em; margin: 22px 0 0; color: #37324c; font-size: 22px; line-height: 1.7; }
.print-intro > p.print-lead { margin-top: 30px; color: #2b2577; font-size: clamp(23px, 1.85vw, 26.5px); line-height: 1.6; }
.print-intro > p.print-lead + p.print-lead { margin-top: 22px; }   /* the same gap as between the paragraphs below */
.print-intro p a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: rgba(43,37,119,0.45); }
.print-intro p a:hover { text-decoration-color: #2b2577; text-decoration-thickness: 2px; }
/* Pelland Advertising's logo (pelland.com's own, 500 x 64), under the label, linked to pelland.com: 250px wide, as always */
.print-partner { display: inline-block; margin: 2px 0 26px; border-radius: 3px; line-height: 0; transition: transform 0.3s cubic-bezier(.22,1,.36,1), box-shadow 0.3s ease; }
.print-partner img { display: block; width: 250px; height: auto; border-radius: 3px; }
@media (hover: hover) { .print-partner:hover { transform: translateY(-2px); box-shadow: 0 10px 18px -10px rgba(51,42,33,0.55); } }
@media (prefers-reduced-motion: reduce) { .print-partner { transition: none; } }
.site-main .print-hero .print-partner:focus-visible { outline-offset: 3px; }
.print-products { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.print-products li {
  padding: 8px 16px; border: 1px solid rgba(43,37,119,0.28); border-radius: 999px; background: rgba(255,255,255,0.4);
  color: #2b2577; font-size: 17.5px; font-weight: 500; line-height: 1.2;
}
.print-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.print-actions .btn { margin-top: 0; font-size: 16.5px; border-radius: 2px; transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.print-btn { background: #2b2577; color: #fff !important; }
.print-btn:hover { background: #16123a; }
.print-btn-line { background: transparent; color: #2b2577 !important; box-shadow: inset 0 0 0 1px rgba(43,37,119,0.45); }
.print-btn-line:hover { background: rgba(43,37,119,0.06); box-shadow: inset 0 0 0 1px #2b2577; }
.site-main .print-hero :focus-visible { outline-color: #2b2577; }

/* A few rack cards, fanned from their foot like a hand of cards; drawn apart a little more under the pointer */
.print-fan { position: relative; width: 100%; max-width: 470px; aspect-ratio: 470 / 520; justify-self: center; }
.print-fan-card {
  position: absolute; left: 50%; bottom: 4%; width: 43%; height: auto; margin-left: -21.5%; border-radius: 3px;
  transform-origin: 50% 100%; transition: transform 0.6s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 1px 2px rgba(51,42,33,0.25), 0 22px 34px -16px rgba(51,42,33,0.6);
}
.print-fan-card:nth-child(1) { transform: translateX(-34%) rotate(-12deg); }
.print-fan-card:nth-child(2) { z-index: 1; width: 46%; margin-left: -23%; transform: translateY(-2%) rotate(-1deg); }   /* (the one in front: a little larger) */
.print-fan-card:nth-child(3) { transform: translateX(34%) rotate(11deg); }
@media (hover: hover) {
  .print-fan:hover .print-fan-card:nth-child(1) { transform: translateX(-42%) rotate(-15deg); }
  .print-fan:hover .print-fan-card:nth-child(2) { transform: translateY(-4%) rotate(-1deg); }
  .print-fan:hover .print-fan-card:nth-child(3) { transform: translateX(42%) rotate(14deg); }
}
@media (prefers-reduced-motion: reduce) { .print-fan-card { transition: none; } }

/* six points about the design and printing, under a fine rule */
.print-specs {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 48px; max-width: 1520px; margin: 64px auto 0; padding: 30px 0 0;
  border-top: 1px solid rgba(43,37,119,0.16); list-style: none;
}
.print-specs li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; color: #48435f; font-size: 18.5px; line-height: 1.55; }
.print-spec-icon {   /* each point's own line icon, in the navy, on a soft round tile */
  box-sizing: content-box; width: 22px; height: 22px; padding: 11px; border-radius: 50%; color: #2b2577; background: rgba(43,37,119,0.08);
}
.print-specs li > span { padding-top: 7px; }   /* the first line centred on the icon */
.print-specs strong { color: #2b2577; font-weight: 600; }

@media (max-width: 1099px) {
  .print-hero-in { grid-template-columns: 1fr; }
  .print-fan { max-width: 400px; }
  .print-specs { grid-template-columns: 1fr; gap: 24px; margin-top: 48px; }
}
@media (max-width: 820px) {
  .site-main .print-hero { padding: 56px 0 60px; }
  .print-intro > p:not(.eyebrow) { font-size: 20px; }
  .print-products li { padding: 7px 14px; font-size: 16px; }
  .print-fan { max-width: 320px; }
}

/* ---------- the samples: a shelf a product, the pieces on each at one height, side by side ---------- */
.site-main .print-samples {
  --paper: linear-gradient(180deg, #f2ebdf, #e4d8c6);   /* the portfolio's warm stone paper */
  --ink: 51,42,33; --ink-text: #4e4336; --ink-soft: #74685a; --label: #b22234; --tone: #2a2370;
  --gap: 20px; --hmax: 440px;                           /* between the pieces; the tallest a shelf's pieces get */
  padding: 92px 0 96px; border-top: 0; background: var(--placard-sheen), var(--paper); box-shadow: var(--placard-tb);
}
.print-samples .wrap > * { max-width: 1520px; margin-left: auto; margin-right: auto; }
.print-samples .eyebrow { color: var(--label); font-size: 16px; font-weight: 400; }
.print-samples h2 { max-width: none; color: rgb(var(--ink)); margin-bottom: 0; }   /* (one line where it fits, not .site h2's 18em) */
.print-samples-lede { max-width: 44em; margin: 22px 0 0; color: var(--ink-text); font-size: 21px; line-height: 1.65; }
.print-samples-head { margin-bottom: 26px; }
.print-samples a, .print-quote .print-call { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.print-samples-lede a { color: var(--tone); text-decoration-color: rgba(42,35,112,0.45); }
.print-samples-lede a:hover { text-decoration-color: var(--tone); text-decoration-thickness: 2px; }
.print-samples :focus-visible { outline-color: rgb(var(--ink)); }

.print-shelf {
  display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 24px clamp(36px, 4vw, 72px); align-items: start;
  padding: 48px 0; border-top: 1px solid rgba(var(--ink),0.13); scroll-margin-top: 90px;
}
.print-shelf:last-of-type { padding-bottom: 0; }
.print-shelf-text h3 { margin: 0 0 10px; color: rgb(var(--ink)); font-size: 24px; }
.print-shelf-text p { margin: 0; color: var(--ink-text); font-size: 18.5px; line-height: 1.6; }
.print-samples .print-more {   /* (.print-samples: over .site a's inherited colour) */
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--tone); font-size: 17.5px; font-weight: 500;
  text-decoration-color: rgba(42,35,112,0.4) !important;
}
.print-more svg { transition: transform 0.25s cubic-bezier(.22,1,.36,1); }
.print-samples .print-more:hover { color: var(--label); }
.print-more:hover svg { transform: translate(2px, -2px); }

/* Each piece's share of the width is its width-to-height (--ar), so a shelf's pieces all come out the same height;
   the shelf stops widening once they reach --hmax tall (--sum: the shelf's --ar added up, --n: its pieces) */
.print-row {
  display: flex; gap: var(--gap); align-items: flex-start;
  max-width: calc(var(--sum) * var(--hmax) + (var(--n) - 1) * var(--gap));
}
#postcards .print-row { --hmax: 300px; }   /* (postcards are small things: no larger than the rack cards are wide) */
.print-sample { flex: var(--ar) 1 0; min-width: 0; margin: 0; }
.print-shot {
  display: block; width: 100%; aspect-ratio: var(--ar); padding: 0; border: 0; border-radius: 3px; overflow: hidden; cursor: zoom-in;
  background: #fff; line-height: 0; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 1px 2px rgba(var(--ink),0.2), 0 14px 26px -14px rgba(var(--ink),0.55);
  transition: transform 0.45s cubic-bezier(.22,1,.36,1), box-shadow 0.45s cubic-bezier(.22,1,.36,1);
}
.print-shot img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) {
  .print-shot:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(var(--ink),0.2), 0 24px 34px -16px rgba(var(--ink),0.6); }
}
@media (prefers-reduced-motion: reduce) { .print-shot { transition: none; } }
.print-shot:focus-visible { outline: 2px solid rgb(var(--ink)); outline-offset: 3px; }
.print-sample figcaption { margin-top: 12px; color: rgb(var(--ink)); font-size: 16.5px; font-weight: 500; line-height: 1.35; }
.print-sample figcaption span { display: block; margin-top: 2px; color: var(--ink-soft); font-size: 14.5px; font-weight: 400; }

@media (max-width: 1099px) {
  .print-shelf { grid-template-columns: 1fr; padding: 40px 0; }
  .print-shelf-text p { max-width: 40em; }
}
/* Phones: each shelf scrolls sideways, edge to edge, its pieces at one height (--h) */
@media (max-width: 760px) {
  .site-main .print-samples { padding: 64px 0 72px; }
  .print-samples-lede { font-size: 19px; }
  .print-row {
    --h: 200px; max-width: none; margin: 0 -20px; padding: 0 20px 10px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding: 0 20px; scrollbar-width: thin;
  }
  #rack-cards .print-row { --h: 370px; }   /* the rack cards: tall and narrow, so taller (the others: the next one peeks in) */
  .print-sample { flex: none; width: calc(var(--ar) * var(--h)); scroll-snap-align: start; }
  .print-sample figcaption { font-size: 15px; }             /* (as before the text went up: the rack cards' are narrow) */
  .print-sample figcaption span { font-size: 13.5px; }
}

/* ---------- the viewer (as the portfolio's) ---------- */
.print-viewer {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 28px 84px;
  background: rgba(14,8,16,0.88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.print-viewer[hidden] { display: none; }
.print-viewer figure { margin: 0; max-width: 100%; }
.print-viewer img {
  display: block; width: auto; height: auto; max-width: min(100%, 1400px); max-height: calc(100vh - 130px); max-height: calc(100dvh - 130px);
  border-radius: 4px; box-shadow: 0 30px 70px -20px rgba(0,0,0,0.75);
}
.print-viewer figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 16px; }
.print-viewer-name { font: 600 20.5px/1.3 'Wix Madefor Display', system-ui, sans-serif; color: var(--accent); }
.print-viewer-kind { font-size: 16.5px; color: rgba(248,245,250,0.7); }
.print-viewer-close, .print-viewer-step {
  position: absolute; display: grid; place-items: center; padding: 0; border-radius: 50%; cursor: pointer; color: #fff;
  border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.08); transition: background-color 0.2s ease;
}
.print-viewer-close:hover, .print-viewer-step:hover { background: rgba(255,255,255,0.17); }
.print-viewer-close:focus-visible, .print-viewer-step:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.print-viewer-close { top: 18px; right: 18px; width: 46px; height: 46px; }
.print-viewer-step { top: 50%; width: 48px; height: 48px; transform: translateY(-50%); }
.print-viewer-step[data-step="-1"] { left: 18px; }
.print-viewer-step[data-step="1"] { right: 18px; }
@media (max-width: 860px) {
  .print-viewer { padding: 76px 14px 24px; }
  .print-viewer img { max-height: calc(100vh - 200px); max-height: calc(100dvh - 200px); }
  .print-viewer-step { top: auto; bottom: 18px; transform: none; width: 44px; height: 44px; }
  .print-viewer figure { padding-bottom: 56px; }
}

/* ---------- on to pelland.com for a quote, on the header's navy ---------- */
.site-main .print-quote { padding: 88px 0; border-top: 0; background: linear-gradient(180deg, rgb(17,14,44), rgb(24,20,62)); }
.print-quote-in {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 36px clamp(48px, 6vw, 110px); align-items: center; max-width: 1520px;
}
.print-quote h2 { margin-bottom: 0; color: var(--accent); }
.print-quote .eyebrow { font-size: 16px; }
.print-quote .lead { max-width: 38em; color: rgba(248,245,250,0.88); font-size: 22.5px; }
.print-quote .lead a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: rgba(238,236,193,0.45); }
.print-quote .lead a:hover { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.print-quote-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.print-quote-actions .btn { margin-top: 0; font-size: 16.5px; border-radius: 2px; }
.print-quote .print-call { color: var(--accent); font-size: 19.5px; text-decoration-color: rgba(238,236,193,0.45); }
.print-quote .print-call:hover { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.print-where { margin: 4px 0 0; color: rgba(248,245,250,0.9); font-size: 16.5px; }
@media (max-width: 1099px) { .print-quote-in { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .site-main .print-quote { padding: 64px 0 72px; } .print-quote .lead { font-size: 20px; } }
