/* The GFADelivery mark and wordmark (templates/brand/mark.html; the brand board "GFADelivery Logo.html").
   Brand colours: midnight #101436, cream #FBF7EE, cobalt #1A2BD9, lavender #A7ACD1, slate #5F6384, coral #FF6B57.
   --mark-cut is the ground the mark sits on: it opens the gap where the bar crosses the D and fills the wheel. */
@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("../vendor/syne/syne-latin.woff2") format("woff2");   /* SIL OFL 1.1, see vendor/syne/OFL.txt */
}

.mark {
  --mark-d: #5F6384; --mark-g: #1A2BD9; --mark-dot: #FF6B57; --mark-cut: #FFFFFF;
  display: block; flex: none; overflow: visible;
}
.mark-on-dark { --mark-d: #A7ACD1; --mark-g: #FBF7EE; }
.mark path, .mark circle { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mark .m-d { stroke: var(--mark-d); }
.mark .m-cut { stroke: var(--mark-cut); }
.mark .m-g { stroke: var(--mark-g); }
.mark .m-dot { fill: var(--mark-dot); }
.mark .m-cut-fill { fill: var(--mark-cut); }
.mark .m-rim { stroke: var(--mark-dot); stroke-width: .8; }
.mark .m-spokes { stroke: var(--mark-dot); stroke-width: .75; }
.mark .m-road { stroke: var(--mark-d); stroke-opacity: .45; stroke-width: 1.6; stroke-dasharray: 4 4; stroke-linecap: butt; }
.mark .m-wind path { stroke: var(--mark-d); stroke-width: 3.2; }

/* motion: the wheel rolls right to left (the way Arabic reads), the body bobs on the stem, the road runs under it;
   the find-dot never moves on its own */
.mark-motion .m-road { animation: gd-road .5s linear infinite; }
.mark-motion .m-wind { animation: gd-wind 1.4s ease-in-out infinite; }
.mark-motion .m-body { animation: gd-bob .5s ease-in-out infinite; }
.mark-motion .m-wheel { transform-box: fill-box; transform-origin: center; animation: gd-wheel 1s linear infinite; }
@keyframes gd-wheel { to { transform: rotate(-360deg); } }
@keyframes gd-road { to { stroke-dashoffset: -8; } }
@keyframes gd-wind { 0%, 100% { transform: translateX(0); opacity: 1; } 50% { transform: translateX(3px); opacity: .45; } }
@keyframes gd-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.9px); } }
@media (prefers-reduced-motion: reduce) {
  .mark-motion .m-road, .mark-motion .m-wind, .mark-motion .m-body, .mark-motion .m-wheel { animation: none; }
}

/* the horizontal lockup: mark | GFADelivery / BY GOFINDALL — Latin, so always left to right */
.lockup { display: flex; align-items: center; gap: 14px; direction: ltr; }
.lockup .mark { width: 76px; height: auto; }
.lockup-rule { width: 2px; align-self: stretch; background: currentColor; opacity: .15; }
.lockup-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wordmark { font: 800 22px/1.05 "Syne", "Segoe UI", sans-serif; letter-spacing: -.025em; color: #101436; white-space: nowrap; }
.wordmark span { color: #1A2BD9; }
.byline { font: 400 9px/1 Consolas, "Courier New", monospace; letter-spacing: .16em; color: #5F6384; }

/* the Django admin's header (templates/admin/base_site.html) */
#site-name a.admin-brand { display: inline-flex; align-items: center; gap: 10px; }
.admin-mark { width: 36px; height: auto; --mark-cut: var(--header-bg); }

/* the lockup on the midnight ground (the board's dark card): cream wordmark, lavender GFA and byline */
.lockup-on-dark .mark { --mark-d: #A7ACD1; --mark-g: #FBF7EE; --mark-cut: #101436; }
.lockup-on-dark .lockup-rule { background: #FBF7EE; opacity: .18; }
.lockup-on-dark .wordmark { color: #FBF7EE; }
.lockup-on-dark .wordmark span, .lockup-on-dark .byline { color: #A7ACD1; }
