/* ═══ THE WORDMARK, 1999 SOFTWARE-BOX STYLE ═══
   the klickclack "maison maxine" lettering gets the layer styles a late-90s
   cd-rom box put on its type (barbie photo designer, 1999): a glossy
   gradient fill, a bevel and a soft shadow.
   only the effect is new; the font, the size and the heart-dotted i's
   stay exactly as they were. our colours only: blush and berry.

   how it's built: closer to a clinique or cath kidston print than a
   game box. a dusty-rose gloss fill, a fine white top edge so the letters
   look embossed, a thin soft berry outline that keeps them readable on
   white, one gentle step and a soft shadow. each drop-shadow copies
   everything drawn before it, which is how the outline goes all the way
   round; it works on gradient-filled text, where text-shadow can't. */

.sidebar-logo,
.mobile-header .logo{
  --wm-line:1.1em;                       /* the gradient repeats once per line */
  line-height:1.1;
  -webkit-text-fill-color:transparent;   /* beats the inline color on the div */
  background-image:linear-gradient(180deg,#fff7fa 0%,#f8dbe7 30%,#ecb4cb 62%,#dc97b6 100%);
  background-size:100% var(--wm-line);
  background-repeat:repeat;
  -webkit-background-clip:text;background-clip:text;
  text-shadow:none !important;
  padding:0 3px 3px 1px;                 /* room for the extrusion, so nothing clips */
  filter:
    drop-shadow(0 -1px 0 rgba(255,255,255,.95))   /* a fine lit top edge: embossed, not extruded */
    drop-shadow(1px 0 0 rgba(160,82,118,.42))     /* a thin, soft outline in dusty berry */
    drop-shadow(-1px 0 0 rgba(160,82,118,.42))    /* (whole pixels: safari drops half-pixel shadows) */
    drop-shadow(0 1px 0 rgba(160,82,118,.42))
    drop-shadow(0 -1px 0 rgba(160,82,118,.3))
    drop-shadow(1px 1px 0 rgba(140,62,98,.32))    /* one gentle step */
    drop-shadow(0 2px 3px rgba(120,48,84,.16));
}
/* the inner spans carry the same fill, so the smaller first line keeps it */
.sidebar-logo span,
.mobile-header .logo span{-webkit-text-fill-color:transparent}
/* the heart-dotted i's: each ı sits in a position:relative span so its
   heart can float above it. safari paints a positioned span on its own
   layer, outside the parent's text clip, so the parent's gradient never
   reaches it and the letter vanished. the span carries its own copy of
   the fill instead. */
.sidebar-logo span[style*="relative"],
.sidebar-logo span:has(> span > img),
.mobile-header .logo span[style*="relative"],
.mobile-header .logo span:has(> span > img){
  background-image:linear-gradient(180deg,#fff7fa 0%,#f8dbe7 30%,#ecb4cb 62%,#dc97b6 100%);
  background-size:100% 100%;
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;
}

/* the phone header is small (22px): the same, a touch finer */
.mobile-header .logo{
  padding:0 3px 3px 1px;
  filter:
    drop-shadow(0 -1px 0 rgba(255,255,255,.9))
    drop-shadow(1px 0 0 rgba(160,82,118,.45))
    drop-shadow(-1px 0 0 rgba(160,82,118,.45))
    drop-shadow(0 1px 0 rgba(160,82,118,.45))
    drop-shadow(1px 1px 0 rgba(140,62,98,.3))
    drop-shadow(0 1.5px 2px rgba(120,48,84,.15));
}

/* high contrast mode: plain text again */
@media (forced-colors:active){
  .sidebar-logo,.mobile-header .logo,.sidebar-logo span,.mobile-header .logo span{
    -webkit-text-fill-color:CanvasText;background:none;filter:none;
  }
}
