/* ==========================================================================
   Footer signoff: the big "Drawlead" wordmark at the top of every footer.
   Markup: templates/partials/footer-signoff.php. Linked from layout-start.php.

   Dark by default (the Home 10, About and blog footers). `.dl-sign--light`
   is the version on the white footer in partials/footer.php.

   Hover: the letter under the pointer grows a little and turns pure white
   (brand green on the light footer, where white would vanish). Only on
   devices that really hover, and without the grow when the visitor asks
   for reduced motion.

   The wordmark and tagline are divs, not p, so `.h10 .foot p` (home10.css)
   does not shrink them.
   ========================================================================== */
.dl-sign{
  --sign-top:rgba(255,255,255,.5);
  --sign-bot:rgba(255,255,255,.04);
  --sign-hover:#fff;
  --sign-strong:#fff;
  --sign-text:#aeb8b3;
  --sign-dot:rgba(255,255,255,.1);
  --sign-line:rgba(255,255,255,.1);
  position:relative;
  margin-bottom:40px;
  padding-top:clamp(8px,2.6vw,44px);
  border-bottom:1px solid var(--sign-line);
  text-align:center;
}
/* a faint dot grid behind the word, and a soft green glow on the right */
.dl-sign::before,.dl-sign::after{content:"";position:absolute;inset:0;pointer-events:none}
.dl-sign::before{
  background-image:radial-gradient(var(--sign-dot) 1px,transparent 1.2px);
  background-size:30px 30px;
  -webkit-mask-image:radial-gradient(ellipse 60% 70% at 50% 45%,#000,transparent 75%);
  mask-image:radial-gradient(ellipse 60% 70% at 50% 45%,#000,transparent 75%);
}
/* the glow fades out well inside the box, so it never shows a straight edge */
.dl-sign::after{background:radial-gradient(ellipse 24% 46% at 78% 58%,rgba(50,180,111,.13),transparent 100%)}

.dl-sign__w{
  position:relative;z-index:1;
  font-family:'Montserrat','Inter',ui-sans-serif,system-ui,sans-serif;
  font-size:clamp(3rem,19.5vw,18.5rem);
  line-height:.8;
  font-weight:700;
  white-space:nowrap;
  -webkit-user-select:none;user-select:none;
}
/* The padding gives each letter's gradient room for ascenders and side
   bearings (background-clip:text only paints inside the box); the equal
   negative margin cancels it, minus .06em of tracking split over both sides. */
.dl-sign__w span{
  position:relative;
  display:inline-block;
  padding:.1em .08em;
  margin:-.1em -.11em;
  background:linear-gradient(180deg,var(--sign-top) 10%,var(--sign-bot) 80%);
  -webkit-background-clip:text;background-clip:text;
  color:transparent;-webkit-text-fill-color:transparent;
  transform-origin:50% 88%;
  transition:transform .5s cubic-bezier(.2,.8,.2,1),color .35s ease,-webkit-text-fill-color .35s ease;
}
@media (hover:hover){
  .dl-sign__w span:hover{z-index:1;transform:scale(1.08);color:var(--sign-hover);-webkit-text-fill-color:var(--sign-hover)}
}
@media (prefers-reduced-motion:reduce){
  .dl-sign__w span{transition:color .2s ease,-webkit-text-fill-color .2s ease}
  .dl-sign__w span:hover{transform:none}
}

.dl-sign__l{
  position:relative;z-index:1;
  display:flex;flex-wrap:wrap;justify-content:center;gap:4px 12px;
  padding:clamp(18px,2.4vw,30px) 0 clamp(30px,3.4vw,46px);
  font-family:'Inter',ui-sans-serif,system-ui,sans-serif;
  font-size:1rem;line-height:1.5;
  color:var(--sign-text);
}
.dl-sign__l b{color:var(--sign-strong);font-weight:600}

/* ---------- on the white footer (partials/footer.php) ---------- */
.dl-sign--light{
  --sign-top:rgba(50,180,111,.34);
  --sign-bot:rgba(50,180,111,.03);
  --sign-hover:#32b46f;
  --sign-strong:#111112;
  --sign-text:#70706c;
  --sign-dot:rgba(17,17,18,.08);
  --sign-line:#dcdcda;
  grid-column:1/-1;
  margin-bottom:0;
  padding-top:0;
  border-bottom-width:1.5px;
}
.dl-sign--light::after{content:none}

/* on phones the word is too short for the dot grid; it read as a stray row of dots */
@media (max-width:640px){
  .dl-sign::before{content:none}
}

/* ---------- light band + rocket (dark footers: Home 10, About, blog) ----------
   The signoff sits on a white strip that runs edge to edge above the dark
   footer; the letters are flat and soft. Two canvases from footer-rocket.js
   sit just behind and just in front of the letters, so the rocket can weave
   in and out of the word. */
.dl-sign:not(.dl-sign--light){
  --sign-hover:#1d7a49;
  --sign-strong:#111827;
  --sign-text:#5b6472;
  --sign-dot:rgba(15,23,42,.08);
  --sign-line:transparent;
  margin-top:-40px;
  padding-top:clamp(36px,4.4vw,72px);
  background:#fcfcfd;
  box-shadow:0 0 0 100vmax #fcfcfd;
  clip-path:inset(0 -100vmax);
}
.dl-sign:not(.dl-sign--light)::after{content:none}
.dl-sign:not(.dl-sign--light) .dl-sign__w span{background:none;color:#e1e8e4;-webkit-text-fill-color:#e1e8e4;text-shadow:0 1px 0 #fff,0 -1px 0 rgba(15,23,42,.04)}
@media (hover:hover){
  .dl-sign:not(.dl-sign--light) .dl-sign__w span:hover{color:var(--sign-hover);-webkit-text-fill-color:var(--sign-hover)}
}
.dl-rk{position:absolute;left:-4%;top:-16%;width:108%;height:134%;pointer-events:none}
.dl-rk--back{z-index:-1}
.dl-rk--front{z-index:2}
.dl-sign--light .dl-rk{display:none}
