/* qc-seasonal 1.0 · Quiet Coast Designs. Styles for the dressing qc-seasonal.js adds. Everything is scoped to
   [data-qcs] elements and html[data-qc-season]; a site can restyle any of it with its own rules. */

[data-qcs]{pointer-events:none}
.qcs-banner{pointer-events:auto}

/* Banner: the season's message or offer. Sites can set --qcs-banner-* per theme in their palette. */
.qcs-banner{display:flex;align-items:center;justify-content:center;gap:10px 22px;flex-wrap:wrap;padding:10px max(16px,4vw);
  background:var(--qcs-banner-bg,#1f2a24);color:var(--qcs-banner-ink,#f7f4ec);font-size:14.5px;line-height:1.4;text-align:center;position:relative;z-index:4}
.qcs-banner p{margin:0;display:flex;align-items:center;justify-content:center;gap:8px 10px;flex-wrap:wrap}
.qcs-banner strong{font-weight:700}
.qcs-banner .qcs-text{opacity:.88}
.qcs-banner a{color:var(--qcs-banner-accent,#f2c14e);font-weight:700;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.qcs-banner a:hover{text-decoration-thickness:2px}
.qcs-banner a:focus-visible{outline:2px solid currentColor;outline-offset:3px;border-radius:2px}
.qcs-icon{display:inline-flex;width:22px;height:20px;flex:none}
.qcs-icon svg{width:100%;height:100%}

[data-qc-season=autumn]{--qcs-banner-bg:#7a3413;--qcs-banner-ink:#fff4e6;--qcs-banner-accent:#ffd08a}
[data-qc-season=halloween]{--qcs-banner-bg:#1c1320;--qcs-banner-ink:#f1e8d6;--qcs-banner-accent:#f4a865}
[data-qc-season=bonfire]{--qcs-banner-bg:#0f1830;--qcs-banner-ink:#f5f5ef;--qcs-banner-accent:#f2c14e}
[data-qc-season=christmas]{--qcs-banner-bg:#14452f;--qcs-banner-ink:#fbf6ea;--qcs-banner-accent:#f2c14e}
[data-qc-season=newyear]{--qcs-banner-bg:#0f1830;--qcs-banner-ink:#f5f5ef;--qcs-banner-accent:#f2c14e}
[data-qc-season=stdavid]{--qcs-banner-bg:#1f5f35;--qcs-banner-ink:#fffbe6;--qcs-banner-accent:#ffd43b}
[data-qc-season=christmas] .qcs-banner{background-image:radial-gradient(circle at 12% 30%,rgba(255,255,255,.12) 0 1.5px,transparent 2px),radial-gradient(circle at 63% 70%,rgba(255,255,255,.1) 0 1.5px,transparent 2px),radial-gradient(circle at 88% 20%,rgba(255,255,255,.12) 0 1px,transparent 1.5px);background-size:90px 40px,130px 44px,70px 38px}
[data-qc-season=newyear] .qcs-banner,[data-qc-season=bonfire] .qcs-banner{background-image:radial-gradient(circle at 20% 40%,rgba(242,193,78,.25) 0 1px,transparent 1.5px),radial-gradient(circle at 70% 60%,rgba(255,255,255,.22) 0 1px,transparent 1.5px);background-size:60px 30px,84px 36px}

/* The strip that hangs under the header (leaves, fairy lights, bunting). */
.qcs-strip{position:absolute;left:0;right:0;top:100%;height:34px;margin-top:-3px;z-index:6;overflow:visible}
.qcs-strip svg{display:block;overflow:visible}
.qcs-bulb path{filter:drop-shadow(0 0 4px var(--c)) drop-shadow(0 0 9px var(--c));animation:qcs-twinkle 2.4s ease-in-out infinite;animation-delay:inherit}
.qcs-bulb{animation:none}
@keyframes qcs-twinkle{0%,100%{opacity:1}45%{opacity:.45;filter:none}}
.qcs-strip-leaves{animation:qcs-sway 7s ease-in-out infinite;transform-origin:50% 0}
@keyframes qcs-sway{0%,100%{transform:rotate(0)}50%{transform:rotate(.25deg) translateY(1px)}}

/* Halloween: a cobweb in the header's corner and a spider on a thread. */
.qcs-cobweb{position:absolute;top:0;left:0;width:clamp(64px,8vw,118px);aspect-ratio:1;color:var(--qcs-web,#132c2d);opacity:.3;z-index:6}
.qcs-cobweb svg,.qcs-spider svg,.qcs-burst svg,.qcs-brand svg,.qcs-foot svg{display:block;width:100%;height:100%}
.qcs-spider{position:absolute;top:0;left:46%;width:22px;height:77px;color:var(--qcs-web,#132c2d);transform-origin:50% 0;animation:qcs-spider 9s ease-in-out infinite;z-index:6}
@keyframes qcs-spider{0%,100%{transform:translateY(-22px) rotate(2deg)}50%{transform:translateY(6px) rotate(-2deg)}}

/* New Year and Bonfire Night: two bursts in the header. */
.qcs-burst{position:absolute;z-index:6;animation:qcs-burst 3.6s ease-out infinite}
.qcs-burst-a{top:8px;left:40%;width:62px;height:62px}
.qcs-burst-b{top:36px;left:52%;width:42px;height:42px;animation-delay:1.8s}
@keyframes qcs-burst{0%{transform:scale(.3);opacity:0}12%{opacity:1}55%{transform:scale(1);opacity:.95}100%{transform:scale(1.08);opacity:0}}

/* Beside the logo and the footer name. */
.qcs-brand{position:absolute;left:calc(100% + 8px);top:-6px;width:46px;height:24px;z-index:6}
[data-qc-season=christmas] .qcs-brand,[data-qc-season=stdavid] .qcs-brand{width:40px;height:30px;top:-12px}
[data-qc-season=stdavid] .qcs-brand{width:26px;height:34px;top:-8px}
.qcs-brand .qcs-tw,.qcs-foot .qcs-tw{animation:qcs-glint 2.4s ease-in-out infinite}
.qcs-brand .qcs-tw:nth-child(2){animation-delay:.8s}.qcs-brand .qcs-tw:nth-child(3){animation-delay:1.6s}
@keyframes qcs-glint{0%,100%{opacity:.5}50%{opacity:1}}
.qcs-foot{display:inline-block;width:1.1em;height:1em;margin-left:.35em;vertical-align:-.1em}

/* "Try a season" bar (tryBar): at the very top of the page, for this visit only. */
.qcs-try{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 14px;padding:10px max(16px,3vw);
  background:#11181a;color:#f4f4ef;font:600 14px/1.3 system-ui,-apple-system,"Segoe UI",sans-serif;position:relative;z-index:2147483001}
.qcs-try p{margin:0}
.qcs-try-seasons{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}
.qcs-try button{font:inherit;font-size:13px;color:inherit;background:transparent;border:1.5px solid rgba(244,244,239,.35);border-radius:999px;padding:6px 12px;cursor:pointer;line-height:1.2}
.qcs-try button:hover{border-color:#f4f4ef}
.qcs-try button[aria-pressed=true]{background:#f4f4ef;color:#11181a;border-color:#f4f4ef}
.qcs-try button:focus-visible,.qcs-try a:focus-visible{outline:2px solid #f2c14e;outline-offset:2px}
.qcs-try a{color:#f2c14e;text-underline-offset:3px}
.qcs-try .qcs-try-stop{border-color:transparent;text-decoration:underline;text-underline-offset:3px}

/* The motion layer sits over the page but never takes clicks. */
.qcs-canvas{position:fixed;inset:0;width:100vw;height:100vh;z-index:2147483000;pointer-events:none}

/* Changing theme crossfades (browsers with view transitions). */
::view-transition-old(root),::view-transition-new(root){animation-duration:.7s}

@media (max-width:650px){
  .qcs-spider{left:58%;height:58px}
  .qcs-burst-a{left:auto;right:12px;top:6px;width:46px;height:46px}
  .qcs-burst-b{left:auto;right:58px;top:30px;width:30px;height:30px}
  .qcs-brand{width:36px;height:19px;left:calc(100% + 5px)}
  .qcs-banner{font-size:13.5px;gap:4px 14px}
  .qcs-try{display:grid;grid-template-columns:1fr auto;gap:8px 10px;padding:8px 0 10px;font-size:13px}
  .qcs-try-lead{padding-left:14px;align-self:center}
  .qcs-try .qcs-try-stop{margin-right:8px}
  .qcs-try-seasons{grid-column:1/-1;grid-row:2;flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;padding:0 14px;scrollbar-width:none}
  .qcs-try-seasons::-webkit-scrollbar{display:none}
  .qcs-try-seasons button{flex:none;padding:6px 11px}
  .qcs-try .qcs-try-link{display:none}
}
@media (prefers-reduced-motion:reduce){
  .qcs-spider,.qcs-burst,.qcs-bulb path,.qcs-strip-leaves,.qcs-brand .qcs-tw,.qcs-foot .qcs-tw{animation:none}
  .qcs-burst{opacity:.9}
}
