/*
 * Seasonal looks (functions.php: lmb_seasons(), Aspect → Sezon). Loaded only
 * while a season is on; everything hangs on body.lmb-sezon--<slug>.
 *
 * What a season changes, and what it keeps: the paper, the type, the logo,
 * the jar labels and the stamps stay; the palette, the announcement strip,
 * the tape on the pinned photos, a garland under the header, an ornament by
 * the logo, a small mark before each handwritten note, the footer's sprig
 * and, for snow, leaves and confetti, a light fall over the page change.
 *
 * The drawings are in ../img/seasons/; bump the ?v= on their URLs when one changes,
 * or browsers keep the old one.
 */

/* the slots every season fills */
.lmb-sezon .lmb-announce { background: var(--lmb-announce-bg); color: var(--lmb-announce-fg); }

/* a garland hanging under the header, across the page */
.lmb-sezon .lmb-header { position: relative; z-index: 4; }
.lmb-sezon .lmb-header::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(-1 * var(--lmb-garland-h) + 6px);
	height: var(--lmb-garland-h);
	background: var(--lmb-garland) repeat-x center top / var(--lmb-garland-size);
	pointer-events: none;
}
.lmb-sezon .lmb-masthead { border-bottom: 0; }
/* room under the header for the garland, so it never covers a breadcrumb or a title */
.lmb-sezon .lmb-header { margin-bottom: calc(var(--lmb-garland-h) - 0.5rem) !important; }

/* an ornament beside the logo */
.lmb-sezon .lmb-brand { position: relative; }
.lmb-sezon .lmb-brand::after {
	content: "";
	position: absolute;
	top: 0.2rem;
	right: -2.5rem;
	width: 2.4rem;
	height: 2.4rem;
	background: var(--lmb-ornament) no-repeat center / contain;
	transform: rotate(8deg);
}

/* the tape on the pinned photos, and a small decoration on their corner */
.lmb-sezon .lmb-pinned::before,
.lmb-sezon .lmb-story__photo::before { background: var(--lmb-tape); }
.lmb-sezon .lmb-pinned::after,
.lmb-sezon .lmb-story__photo::after {
	content: "";
	position: absolute;
	z-index: 1;
	right: -1.4rem;
	bottom: 2.2rem;
	width: 4.2rem;
	height: 4.2rem;
	background: var(--lmb-corner) no-repeat center / contain;
	transform: rotate(-8deg);
	pointer-events: none;
}

/* a mark before each handwritten note */
.lmb-sezon .lmb-eyebrow::before {
	content: "";
	display: inline-block;
	width: 1.05em;
	height: 1.05em;
	margin-right: 0.35em;
	vertical-align: -0.18em;
	background: var(--lmb-mark) no-repeat center / contain;
}

/* the footer's sprig */
.lmb-sezon .lmb-footer::before { width: 44px; height: 36px; background: var(--lmb-footer-mark) no-repeat center / contain; }

/*
 * snow, leaves or confetti, falling slowly over the page: one tall layer that
 * slides down by exactly one tile, on the compositor (transform), so nothing
 * is repainted while it moves
 */
.lmb-sezon--craciun::after,
.lmb-sezon--iarna::after,
.lmb-sezon--toamna::after,
.lmb-sezon--anul-nou::after {
	content: "";
	position: fixed;
	left: 0;
	right: 0;
	top: -360px;
	height: calc(100vh + 720px);
	z-index: 40;
	pointer-events: none;
	background: var(--lmb-fall) repeat 0 0 / 360px 360px;
	opacity: 0.32;
	will-change: transform;
	animation: lmb-fall 40s linear infinite;
}
@keyframes lmb-fall {
	from { transform: translate3d(0, 0, 0); }
	to { transform: translate3d(0, 360px, 0); }
}
@media (prefers-reduced-motion: reduce) {
	.lmb-sezon::after { animation: none !important; }
}

