/* p-kop.css: "Etiketten". One large woven label sewn onto a band of the kitchen-hands photograph. Classes kp-. */

.kp-stage {
  position: relative; display: grid; align-items: center; justify-items: end;
  min-height: calc(100vh - var(--banner) - var(--bar)); padding: var(--s7) var(--gut); overflow: hidden;
}
.kp-band { position: absolute; inset: 0; overflow: hidden; background: var(--surface); }
.kp-band picture { display: block; width: 100%; height: 100%; }
/* 112 % wide, right-aligned: the woman, her hands and the book sit left of the label; the label covers the window */
.kp-band-img { width: 112%; max-width: none; height: 100%; margin-left: -12%; object-fit: cover; object-position: 50% 50%; transform-origin: 50% 50%; will-change: transform; }

/* the label: woven paper with folded ends, a red woven title strip, sewn on with a running stitch */
.kp-label {
  --pad: 40px; position: relative; z-index: 2; width: 540px; padding: var(--pad) calc(var(--pad) + 6px) calc(var(--pad) + 4px);
  color: var(--ink); border-radius: 2px;
  background:
    repeating-linear-gradient(90deg, rgba(43,36,27,.03) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.18) 0 1px, transparent 1px 2px),
    linear-gradient(180deg, rgba(43,36,27,.10) 0 3px, transparent 3px calc(100% - 3px), rgba(43,36,27,.12) calc(100% - 3px)),
    var(--paper);
  box-shadow: 0 1px 0 rgba(0,0,0,.35), 0 2px 3px rgba(0,0,0,.25), 0 30px 50px -24px rgba(0,0,0,.8);
}
/* folded short ends: the label is sewn down over them */
.kp-label::before, .kp-label::after { content: ""; position: absolute; top: 0; bottom: 0; width: 12px; pointer-events: none; }
.kp-label::before { left: 0; background: linear-gradient(90deg, rgba(43,36,27,.28), rgba(43,36,27,.06) 70%, rgba(255,255,255,.25)); }
.kp-label::after { right: 0; background: linear-gradient(270deg, rgba(43,36,27,.28), rgba(43,36,27,.06) 70%, rgba(255,255,255,.25)); }
.kp-stitch { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
/* hand-sewn running stitch: each stitch its own short thread with a needle hole at each end (js builds them) */
.kp-st { stroke: #7f2229; stroke-width: 2.8; stroke-linecap: round; fill: none; }
.kp-st-hi { stroke: rgba(246,239,226,.35); stroke-width: .8; stroke-linecap: round; fill: none; }
.kp-hole { fill: rgba(43,36,27,.45); }
.kp-needle-steel { stroke: #a9a9a2; stroke-width: 2.2; stroke-linecap: round; fill: none; }
.kp-needle-eye { stroke: #6f6f69; stroke-width: 1; fill: none; }
.kp-needle-tail { stroke: var(--red-dk); stroke-width: 2.2; stroke-linecap: round; fill: none; }

.kp-woven {
  position: relative; z-index: 2; margin: 0 0 var(--s5); padding: 18px 22px 20px; color: var(--paper-hi); border-radius: 2px;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.08) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px),
    var(--red);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}
.kp-h1 { font: 500 48px/1.02 var(--f-display); letter-spacing: -0.01em; }
.kp-lead { position: relative; z-index: 2; font-size: 18px; line-height: 27px; margin-bottom: var(--s5); }

.kp-book { position: relative; z-index: 2; display: grid; grid-template-columns: 168px 1fr; gap: var(--s5); align-items: start; margin-bottom: var(--s5); }
.kp-cover { width: 168px; height: auto; box-shadow: 0 1px 0 rgba(0,0,0,.25), 0 10px 18px -8px rgba(0,0,0,.5); }
.kp-title { font: italic 500 28px/1.1 var(--f-display); }
.kp-sub { font: italic 500 20px/1.2 var(--f-display); color: var(--ink-soft); margin-top: 2px; }
.kp-author { font: 500 14px/20px var(--f-chrome); letter-spacing: .02em; margin: var(--s3) 0 var(--s3); }
/* facts woven in: each on its own weft row */
.kp-rows { list-style: none; margin: 0; padding: 0; font: 500 13px/18px var(--f-chrome); letter-spacing: .02em; color: var(--ink); }
.kp-rows li { position: relative; padding: 7px 0 8px 14px; }
.kp-rows li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; border-radius: 2px; background: var(--yarn-rust); opacity: .75; }
.kp-rows li:nth-child(2n)::before { background: var(--yarn-moss); }
.kp-rows li + li { border-top: 1px solid rgba(87,76,61,.18); }

.kp-buy { position: relative; z-index: 2; display: flex; align-items: center; gap: var(--s5); margin-bottom: var(--s3); }
.kp-price { font: 500 40px/1 var(--f-display); }
.kp-btn { min-height: 52px; padding: 0 32px; font-size: 16px; }
.kp-note { position: relative; z-index: 2; font: 400 15px/22px var(--f-text); color: var(--ink-soft); }
.kp-alt { position: relative; z-index: 2; margin-top: var(--s2); }
.kp-adl { display: inline-block; padding: 12px 0 4px; min-height: 44px; color: var(--ink); text-decoration: none; font: 500 15px/22px var(--f-chrome); letter-spacing: .02em; border-bottom: 1.5px solid var(--rust); }
.kp-adl:hover { border-bottom-width: 3px; }
.kp-adl:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }

