/* Option C, round 2: the stationery kit. Paper, deckled edges, lined envelopes, wax seals and five designs.
   One kit draws every invitation, so a new design is a set of variables and one art file, never new work per order. */
:root{
  --grano:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .32 0 0 0 0 .24 0 0 0 0 .16 0 0 0 .13 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --fibras:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='.012 .09' numOctaves='2' seed='7' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .4 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .1 -.02'/></filter><rect width='100%' height='100%' filter='url(%23f)'/></svg>");
  --verjurado:repeating-linear-gradient(90deg,rgba(255,255,255,.06) 0 1px,transparent 1px 5px),repeating-linear-gradient(90deg,rgba(0,0,0,.06) 0 1px,transparent 1px 34px);
  --lino:repeating-linear-gradient(0deg,rgba(120,90,60,.05) 0 1px,transparent 1px 3px),repeating-linear-gradient(90deg,rgba(120,90,60,.05) 0 1px,transparent 1px 3px);
}

/* ---- Five designs. Each sets its own paper, ink, envelope, liner, seal and type. ---- */
.d-azucena{--papel-c:#FFFCF6;--tinta-c:#6A2733;--acento:#B48A4A;--sobre-c:#D3ABA4;--forro:url(art/forro-sauce.jpg) center/150px;--forro-f:sepia(.15) saturate(.8);--cera:#C4A062;--cinta:linear-gradient(90deg,#C29590,#E8C6C1 28%,#D0A29D 52%,#F2D9D5 70%,#C79A95);--letra-nombre:"Pinyon Script",cursive;--tam-nombre:1.25;--letra-tit:"Cormorant SC",serif;--letra-txt:"Cormorant Garamond",serif;--mantel:#F2E8E1;--reverso:#7A3540;--reverso-t:#FBF0EA}
.d-olivo{--papel-c:#F4F1E6;--tinta-c:#3D4731;--acento:#8C8A5C;--sobre-c:#8E987A;--forro:url(art/forro-sauce.jpg) center/110px;--forro-f:saturate(.7) brightness(1.03);--cera:#E4D9BE;--letra-nombre:"Corinthia",cursive;--tam-nombre:1.5;--letra-tit:"Italiana",serif;--letra-txt:"Cormorant Garamond",serif;--mantel:#E3E1D3;--reverso:#56603F;--reverso-t:#F4F1E6}
.d-lirio{--papel-c:#FCFCF8;--tinta-c:#2F4463;--acento:#8DA0B8;--sobre-c:#AFC0D2;--forro:url(art/forro-sauce.jpg) center/130px;--forro-f:hue-rotate(95deg) saturate(.55) brightness(1.06);--cera:#F2EEE6;--letra-nombre:"Cormorant Garamond",serif;--tam-nombre:1.05;--letra-tit:"Cormorant SC",serif;--letra-txt:"Cormorant Garamond",serif;--mantel:#E4E8EC;--reverso:#2F4463;--reverso-t:#F1F4F8}
.d-rosa{--papel-c:#FFFFFF;--tinta-c:#1E1B1A;--acento:#D5868B;--sobre-c:#EAD3C9;--forro:url(art/rosa-k.webp) center/120px,#F6E7E0;--forro-f:none;--cera:#C9767E;--letra-nombre:"Italiana",serif;--tam-nombre:.8;--letra-tit:"Cormorant SC",serif;--letra-txt:"Cormorant Garamond",serif;--mantel:#F2E9E4;--reverso:#1E1B1A;--reverso-t:#F7EEEA}
.d-tulipan{--papel-c:#F8E2C6;--tinta-c:#8E2A17;--acento:#D9572F;--sobre-c:#C2462B;--forro:repeating-linear-gradient(90deg,#F2C14E 0 14px,#E86A3E 14px 28px,#F8E2C6 28px 42px);--forro-f:none;--cera:#F2C14E;--letra-nombre:"Italiana",serif;--tam-nombre:1.25;--letra-tit:"Italiana",serif;--letra-txt:"Cormorant Garamond",serif;--mantel:#F3E4D3;--reverso:#8E2A17;--reverso-t:#F8E2C6}

/* ---- Paper: grain, fibres and a torn deckle edge. The text stays crisp because only the backing is displaced. ---- */
.papel{position:relative;isolation:isolate;color:var(--tinta-c)}
.papel::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--grano),var(--fibras),var(--papel-c);filter:url(#deckle) drop-shadow(0 1px 1px rgba(60,30,20,.18)) drop-shadow(0 14px 18px rgba(60,30,20,.2))}
.papel.liso::before{filter:drop-shadow(0 1px 1px rgba(60,30,20,.18)) drop-shadow(0 14px 18px rgba(60,30,20,.2))}
.frente{font-variant-numeric:lining-nums}
/* Each design has its own paper: olive on rough handmade, the wedding on smooth thick cotton with painted edges, the party on round-cornered card. */
.d-olivo .papel::before{filter:url(#deckle-fuerte) drop-shadow(0 1px 1px rgba(60,30,20,.18)) drop-shadow(0 14px 18px rgba(60,30,20,.2))}
.d-rosa .papel::before{filter:drop-shadow(0 1px 1px rgba(60,30,20,.2)) drop-shadow(0 14px 18px rgba(60,30,20,.18));box-shadow:inset 0 0 0 3px var(--acento)}
.d-tulipan .papel::before{border-radius:14px;filter:drop-shadow(0 1px 1px rgba(60,30,20,.2)) drop-shadow(0 14px 18px rgba(60,30,20,.18))}
.prensa{text-shadow:0 1px 0 rgba(255,255,255,.75),0 -.5px 0 rgba(0,0,0,.12)}

/* ---- The card front, sized in container units so the same markup works at 120 px or 360 px. ---- */
.frente{container-type:inline-size;position:relative;aspect-ratio:5/7;display:flex;flex-direction:column;align-items:center;text-align:center;font-family:var(--letra-txt)}
.frente>*{position:relative}
.f-evento{margin-top:9cqw;font-family:var(--letra-tit);font-size:5.2cqw;letter-spacing:.24em;text-transform:uppercase;color:var(--tinta-c)}
.f-arte{flex:1;min-height:0;width:100%;display:flex;align-items:center;justify-content:center}
.f-arte img{max-height:100%;width:auto;max-width:100%;object-fit:contain}
.f-nombre{font-family:var(--letra-nombre);font-size:calc(17cqw*var(--tam-nombre)*var(--encoge,1));line-height:1.05;color:var(--tinta-c);white-space:nowrap}
.f-fecha{margin:1cqw 0 9cqw;font-family:var(--letra-tit);font-size:5cqw;letter-spacing:.14em;color:var(--tinta-c)}

/* Azucena: a tipped-in plate inside a blind-debossed frame. */
.d-azucena .f-arte{width:auto;margin:5cqw 14cqw 3cqw;padding:2.2cqw;box-shadow:inset 0 0 0 .5px rgba(92,22,39,.35),inset 1px 1px 2px rgba(0,0,0,.12),inset -1px -1px 1px rgba(255,255,255,.9)}
.d-azucena .f-arte img{width:100%;height:100%;object-fit:cover;object-position:50% 14%;filter:sepia(.25) saturate(.85) brightness(1.04)}
.d-azucena .f-nombre{margin-top:1cqw}

/* Olivo: the branch is printed straight on handmade paper and runs off the top. Heavier deckle. */
.d-olivo .frente{justify-content:flex-end}
.d-olivo .f-arte{position:absolute;top:0;left:0;right:0;height:66%;align-items:flex-start;overflow:hidden}
.d-olivo .f-arte img{height:112%;margin-top:-8cqw;transform:rotate(-14deg)}
.d-olivo .f-evento{order:2;margin:0;font-size:6cqw;letter-spacing:.3em}
.d-olivo .f-nombre{order:1;margin-top:auto}
.d-olivo .f-fecha{order:3;margin-top:2cqw;font-family:var(--letra-txt);font-style:italic;letter-spacing:0;font-size:6.4cqw}

/* Lirio: an arch die-cut card, the plant growing up inside it. No script: a tall italic serif. */
.d-lirio .frente::before{border-radius:50cqw 50cqw 2cqw 2cqw}
.d-lirio .frente.papel::before{filter:drop-shadow(0 1px 1px rgba(30,40,60,.2)) drop-shadow(0 14px 18px rgba(30,40,60,.18))}
.d-lirio .frente::after{content:"";position:absolute;inset:4cqw;border:.5px solid var(--acento);border-radius:46cqw 46cqw 1cqw 1cqw;pointer-events:none}
.d-lirio .f-evento{margin-top:20cqw}
.d-lirio .f-arte{padding:2cqw 18cqw 0}
.d-lirio .f-nombre{font-style:italic;font-weight:400;letter-spacing:-.01em}

/* Rosa: black letterpress, a big Italiana name, the rose cut off at the corner, painted pink edges. */
.d-rosa .frente{align-items:flex-start;text-align:left;justify-content:flex-end}
.d-rosa .frente>p{padding:0 9cqw}
.d-rosa .frente.papel::before{box-shadow:inset 0 0 0 max(3px,1.2cqw) var(--acento)}
.d-rosa .f-arte{position:absolute;top:0;right:0;width:74%;height:62%;justify-content:flex-start;align-items:flex-start;overflow:hidden}
.d-rosa .f-arte img{max-width:none;height:118%;margin:-9cqw 0 0 4cqw}
.d-rosa .f-evento{margin:0 0 3cqw;font-size:4.6cqw}
.d-rosa .f-nombre{white-space:normal;font-size:calc(19cqw*var(--tam-nombre)*var(--encoge,1));line-height:.95;letter-spacing:.02em;text-transform:uppercase}
.d-rosa .f-fecha{margin-bottom:11cqw}

/* Tulipán: a party card. Huge name on top, the flower leaning in from the side, a sun-yellow rule. */
.d-tulipan .frente{align-items:flex-start;text-align:left}
.d-tulipan .frente>p{margin-left:8cqw;margin-right:8cqw}
.d-tulipan .f-evento{margin-top:9cqw;font-size:5.6cqw}
.d-tulipan .f-nombre{font-size:calc(21cqw*var(--tam-nombre)*var(--encoge,1));line-height:.9;margin-top:2cqw}
.d-tulipan .f-arte{position:absolute;right:0;bottom:17cqw;width:60%;height:58%;justify-content:flex-end;align-items:flex-end;overflow:hidden}
.d-tulipan .f-arte img{transform:rotate(12deg)}
.d-tulipan .f-fecha{margin-top:auto;padding-top:2cqw;border-top:1.4cqw solid #F2C14E;font-family:"Cormorant SC",serif;font-size:5.4cqw;letter-spacing:.08em}

/* ---- Envelope with an open, lined flap, for flat lays. ---- */
.bodegon{position:relative;container-type:inline-size;aspect-ratio:1/1.02}
.bodegon .sobre{position:absolute;left:4%;top:31%;width:80%;aspect-ratio:1.42;transform:rotate(-9deg);border-radius:1.2cqw;background:var(--verjurado),var(--grano),var(--sobre-c);box-shadow:0 1px 1px rgba(0,0,0,.15),0 18px 22px -8px rgba(50,25,15,.35)}
.bodegon .sobre::before{content:"";position:absolute;left:0;right:0;bottom:99.5%;height:70%;background:var(--sobre-c);clip-path:polygon(0 100%,50% 4%,100% 100%)}
.bodegon .sobre::after{content:"";position:absolute;left:5%;right:5%;bottom:99.5%;height:62%;background:var(--forro);filter:var(--forro-f);clip-path:polygon(0 100%,50% 6%,100% 100%)}
.bodegon .frente{position:absolute;right:6%;top:10%;width:56%;transform:rotate(4deg)}
.bodegon .sello{position:absolute;left:9%;bottom:6%;width:19%;transform:rotate(-12deg);filter:drop-shadow(0 4px 4px rgba(40,10,10,.35))}
.bodegon .ramita{position:absolute;right:-3%;top:50%;width:26%;transform:rotate(-24deg);opacity:.95;filter:drop-shadow(0 6px 5px rgba(40,30,10,.3))}
.bodegon .cinta{position:absolute;left:41%;top:6%;width:7%;height:84%;transform:rotate(4deg);transform-origin:50% 0;background:linear-gradient(90deg,rgba(255,255,255,.35),rgba(255,255,255,.62) 40%,rgba(255,255,255,.4));-webkit-backdrop-filter:blur(1.5px);backdrop-filter:blur(1.5px);box-shadow:0 0 0 .5px rgba(255,255,255,.6)}

/* Azucena: a Spanish comunión, ivory with dusty rose, a satin ribbon and the name in soft gold foil, kept light. */
.d-azucena .f-nombre{background:linear-gradient(100deg,#A27A38 10%,#E2C78A 38%,#B08840 55%,#D9BC7C 80%,#9C7434);-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:none;filter:drop-shadow(0 .5px 0 rgba(90,60,20,.35))}
.d-azucena .cinta{background:var(--cinta)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;box-shadow:0 1px 2px rgba(90,40,40,.25)!important}
/* Long names shrink so the card keeps its 5:7 shape */
.f-nombre.n-largo{--encoge:.8}
.f-nombre.n-muy-largo{--encoge:.64}
