/* Fairy-tale layer over landing.css: a storybook world. Dusky lavender-plum night sections with gold stars and
   rolling-hill edges, bigger headings with a sparkle, the reader as an open book, and more watercolor friends
   along the edges (a lantern and a sprig on a hill, the moon, a sleeping bunny, a fox on a price card). */

:root { --night: #3e2d47; --wave-h: 72px; }
section { padding: 84px 0; }
.wrap { max-width: 1240px; }
.head { margin-bottom: 44px; }
.head h2 { font-size: 54px; line-height: 1.1; }
.head h2::after {
  content: ""; display: inline-block; width: .62em; height: .62em; margin-left: .18em; vertical-align: .38em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23d9a441' d='M12 1.5l2.2 7.1 7.3 2.4-7.3 2.4L12 20.5l-2.2-7.1L2.5 11l7.3-2.4z'/%3E%3Ccircle cx='20' cy='3.5' r='1.6' fill='%23d9a441'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* dusk: lavender-plum with a scatter of small gold stars, rolling hills top and bottom */
.night {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='220'%3E%3Cg fill='%23e8c27a'%3E%3Cpath opacity='.55' d='M30 30l2 6 6 2-6 2-2 6-2-6-6-2 6-2z'/%3E%3Ccircle opacity='.45' cx='120' cy='18' r='1.6'/%3E%3Cpath opacity='.4' d='M200 70l1.4 4 4 1.4-4 1.4-1.4 4-1.4-4-4-1.4 4-1.4z'/%3E%3Ccircle opacity='.35' cx='70' cy='120' r='1.3'/%3E%3Cpath opacity='.5' d='M150 160l1.8 5 5 1.8-5 1.8-1.8 5-1.8-5-5-1.8 5-1.8z'/%3E%3Ccircle opacity='.4' cx='240' cy='190' r='1.5'/%3E%3Ccircle opacity='.3' cx='20' cy='200' r='1.2'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(110% 70% at 50% 10%, #55405f 0%, #3e2d47 55%, #342640 100%);
  padding: calc(84px + var(--wave-h)) 0;
}
.night::before, .night::after {
  content: ""; position: absolute; left: 0; right: 0; height: var(--wave-h); pointer-events: none; z-index: 1;
  background-repeat: no-repeat; background-size: 100% 100%;
}
.night::before { top: -1px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 72' preserveAspectRatio='none'%3E%3Cpath fill='%23f3e4d0' d='M0 0h1440v40c-120-18-250-30-400-12S800 66 620 52 300 12 0 46z'/%3E%3Cpath fill='%23faf1e4' d='M0 0h1440v22c-180 26-330 30-500 12S620 0 460 14 180 40 0 20z'/%3E%3C/svg%3E"); }
.night::after { bottom: -1px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 72' preserveAspectRatio='none'%3E%3Cpath fill='%23f3e4d0' d='M0 72h1440V30c-160 22-320 30-500 14S600 8 420 20 140 52 0 28z'/%3E%3Cpath fill='%23faf1e4' d='M0 72h1440V50c-210-26-400-30-580-12S520 66 340 58 110 40 0 52z'/%3E%3C/svg%3E"); }
.night .wrap { position: relative; z-index: 2; }

/* the reader as an open book */
.book { border-radius: 8px;
  box-shadow: 0 2px 0 #efe3d0, 0 4px 0 #e5d4bc, 0 6px 0 #dbc6aa, 0 8px 0 #cdb594, 0 34px 70px rgba(0, 0, 0, .42); }
.book::after { width: 64px; background: linear-gradient(90deg, transparent, rgba(80, 50, 30, .22) 48%, rgba(80, 50, 30, .3) 50%, rgba(80, 50, 30, .22) 52%, transparent); }

/* the closing block becomes a dusk scene too */
.close { background: linear-gradient(135deg, #f2a45a 0%, #e57a45 55%, #c9603e 100%); }

/* decorations: each one stands on something and shares the light of the place it is in */
.decor { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
section > .wrap { position: relative; z-index: 2; }
.d { position: absolute; display: block; pointer-events: none; }
.d img { display: block; width: 100%; height: auto; position: relative; z-index: 1; }
/* contact shadow where it touches the ground or the card */
.d::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -6px; height: 22px; z-index: 0;
  background: radial-gradient(closest-side, rgba(45, 25, 15, .38), rgba(45, 25, 15, .12) 60%, transparent); filter: blur(1px); }

/* night: things on the cream hill that closes the section, lit by the night (a touch dimmer and cooler) */
.d.hill { bottom: 10px; }
.d.hill img { filter: brightness(.94) saturate(.95); }
.d-lantern { width: 150px; left: calc(50% - 640px); }
.d-sprig.hill { width: 92px; bottom: 22px; }
.d-sprig.hill::after, .d-moon::after { display: none; }
.d-sprig.l { left: calc(50% - 690px); transform: rotate(-10deg); transform-origin: bottom center; }
.d-sprig.r { right: calc(50% - 700px); transform: scaleX(-1) rotate(-10deg); transform-origin: bottom center; }
.d-bunny { width: 210px; right: calc(50% - 650px); }
/* the lantern and the moon light the night around them */
.d-lantern::before, .d-moon::before { content: ""; position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; }
.d-lantern::before { width: 380px; height: 380px; left: 50%; top: 34%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 196, 110, .38), rgba(255, 170, 80, .14) 45%, transparent); }
/* the moon hangs in the sky with a soft halo */
.d-moon { width: 130px; right: calc(50% - 640px); top: calc(var(--wave-h) + 12px); }
.d-moon::before { width: 300px; height: 300px; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 226, 150, .28), rgba(255, 226, 150, .08) 55%, transparent); }

/* on a card: sits on its top edge */
.card.price, .close { position: relative; }
.d.on-card { z-index: 2; }
.d-fox { width: 150px; right: 6px; top: -98px; }
.d-fox::after { bottom: 2px; left: 6%; right: 6%; height: 16px; }

@media (max-width: 1340px) { .decor { display: none; } }
@media (max-width: 1180px) { .d.on-card { display: none; } }
@media (max-width: 960px) {
  :root { --wave-h: 40px; } section { padding: 64px 0; } .night { padding: calc(64px + var(--wave-h)) 0; } .head h2 { font-size: 34px; }
}
@media (max-width: 560px) { .head h2 { font-size: 30px; } }
