/* ════════════════════════════════════════════════════════
   Pixl Realm — the logo (supplied by Brian, 2026-11-08)

   WRITTEN BY make-logo-css.py FROM THE SUPPLIED SVG FILES. Do not edit by
   hand; change the files in content/pixl-realm/branding/_PixlRealm_Logo/ and
   run the script again.

   Each lockup is the supplied drawing, cropped to its artwork, split into its
   two inks: a (the R's frame and "PIXL") and b (the R's pixel and leg, and
   "REALM"). The inks are painted with --logo-a and --logo-b from tokens.css:
   Full color in the color look, White in the black and white look.

   Use (needs tokens.css):
     <span class="pixl-logo" role="img" aria-label="Pixl Realm"></span>      horizontal
     <span class="pixl-logo stacked" role="img" aria-label="Pixl Realm"></span>
     <span class="pixl-logo icon" role="img" aria-label="Pixl Realm"></span>
     <span class="pixl-logo wordmark" role="img" aria-label="Pixl Realm"></span>   the words alone
   The R mark and the words can be used apart: .icon above or beside .wordmark.
   Size: set the height with --logo-h (default 2rem), or add .sm, .lg, .xl.
   It never grows wider than its box; the drawing then scales down to fit.
   Colorway on one logo: add .full, .blue, .light-blue, .greyscale, .black or
   .white. Which colorway goes on which background is not decided yet (the
   usage rules are not supplied); on the black page the Blue reads at 2.64 to 1.

   Horizontal: 8 + 10 shapes, 5.042 wide to 1 tall; Stacked: 8 + 10 shapes, 2.018 wide to 1 tall; Icon: 2 + 2 shapes, 0.800 wide to 1 tall; Wordmark: 6 + 8 shapes, 8.273 wide to 1 tall.
   ════════════════════════════════════════════════════════ */

.pixl-logo {
  --logo-h: 2rem;
  position: relative;
  display: inline-block;
  height: var(--logo-h);
  max-width: 100%;
  vertical-align: middle;
  flex-shrink: 0;
}
.pixl-logo::before,
.pixl-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  -webkit-mask: var(--logo-mask) center / contain no-repeat;
  mask: var(--logo-mask) center / contain no-repeat;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.pixl-logo::before { --logo-mask: var(--logo-mask-a); background: var(--logo-a); }
.pixl-logo::after { --logo-mask: var(--logo-mask-b); background: var(--logo-b); }

