/* The Qarabağ carpet weave and its palette (2026-11-14). It was the «Xalı» Premium design until 2026-11-19; «Vağzalı»
   still hangs this carpet in its doorway and loads this file before its own (flagship_shell 'also' => ['xali'], wrapper
   classes "xali vagzali"). The carpet is drawn in layers inside a size container (cqw = the carpet's width): guard
   stripe, main border, guard stripe, field, so it fits any screen. Tiles come from xali_tiles() as custom properties
   (xali_style()). Sections: assets/css/flagship-sections.css with this palette. */

.xali {
  --red: #8e1b22; --red2: #a8282d; --ind: #1c2550; --ivo: #efe3c8; --saf: #d9a441; --grn: #2f6b57;
  --dk: var(--ind); --dk-2: #151c3e; --dk-size: 64px 64px;
  --dk-img: radial-gradient(120% 60% at 50% 0%, rgba(255, 190, 110, .1), transparent 60%);
  --lt: #f1e6cf;
  --lt-img: repeating-linear-gradient(0deg, rgba(120, 70, 30, .05) 0 1px, transparent 1px 4px), repeating-linear-gradient(90deg, rgba(120, 70, 30, .04) 0 1px, transparent 1px 4px);
  --iv: #f1e6cf; --iv-2: rgba(241, 230, 207, .78); --ink: #2a1712; --ink-2: rgba(42, 23, 18, .74); --rb: var(--red);
  --gd: #e3b052; --gd-dk: #8e5f12; --gd-ink: #241505; --nt: #0f1430; --field: #f1e6cf; --field-ink: #2a1712;
  --fd: "Fraunces", Georgia, serif; --fb: "Fraunces", Georgia, serif; --fu: "Onest", "Onest Fallback", system-ui, sans-serif;
  --foil: linear-gradient(115deg, #b8873a 0%, #f6dc9c 30%, #d39e45 52%, #f8e7b8 74%, #a8772c 100%);
  --mark: polygon(50% 0, 64% 14%, 86% 14%, 86% 36%, 100% 50%, 86% 64%, 86% 86%, 64% 86%, 50% 100%, 36% 86%, 14% 86%, 14% 64%, 0 50%, 14% 36%, 14% 14%, 36% 14%);
}
/* the dark sheets carry a woven guard stripe at the top */
.xali .ip-date::before, .xali .ip-place::before, .xali .ip-rsvp::before, .xali .inv-sec::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px;
  background: var(--xl-guard) 0 0 / 12px 12px repeat-x; }
.xali .ip-letter, .xali .ip-prog, .xali .ip-dress { border-top: 6px solid var(--red); }
.xali .ip-h, .xali .ip-ev-t, .xali .inv-h { font-weight: 300; }

/* ================= the carpet ================= */
.xl-carpet { position: relative; container-type: size; }
.xl-cp { position: absolute; inset: 0; overflow: hidden; background: #141a3a; color: var(--ivo); }
.xl-guard, .xl-border, .xl-field { position: absolute; }
.xl-guard { inset: 1.4cqw; background:
  var(--xl-guard) 0 0 / 2.2cqw 2.2cqw repeat-x, var(--xl-guard) 0 100% / 2.2cqw 2.2cqw repeat-x,
  var(--xl-guardv) 0 0 / 2.2cqw 2.2cqw repeat-y, var(--xl-guardv) 100% 0 / 2.2cqw 2.2cqw repeat-y, var(--ivo); }
.xl-border { inset: 3.6cqw; background:
  var(--xl-borderh) 0 0 / 8.4cqw 8.4cqw repeat-x, var(--xl-borderh) 0 100% / 8.4cqw 8.4cqw repeat-x,
  var(--xl-border) 0 50% / 8.4cqw 8.4cqw repeat-y, var(--xl-border) 100% 50% / 8.4cqw 8.4cqw repeat-y, var(--ind); }
.xl-guard--in { inset: 12cqw; }
/* the field: madder with its small motifs, and the gentle bands of hand-dyed wool (abrash) */
.xl-field { inset: 14.2cqw; overflow: hidden; background:
  linear-gradient(180deg, transparent 0 18%, rgba(0, 0, 0, .07) 18% 24%, transparent 24% 52%, rgba(255, 90, 60, .06) 52% 57%, transparent 57% 80%, rgba(0, 0, 0, .06) 80% 86%, transparent 86%),
  var(--xl-field) 50% 50% / 15cqw 15cqw, var(--red); }
.xl-corner { position: absolute; width: 22cqw; height: 22cqw; }
.xl-corner svg { display: block; width: 100%; height: 100%; }
.xl-corner--tl { left: 0; top: 0; }
.xl-corner--tr { right: 0; top: 0; transform: scaleX(-1); }
.xl-corner--bl { left: 0; bottom: 0; transform: scaleY(-1); }
.xl-corner--br { right: 0; bottom: 0; transform: scale(-1); }
.xl-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.xl-med { position: relative; width: min(70cqw, 50cqh * 112 / 162); aspect-ratio: 112 / 162; }
.xl-med-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; filter: drop-shadow(0 0 .2cqw rgba(0, 0, 0, .35)); }
/* the pile: a fine grid of knots and a soft light across the wool */
.xl-pile { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(160deg, rgba(255, 220, 170, .1), transparent 40%, rgba(0, 0, 0, .12)),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .07) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .05) 0 1px, transparent 1px 3px); }
