/* Quiet light for the Legion homepage. Brand colors only.
   Grain, a top-left cobalt light, stacked shadows, and the ink tile. */

:root {
  --elev-1: 0 1px 1px rgb(23 23 33 / .04), 0 2px 6px rgb(23 23 33 / .04), 0 12px 24px rgb(82 102 235 / .06);
  --elev-2: 0 1px 1px rgb(23 23 33 / .05), 0 4px 10px rgb(23 23 33 / .05), 0 16px 32px rgb(23 23 33 / .06), 0 28px 56px rgb(82 102 235 / .08);
  --elev-3: 0 1px 2px rgb(23 23 33 / .06), 0 8px 16px rgb(23 23 33 / .07), 0 24px 40px rgb(23 23 33 / .08), 0 42px 72px rgb(82 102 235 / .14);
}

body.lx-quiet {
  background-color: var(--canvas);
  background-image: url("grain.webp");
  background-size: 180px 180px;
}
body.lx-quiet .band {
  background-color: var(--control);
  background-image: url("grain.webp");
  background-size: 180px 180px;
}
:root[data-theme="dark"] body.lx-quiet .band {
  background-color: #131320;
}

body.lx-quiet .hero-stage::before,
body.lx-quiet .hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
body.lx-quiet .hero-stage::before {
  z-index: 0;
  background-image: url("grain.webp");
  background-size: 180px 180px;
}
body.lx-quiet .hero-stage::after {
  z-index: 0;
  background:
    radial-gradient(32% 42% at 0% 0%, rgb(82 102 235 / .28), transparent 64%),
    linear-gradient(125deg, rgb(243 246 249 / .18) 0%, transparent 22%);
}
:root[data-theme="dark"] body.lx-quiet .hero-stage::after {
  background: radial-gradient(32% 42% at 0% 0%, rgb(82 102 235 / .22), transparent 64%);
}

body.lx-quiet .section .card,
body.lx-quiet .section .quote {
  background:
    radial-gradient(120% 80% at 0% 0%, rgb(255 255 255 / .95), transparent 46%),
    linear-gradient(180deg, #fff, rgb(243 246 249 / .35) 28%, var(--card));
  box-shadow: inset 0 1px 0 #fff, var(--elev-2);
}
:root[data-theme="dark"] body.lx-quiet .section .card,
:root[data-theme="dark"] body.lx-quiet .section .quote {
  background:
    radial-gradient(90% 70% at 0% 0%, rgb(237 237 243 / .10), transparent 48%),
    var(--card);
  box-shadow: inset 0 1px 0 rgb(237 237 243 / .16), var(--elev-2);
}

body.lx-quiet .section .card.ink-tile {
  isolation: isolate;
  color: var(--product-text);
  padding-right: 32%;
  background:
    radial-gradient(90% 70% at 0% 0%, rgb(237 237 243 / .10), transparent 48%),
    var(--product);
  box-shadow: inset 0 1px 0 rgb(237 237 243 / .18), var(--elev-2), 0 24px 48px rgb(82 102 235 / .14);
}
body.lx-quiet .section .card.ink-tile .k,
body.lx-quiet .section .card.ink-tile p { color: var(--product-muted); }
body.lx-quiet .section .card.ink-tile h3 { color: var(--product-text); }
body.lx-quiet .section .card.ink-tile > * { position: relative; z-index: 1; }
body.lx-quiet .section .card.ink-tile::before { z-index: 2; }
:root[data-theme="dark"] body.lx-quiet .section .card.ink-tile {
  color: var(--product-text);
  background:
    radial-gradient(90% 70% at 0% 0%, rgb(237 237 243 / .10), transparent 48%),
    var(--product);
  box-shadow: inset 0 1px 0 rgb(237 237 243 / .18), var(--elev-2), 0 24px 48px rgb(82 102 235 / .14);
}
body.lx-quiet .section .card.ink-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  /* The temple is on the right of the plate. Anchor there so cover keeps it in the open strip. */
  background: url("parthenon.webp") right center / cover no-repeat;
  opacity: .8;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 66%, #171721 96%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 66%, #171721 96%);
}
