/* =====================================================================
   IRGENDWANN IST JETZT — "Deluxe" Visual System (v2)
   Editorial · full-bleed watercolor · gold thread · big Fraunces
   Loads after colors_and_type.css. Designed at ~760px artboard width.
   ===================================================================== */

:root {
  --gold-deep:  #C2974A;   /* readable gold for small text / strokes      */
  --gold-foil:  linear-gradient(118deg,#B8862F 0%,#E9C46A 30%,#F6E7B0 48%,#E9C46A 64%,#B8862F 100%); /* @kind color */
  --bordeaux:   #8E2148;   /* deep berry, used very sparingly             */
  --cream-2:    #F7EFE2;   /* alt warm surface                            */
  --ink-2:      #6E5546;   /* warm secondary on cream                     */
}

.jp {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
.jp, .jp *, .jp *::before, .jp *::after { box-sizing: border-box; }
/* warm vignette + faint grain for that printed-paper feel */
.jp::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(130% 90% at 50% -10%, rgba(244,162,97,.10), transparent 55%),
    radial-gradient(100% 70% at 100% 110%, rgba(254,19,95,.06), transparent 60%);
}
.jp.surface-2 { background: var(--cream-2); }

/* ---------------- LEFT BRAND RAIL ---------------- */
.jp .rail {
  position: absolute; left: 0; top: 0; bottom: 0; width: 48px;
  display: flex; align-items: center; justify-content: center;
  z-index: 4;
}
.jp .rail span {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font: 700 10.5px/1 var(--font-body);
  letter-spacing: .42em; text-transform: uppercase;
  color: var(--gold-deep); white-space: nowrap;
}
.jp .pad { position: relative; z-index: 3; height: 100%; padding: 54px 54px 46px 78px; display: flex; flex-direction: column; }

/* ---------------- TYPE ---------------- */
.jp .kicker { font: 700 12px/1 var(--font-body); letter-spacing: .28em; text-transform: uppercase; color: var(--ink-soft); }
.jp .kicker.gold { color: var(--gold-deep); }
.jp .daynum {
  font-family: var(--font-display); font-weight: 600; font-optical-sizing: auto;
  font-size: 130px; line-height: .82; letter-spacing: -.03em; color: var(--ink);
}
.jp .daynum .of { display:inline-block; font-size: 22px; letter-spacing: 0; color: var(--gold-deep); vertical-align: top; margin-top: 14px; }
.jp .display {
  font-family: var(--font-display); font-weight: 600; font-optical-sizing: auto;
  font-size: 50px; line-height: 1.0; letter-spacing: -.018em; color: var(--ink); margin: 0;
}
.jp .display.sm { font-size: 38px; }
.jp .script {
  font-family: var(--font-script); font-style: italic; font-weight: 500;
  font-size: 31px; line-height: 1.15; color: var(--cherry); margin: 0;
}
.jp .lead { font-size: 16.5px; line-height: 1.65; color: var(--ink-2); margin: 0; }
.jp .body { font-size: 15px; line-height: 1.62; color: var(--ink); margin: 0; }
.jp .label-sm { font: 700 11px/1 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }

/* gold foil treatment for tiny marks / numerals */
.jp .foil {
  background: var(--gold-foil); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------------- GOLD RULES & ORNAMENT ---------------- */
.jp .grule { height: 0; border: 0; border-top: 1.5px solid; border-image: linear-gradient(90deg, var(--gold-deep), var(--gold) 45%, transparent) 1; }
.jp .grule.full { border-image: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent) 1; }
.jp .diamond { width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }

/* ---------------- FULL-BLEED HERO ART ---------------- */
.jp .hero { position: absolute; left: 0; right: 0; top: 0; overflow: hidden; z-index: 1; }
.jp .hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jp .hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 46%, rgba(253,248,240,.65) 78%, var(--cream) 100%); }
.jp .hero.soft::after { background: linear-gradient(to bottom, transparent 60%, var(--cream) 100%); }
/* show the FULL image (contain) on cream — for complete compositions */
.jp .hero.show-all img { object-fit: contain; object-position: center top; background: var(--cream); }
.jp .hero.show-all::after { background: linear-gradient(to bottom, transparent 82%, var(--cream) 100%); }

/* inline framed art on cream (contain, blends) */
.jp .art-inline { border-radius: 14px; overflow: hidden; background: var(--cream); box-shadow: var(--shadow-soft); }
.jp .art-inline img { width: 100%; height: 100%; object-fit: contain; display: block; background: var(--cream); }

/* ---------------- WRITING LINES ---------------- */
.jp .lines { display: flex; flex-direction: column; }
.jp .lines .ln { border-bottom: 1px solid var(--line-hair); }

/* ---------------- LOVING TRACKER (gold dots, no scale) ---------------- */
.jp .track { display: flex; flex-direction: column; gap: 16px; }
.jp .track .row { display: flex; align-items: center; gap: 16px; }
.jp .track .row .name { flex: 0 0 130px; font: 600 14px/1.2 var(--font-body); color: var(--ink); }
.jp .track .row .name small { display:block; font-weight:400; font-size:11px; color:var(--ink-faint); letter-spacing:.02em; margin-top:3px; }
.jp .dots { display: flex; gap: 11px; }
.jp .dots i { width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid var(--gold-deep); display: block; }
.jp .dots i.on { background: radial-gradient(circle at 34% 30%, #F6E7B0, #C2974A); border-color: #B8862F; }

/* mood faces / chips */
.jp .chips { display: flex; gap: 10px; flex-wrap: wrap; }
.jp .chip { font: 600 13px var(--font-body); color: var(--ink-2); padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-soft); background: var(--paper); }
.jp .chip.on { color: var(--cherry); border-color: var(--cherry); background: var(--cherry-tint); }

/* ---------------- QUOTE BLOCK ---------------- */
.jp .quote { position: relative; }
.jp .quote .mark { font-family: var(--font-display); font-size: 70px; line-height: .6; color: var(--gold); height: 30px; }
.jp .quote p { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 30px; line-height: 1.22; color: var(--ink); margin: 0; }

/* ---------------- MILESTONE PROGRESS ---------------- */
.jp .progress { display: flex; align-items: center; gap: 0; }
.jp .progress .seg { flex: 1; height: 3px; background: var(--gold-soft); }
.jp .progress .seg.done { background: var(--gold-deep); }
.jp .progress .node { width: 11px; height: 11px; border-radius: 50%; background: var(--gold-deep); flex: 0 0 auto; }
.jp .progress .node.open { background: var(--paper); border: 2px solid var(--gold-deep); }

/* footer */
.jp .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 16px; }
.jp .foot .brand { font: 700 11px/1 var(--font-body); letter-spacing: .14em; text-transform: none; color: var(--ink-faint); }
.jp .foot .pageno { font-family: var(--font-display); font-style: italic; font-size: 17px; color: var(--gold-deep); }

/* the signature gold thread (SVG) */
.jp .thread { position: absolute; z-index: 2; pointer-events: none; }
.jp .thread path { fill: none; stroke: var(--gold); stroke-width: 1.6; }
.jp .thread .node { fill: var(--gold-deep); stroke: var(--cream); stroke-width: 2.5; }