@media (max-width: 781px) {
	.lmb-sezon .lmb-brand::after { width: 1.9rem; height: 1.9rem; right: -2rem; }
	.lmb-sezon .lmb-pinned::after, .lmb-sezon .lmb-story__photo::after { width: 3.2rem; height: 3.2rem; right: -0.6rem; }
}
@media (max-width: 599px) {
	/* on phones the search is the header's last row: keep the garland clear of it */
	.lmb-sezon .lmb-masthead .lmb-search { margin-bottom: 1.2rem !important; }
	.lmb-sezon .lmb-header::after { background-size: calc(var(--lmb-garland-w) * 0.75) auto; }
}


/* halloween */
.lmb-sezon--halloween {
	--wp--preset--color--paper: #f3ece0; --lmb-paper: #f3ece0;
	--wp--preset--color--wax: #e8dcc6; --lmb-wax: #e8dcc6;
	--wp--preset--color--forest: #4a2a55; --lmb-forest: #4a2a55;
	--wp--preset--color--forest-deep: #331b3b; --lmb-forest-deep: #331b3b;
	--wp--preset--color--sage: #7a5a84; --lmb-sage: #7a5a84;
	--wp--preset--color--fern: #ece2d4; --lmb-fern: #ece2d4;
	--wp--preset--color--mov: #b4531a; --lmb-mov: #b4531a;
	--wp--preset--color--lilac: #f6e4d4; --lmb-lilac: #f6e4d4;
	--lmb-announce-bg: #2e1d33;
	--lmb-announce-fg: #f0a35a;
	--lmb-tape: repeating-linear-gradient(90deg, rgba(221,117,41,.85) 0 10px, rgba(46,29,51,.85) 10px 20px);
	--lmb-garland: url("../img/seasons/garland-halloween.svg?v=4");
	--lmb-garland-size: 160px 44px;
	--lmb-garland-w: 160px;
	--lmb-garland-h: 44px;
	--lmb-ornament: url("../img/seasons/pumpkin.svg?v=4");
	--lmb-corner: url("../img/seasons/web.svg?v=4");
	--lmb-mark: url("../img/seasons/mark-halloween.svg?v=4");
	--lmb-footer-mark: url("../img/seasons/bat.svg?v=4");
	--lmb-fall: none;
}

/* toamna */
.lmb-sezon--toamna {
	--wp--preset--color--paper: #f6f0e4; --lmb-paper: #f6f0e4;
	--wp--preset--color--wax: #ebdfc8; --lmb-wax: #ebdfc8;
	--wp--preset--color--forest: #7f3a16; --lmb-forest: #7f3a16;
	--wp--preset--color--forest-deep: #5e290e; --lmb-forest-deep: #5e290e;
	--wp--preset--color--sage: #9a6a3a; --lmb-sage: #9a6a3a;
	--wp--preset--color--fern: #efe5d3; --lmb-fern: #efe5d3;
	--wp--preset--color--mov: #9c6b10; --lmb-mov: #9c6b10;
	--wp--preset--color--lilac: #f7e8d2; --lmb-lilac: #f7e8d2;
	--lmb-announce-bg: #7f3a16;
	--lmb-announce-fg: #fbead0;
	--lmb-tape: rgba(201,96,30,.55);
	--lmb-garland: url("../img/seasons/garland-toamna.svg?v=4");
	--lmb-garland-size: 120px 40px;
	--lmb-garland-w: 120px;
	--lmb-garland-h: 40px;
	--lmb-ornament: url("../img/seasons/acorn.svg?v=4");
	--lmb-corner: url("../img/seasons/leaf.svg?v=4");
	--lmb-mark: url("../img/seasons/mark-toamna.svg?v=4");
	--lmb-footer-mark: url("../img/seasons/leaf.svg?v=4");
	--lmb-fall: url("../img/seasons/fall-leaves.svg?v=4");
}