/* Words inside the span are for readers without styles; hidden otherwise. */
.pixl-logo > * {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.pixl-logo {
  aspect-ratio: 5.0423;
  --logo-mask-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='126.55 93.01 826.89 163.99'%3E%3Crect x='126.56' y='191.4' width='32.8' height='65.6'/%3E%3Cpath d='M257.75,158.6c0,18.12-7.34,34.52-19.21,46.39-3.19,3.19-6.72,6.06-10.52,8.55l-18.53-27.09c2.13-1.33,4.09-2.89,5.85-4.65,5.94-5.93,9.61-14.13,9.61-23.19,0-18.12-14.69-32.8-32.8-32.8h-32.8v32.8h-32.8v-65.6h65.6c36.23,0,65.6,29.37,65.6,65.6Z'/%3E%3Cpath d='M364.56,135.32h17.58v79.93h-17.58v-79.93Z'/%3E%3Cpath d='M471.43,135.32l-26.72,39.05,27.86,40.88h-20.55l-17.93-27.4-18.04,27.4h-19.98l27.86-40.65-26.72-39.28h20.55l16.67,25.92,17.01-25.92h19.98Z'/%3E%3Cpath d='M485.7,135.32h17.58v63.94h39.85v15.99h-57.43v-79.93Z'/%3E%3Crect x='303.47' y='167.29' width='15.98' height='15.98'/%3E%3Crect x='287.49' y='183.28' width='15.98' height='31.97'/%3E%3Cpath d='M351.43,167.29c0,8.83-3.58,16.82-9.36,22.61-1.56,1.56-3.28,2.96-5.12,4.17l-9.03-13.2c1.04-.65,1.99-1.41,2.85-2.27,2.89-2.89,4.68-6.89,4.68-11.3,0-8.83-7.16-15.99-15.99-15.99h-15.99v15.99h-15.99v-31.97h31.97c17.66,0,31.97,14.31,31.97,31.97Z'/%3E%3C/svg%3E");
  --logo-mask-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='126.55 93.01 826.89 163.99'%3E%3Crect x='159.36' y='158.6' width='32.8' height='32.8'/%3E%3Cpolygon points='257.75 257 235.32 224.2 193.62 224.2 215.58 257 257.75 257'/%3E%3Cpath d='M636.15,135.32h60.29v15.64h-42.82v16.21h37.68v15.64h-37.68v16.78h43.39v15.64h-60.86v-79.93Z'/%3E%3Cpath d='M740.05,134.75h16.21l34.25,80.5h-18.38l-7.31-17.93h-33.8l-7.31,17.93h-17.93l34.25-80.5ZM758.55,181.79l-10.62-25.92-10.62,25.92h21.24Z'/%3E%3Cpath d='M802.85,135.32h17.58v63.94h39.85v15.99h-57.43v-79.93Z'/%3E%3Cpath d='M873.52,135.32h18.95l21.01,33.8,21.01-33.8h18.95v79.93h-17.47v-52.18l-22.49,34.14h-.46l-22.26-33.8v51.84h-17.24v-79.93Z'/%3E%3Crect x='572.35' y='167.29' width='15.98' height='15.98'/%3E%3Crect x='556.37' y='183.28' width='15.98' height='31.97'/%3E%3Cpath d='M620.31,167.29c0,8.83-3.58,16.82-9.36,22.61-1.56,1.56-3.28,2.96-5.12,4.17l-9.03-13.2c1.04-.65,1.99-1.41,2.85-2.27,2.89-2.89,4.68-6.89,4.68-11.3,0-8.83-7.16-15.98-15.98-15.98h-15.98v15.98h-15.98v-31.97h31.97c17.66,0,31.97,14.31,31.97,31.97Z'/%3E%3Cpolygon points='620.31 215.25 609.37 199.26 589.05 199.26 599.76 215.25 620.31 215.25'/%3E%3C/svg%3E");
}
.pixl-logo.stacked {
  aspect-ratio: 2.0184;
  --logo-mask-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='136.3 174.99 807.4 400.01'%3E%3Cpath d='M229.74,478.1h21.32v96.9h-21.32v-96.9Z'/%3E%3Cpath d='M359.31,478.1l-32.39,47.34,33.78,49.56h-24.92l-21.73-33.22-21.87,33.22h-24.23l33.78-49.28-32.39-47.62h24.92l20.21,31.42,20.63-31.42h24.23Z'/%3E%3Cpath d='M376.61,478.1h21.32v77.52h48.31v19.38h-69.63v-96.9Z'/%3E%3Crect x='155.68' y='516.86' width='19.38' height='19.38'/%3E%3Crect x='136.3' y='536.24' width='19.38' height='38.76'/%3E%3Cpath d='M213.82,516.86c0,10.7-4.34,20.39-11.35,27.41-1.89,1.89-3.97,3.58-6.21,5.05l-10.95-16c1.26-.78,2.42-1.71,3.46-2.75,3.51-3.51,5.68-8.35,5.68-13.7,0-10.7-8.68-19.38-19.38-19.38h-19.38v19.38h-19.38v-38.76h38.76c21.41,0,38.76,17.35,38.76,38.76Z'/%3E%3Crect x='433.52' y='334.72' width='53.24' height='106.48'/%3E%3Cpath d='M646.48,281.48c0,29.41-11.92,56.03-31.19,75.29-5.19,5.19-10.91,9.84-17.07,13.87l-30.08-43.97c3.46-2.16,6.64-4.69,9.5-7.55,9.64-9.63,15.59-22.94,15.59-37.65,0-29.41-23.84-53.24-53.24-53.24h-53.24v53.24h-53.24v-106.48h106.48c58.8,0,106.48,47.68,106.48,106.48Z'/%3E%3C/svg%3E");
  --logo-mask-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='136.3 174.99 807.4 400.01'%3E%3Cpath d='M559.02,478.1h73.09v18.96h-51.91v19.66h45.68v18.96h-45.68v20.35h52.6v18.96h-73.78v-96.9Z'/%3E%3Cpath d='M684.98,477.41h19.66l41.53,97.59h-22.29l-8.86-21.73h-40.98l-8.86,21.73h-21.73l41.53-97.59ZM707.41,534.44l-12.87-31.42-12.87,31.42h25.75Z'/%3E%3Cpath d='M761.11,478.1h21.32v77.52h48.31v19.38h-69.63v-96.9Z'/%3E%3Cpath d='M846.8,478.1h22.98l25.47,40.98,25.47-40.98h22.98v96.9h-21.18v-63.26l-27.27,41.39h-.55l-26.99-40.98v62.85h-20.9v-96.9Z'/%3E%3Crect x='481.67' y='516.86' width='19.38' height='19.38'/%3E%3Crect x='462.29' y='536.24' width='19.38' height='38.76'/%3E%3Cpath d='M539.81,516.86c0,10.7-4.34,20.39-11.35,27.41-1.89,1.89-3.97,3.58-6.21,5.05l-10.95-16c1.26-.78,2.42-1.71,3.46-2.75,3.51-3.51,5.68-8.35,5.68-13.7,0-10.7-8.68-19.38-19.38-19.38h-19.38v19.38h-19.38v-38.76h38.76c21.41,0,38.76,17.35,38.76,38.76Z'/%3E%3Cpolygon points='539.81 575 526.55 555.62 501.91 555.62 514.89 575 539.81 575'/%3E%3Crect x='486.76' y='281.48' width='53.24' height='53.24'/%3E%3Cpolygon points='646.48 441.21 610.06 387.97 542.37 387.97 578.03 441.21 646.48 441.21'/%3E%3C/svg%3E");
}
.pixl-logo.icon {
  aspect-ratio: 0.8000;
  --logo-mask-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='319.99 265 440 550'%3E%3Crect x='320.01' y='595' width='110' height='220'/%3E%3Cpath d='M759.99,485c0,60.75-24.62,115.75-64.44,155.56-10.71,10.71-22.54,20.34-35.27,28.67l-62.14-90.84c7.14-4.45,13.72-9.69,19.63-15.61,19.91-19.9,32.22-47.4,32.22-77.78,0-60.75-49.26-110-110-110h-110v110h-110v-220h220c121.49,0,219.99,98.5,219.99,220Z'/%3E%3C/svg%3E");
  --logo-mask-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='319.99 265 440 550'%3E%3Crect x='430' y='485' width='110' height='110'/%3E%3Cpolygon points='759.99 815 684.75 705 544.91 705 618.57 815 759.99 815'/%3E%3C/svg%3E");
}
.pixl-logo.wordmark {
  aspect-ratio: 8.2727;
  --logo-mask-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='287.49 134.75 665.95 80.5'%3E%3Cpath d='M364.56,135.32h17.58v79.93h-17.58v-79.93Z'/%3E%3Cpath d='M471.43,135.32l-26.72,39.05,27.86,40.88h-20.55l-17.93-27.4-18.04,27.4h-19.98l27.86-40.65-26.72-39.28h20.55l16.67,25.92,17.01-25.92h19.98Z'/%3E%3Cpath d='M485.7,135.32h17.58v63.94h39.85v15.99h-57.43v-79.93Z'/%3E%3Crect x='303.47' y='167.29' width='15.98' height='15.98'/%3E%3Crect x='287.49' y='183.28' width='15.98' height='31.97'/%3E%3Cpath d='M351.43,167.29c0,8.83-3.58,16.82-9.36,22.61-1.56,1.56-3.28,2.96-5.12,4.17l-9.03-13.2c1.04-.65,1.99-1.41,2.85-2.27,2.89-2.89,4.68-6.89,4.68-11.3,0-8.83-7.16-15.99-15.99-15.99h-15.99v15.99h-15.99v-31.97h31.97c17.66,0,31.97,14.31,31.97,31.97Z'/%3E%3C/svg%3E");
  --logo-mask-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='287.49 134.75 665.95 80.5'%3E%3Cpath d='M636.15,135.32h60.29v15.64h-42.82v16.21h37.68v15.64h-37.68v16.78h43.39v15.64h-60.86v-79.93Z'/%3E%3Cpath d='M740.05,134.75h16.21l34.25,80.5h-18.38l-7.31-17.93h-33.8l-7.31,17.93h-17.93l34.25-80.5ZM758.55,181.79l-10.62-25.92-10.62,25.92h21.24Z'/%3E%3Cpath d='M802.85,135.32h17.58v63.94h39.85v15.99h-57.43v-79.93Z'/%3E%3Cpath d='M873.52,135.32h18.95l21.01,33.8,21.01-33.8h18.95v79.93h-17.47v-52.18l-22.49,34.14h-.46l-22.26-33.8v51.84h-17.24v-79.93Z'/%3E%3Crect x='572.35' y='167.29' width='15.98' height='15.98'/%3E%3Crect x='556.37' y='183.28' width='15.98' height='31.97'/%3E%3Cpath d='M620.31,167.29c0,8.83-3.58,16.82-9.36,22.61-1.56,1.56-3.28,2.96-5.12,4.17l-9.03-13.2c1.04-.65,1.99-1.41,2.85-2.27,2.89-2.89,4.68-6.89,4.68-11.3,0-8.83-7.16-15.98-15.98-15.98h-15.98v15.98h-15.98v-31.97h31.97c17.66,0,31.97,14.31,31.97,31.97Z'/%3E%3Cpolygon points='620.31 215.25 609.37 199.26 589.05 199.26 599.76 215.25 620.31 215.25'/%3E%3C/svg%3E");
}

.pixl-logo.sm { --logo-h: 1.5rem; }
.pixl-logo.lg { --logo-h: 3rem; }
.pixl-logo.xl { --logo-h: clamp(2.5rem, 9vw, 5rem); }

.pixl-logo.full { --logo-a: var(--brand-logo-blue); --logo-b: var(--brand-logo-light-blue); }
.pixl-logo.blue { --logo-a: var(--brand-logo-blue); --logo-b: var(--brand-logo-blue); }
.pixl-logo.light-blue { --logo-a: var(--brand-logo-light-blue); --logo-b: var(--brand-logo-light-blue); }
.pixl-logo.greyscale { --logo-a: var(--brand-logo-grey-dark); --logo-b: var(--brand-logo-grey-light); }
.pixl-logo.black { --logo-a: var(--brand-black); --logo-b: var(--brand-black); }
.pixl-logo.white { --logo-a: var(--brand-white); --logo-b: var(--brand-white); }

@media (forced-colors: active) {
  .pixl-logo::before, .pixl-logo::after { forced-color-adjust: none; background: CanvasText; }
}