/* below the band: the cloth's tied fringe, then the publisher's line --------------------------------- */
.kp-fringe { position: relative; padding: 0 var(--gut) var(--s9); }
.kp-tassels { position: relative; height: 150px; margin: 0 calc(var(--gut) * -1) var(--s6); display: flex; justify-content: space-between; padding: 0 6px; overflow: hidden; }
.kp-tassels::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px; z-index: 1; background: repeating-linear-gradient(90deg, var(--moss) 0 6px, #B8AA8C 6px 9px, var(--rust) 9px 15px, #cfc3a6 15px 18px); box-shadow: 0 3px 4px rgba(0,0,0,.45); }
.kp-tassel { margin-top: 10px; width: 4px; opacity: .9; border-radius: 0 0 3px 3px; transform-origin: 50% 0; will-change: transform; box-shadow: 1px 2px 3px rgba(0,0,0,.4); }
.kp-gift { font: italic 500 clamp(30px, 3.4vw, 50px)/1.2 var(--f-display); max-width: 22em; }
.kp-more { margin-top: var(--s6); }
.kp-more .stitch-link { padding: 14px 0 6px; }

/* below 1180: band on top, the label sewn across its lower edge */
@media (max-width: 1179px) {
  .kp-stage { display: block; justify-items: normal; min-height: 0; padding: 0 0 var(--s7); overflow: visible; }
  .kp-band { position: relative; inset: auto; height: clamp(168px, 30vw, 360px); }
  .kp-band-img { width: 100%; margin-left: 0; object-position: 50% 70%; }
  .kp-label { width: auto; max-width: 600px; margin: -72px var(--gut) 0 auto; }
}
@media (max-width: 760px) {
  .kp-band { height: 168px; }
  .kp-band-img { object-position: 50% 50%; }
  .kp-label { --pad: 24px; margin: -44px 12px 0; padding: 24px 26px 26px; }
  .kp-woven { padding: 12px 14px 14px; margin-bottom: var(--s3); }
  .kp-h1 { font-size: 38px; line-height: 1.02; }
  .kp-lead { font-size: 16px; line-height: 23px; margin-bottom: var(--s3); }
  .kp-book { grid-template-columns: 96px 1fr; gap: var(--s4); margin-bottom: var(--s3); }
  .kp-cover { width: 96px; }
  .kp-title { font-size: 22px; } .kp-sub { font-size: 17px; }
  .kp-author { font-size: 13px; margin: 4px 0 6px; }
  .kp-rows { font-size: 12px; line-height: 16px; }
  .kp-rows li { padding: 4px 0 5px 12px; }
  .kp-buy { gap: var(--s4); margin-bottom: var(--s2); }
  .kp-price { font-size: 34px; }
  .kp-btn { flex: 1; justify-content: center; }
  .kp-note { font-size: 14px; line-height: 20px; }
  .kp-adl { padding-top: 10px; }
  .kp-tassels { height: 96px; }
  .kp-tassel { width: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .kp-band-img, .kp-tassel { transform: none !important; }
  .kp-needle { display: none; }
}