/* craciun */
.lmb-sezon--craciun {
	--wp--preset--color--paper: #f6f3ea; --lmb-paper: #f6f3ea;
	--wp--preset--color--wax: #e9e3d0; --lmb-wax: #e9e3d0;
	--wp--preset--color--forest: #12512a; --lmb-forest: #12512a;
	--wp--preset--color--forest-deep: #0b3a1d; --lmb-forest-deep: #0b3a1d;
	--wp--preset--color--sage: #4f8a5f; --lmb-sage: #4f8a5f;
	--wp--preset--color--fern: #e4ece0; --lmb-fern: #e4ece0;
	--wp--preset--color--mov: #b3262e; --lmb-mov: #b3262e;
	--wp--preset--color--lilac: #f7e4e1; --lmb-lilac: #f7e4e1;
	--lmb-announce-bg: #a3222a;
	--lmb-announce-fg: #fff6e8;
	--lmb-tape: repeating-linear-gradient(-45deg, rgba(179,38,46,.85) 0 7px, rgba(255,254,248,.92) 7px 14px);
	--lmb-garland: url("../img/seasons/garland-craciun.svg?v=4");
	--lmb-garland-size: 120px 40px;
	--lmb-garland-w: 120px;
	--lmb-garland-h: 40px;
	--lmb-ornament: url("../img/seasons/ornament-craciun.svg?v=4");
	--lmb-corner: url("../img/seasons/holly.svg?v=4");
	--lmb-mark: url("../img/seasons/mark-craciun.svg?v=4");
	--lmb-footer-mark: url("../img/seasons/holly.svg?v=4");
	--lmb-fall: url("../img/seasons/fall-snow.svg?v=4");
}

/* anul-nou */
.lmb-sezon--anul-nou {
	--wp--preset--color--paper: #f5f3ec; --lmb-paper: #f5f3ec;
	--wp--preset--color--wax: #e9e4d4; --lmb-wax: #e9e4d4;
	--wp--preset--color--forest: #1d2b4f; --lmb-forest: #1d2b4f;
	--wp--preset--color--forest-deep: #121c36; --lmb-forest-deep: #121c36;
	--wp--preset--color--sage: #5b6b94; --lmb-sage: #5b6b94;
	--wp--preset--color--fern: #e7e9f0; --lmb-fern: #e7e9f0;
	--wp--preset--color--mov: #9a7420; --lmb-mov: #9a7420;
	--wp--preset--color--lilac: #f3ecd8; --lmb-lilac: #f3ecd8;
	--lmb-announce-bg: #1d2b4f;
	--lmb-announce-fg: #e8c870;
	--lmb-tape: linear-gradient(90deg, rgba(196,154,44,.75), rgba(232,200,112,.9), rgba(196,154,44,.75));
	--lmb-garland: url("../img/seasons/garland-anul-nou.svg?v=4");
	--lmb-garland-size: 140px 46px;
	--lmb-garland-w: 140px;
	--lmb-garland-h: 46px;
	--lmb-ornament: url("../img/seasons/sparkle.svg?v=4");
	--lmb-corner: url("../img/seasons/sparkle.svg?v=4");
	--lmb-mark: url("../img/seasons/mark-anul-nou.svg?v=4");
	--lmb-footer-mark: url("../img/seasons/sparkle.svg?v=4");
	--lmb-fall: url("../img/seasons/fall-confetti.svg?v=4");
}

/* iarna */
.lmb-sezon--iarna {
	--wp--preset--color--paper: #f5f7f6; --lmb-paper: #f5f7f6;
	--wp--preset--color--wax: #e3e9ea; --lmb-wax: #e3e9ea;
	--wp--preset--color--forest: #25506e; --lmb-forest: #25506e;
	--wp--preset--color--forest-deep: #183a52; --lmb-forest-deep: #183a52;
	--wp--preset--color--sage: #5f87a3; --lmb-sage: #5f87a3;
	--wp--preset--color--fern: #e6eef3; --lmb-fern: #e6eef3;
	--wp--preset--color--mov: #5a6aa6; --lmb-mov: #5a6aa6;
	--wp--preset--color--lilac: #e7edf6; --lmb-lilac: #e7edf6;
	--lmb-announce-bg: #dfe9f3;
	--lmb-announce-fg: #25506e;
	--lmb-tape: rgba(169,195,216,.6);
	--lmb-garland: url("../img/seasons/garland-iarna.svg?v=4");
	--lmb-garland-size: 175px 45px;
	--lmb-garland-w: 175px;
	--lmb-garland-h: 45px;
	--lmb-ornament: url("../img/seasons/snowflake.svg?v=4");
	--lmb-corner: url("../img/seasons/snowflake.svg?v=4");
	--lmb-mark: url("../img/seasons/mark-iarna.svg?v=4");
	--lmb-footer-mark: url("../img/seasons/snowflake.svg?v=4");
	--lmb-fall: url("../img/seasons/fall-snow.svg?v=4");
}

