/* AJ Trades Co brand patterns v0.2 (12 Oct 2026)
   Both come from the AJ mark: its legs and the blue trapezoid are pitched at 54 degrees.
   Use rarely: at most one patterned area per page, never on a trade chapter, never behind long body copy.
   Rules: ../03-design-system.md section 4. */

:root {
  --pitch: 54deg;                         /* measured from the mark: trapezoid sides 53.8 and 54.8 */
  --pat-dark: rgba(255,255,255,.028);     /* stripe tone on dark */
  --pat-light: rgba(10,12,15,.04);        /* stripe tone on paper */
  --pat-band: 14px;                       /* stripe width; gap is the same */
}

/* Pitch lines: stripes at the mark's angle (rising to the right, like the trapezoid's left side).
   CSS gradient angle = 90 + (90 - 54) = 126deg. */
.pat-pitch {
  background-image: repeating-linear-gradient(126deg, var(--pat-dark) 0 var(--pat-band), transparent var(--pat-band) calc(var(--pat-band) * 2));
}
.paper .pat-pitch, .pat-pitch.on-light {
  background-image: repeating-linear-gradient(126deg, var(--pat-light) 0 var(--pat-band), transparent var(--pat-band) calc(var(--pat-band) * 2));
}

/* Facets: the logo trapezoid tessellated (upright and inverted share the 54-degree sides). */
.pat-facets {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='255.0' height='275.0' viewBox='0 0 255.0 275.0'><path d='M-255.0 137.5 L-155.1 0.0 L-127.5 0.0 L-27.6 137.5Z M-127.5 275.0 L-27.6 137.5 L0.0 137.5 L99.9 275.0Z M0.0 137.5 L99.9 0.0 L127.5 0.0 L227.4 137.5Z M127.5 275.0 L227.4 137.5 L255.0 137.5 L354.9 275.0Z M255.0 137.5 L354.9 0.0 L382.5 0.0 L482.4 137.5Z M382.5 275.0 L482.4 137.5 L510.0 137.5 L609.9 275.0Z' fill='%23FFFFFF' fill-opacity='0.022'/></svg>");
  background-size: 280px auto;
}
.paper .pat-facets, .pat-facets.on-light {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='255.0' height='275.0' viewBox='0 0 255.0 275.0'><path d='M-255.0 137.5 L-155.1 0.0 L-127.5 0.0 L-27.6 137.5Z M-127.5 275.0 L-27.6 137.5 L0.0 137.5 L99.9 275.0Z M0.0 137.5 L99.9 0.0 L127.5 0.0 L227.4 137.5Z M127.5 275.0 L227.4 137.5 L255.0 137.5 L354.9 275.0Z M255.0 137.5 L354.9 0.0 L382.5 0.0 L482.4 137.5Z M382.5 275.0 L482.4 137.5 L510.0 137.5 L609.9 275.0Z' fill='%230A0C0F' fill-opacity='0.03'/></svg>");
}