/* dragobete */
.lmb-sezon--dragobete {
	--wp--preset--color--paper: #fbf6f3; --lmb-paper: #fbf6f3;
	--wp--preset--color--wax: #f0e3df; --lmb-wax: #f0e3df;
	--wp--preset--color--forest: #8c2f4e; --lmb-forest: #8c2f4e;
	--wp--preset--color--forest-deep: #6a2039; --lmb-forest-deep: #6a2039;
	--wp--preset--color--sage: #b0607e; --lmb-sage: #b0607e;
	--wp--preset--color--fern: #f6e9ee; --lmb-fern: #f6e9ee;
	--wp--preset--color--mov: #c0436f; --lmb-mov: #c0436f;
	--wp--preset--color--lilac: #fbe5ee; --lmb-lilac: #fbe5ee;
	--lmb-announce-bg: #f6d5e1;
	--lmb-announce-fg: #8c2f4e;
	--lmb-tape: repeating-linear-gradient(90deg, rgba(232,161,187,.8) 0 9px, rgba(255,254,248,.9) 9px 18px);
	--lmb-garland: url("../img/seasons/garland-dragobete.svg?v=4");
	--lmb-garland-size: 120px 40px;
	--lmb-garland-w: 120px;
	--lmb-garland-h: 40px;
	--lmb-ornament: url("../img/seasons/hearts.svg?v=4");
	--lmb-corner: url("../img/seasons/heart.svg?v=4");
	--lmb-mark: url("../img/seasons/mark-dragobete.svg?v=4");
	--lmb-footer-mark: url("../img/seasons/heart.svg?v=4");
	--lmb-fall: none;
}

/* martisor */
.lmb-sezon--martisor {
	--wp--preset--color--paper: #fbfaf5; --lmb-paper: #fbfaf5;
	--wp--preset--color--wax: #eeebe0; --lmb-wax: #eeebe0;
	--wp--preset--color--forest: #10641a; --lmb-forest: #10641a;
	--wp--preset--color--forest-deep: #0b4a13; --lmb-forest-deep: #0b4a13;
	--wp--preset--color--sage: #5f8a66; --lmb-sage: #5f8a66;
	--wp--preset--color--fern: #ecf2e6; --lmb-fern: #ecf2e6;
	--wp--preset--color--mov: #c0283a; --lmb-mov: #c0283a;
	--wp--preset--color--lilac: #fbe8ea; --lmb-lilac: #fbe8ea;
	--lmb-announce-bg: #fffefa;
	--lmb-announce-fg: #c0283a;
	--lmb-tape: repeating-linear-gradient(-45deg, rgba(192,40,58,.85) 0 6px, rgba(255,254,248,.95) 6px 12px);
	--lmb-garland: url("../img/seasons/garland-martisor.svg?v=4");
	--lmb-garland-size: 120px 48px;
	--lmb-garland-w: 120px;
	--lmb-garland-h: 48px;
	--lmb-ornament: url("../img/seasons/snowdrop.svg?v=4");
	--lmb-corner: url("../img/seasons/snowdrops.svg?v=4");
	--lmb-mark: url("../img/seasons/mark-martisor.svg?v=4");
	--lmb-footer-mark: url("../img/seasons/snowdrop.svg?v=4");
	--lmb-fall: none;
}

/* paste */
.lmb-sezon--paste {
	--wp--preset--color--paper: #fbf8ee; --lmb-paper: #fbf8ee;
	--wp--preset--color--wax: #efe9d4; --lmb-wax: #efe9d4;
	--wp--preset--color--forest: #3b7334; --lmb-forest: #3b7334;
	--wp--preset--color--forest-deep: #2a5626; --lmb-forest-deep: #2a5626;
	--wp--preset--color--sage: #7a9a5a; --lmb-sage: #7a9a5a;
	--wp--preset--color--fern: #eef4e3; --lmb-fern: #eef4e3;
	--wp--preset--color--mov: #8a5bb5; --lmb-mov: #8a5bb5;
	--wp--preset--color--lilac: #f2eaf9; --lmb-lilac: #f2eaf9;
	--lmb-announce-bg: #f2eaf9;
	--lmb-announce-fg: #7a4ba5;
	--lmb-tape: repeating-linear-gradient(90deg, rgba(246,220,122,.85) 0 9px, rgba(196,227,200,.85) 9px 18px, rgba(217,196,239,.85) 18px 27px);
	--lmb-garland: url("../img/seasons/garland-paste.svg?v=4");
	--lmb-garland-size: 160px 50px;
	--lmb-garland-w: 160px;
	--lmb-garland-h: 50px;
	--lmb-ornament: url("../img/seasons/bunny.svg?v=4");
	--lmb-corner: url("../img/seasons/flowers.svg?v=4");
	--lmb-mark: url("../img/seasons/mark-paste.svg?v=4");
	--lmb-footer-mark: url("../img/seasons/egg.svg?v=4");
	--lmb-fall: none;
}

/* vara */
.lmb-sezon--vara {
	--wp--preset--color--paper: #fbf7ec; --lmb-paper: #fbf7ec;
	--wp--preset--color--wax: #f0e6cf; --lmb-wax: #f0e6cf;
	--wp--preset--color--forest: #0f6767; --lmb-forest: #0f6767;
	--wp--preset--color--forest-deep: #0a4b4b; --lmb-forest-deep: #0a4b4b;
	--wp--preset--color--sage: #4f9a94; --lmb-sage: #4f9a94;
	--wp--preset--color--fern: #e2f1ee; --lmb-fern: #e2f1ee;
	--wp--preset--color--mov: #c4651a; --lmb-mov: #c4651a;
	--wp--preset--color--lilac: #fdf0d8; --lmb-lilac: #fdf0d8;
	--lmb-announce-bg: #0f6767;
	--lmb-announce-fg: #fdf0d8;
	--lmb-tape: repeating-linear-gradient(90deg, rgba(31,138,138,.8) 0 8px, rgba(253,240,216,.9) 8px 16px);
	--lmb-garland: url("../img/seasons/garland-vara.svg?v=4");
	--lmb-garland-size: 120px 36px;
	--lmb-garland-w: 120px;
	--lmb-garland-h: 36px;
	--lmb-ornament: url("../img/seasons/sun.svg?v=4");
	--lmb-corner: url("../img/seasons/shell.svg?v=4");
	--lmb-mark: url("../img/seasons/mark-vara.svg?v=4");
	--lmb-footer-mark: url("../img/seasons/shell.svg?v=4");
	--lmb-fall: none;
}

/* The three big holidays get a decorated strip under the carousel. */
.lmb-sezon--halloween .lmb-hero,
.lmb-sezon--craciun .lmb-hero,
.lmb-sezon--paste .lmb-hero {
	background: var(--lmb-strip) repeat-x left bottom / auto var(--lmb-strip-h);
	padding-bottom: calc(var(--wp--preset--spacing--50) + var(--lmb-strip-h));
}
.lmb-sezon--halloween { --lmb-strip: url("../img/seasons/strip-halloween.svg?v=4"); --lmb-strip-h: 84px; --lmb-garland-size: 200px 50px; --lmb-garland-w: 200px; --lmb-garland-h: 50px; }
.lmb-sezon--craciun { --lmb-strip: url("../img/seasons/strip-craciun.svg?v=4"); --lmb-strip-h: 64px; }
.lmb-sezon--paste { --lmb-strip: url("../img/seasons/strip-paste.svg?v=4"); --lmb-strip-h: 80px; --lmb-garland-size: 200px 54px; --lmb-garland-w: 200px; --lmb-garland-h: 54px; }

/* Mărțișor's strip is white like the paper: a red-and-white edge marks it. */
.lmb-sezon--martisor .lmb-announce { border-bottom: 3px solid transparent; border-image: repeating-linear-gradient(90deg, #c0283a 0 10px, #fffefa 10px 20px) 3; }
.lmb-sezon--martisor { --lmb-garland-size: 240px 52px; --lmb-garland-w: 240px; --lmb-garland-h: 52px; }
